/* ... Previous CSS ... */
/* Refactored to use CSS Variables */

:root {
    --primary-blue: #2563EB;
    --dark-blue: #1E40AF;
    --accent-red: #DC2626;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #ffffff;
    --light-bg: #F9FAFB;
    --border-color: #E5E7EB;
    --footer-bg: #0a193c;
    --footer-text: #ffffff;
    --section-title: #111827;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-danger {
    background-color: var(--accent-red);
    color: var(--white);
}

.btn-danger:hover {
    filter: brightness(0.9);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* --- Expanded Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Animation Variations */
.fade-up {
    transform: translateY(40px);
}

.fade-down {
    transform: translateY(-40px);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-right {
    transform: translateX(40px);
}

.zoom-in {
    transform: scale(0.9);
}

/* Delay modifiers */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Typography Helpers */
.section-badge {
    display: block;
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--section-title, #111827);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Header */
.header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
}


.header.scrolled {
    background-color: var(--footer-bg) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.navbar-brand img {
    height: 50px !important;
    width: auto !important;
    max-width: none !important;
}

/* Dynamic Header Colors */
.logo-rot {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

.header.scrolled .logo-rot {
    color: var(--white);
    text-shadow: none;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

.header.scrolled .logo-sub {
    color: var(--accent-red);
    text-shadow: none;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

.header.scrolled .nav-link {
    color: var(--white);
    text-shadow: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    /* Push to far right */
    position: relative;
    z-index: 102;
    /* Ensure above nav if overlap occurs */
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}

.contact-phone i {
    font-size: 1.5rem;
    color: var(--white);
    transition: color 0.3s;
}

.header.scrolled .contact-phone i {
    color: var(--white);
}

.phone-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.header.scrolled .phone-label {
    color: rgba(255, 255, 255, 0.8);
}

.phone-number {
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s;
}

.header.scrolled .phone-number {
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

.header.scrolled .mobile-menu-btn {
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/hero-1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
    transition: background-image 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-border-box {
    border-left: 4px solid var(--white);
    padding-left: 30px;
    max-width: 700px;
    position: relative;
}

.hero-border-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background-color: var(--white);
}

.hero-border-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--white);
}


.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--white);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
    z-index: 20;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}


/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section .section-header {
    text-align: left;
    max-width: 800px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: background 0.3s;
}

.service-card:hover .service-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.service-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
}


/* Why Us Section */
.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.why-us-image {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.why-us-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-icon.red {
    color: var(--accent-red);
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--section-title, #111827);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--white);
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_blank_black_lines_4500px_monochrome.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle.center {
    max-width: 700px;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 0 50px;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    border-left: 4px solid var(--accent-red);
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
}

.testimonial-user {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-info h4 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.slider-arrow.prev-test,
.slider-arrow.next-test {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-arrow.prev-test:hover,
.slider-arrow.next-test:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* CTA & Newsletter Section */
.cta-newsletter-section {
    padding: 0;
}

.cta-newsletter-container {
    display: flex;
    flex-wrap: wrap;
}

.cta-box {
    flex: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 60px;
}

/* Left Side: Work With Us */
.work-with-us {
    background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

.work-with-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 60, 0.85);
}

.work-with-us .cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    color: var(--white);
}

.work-with-us h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 40px;
    background: transparent;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: var(--white);
    color: #000;
}

/* Right Side: Newsletter */
.newsletter {
    background-color: var(--accent-red);
    color: var(--white);
}

.newsletter-content {
    width: 100%;
}

.newsletter-content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.newsletter-intro {
    font-size: 0.9rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-content h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.newsletter-form .form-group {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    flex-grow: 1;
    color: var(--white);
    font-size: 1rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Detailed Footer */
.footer-detailed {
    background-color: var(--footer-bg, #0a193c);
    color: var(--footer-text, #fff);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: var(--footer-text, #fff);
}

.footer-address p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-contact-info {
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: 0.9rem;
    color: #cbd5e1;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary-blue);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--footer-text, #fff);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.highlight-red {
    color: var(--accent-red);
    font-weight: 600;
}

.highlight-blue {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Responsive Updates */
@media (max-width: 992px) {
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .about-container,
    .why-us-container {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        order: -1;
        height: 400px;
    }

    .cta-newsletter-container {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .logo-text {
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .header {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .header.scrolled {
        background-color: var(--white);
    }
}

/* Hero Caption (New Subtitle) */
.hero-caption {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- Combined CTA Section --- */
.cta-combined-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: visible;
}

/* Work With Us Text */
.cta-work-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.btn-outline-white-custom {
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 35px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-white-custom:hover {
    background-color: #fff;
    color: #0b1a3d;
}

/* Red Newsletter Box */
.newsletter-red-box {
    background-color: var(--accent-red);
    padding: 40px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.news-top-text {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    line-height: 1.4;
    opacity: 0.9;
}

.news-intro {
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
    opacity: 0.9;
}

.news-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.news-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Minimal Form */
.newsletter-form-minimal {
    margin-top: 20px;
}

.input-group-minimal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 5px;
}

.input-group-minimal input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    width: 100%;
    padding: 10px 0;
}

.input-group-minimal input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-group-minimal button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0 10px;
    transition: opacity 0.3s;
}

.input-group-minimal button:hover {
    opacity: 0.8;
}

/* Responsive adjustments */
/* --- STRICT SPLIT LAYOUT (NO WRAP ON DESKTOP) --- */
.cta-split-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* CRITICAL: Prevent wrapping on desktop */
    width: 100%;
}

.cta-left-content {
    flex: 1;
    /* Takes available space */
    padding-right: 40px;
}

.cta-right-content {
    flex: 0 0 450px;
    /* Rigid width for the box */
    width: 450px;
    max-width: 100%;
}

.newsletter-red-box {
    padding: 40px;
    width: 100%;
}

/* Mobile Fallback */
@media (max-width: 991px) {
    .cta-split-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-left-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .cta-work-title,
    .cta-left-content .text-start {
        text-align: center !important;
    }

    .cta-right-content {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* --- Navigation Dropdown Hover Fix --- */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }

    .dropdown .dropdown-menu {
        display: none;
        /* Ensure hidden by default */
        top: 100%;
        left: 0;
        margin-top: 0;
    }

    .dropdown .nav-link.dropdown-toggle::after {
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Fix for Split Dropdown --- */
.custom-dropdown {
    position: relative;
}

.custom-dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
}

/* Adjust spacing for split arrow */
.dropdown-toggle-split::after {
    margin-left: 0.25em;
}


.custom-dropdown {
    display: inline-flex;
    align-items: center;
}

.custom-dropdown .nav-link {
    padding-right: 5px;
    /* Slight spacing */
}

.custom-dropdown .dropdown-toggle-split {
    padding-left: 5px;
    margin-left: 0;
}


/* --- Mobile Dropdown Visibility --- */
.dropdown-menu.show-mobile {
    display: block !important;
    position: relative;
    /* Stack normally on mobile */
    background: rgba(255, 255, 255, 0.1);
    border: none;
    margin-top: 10px;
}

.fa-rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s;
}


/* --- Simplified Dropdown Hover --- */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
    top: 100%;
    left: 0;
}

/* Ensure mobile menu works simply too (expanded by default or via hover) - For now rely on hover simulation or just link access */


/* --- Missing Bootstrap-like Dropdown Styles --- */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--text-dark);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}


.header-container {
    position: relative;
    /* Ensure absolute nav is relative to this */
}


/* --- Final Centering Adjustment --- */
@media (min-width: 992px) {
    .nav-menu {
        position: static;
        /* Reset absolute */
        margin: 0 auto;
        /* Center in available flex space */
        transform: none;
        /* Reset transform */
        display: flex;
        gap: 25px;
        z-index: 100;
        /* Ensure it doesn't shrink too much */
        flex-shrink: 0;
    }

    .header-container {
        display: flex;
        /* Verify flex */
        position: relative;
    }
}


/* --- Dropdown Navigation Styles --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;

    /* Default: Dark Glass (Matches Unscrolled Header/Hero) */
    background-color: rgba(10, 25, 60, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    margin-top: 0;
    border-top: 3px solid var(--primary-blue);
    transition: background-color 0.3s, border-top-color 0.3s;
}

/* Scrolled State: Light Glass (Matches Scrolled Header) */
.header.scrolled .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: dropdownFade 0.3s ease forwards;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 12px 20px;

    /* Default: White Text for Dark Background */
    color: rgba(255, 255, 255, 0.9);

    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scrolled State: Dark Text for Light Background */
.header.scrolled .dropdown-item {
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Hover States */
.dropdown-item:hover {
    padding-left: 25px;
    /* Slight slide effect */
}

/* Default (Dark) Hover */
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Scrolled (Light) Hover */
.header.scrolled .dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--primary-blue);
}

/* Caret rotation on hover */
.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}



.fa-rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s;
}


/* --- Simplified Dropdown Hover --- */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
    top: 100%;
    left: 0;
}

/* Ensure mobile menu works simply too (expanded by default or via hover) - For now rely on hover simulation or just link access */


/* --- Missing Bootstrap-like Dropdown Styles --- */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--text-dark);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}


