/* =========================================
   1. VARIABLES & RESET (DARK THEME)
   ========================================= */
:root {
    /* Modern Dark Blue Palette */
    --primary-bg: #020617;
    /* Slate 950 - Main Background */
    --secondary-bg: #0f172a;
    /* Slate 900 - Section Alternation */
    --card-bg: rgba(30, 41, 59, 0.4);
    /* Glassy Card Background */

    --accent-color: #60a5fa;
    /* Sky 400 - Softer Blue Accent */
    --accent-hover: #38bdf8;
    /* Sky 300 - Hover state */
    --accent-glow: rgba(96, 165, 250, 0.3);

    --text-main: #f8fafc;
    /* Slate 50 - Main Headings */
    --text-body: #cbd5e1;
    /* Slate 300 - Body Text */
    --text-muted: #64748b;
    /* Slate 500 - Subtitles */

    /* Modern UI tokens */
    --border-color: rgba(148, 163, 184, 0.1);
    --border-highlight: rgba(96, 165, 250, 0.3);

    --border-radius: 16px;
    --border-radius-sm: 8px;

    /* Lighting / Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(96, 165, 250, 0.15);

    --backdrop-blur: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
    /* Pricing animation tuning */
    --pricing-float-distance: 4px;
    --pricing-float-duration: 8s;
    /* Pulse tuning for subtle attention */
    --pricing-pulse-duration: 3.6s;
    --pricing-pulse-shadow-light: rgba(96,165,250,0.04);
    --pricing-pulse-shadow-strong: rgba(96,165,250,0.12);
}

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

html {
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    /* Dark Bg */
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Redefine light bg to be a secondary dark shade */
.bg-light {
    background-color: var(--secondary-bg);
}

/* =========================================
   2. BUTTONS & UTILITIES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, #60a5fa 100%);
    color: #0f172a;
    /* Dark text on bright button for contrast */
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.5);
    color: #000;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Section-specific outline override isn't needed as much in dark mode 
   since backgrounds are dark everywhere */

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

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

.margin-bottom {
    margin-bottom: 20px;
}

/* =========================================
   3. TOP BAR
   ========================================= */
.top-bar {
    background-color: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border-color);
    color: #ffffff;
    /* Explicit White */
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    align-items: center;
}

.top-bar-content span,
.top-bar-content a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-content a:hover {
    color: var(--accent-color);
}

.top-bar i {
    width: 14px;
    height: 14px;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* =========================================
   4. HEADER & NAVBAR
   ========================================= */
header {
    background-color: transparent;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(2, 6, 23, 0.85);
    /* Dark Blur */
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    height: 70px;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    background: rgba(96, 165, 250, 0.1);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.2);
    /* Glow */
}

.accent {
    color: var(--accent-color);
}

.desktop-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--text-body);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent-color);
}

/* Nav Link Underline Effect */
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-color);
}

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

.nav-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: rgba(2, 6, 23, 0.95);
    /* Nearly Opaque Dark */
    backdrop-filter: blur(20px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
    text-align: center;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-size: 1.2rem;
    color: var(--text-main);
}

@media (max-width: 960px) {

    .desktop-nav,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Rich Deep Background */
    background: radial-gradient(circle at top right, #1e293b 0%, #020617 60%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.19;
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Abstract Glows */
    background:
        radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    z-index: 1;
}

.hero::after {
    /* Subtle Grid Pattern */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 90%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Gradient Text */
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 40px;
    color: var(--text-body);
    max-width: 600px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-buttons .btn {
    animation: floatUp 3s ease-in-out infinite;
}

.hero-buttons .btn-primary {
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4), 0 0 30px rgba(96, 165, 250, 0.3);
}

.hero-buttons .btn-outline {
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.25);
}

.hero-buttons .btn-outline:hover {
    box-shadow: 0 0 35px rgba(96, 165, 250, 0.4);
}

.hero-features {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    animation: floatIcon 3.5s ease-in-out infinite, walkingPulse 4.5s ease-in-out infinite;
}

