/* =========================================
   ROOT VARIABLES (LIGHT DEFAULT)
========================================= */

:root {
    --bg: #fdfdfd;
    /* Slightly off-white for better depth perception */
    --text: #111111;
    --muted: #555555;
    --border: #e0e0e0;
    --header-bg: rgba(255, 255, 255, 0.85);
    /* Glassmorphism base */
    --dropdown-bg: rgba(255, 255, 255, 0.95);

    /* Red-Blue Gradient Theme */
    --accent-red: #E63946;
    --accent-blue: #1D3557;
    --accent-light-blue: #457B9D;
    --accent: linear-gradient(135deg, #E63946 0%, #457B9D 50%, #E63946 100%);
    --accent-hover: linear-gradient(135deg, #D62839 0%, #1D3557 50%, #D62839 100%);
    --accent-solid: #E63946;
    /* For borders and solid colors */

    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass-blur: blur(10px);
}

/* =========================================
   DARK MODE VARIABLES
========================================= */

body.dark-mode {
    --bg: #0f0f0f;
    --text: #f0f0f0;
    --muted: #a0a0a0;
    --border: #2a2a2a;
    --header-bg: rgba(20, 20, 20, 0.85);
    --dropdown-bg: rgba(30, 30, 30, 0.95);

    --accent-red: #F25C66;
    --accent-blue: #457B9D;
    --accent-light-blue: #A8DADC;
    --accent: linear-gradient(135deg, #F25C66 0%, #457B9D 50%, #F25C66 100%);
    --accent-hover: linear-gradient(135deg, #FF6B75 0%, #A8DADC 50%, #FF6B75 100%);
    --accent-solid: #F25C66;

    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* =========================================
   GLOBAL RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Modern font stack */
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
}

/* =========================================
   HEADER
========================================= */

.site-header {
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1500px;
    margin: auto;
    padding: 10px 40px;
    /* Reduced vertical padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    /* Reduced gap */
}

/* Hide menu toggle by default (Desktop) */
.menu-toggle {
    display: none;
}

/* LOGO */
.logo img {
    height: 38px;
    /* Reduced logo size */
}

/* NAVIGATION */

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav li {
    position: relative;
    display: flex;
    align-items: center;
}

/* Vertical separators */
.main-nav li:not(:last-child)::after {
    content: "|";
    margin: 0 12px;
    /* Reduced separator spacing */
    color: #888;
    font-weight: 300;
}

/* Nav links */
.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 12.5px;
    /* Smaller font as requested */
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

/* =========================================
   DROPDOWN FIXED (NO HOVER GAP)
========================================= */

.dropdown {
    position: relative;
}

/* Attach directly to nav item */
/* Attach directly to nav item */
.dropdown-menu {
    position: absolute;
    top: 100%;
    /* attaches to bottom */
    left: 0;
    background: var(--dropdown-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    width: 320px;
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-hover);
    padding: 10px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown links */
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--text);
    font-weight: 500;
    font-size: 13.5px;
    border-bottom: none;
    transition: 0.2s ease;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--accent-solid);
}

.dropdown-menu a:hover {
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent);
    padding-left: 30px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}


/* =========================================
   HERO SECTION
========================================= */

.hero {
    padding: 140px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 700px;
    margin: auto;
    margin-bottom: 30px;
}

/* Primary Button */
/* Primary Button */
.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =========================================
   FOOTER
========================================= */

.footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: var(--text);
}

.footer-section p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-5px) rotate(10deg);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* =========================================
   HEADER ACTIONS (LANG & THEME)
========================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle,
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s ease;
    border-radius: 6px;
    color: var(--text);
}

.lang-toggle:hover,
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* RTL Support Base */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .main-nav li:not(:last-child)::after {
    transform: scaleX(-1);
}

/* =========================================
   BRANDS PAGE
========================================= */

.brands-section {
    padding: 100px 0;
    background: #f4f4f4;
}

body.dark-mode .brands-section {
    background: #181818;
}

.brands-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
}

.brands-title {
    text-align: center;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 60px;
    font-weight: 600;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 35px;
}

.brand-box {
    background: var(--bg);
    border: 1px solid var(--border);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy 3D effect */
    position: relative;
    overflow: hidden;
}