.header-container {
    position: relative;
    /* Ensure absolute nav is relative to this */
}


/* --- Final Centering Adjustment --- */
@media (min-width: 992px) {
    .nav-menu {
        position: static;
        /* Reset absolute */
        margin: 0 auto;
        /* Center in available flex space */
        transform: none;
        /* Reset transform */
        display: flex;
        gap: 25px;
        z-index: 100;
        /* Ensure it doesn't shrink too much */
        flex-shrink: 0;
    }

    .header-container {
        display: flex;
        /* Verify flex */
        position: relative;
    }
}


/* --- Dropdown Navigation Styles --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;

    /* Default: Dark Glass (Matches Unscrolled Header/Hero) */
    background-color: rgba(10, 25, 60, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    margin-top: 0;
    border-top: 3px solid var(--primary-blue);
    transition: background-color 0.3s, border-top-color 0.3s;
}

/* Scrolled State: Light Glass (Matches Scrolled Header) */
.header.scrolled .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: dropdownFade 0.3s ease forwards;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 12px 20px;

    /* Default: White Text for Dark Background */
    color: rgba(255, 255, 255, 0.9);

    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scrolled State: Dark Text for Light Background */
.header.scrolled .dropdown-item {
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Hover States */
.dropdown-item:hover {
    padding-left: 25px;
    /* Slight slide effect */
}

/* Default (Dark) Hover */
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Scrolled (Light) Hover */
.header.scrolled .dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--primary-blue);
}

