﻿/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Palette - Light Theme */
    --bg-dark: #ffffff;
    --bg-card: #f8f9fa;
    --bg-alt: #f0f2f5;
    --text-main: #1a1a2e;
    --text-muted: #6b7280;

    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #6366f1;

    --gradient-main: linear-gradient(135deg, #6366f1 0%, #6366f1 100%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header - Frosted Glass */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 85px;
    max-height: calc(var(--header-height) - 30px);
    width: auto;
}

.logo span {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section with Slideshow */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Ken Burns Effect */
    transform: scale(1);
    will-change: transform, opacity;
}

.hero-slideshow .slide.active {
    opacity: 1;
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.85) 60%, rgba(99, 102, 241, 0.15) 100%);
    z-index: -1;
    pointer-events: none;
}

.slideshow-dots {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../assets/hero-bg.png') center center / cover no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.8) 60%, rgba(99, 102, 241, 0.15) 100%);
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a2e;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #4a4a5a;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Generic Section Styles */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
}

/* Gallery Mockups */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.project-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
    filter: brightness(1.08);
}

/* 3D Dollhouse rotation effect */
.project-card.dollhouse-3d {
    perspective: 1000px;
    overflow: hidden;
}

.project-card.dollhouse-3d .project-image {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    background-color: #0a0a0a;
    background-size: 85%;
    background-repeat: no-repeat;
    background-position: center;
}

.project-card.dollhouse-3d:hover .project-image {
    transform: rotateY(10deg) scale(1.1);
}

/* Subtle floating animation for all cards to feel 'alive' */
@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* We don't apply this globally to avoid motion sickness,
   but we can apply it to specific highlight elements if requested.
   For now, the hover lift is sufficient for the cards. */

.project-card.interior .project-image {
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Gallery Subtitle */
.gallery-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: none;
}

.gallery-subtitle:first-of-type {
    margin-top: 0;
}

/* Video Showcase */
.video-section {
    overflow: hidden;
}

.video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
}

.promo-video {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.video-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
}

.video-sound-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-sound-btn:hover {
    background: rgba(99, 102, 241, 0.7);
    border-color: rgba(99, 102, 241, 0.9);
    transform: scale(1.1);
}

.gallery-subtitle:first-of-type {
    margin-top: 0;
}

/* Matterport Tour Carousel */
.tour-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tour-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tour-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
}

.tour-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px 16px 0 0;
}

.tour-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.tour-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.tour-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.tour-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tour-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.tour-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tour-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tour-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.tour-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.tour-cta {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tour-carousel {
        flex-direction: column;
    }

    .tour-nav {
        display: none;
    }

    .tour-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Demo Tour Container */
.demo-tour {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.demo-tour .tour-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
}

.demo-tour .tour-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Link Button */
.gallery-link {
    text-align: center;
    margin-bottom: 40px;
}

.btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1, var(--primary), #93c5fd);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-gallery:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    background-position: 100% 0;
}

.gallery-note {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding-top: 40px;
    background: #1a1a2e;
    color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer h2,
.footer p {
    color: white;
}

.footer .btn-primary {
    color: white;
}

.footer-cta {
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

/* ==========================================
   ENHANCED CONTACT FORM
   ========================================== */

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

/* Gradient border glow effect */
.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), #00d9ff, var(--primary));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.5;
    animation: borderGlow 4s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% {
        opacity: 0.3;
        filter: blur(10px);
    }

    100% {
        opacity: 0.6;
        filter: blur(15px);
    }
}