.feature-tag:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-tag:nth-child(3) {
    animation-delay: 0.4s;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.feature-tag i {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
    }

    .feature-tag {
        font-size: 0.95rem;
        padding: 12px 16px;
        gap: 8px;
        justify-content: center;
    }

    .feature-tag i {
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

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

/* Glassmorphism Cards */
.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    margin: -40px -30px 20px -30px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: var(--transition);
}

.service-card:hover .service-image {
    opacity: 0.6;
    transform: scale(1.05);
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.1);
    /* Blue Glow */
    background: rgba(30, 41, 59, 0.6);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--accent-color);
    color: #0f172a;
    box-shadow: 0 0 15px var(--accent-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.learn-more {
    color: var(--text-main);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.learn-more:hover {
    gap: 10px;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .service-image-wrapper {
        /* use aspect ratio instead of fixed height */
        aspect-ratio: 16/9;
        height: auto;
        margin: -40px -30px 15px -30px;
    }

    .service-card {
        padding: 30px 25px;
    }
}

/* smaller phones */
@media (max-width: 480px) {
    .service-image-wrapper {
        aspect-ratio: 4/3;
        margin: -30px -20px 10px -20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }
}

/* =========================================
   7. HOW IT WORKS
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-top: 50px;
}

.step-card {
    background: var(--secondary-bg);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--border-color);
    background: var(--primary-bg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-bg), var(--primary-bg));
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.step-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   8. WHY CHOOSE US
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-list {
    margin: 30px 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-weight: 500;
    color: var(--text-body);
}

.benefits-list i {
    color: var(--accent-color);
    filter: drop-shadow(0 0 5px rgba(96, 165, 250, 0.5));
}

.stats-row {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1), transparent 60%);
    animation: rotateGlow 10s linear infinite;
}

/* image inside about section */
.about-image-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center center;
    will-change: transform;

    background: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, #60a5fa 100%);
    color: #0f172a;
    box-shadow: 0 0px 30px rgba(96, 165, 250, 0.4);
}

.about-image-img:hover {
    animation-delay: 100ms;
    background: var(--accent-hover);
    transform: scale(1.01);
    box-shadow: 0 0px 35px rgba(0, 115, 255, 0.5);

}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   9. REVIEWS
   ========================================= */
/* carousel wrapper (replaces grid for dynamic reviews) */
.reviews-carousel {
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
}

.reviews-track {
    display: flex;
    width: max-content;
    animation: scrollReviews 60s linear infinite;
}

.reviews-carousel:hover .reviews-track {
    animation-play-state: paused;
}

/* original grid rules kept just in case */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    /* ensure fixed width for carousel items */
    flex-shrink: 0;
    width: 300px;
    margin-right: 30px;
}

.stars {
    color: #fbbf24;
    /* Amber 400 */
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.review-text {
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: var(--accent-color);
}

.center-btn {
    text-align: center;
}

/* =========================================
   10. PRICING
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 320ms cubic-bezier(0.2, 0, 0.08, 1), box-shadow 320ms ease, border-color 320ms ease;
    position: relative;
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
    /* gentle floating animation using tunable vars */
    animation: float var(--pricing-float-duration) ease-in-out infinite;
    animation-delay: calc((var(--pricing-float-duration) / 3) * -1);
}

.pricing-card.popular {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--accent-color);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.06);
    transform: scale(1.03);
    z-index: 10;
    /* add subtle pulsing (box-shadow / border-color) alongside float */
    animation: float var(--pricing-float-duration) ease-in-out infinite, pulse var(--pricing-pulse-duration) ease-in-out infinite;
}

.badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-color);
    color: #0f172a;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hover / focus interactions: subtle lift, glow and border highlight */
.pricing-card:hover,
.pricing-card:focus-within {
    transform: translateY(calc(-1 * var(--pricing-float-distance))) scale(1.01);
    box-shadow: var(--shadow-glow), 0 12px 30px rgba(2,6,23,0.5);
    border-color: rgba(96,165,250,0.18);
}

.pricing-card.popular:hover,
.pricing-card.popular:focus-within {
    transform: translateY(calc(-1 * var(--pricing-float-distance))) scale(1.06);
    box-shadow: 0 18px 40px rgba(56,189,248,0.12), var(--shadow-glow);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pricing-card {
        animation: none !important;
        transition: none !important;
    }
}

.price-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.price-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-body);
}

.price-features i {
    color: var(--accent-color);
    width: 18px;
    height: 18px;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .pricing-card.popular {
        transform: none;
    }
}

/* subtle vertical float keyframes */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(calc(-1 * var(--pricing-float-distance)));
    }
    100% {
        transform: translateY(0);
    }
}

/* =========================================
   11. FAQ SECTION
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.faq-question i {
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--text-body);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
    opacity: 1;
}

/* =========================================
   12. CONTACT SECTION
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--secondary-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-info {
    background: linear-gradient(160deg, #1e293b 0%, #020617 100%);
    padding: 50px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Move content to top */
}

.contact-info p {
    opacity: 0.8;
    margin-bottom: 40px;
    /* Push icons down */
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 10px;
    /* Closer to subtitle */
}

.info-item {
    display: flex;
    /* Restored Flex alignment */
    align-items: flex-start;
    /* Align top in case of multi-line text */
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    color: var(--accent-color);
    filter: drop-shadow(0 0 5px var(--accent-color));
    flex-shrink: 0;
    /* Prevent icon shrinking */
}

.info-item h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.contact-form-container {
    padding: 50px;
    background: var(--primary-bg);
    /* Seamless dark look */
}

/* Modern Form Group */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(15, 23, 42, 0.5);
    /* Very dark, slight tint */
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Inner depth */
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(96, 165, 250, 0.3);
    background-color: rgba(15, 23, 42, 0.7);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(15, 23, 42, 1);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.4);
    font-weight: 400;
}

/* Custom Select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

/* Error States */
.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 5px;
    animation: slideDown 0.3s ease;
}

/* Only show error message when error class is present */
.form-group.error .error-msg {
    display: flex;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background-color: rgba(239, 68, 68, 0.05);
}