/* Caret rotation on hover */
.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* Ensure text is readable in sticky/scrolled modes */
.header .dropdown-item {
    text-shadow: none;
}

/* --- ElegantCloth Style --- */
:root {
    --elegant-gold: #a68d44;
    --elegant-bg: #f8f9fa;
}

/* Header Elegant */
.header-elegant {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px 0;
    /* Taller header */
}

.header-elegant {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-elegant .container-fluid {
    padding-left: 3%;
    padding-right: 3%;
}

/* Ensure background stays white even when scrolled */
.header-elegant.scrolled,
.header-elegant.solid-bg {
    background-color: #fff !important;
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.header-elegant .elegant-logo {
    display: flex;
    flex-direction: column;
}

.header-elegant .logo-main {
    font-size: 1.8rem;
    /* Slightly larger */
    font-weight: 700;
    color: var(--elegant-gold);
    /* Use the gold color */
    line-height: 1;
    letter-spacing: 2px;
}

.nav-menu-elegant {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Reduced gap for compact look */
}

.nav-link-elegant {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #333;
    padding: 10px 20px;
    transition: all 0.3s;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link-elegant:hover {
    color: var(--elegant-gold);
}

.nav-link-elegant.active {
    border: 1px solid #333;
    /* Box border for active link */
    color: #000;
}

/* Page spacing for Elegant style */
/* Page spacing for Elegant style */
header.header-elegant~main.flex-grow-1 {
    padding-top: 60px;
}

.header-elegant.scrolled~main.flex-grow-1 {
    padding-top: 60px;
}

/* Alternative if siblings don't work well due to layout structure */
/* Removed :has() selectors to prevent editor compatibility warnings. Sibling selectors above should cover it. */

/* Footer Elegant */
.footer-elegant {
    background-color: var(--elegant-bg) !important;
    padding: 80px 0 !important;
}

.footer-elegant p {
    color: #555;
    font-family: 'Inter', sans-serif;
}

/* Global Page Spacing Fix */
main>section:first-of-type:not(.hero-section) {
    padding-top: 50px !important;
}

@media (min-width: 992px) {
    main>section:first-of-type:not(.hero-section) {
        padding-top: 50px !important;
    }
}