/* Form title decoration */
.contact-form::after {
    content: '💬';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1a1a2e, #2d1f3d);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Input row for side-by-side fields */
.contact-form .input-row {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 18px 24px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    /* Unified border */
    background: rgba(0, 0, 0, 0.4);
    /* Unified nice dark glass */
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker focus */
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 32px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* ... (skip valid state) ... */

/* Captcha Input overrides but keeping style */
.captcha-question input {
    width: 80px !important;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    /* Match main inputs */
    background: rgba(0, 0, 0, 0.4);
    /* Match main inputs */
    color: white;
}

.captcha-question input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

/* Valid input state */
.contact-form input:valid:not(:placeholder-shown) {
    border-color: #25D366;
}

/* Textarea specific */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 250px;
    line-height: 1.6;
}

/* Form section labels */
.form-section-title {
    width: 100%;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    padding-left: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: var(--primary);
}

/* Captcha Styles */
.captcha-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.captcha-label i {
    color: var(--primary);
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-question span {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.captcha-question input {
    width: 80px !important;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.captcha-question input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.captcha-question input::-webkit-inner-spin-button,
.captcha-question input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    filter: brightness(1.4) drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    transform: scale(1.05);
}

.footer-info {
    text-align: center;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    padding-bottom: 20px;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Process / How It Works */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   PRICING SECTION
   ========================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Expanded grid for 6 cards */
.pricing-grid-expanded {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    gap: 20px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.pricing-card.enterprise {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 100%);
    color: white;
}

.pricing-card.enterprise h3,
.pricing-card.enterprise .pricing-size,
.pricing-card.enterprise .pricing-features li {
    color: rgba(255, 255, 255, 0.9);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: white;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.pricing-size {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-price {
    margin: 20px 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pricing-card.enterprise .price-amount {
    background: linear-gradient(135deg, #93c5fd 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.price-note {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 6px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    padding: 0;
    min-height: 160px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #25D366;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
    margin-top: 10px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.price-example {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.price-example p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 4px 0;
    line-height: 1.6;
}

.price-example-title {
    font-weight: 700;
    font-size: 1.05rem !important;
    margin-bottom: 8px !important;
}

.price-example-step {
    font-weight: 400;
    padding-left: 20px;
}

.price-example-total {
    font-weight: 700;
    font-size: 1.1rem !important;
    margin-top: 8px !important;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding-top: 8px;
}

.pricing-note-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 30px;
    font-style: italic;
}

/* Responsive Pricing */
@media (max-width: 1200px) {
    .pricing-grid-expanded {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .pricing-grid,
    .pricing-grid-expanded {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .price-amount {
        font-size: 2.2rem;
    }

    .pricing-features {
        min-height: auto;
    }

    .price-example p {
        font-size: 0.95rem;
    }
}

/* Alt Background */
.alt-bg {
    background: rgba(255, 255, 255, 0.02);
}

/* Footer Info */
.footer-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav.nav-open {
        display: flex;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        padding: 20px;
        flex-direction: column;
    }

    .nav.nav-open .nav-list {
        flex-direction: column;
        gap: 16px;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-form {
        flex-direction: column;
        align-items: center;
    }

    .contact-form input {
        width: 100%;
        max-width: 300px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

/* ==========================================
   SECURITY & FORM ENHANCEMENTS
   ========================================== */

/* WhatsApp Button - Enhanced */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    transform: translateY(-3px);
}

.btn-whatsapp i {
    font-size: 1.3rem;
    margin-right: 10px;
}

/* Form Buttons Layout - Enhanced */
.form-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    width: 100%;
}

.form-buttons .btn {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
}

/* GDPR Consent Checkbox - Enhanced */
.gdpr-consent {
    width: 100%;
    margin: 20px auto;
    text-align: left;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
    position: relative;
    padding-left: 35px;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 22px;
    width: 22px;
    min-width: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.consent-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Message Textarea */
.contact-form textarea {
    width: 100%;
    max-width: 600px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
    transition: all 0.3s ease;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Math Captcha */
.captcha-container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 10px auto;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    /* Explicit high contrast white */
    font-size: 1rem;
    /* Slightly larger */
    font-weight: 600;
    /* Bolder */
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Shadow for legibility on any background */
}

.captcha-label i {
    color: var(--primary);
    font-size: 1.1rem;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-question span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    /* Solid white for maximum visibility */
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    /* Subtle glow matching site theme */
}

.captcha-question input {
    width: 80px;
    padding: 10px 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    /* Dark glass matching other inputs */
    color: #ffffff;
    /* White text for contrast */
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.captcha-question input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    /* Slightly darker on focus */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.captcha-question input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Honeypot - Hidden from users */
.honeypot {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Form input validation states */
.contact-form input:valid:not(:placeholder-shown) {
    border-color: #25D366;
}

.contact-form input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #ff4444;
}

/* Error message styling */
.form-error {
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
}

.form-success {
    color: #25D366;
    font-size: 1rem;
    margin-top: 15px;
    text-align: center;
    padding: 15px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 8px;
}

/* WhatsApp social icon - green on hover */
.socials a[aria-label="WhatsApp"]:hover {
    color: #25D366;
}

/* Rate limiting indicator */
.btn-primary:disabled,
.btn-primary.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Form Enhancements */
@media (max-width: 768px) {
    .contact-form {
        padding: 50px 25px 30px;
        margin: 30px 15px;
        border-radius: 20px;
    }

    .contact-form::after {
        font-size: 2rem;
        top: -15px;
        padding: 8px 16px;
    }

    .gdpr-consent {
        max-width: 100%;
        padding: 12px 16px;
    }

    .form-buttons {
        flex-direction: column;
        align-items: center;
    }

    .form-buttons .btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .consent-text {
        font-size: 0.8rem;
    }

    .captcha-container {
        padding: 14px 16px;
    }

    .captcha-question {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Lightbox Overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ==========================================
   FAQ SECTION (Premium Glassmorphism)
   ========================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* FAQ Static List (No Accordion) */
.faq-item {
    background: rgba(26, 26, 46, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.faq-question {
    padding: 20px 24px 10px 24px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
}

/* Hide chevron */
.faq-question i {
    display: none;
}

.faq-answer {
    display: block;
    height: auto;
    opacity: 1;
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
    opacity: 1;
    transform: none;
}

/* Mobile Adjustments for FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px 8px 20px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 20px 20px 20px;
    }
}

/* Mobile Adjustments for FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px 8px 20px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 20px 20px 20px;
    }
}

/* Added for contrast compliance */
#contact {
    background: #1a1a2e;
    /* Dark background for white text form */
    position: relative;
    padding: 80px 0;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1), transparent 70%);
    pointer-events: none;
}

/* ==========================================
   SCROLL ANIMATIONS & INTERACTIVITY
   ========================================== */

/* Base state for scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

/* Active state when in viewport */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Enhanced Project Card Hover */
.project-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.project-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Feature/Service Card Hover - Pulse Effect */
.feature-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25);
}

.feature-card:hover .card-icon,
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Active Nav Link */
.nav-list a.active-link {
    color: var(--primary);
    position: relative;
}

.nav-list a.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    animation: navUnderline 0.3s ease;
}

@keyframes navUnderline {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ==========================================
   PAGE PRELOADER — LiDAR Radar Sweep
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a1a;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

/* Radar container */
.radar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 28px;
}

/* Concentric rings */
.radar-ring {
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radar-ring.r1 {
    width: 130px;
    height: 130px;
}

.radar-ring.r2 {
    width: 95px;
    height: 95px;
}

.radar-ring.r3 {
    width: 60px;
    height: 60px;
}

/* Cross-hairs */
.radar-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
}

.radar-cross::before,
.radar-cross::after {
    content: '';
    position: absolute;
    background: rgba(99, 102, 241, 0.1);
}

.radar-cross::before {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.radar-cross::after {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

/* Sweeping beam */
.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65px;
    height: 65px;
    transform-origin: 0 0;
    animation: radarSweep 2.5s linear infinite;
}

.radar-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(99, 102, 241, 0.4) 30deg,
            transparent 60deg);
    border-radius: 0 100% 0 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

@keyframes radarSweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Center dot */
.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.4);
}

/* Scan points — dots that appear as "detected" */
.scan-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #6366f1;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.6);
}

.scan-point.p1 {
    top: 20%;
    left: 35%;
    animation: pointPing 2.5s ease-in-out infinite 0.3s;
}

.scan-point.p2 {
    top: 30%;
    left: 70%;
    animation: pointPing 2.5s ease-in-out infinite 0.8s;
}

.scan-point.p3 {
    top: 55%;
    left: 25%;
    animation: pointPing 2.5s ease-in-out infinite 1.2s;
}

.scan-point.p4 {
    top: 70%;
    left: 60%;
    animation: pointPing 2.5s ease-in-out infinite 1.6s;
}

.scan-point.p5 {
    top: 40%;
    left: 50%;
    animation: pointPing 2.5s ease-in-out infinite 2.0s;
}

.scan-point.p6 {
    top: 15%;
    left: 55%;
    animation: pointPing 2.5s ease-in-out infinite 0.5s;
}

.scan-point.p7 {
    top: 75%;
    left: 40%;
    animation: pointPing 2.5s ease-in-out infinite 1.8s;
}

.scan-point.p8 {
    top: 45%;
    left: 80%;
    animation: pointPing 2.5s ease-in-out infinite 1.0s;
}

@keyframes pointPing {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    15% {
        opacity: 1;
        transform: scale(1.5);
    }

    30% {
        opacity: 0.8;
        transform: scale(1);
    }

    70% {
        opacity: 0.6;
        transform: scale(1);
    }

    85% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.preloader-text {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 3px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-subtext {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-top: 8px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}


/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

/* ==========================================
   CURSOR GLOW (desktop only)
   ========================================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    will-change: left, top;
}

.cursor-glow.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* ==========================================
   STAT COUNTER ANIMATION
   ========================================== */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number.counting {
    animation: counterPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes counterPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================
   SECTION DIVIDER WAVES
   ========================================== */
.section-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* ==========================================
   SMOOTH HEADER TRANSITION
   ========================================== */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    height: 80px;
}

.header {
    transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled .logo-img {
    height: 55px;
    transition: height 0.3s ease;
}

/* ==========================================
   PRICING CARD TILT SHINE
   ========================================== */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.pricing-card:hover::before {
    left: 100%;
}

/* ==========================================
   TOOLTIP ON STAT HOVER
   ========================================== */
.stat-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

/* Mobile FAQ adjustments */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 20px 20px 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
/* ==========================================
   MOBILE OPTIMIZATION (MAX 768PX)
   ========================================== */
@media (max-width: 768px) {
    
    /* Global Spacing */
    .section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 16px;
    }

    /* Header */
    .header {
        height: 80px;
    }

    .header-container {
        padding: 10px 0;
    }

    /* Important: Ensure Nav Toggle is Visible */
    .mobile-toggle {
        display: block !important; /* Force show */
        font-size: 1.8rem;
        z-index: 1001; /* Above overlay */
        padding: 10px;
    }

    /* Navigation Menu Overlay */
    .nav {
        display: none;
    }

    .nav.nav-open {
        display: flex;
        position: fixed;
        top: 0; 
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.5rem;
        font-weight: 600;
        color: white;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px; /* Account for fixed header */
        min-height: auto; /* Allow content to dictate height */
        height: auto;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.2rem; /* Reduced from 4rem */
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

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

    /* Grids to Single Column */
    .features-grid, 
    .services-grid, 
    .process-grid, 
    .pricing-grid, 
    .pricing-grid-expanded {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Better fit for small phones */
        gap: 16px;
    }

    .project-card .project-image {
        height: 220px; /* Smaller image height */
    }

    /* Stats */
    .stat-number {
        font-size: 3rem;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .socials {
        justify-content: center;
    }
    
    /* Form Adjustments */
    .contact-form {
        padding: 30px 20px;
        margin-top: 20px;
    }
    
    .contact-form .input-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .form-buttons .btn {
        width: 100%;
        max-width: 100%;
    }

    /* Modals/Lightboxes */
    .lightbox-image {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* Extra Small Devices (iPhone SE, etc) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ==========================================
   3D CUBE LOADER (OVERRIDES RADAR)
   ========================================== */
.cube-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeSpin 4s infinite linear;
}

.cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.front  { transform: rotateY(0deg) translateZ(30px); }
.back   { transform: rotateY(180deg) translateZ(30px); }
.right  { transform: rotateY(90deg) translateZ(30px); }
.left   { transform: rotateY(-90deg) translateZ(30px); }
.top    { transform: rotateX(90deg) translateZ(30px); }
.bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes cubeSpin {
    0%   { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Hide old radar elements if they exist in CSS but not HTML */
.radar-wrap, .radar-ring, .radar-cross, .radar-sweep, .radar-center, .scan-point {
    display: none !important;
}

/* ==========================================
   LASER SCANNER LOADER (OVERRIDES ALL PREV)
   ========================================== */
.cube-wrapper, .cube {
    display: none !important;
}

.scanner-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 10, 26, 0.6);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1), inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.scanner-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: perspective(300px) rotateX(40deg);
    animation: gridScroll 4s linear infinite;
    opacity: 0.6;
}

.scanner-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--primary);
    animation: scanMove 2s ease-in-out infinite alternate;
    z-index: 2;
}

.scanner-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #fff, 0 0 20px var(--primary);
    animation: pointPulse 1.5s ease-in-out infinite;
    z-index: 3;
}

@keyframes scanMove {
    0% { top: 10%; opacity: 0.8; }
    100% { top: 90%; opacity: 0.8; }
}

@keyframes gridScroll {
    0% { transform: perspective(300px) rotateX(40deg) translateY(0); }
    100% { transform: perspective(300px) rotateX(40deg) translateY(20px); }
}

@keyframes pointPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ==========================================
   HEXAGON PULSE LOADER (OVERRIDES ALL PREV)
   ========================================== */
.cube-wrapper, .cube, .scanner-wrapper, .scanner-grid, .scanner-beam, .scanner-point {
    display: none !important;
}

.hex-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
}

.hex-spinner {
    display: block;
    position: relative;
    width: 60px;
    height: 60px;
    box-sizing: border-box;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: transparent;
    border: none;
}

.hex-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary); /* Hexagon Border */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-sizing: border-box;
    animation: hexPulse 2s ease-in-out infinite;
    opacity: 0.8;
}

.hex-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexSpin 3s linear infinite;
    box-shadow: 0 0 15px var(--primary);
}

@keyframes hexPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes hexSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================
   EMERGENCY MOBILE FIXES
   ========================================== */
@media (max-width: 768px) {
    /* 1. Force Menu Visibility and layering */
    .nav.nav-open {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99999 !important; /* Highest priority */
        background: #0a0a1a !important; /* Solid dark background */
        padding-top: 100px !important; /* Space for close button */
        opacity: 1 !important;
        visibility: visible !important; 
    }

    /* 2. Ensure Toggle Button is clickable and visible */
    .mobile-toggle {
        position: relative !important; 
        z-index: 100000 !important; /* Above the menu */
        color: #fff !important;
        background: rgba(0,0,0,0.2);
        border-radius: 4px;
    }

    /* 3. Fix Typography Overflow */
    h1, h2, h3, p, span, a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* 4. Fix Hero Text Sizing specific */
    .hero-title {
        font-size: 2rem !important;
        padding: 0 10px !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 10px !important;
    }

    /* 5. Ensure links in menu are big and clickable */
    .nav-list li {
        margin: 15px 0 !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .nav-list a {
        font-size: 1.5rem !important;
        display: block !important;
        padding: 10px !important;
    }
}

/* ==========================================
   REVERT TO CUBE LOADER
   ========================================== */
.hex-wrapper, .scanner-wrapper, .hex-spinner {
    display: none !important;
}

.cube-wrapper {
    display: block !important;
    width: 60px;
    height: 60px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.cube {
    display: block !important;
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeSpin 4s infinite linear;
}

/* Ensure faces are visible */
.cube-face {
    display: block !important;
}

/* ==========================================
   MOBILE MENU TEXT COLOR FIX
   ========================================== */
@media (max-width: 768px) {
    .nav-list a {
        color: #ffffff !important;
        text-shadow: 0 0 5px rgba(0,0,0,0.5) !important;
        font-weight: 700 !important;
    }
    
    .nav-list li {
        color: #ffffff !important;
    }
}

/* ==========================================
   MOBILE MENU REDESIGN - DARK TEXT & COMPACT
   ========================================== */
@media (max-width: 768px) {
    /* 1. White Background for High Contrast */
    .nav.nav-open {
        background: rgba(255, 255, 255, 0.98) !important;
        justify-content: flex-start !important; /* Align to top so scrolling works */
        padding-top: 100px !important;
    }

    /* 2. Text Color: Dark Blue/Black */
    .nav-list a {
        color: #0a0a1a !important;
        text-shadow: none !important;
        font-size: 1.25rem !important; /* Slightly smaller to fit more */
        font-weight: 600 !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05); /* Divider lines */
        width: 100%;
        display: block;
    }
    
    .nav-list li {
        margin: 0 !important; /* remove huge margins */
        width: 100%;
        text-align: center;
        color: #0a0a1a !important;
    }

    /* 3. Toggle Button Color Change (Sibling Selector) */
    /* When nav is open, make the toggle dark so it's visible on white bg */
    .nav.nav-open ~ .mobile-toggle {
        color: #0a0a1a !important;
        background: transparent !important;
    }
    
    /* 4. Ensure scrolling exists if height is small */
    .nav.nav-open {
        overflow-y: auto !important;
    }
}