/* Success Message */
.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
    animation: fadeIn 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   13. FOOTER
   ========================================= */
/* =========================================
   13. FOOTER
   ========================================= */
footer {
    background-color: #020617;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    position: relative;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--accent-color);
}

.footer-links a:hover {
    color: var(--accent-color);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   14. FLOATING BUTTON
   ========================================= */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: #0f172a;
    /* Dark Icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    z-index: 990;
    transition: var(--transition);
    animation: pulseBtn 2s infinite;
}

.float-btn:hover {
    transform: scale(1.1);
    background-color: var(--white);
    animation: none;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* =========================================
   15. ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.9;
    }
}

@keyframes walkingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.2),
                    12px 5px 0 -5px rgba(56, 189, 248, 0.12),
                    0 15px 0 -5px rgba(56, 189, 248, 0.08);
    }
    25% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.1),
                    5px 12px 0 -5px rgba(56, 189, 248, 0.2),
                    12px 5px 0 -5px rgba(56, 189, 248, 0.12);
    }
    50% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.15),
                    -12px 5px 0 -5px rgba(56, 189, 248, 0.08),
                    5px 12px 0 -5px rgba(56, 189, 248, 0.2);
    }
    75% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.2),
                    -5px -12px 0 -5px rgba(56, 189, 248, 0.12),
                    -12px 5px 0 -5px rgba(56, 189, 248, 0.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.2),
                    12px 5px 0 -5px rgba(56, 189, 248, 0.12),
                    0 15px 0 -5px rgba(56, 189, 248, 0.08);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   16. GALLERY SECTION
   ========================================= */
.gallery-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.gallery-carousel::before,
.gallery-carousel::after {
    /* Fade edges for smooth look */
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-bg), transparent);
}

.gallery-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-bg), transparent);
}

.gallery-track {
    display: flex;
    /* gap: 30px; Removed for smoother marquee calc */
    width: max-content;
    animation: scroll 120s linear infinite;
}

.gallery-carousel:hover .gallery-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Perfect loop assuming matched duplicates */
    }
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Gallery Item Card */
.gallery-item-card {
    position: relative;
    width: 350px;
    height: 250px;
    margin-right: 30px;
    /* Use margin instead of gap */
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.gallery-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-card:hover img {
    transform: scale(1.1);
}

.gallery-item-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.gallery-item-card:hover .overlay {
    opacity: 1;
}

.gallery-item-card .overlay i {
    color: #fff;
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.type-badge i {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 70vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: modernImageTransition 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modernImageTransition {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.92) blur(8px);
    }

    50% {
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1) blur(0);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2002;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
    color: #0f172a;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Lightbox Thumbnails */
.lightbox-thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-padding: 60px;
    align-items: center;
    max-width: 100%;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: all 1.2s cubic-bezier(0.15, 0.83, 0.66, 1);
    scroll-snap-type: x proximity;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 10px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: background 1s cubic-bezier(0.15, 0.83, 0.66, 1);
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    transition: all 1s cubic-bezier(0.15, 0.83, 0.66, 1);
    min-height: 30px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.lightbox-thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.5;
    filter: blur(4px);
    transition: all 1.1s cubic-bezier(0.15, 0.83, 0.66, 1);
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s cubic-bezier(0.15, 0.83, 0.66, 1);
}

.lightbox-thumbnail:hover {
    opacity: 0.7;
    filter: blur(2px);
    transform: translateY(-3px);
}

.lightbox-thumbnail.active {
    opacity: 1;
    filter: blur(0);
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6), inset 0 0 10px rgba(56, 189, 248, 0.2);
    animation: modernThumbnailActivate 1s cubic-bezier(0.15, 0.83, 0.66, 1);
}

@keyframes modernThumbnailActivate {
    from {
        transform: scale(0.82) rotate(-10deg);
        opacity: 0.6;
    }

    50% {
        opacity: 0.85;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    /* Contact Section Responsive */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .contact-info,
    .contact-form-container {
        padding: 30px;
    }
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #fff;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.social-icon:hover,
.social-icon:active {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* When JS-driven interactive state is active, tighten transition for snappy response */
.pricing-card.interactive {
    transition: transform 160ms cubic-bezier(0.22, 0.9, 0.36, 1);
    will-change: transform;
}

/* Slight badge lift on parent hover to add a micro-interaction */
.pricing-card:hover .badge {
    transform: translateY(-4px) rotate(45deg);
}

/* Subtle pulse animation: glow the shadow and tint the border slightly */
@keyframes pulse {
    75% {
        box-shadow: 0 8px 20px var(--pricing-pulse-shadow-light);
        border-color: rgba(96,165,250,0.06);
    }
    85% {
        box-shadow: 0 16px 36px var(--pricing-pulse-shadow-strong);
        border-color: rgba(96,165,250,0.22);
    }
    100% {
        box-shadow: 0 8px 20px var(--pricing-pulse-shadow-light);
        border-color: rgba(96,165,250,0.06);
    }
}