:root {
    /* Colors */
    --primary-color: #0F172A;
    /* Deep Navy */
    --secondary-color: #334155;
    /* Slate */
    --accent-color: #D4AF37;
    /* Muted Gold */
    --accent-hover: #B59326;
    --background-color: #F8FAFC;
    --surface-color: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --success: #10B981;
    --error: #EF4444;
    --nav-bg: rgba(255, 255, 255, 0.85);

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --blur: 12px;
}

[data-theme="dark"] {
    --primary-color: #F8FAFC;
    --secondary-color: #94A3B8;
    --background-color: #0F172A;
    --surface-color: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --nav-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Utilities */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #0F172A;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

/* Components */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    /* Changed to Gold for visibility */
    color: #0F172A;
    /* Dark text on gold for contrast */
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    /* Also make outline gold to match */
    color: var(--accent-color);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #0F172A;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    margin-left: 1rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    /* Ensure icon centers */
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--nav-bg);
    /* Use variable for dark mode transparency */
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    /* Adapts to dark mode */
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 4rem;
    /* Top padding for navbar space */
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero-tagline {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1.5rem !important;
    letter-spacing: 0.5px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-background-blur {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(248, 250, 252, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}


/* Sections General */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    /* Adapt to dark mode */
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Services */
.services {
    background-color: var(--surface-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface-color);
    /* Use surface color */
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    /* Gold tint instead of Navy for better visibility on dark */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About */
.about {
    background-color: var(--background-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Stories */
.stories {
    background-color: var(--surface-color);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

.story-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.story-author h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.story-author p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CTA - Premium Animated Section */
.cta {
    position: relative;
    background: linear-gradient(135deg,
            #0F172A 0%,
            #1a2744 25%,
            #1E293B 50%,
            #1a2744 75%,
            #0F172A 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 6rem 0;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating orbs effect */
.cta::before,
.cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.cta::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: floatOrb 8s ease-in-out infinite;
}

.cta::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Glassmorphic inner container */
.cta .container {
    position: relative;
    z-index: 1;
}

/* iOS-Style Glassmorphic Card */
.cta-glass-card {
    position: relative;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 4rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

/* Gradient border glow effect */
.cta-glass-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.4) 0%,
            transparent 30%,
            transparent 70%,
            rgba(212, 175, 55, 0.4) 100%);
    z-index: -1;
    opacity: 0.6;
}

/* Animated shine sweep */
.cta-glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* Inner glow orb */
.cta-glass-card>* {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.75rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium CTA button */
.cta .btn-primary {
    position: relative;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #D4AF37 100%);
    background-size: 200% 200%;
    color: #0F172A;
    font-weight: 700;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    box-shadow:
        0 4px 15px rgba(212, 175, 55, 0.4),
        0 0 30px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.cta .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.5s ease;
}

.cta .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    background-position: 100% 50%;
    box-shadow:
        0 8px 25px rgba(212, 175, 55, 0.5),
        0 0 50px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta .btn-primary:hover::before {
    left: 100%;
}

/* Footer - iOS 17.2 Glassmorphic Style */
footer {
    position: relative;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.85) 0%,
            rgba(30, 41, 59, 0.75) 50%,
            rgba(15, 23, 42, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 -10px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Subtle gradient overlay for depth */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%,
            rgba(212, 175, 55, 0.08) 0%,
            transparent 60%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.1);
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2),
        0 0 60px rgba(212, 175, 55, 0.1),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.social-links a::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0) 0%,
            rgba(212, 175, 55, 0.3) 50%,
            rgba(212, 175, 55, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.social-links a:hover::after {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* FAQ Section Styles */
.footer-faq {
    padding: 2rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.faq-title {
    text-align: center;
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-title {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1rem;
        font-size: 0.85rem;
    }
}





/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .footer-content {
        flex-direction: column-reverse;
        /* Stack with copyright at bottom */
        gap: 1.5rem;
        text-align: center;
    }
}

/* =========================================
   New Features Styles
   ========================================= */

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-primary);
    padding: 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: inherit;
    transition: color 0.3s ease;
}

.dropdown:hover .dropbtn {
    color: var(--primary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-color);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0;
    border: 1px solid var(--glass-border);
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile dropdown toggle */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
    }

    .dropbtn {
        width: 100%;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .dropbtn i {
        transition: transform 0.3s ease;
    }

    .dropdown-content {
        position: static;
        transform: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-content {
        display: block;
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .dropdown-content a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Disable hover on mobile */
    .dropdown:hover .dropdown-content {
        display: none;
        max-height: 0;
    }

    .dropdown.active:hover .dropdown-content {
        display: block;
        max-height: 500px;
    }
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

/* Hide scrollbar */
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .story-card {
    min-width: 100%;
    /* For full slide */
    scroll-snap-align: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .carousel-track .story-card {
        min-width: calc(50% - 1rem);
        /* 2 items per view on tablet */
    }
}

@media (min-width: 1024px) {
    .carousel-track .story-card {
        min-width: calc(33.333% - 1.33rem);
        /* 3 items per view on desktop */
    }
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-btn {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--accent-color);
    color: #0F172A;
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--surface-color);
    margin: auto;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--glass-border);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--error);
    text-decoration: none;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Required field red star indicator */
.required-star {
    color: #EF4444;
    font-weight: bold;
    margin-left: 2px;
}

input,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* =========================================
   Modern UI Features
   ========================================= */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #f4d03f);
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-color);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 35px;
    width: 50px;
    height: 50px;
    background: var(--surface-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.back-to-top:hover svg {
    color: #0F172A;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

/* Enhanced Card Hover Effects */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Animated Gradient Background for Hero */
.hero {
    background: linear-gradient(135deg,
            var(--background-color) 0%,
            rgba(212, 175, 55, 0.05) 50%,
            var(--background-color) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating Elements Animation */
.hero-image img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-5deg) translateY(-15px);
    }
}

.hero-image:hover img {
    animation-play-state: paused;
    transform: perspective(1000px) rotateY(0deg);
}

/* Stat Card Counter Animation */
.stat-card h3 {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Wrapper Pulse on Hover */
.icon-wrapper {
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Button Ripple Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Link Underline Animation */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Story Card Shine Effect */
.story-card {
    position: relative;
    overflow: hidden;
}

.story-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 60%,
            transparent 100%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.story-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* =========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   Mobile-First Approach
   ========================================= */

/* Extra Small Devices (phones, 480px and below) */
@media (max-width: 480px) {

    /* Base Typography */
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 32px;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card h3 {
        font-size: 1.75rem;
    }

    /* CTA Section */
    .cta {
        padding: 4rem 0;
    }

    .cta-glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        margin: 0 0.5rem;
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .cta .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .cta::before,
    .cta::after {
        width: 200px;
        height: 200px;
    }

    /* Footer */
    footer {
        padding: 2rem 0;
    }

    .footer-content {
        gap: 1.25rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 38px;
        height: 38px;
    }

    /* Modal */
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Floating Buttons */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .back-to-top {
        bottom: 75px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    /* Carousel */
    .carousel-container {
        padding: 0.5rem;
    }

    .story-card {
        padding: 1.5rem;
    }

    .story-text {
        font-size: 0.95rem;
    }
}

/* Small Devices (landscape phones, tablets portrait - 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta h2 {
        font-size: 2rem;
    }

    .modal-content {
        padding: 2rem;
    }
}

/* Common Tablet and Mobile Styles (768px and below) */
@media (max-width: 768px) {

    /* Navigation */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a::after {
        display: none;
        /* Hide underline animation on mobile */
    }

    /* Dropdown on mobile */
    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.05);
        margin-top: 0.5rem;
        border-radius: 8px;
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
        transform: none;
        animation: none;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .feature-list {
        text-align: left;
        max-width: 300px;
        margin: 2rem auto;
    }

    /* Footer */
    .footer-content {
        flex-direction: column-reverse;
        gap: 1.5rem;
        text-align: center;
    }

    /* WhatsApp Tooltip Hide */
    .whatsapp-tooltip {
        display: none;
    }

    /* Form Row Stack */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Stories/Testimonials */
    .carousel-track .story-card {
        min-width: 85%;
    }

    /* Reduce animation intensity on mobile */
    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        transform: none;
    }

    .visible {
        transform: none;
    }
}

/* Medium Devices (tablets landscape - 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .about-content {
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta h2 {
        font-size: 2.25rem;
    }
}

/* Large Devices (desktops - 1025px and above) */
@media (min-width: 1025px) {
    .container {
        max-width: 1280px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects that don't work well on touch */
    .service-card:hover {
        transform: none;
    }

    .social-links a:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    /* Increase tap targets */
    .btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links a {
        padding: 0.75rem 0;
    }

    /* Make form inputs larger for easier tapping */
    input,
    select {
        min-height: 48px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* Landscape Orientation for Phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .modal-content {
        max-height: 95vh;
        padding: 1.5rem;
    }

    .modal-header {
        margin-bottom: 1rem;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .scroll-progress {
        height: 3px;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-image img {
        animation: none;
    }

    .cta {
        animation: none;
    }

    .cta::before,
    .cta::after {
        animation: none;
    }
}

/* Safe Area Insets for Notched Devices (iPhone X+) */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .whatsapp-float {
        right: max(15px, env(safe-area-inset-right));
        bottom: max(15px, env(safe-area-inset-bottom));
    }

    .back-to-top {
        right: max(15px, env(safe-area-inset-right));
    }
}