:root {
    --primary-color: #0033A1; /* Updated Blue */
    --primary-opacity: rgba(76, 107, 175, 0.8);

    --secondary-color: #b9c7d6; /* Optional secondary accent */
    --accent-color: #0033A1; /* Using primary as accent per instructions */
    --text-dark: #221C35;
    --text-light: #f1faee;
    --bg-light: #e6e7eb;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --font-en: 'Open Sans', 'Myriad Pro', 'Calibri', sans-serif;
    --font-ar: 'Cairo', 'A Jannat LT', 'Arial', sans-serif;
    --font-en-bold: 'Open Sans', 'Myriad Pro', 'Calibri', sans-serif; /* Fallback for bold */
    --font-ar-bold: 'Cairo', 'A Jannat LT Bold', 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: direction 0.3s ease;
}

body.rtl {
    direction: rtl;
    font-family: var(--font-ar);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

body.rtl h1, body.rtl h2, body.rtl h3 {
    font-family: var(--font-ar-bold);
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    object-fit: contain;
}

.btn-outline {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('(Hero section) this should have the color 0033a1 with 80 percent opacity over it.png') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-opacity);
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.e1 { top: -10%; right: -10%; width: 50%; }
.e2 { bottom: -10%; left: -10%; width: 40%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    color: var(--primary-color);
}

.tagline {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,95,115,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,95,115,0.4);
}

/* History */
.section-padding {
    padding: 30px 0;
}
@media (max-width: 768px) {
    .section-padding {
        padding: 20px 0;
    }
}

.history-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.history-item.reverse {
    flex-direction: row-reverse;
}

.history-img img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.history-img-trans img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

body.rtl .history-img-trans img {
    transform: scaleX(-1);
}

.history-text {
    flex: 1;
}

.history-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

/* Products */
.glass-bg {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,248,255,0.9));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-dark);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.accordion-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 0; /* Remove bottom margin as gap handles spacing, or keep if needed for flex fallback */
    height: fit-content; /* Ensure it wraps content */
}

.accordion-header {
    background: white;
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--primary-color);
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f1f1f1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fafafa;
}

.accordion-content ul {
    list-style: none;
    padding: 1rem;
}

.accordion-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.accordion-content li:last-child {
    border-bottom: none;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 51, 161, 0.1);
}

.contact-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1.5rem;
    pointer-events: none;
}

.carousel-nav button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-nav button:hover {
    background: white;
    transform: scale(1.1);
}

.info-block {
    padding: 2.5rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.info-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background: white;
    padding: 2rem 0 0.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    height: 75px;
}

.footer-brand h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.footer-contact-details {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.contact-group {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #6a6a6a;
    margin-bottom: 0;
    line-height: 1.1;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #9a9a9a;
    font-weight: 400;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.5rem 3rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-info-item i {
    color: #999;
    width: 18px;
    text-align: center;
    font-size: 1.1rem;
}

.footer-copyright {
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.7rem;
    color: #999;
}

@media (max-width: 1100px) {
    .footer-main {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .footer-contact-details {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 3rem;
    }
    .footer-contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 1s ease;
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up { transform: translateY(30px); }

.reveal-left.visible, .reveal-right.visible, .reveal-up.visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 768px) {
    .history-item, .history-item.reverse {
        flex-direction: column;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Partners Carousel */
.partners-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 2rem 0; /* Add padding for aesthetics */
    border-radius: 20px; /* Match history img radius */
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.partners-track img {
    height: 60px;
    margin: 0 2rem;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

body.rtl .partners-track {
    animation: scroll-rtl 30s linear infinite;
}

.partners-desc {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.partners .partners-carousel {
    margin: 0 auto;
    max-width: 1920px;
}

.hero-logo {
    max-width: 80%;
    height: auto;
    max-height: 150px;
}