body.dark-mode .brand-box {
    background: #1e1e1e;
    border: 1px solid #333;
}

.brand-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(234, 163, 22, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    /* Allow clicks to pass through to the <a> tag */
}

.brand-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    z-index: 10;
}

.brand-box:hover::after {
    opacity: 1;
}

.brand-box a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.brand-box img {
    max-width: 80%;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s ease;
}

.brand-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   CONTACT PAGE
========================================= */

.contact-section {
    padding: 100px 0;
}

.contact-container {
    max-width: 1300px;
    margin: auto;
    padding: 0 40px;
}

.contact-title {
    text-align: center;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 60px;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info h3 i {
    color: var(--accent);
}

.contact-info p {
    margin-bottom: 25px;
    color: var(--muted);
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info p i {
    color: var(--accent);
    margin-top: 5px;
    width: 15px;
}

.contact-methods {
    background: var(--header-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-light);
}

.contact-methods p {
    margin-bottom: 15px;
}

.contact-methods p:last-child {
    margin-bottom: 0;
}

.contact-form {
    background: var(--bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .main-nav ul {
        gap: 15px;
    }

    .main-nav li:not(:last-child)::after {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   NEW SECTION STYLES
========================================= */

/* Hero Enhancements */
.hero {
    background: linear-gradient(135deg, var(--bg) 0%, #f0f0f0 100%);
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, var(--bg) 0%, #1a1a1a 100%);
}

.hero-content h1 span {
    color: var(--accent);
    font-size: 0.8em;
}

.hero-btns {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text);
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #000;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.highlight-item {
    background: var(--bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    width: 220px;
    transition: 0.3s ease;
    border: 1px solid var(--border);
}

.highlight-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.highlight-item i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.highlight-item h4 {
    font-size: 16px;
    font-weight: 700;
}

/* About Page */
.about-hero {
    padding: 100px 0;
    background: var(--header-bg);
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: -50px auto 80px;
    max-width: 1200px;
}

.about-card {
    background: var(--bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid var(--border);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.about-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.about-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.about-content h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        margin-top: 20px;
        padding: 0 20px;
    }
}

/* =========================================
   BUSINESS PAGES (Mockup Style)
========================================= */

.business-hero {
    height: 450px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    overflow: hidden;
    /* Ensure video doesn't bleed out */
    background: #000;
    /* Fallback */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.business-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
    /* Ensure overlay is above video but below text */
}

.business-hero h1 {
    position: relative;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    z-index: 3;
    /* Above everything */
    animation: heroFadeIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subsidiary-section {
    padding: 80px 0;
}

.subsidiary-section:nth-child(even) {
    background: #f9f9f9;
}

body.dark-mode .subsidiary-section:nth-child(even) {
    background: #1a1a1a;
}

.subsidiary-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.subsidiary-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.subsidiary-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.subsidiary-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text);
    position: relative;
}

.subsidiary-info h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin-top: 8px;
    margin-bottom: 20px;
}

.subsidiary-info p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.view-website {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--text);
    padding-bottom: 2px;
    transition: 0.3s;
}

.view-website:hover {
    color: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 800px) {
    .subsidiary-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .subsidiary-info h2::after {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 1024px) {

    /* Header & Nav */
    .header-container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: var(--text);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    /* Mobile Nav Active State */
    body.mobile-nav-active .menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    body.mobile-nav-active .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.mobile-nav-active .menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: 0.4s ease;
        padding: 100px 40px;
        display: block;
        overflow-y: auto;
    }

    body.mobile-nav-active .main-nav {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li::after {
        display: none;
        /* Hide vertical separators on mobile */
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        width: 100%;
    }

    /* Dropdown on Mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0 0 15px 20px;
        background: transparent;
        transform: none;
        display: block;
        /* Ensure it's not hidden by desktop styles */
        width: 100%;
    }

    .dropdown-menu a {
        font-size: 14px;
        padding: 10px 0;
        border-bottom: none !important;
    }

    /* General Refinements */
    .hero h1 {
        font-size: 32px;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .brand-box {
        height: 160px;
    }

    .business-hero {
        height: 300px;
    }

    .business-hero h1 {
        font-size: 24px;
    }

    .site-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-section h3::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .main-nav {
        width: 100%;
    }
}