/* ================= GLOBAL VARIABLES & RESET ================= */
:root {
    --color-bg-main: #02030a;
    --color-bg-secondary: #050818;
    --color-text-primary: #ffffff;
    --color-text-secondary: #9ca3b6;
    --color-accent-cyan: #37f3ff;
    --color-accent-blue: #2563eb;
    --glass-bg: rgba(13, 18, 33, 0.85);
    --glass-border: rgba(148, 163, 184, 0.35);
    --glow-shadow: 0 0 26px rgba(55, 243, 255, 0.55);
    
    --font-header: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --section-spacing: 96px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

h1 { font-size: clamp(2.6rem, 4.2vw, 3.8rem); line-height: 1.1; }
h2 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    line-height: 1.1;
}
h3 { font-size: 1.4rem; margin-bottom: 1rem; }

a { text-decoration: none; color: inherit; transition: color 0.25s ease, opacity 0.25s ease; }
ul { list-style: none; }

/* Utility */
.container {
    width: 88%;
    max-width: 1180px;
    margin: 0 auto;
}

.small-container { max-width: 820px; }

.highlight-text {
    color: var(--color-accent-cyan);
    text-shadow: 0 0 14px rgba(55, 243, 255, 0.45);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto 3.5rem auto;
    font-size: 1.05rem;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.section-header-inline .section-title {
    margin: 0;
    text-align: left;
}

.section-subtitle-inline {
    color: var(--color-text-secondary);
    font-size: 0.98rem;
    max-width: 420px;
}

/* Glassmorphism card */
.glass-card {
    background: radial-gradient(circle at top left, rgba(55, 243, 255, 0.1), transparent 55%),
                radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.14), transparent 60%),
                var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.9rem 2.1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(55, 243, 255, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9), var(--glow-shadow);
}

/* Buttons (generic) */
.button-group {
    display: flex;
    gap: 1.4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.6rem;
    border-radius: 999px;
    font-family: var(--font-header);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn span {
    position: relative;
    z-index: 1;
}

/* HERO CTA – PRIMARY */
.hero-cta-primary {
    color: #f9fafb;
    border-color: rgba(148, 246, 255, 0.9);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.35) 0, transparent 60%),
        linear-gradient(135deg, #0b172a, #020815);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.85),
        0 0 38px rgba(55, 243, 255, 0.55);
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
    opacity: 0.9;
    mix-blend-mode: screen;
}

.hero-cta-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.95),
        0 0 52px rgba(55, 243, 255, 0.9);
    border-color: rgba(191, 250, 255, 1);
}

/* HERO CTA – SECONDARY */
.hero-cta-secondary {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.7);
    background:
        linear-gradient(135deg, #060a16, #020716);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
}

.hero-cta-secondary::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(15, 23, 42, 0.9));
    opacity: 0.9;
}

.hero-cta-secondary:hover {
    border-color: rgba(148, 246, 255, 0.8);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 1),
        0 0 40px rgba(55, 243, 255, 0.4);
    color: #f9fafb;
}

/* ================= SECTIONS ================= */
section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* ========== HEADER ========== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    background: radial-gradient(circle at top left, rgba(55, 243, 255, 0.2), transparent 55%),
                rgba(2, 3, 15, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

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

/* Branding */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 246, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-size: 1.1rem;
    color: var(--color-accent-cyan);
    box-shadow: 0 0 18px rgba(55, 243, 255, 0.7);
    background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.2), transparent 60%),
                #020617;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: var(--font-header);
}

.main-nav a {
    opacity: 0.8;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--color-accent-cyan);
}

.nav-cta {
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 246, 255, 0.7);
    background: radial-gradient(circle at top left, rgba(55, 243, 255, 0.25), transparent 60%),
                linear-gradient(135deg, #020617, #020913);
    box-shadow: 0 0 18px rgba(55, 243, 255, 0.4);
    opacity: 1;
}

/* ========== HERO ========== */
/* ================= HERO SECTION ================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* Header offset */
    padding-bottom: 120px;
    text-align: center;
    color: var(--color-text-primary);

    /* HERO IMAGE + LIGHT GRADIENT */
    background:
        radial-gradient(circle at top center,
            rgba(15, 23, 42, 0.35),
            rgba(2, 3, 10, 0.55) 55%
        ),
        url("/assets/hero.jpg") center bottom / cover no-repeat;
}

/* OVERLAY ABOVE IMAGE (soft glow + depth) */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1; /* Must be above the background image */
    pointer-events: none;

    background:
        /* Dark vignette */
        radial-gradient(circle at center,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.32) 75%
        ),

        /* Cyan-blue atmospheric glow */
        radial-gradient(circle at left 40%,
            rgba(55, 243, 255, 0.12) 0%,
            transparent 60%
        );
}

/* ENSURE TEXT + BUTTONS ARE ABOVE OVERLAY */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-content h1 {
    letter-spacing: 0.12em;
}

.hero-content .subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-top: 1.4rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO BUTTON SPACING */
.hero-button-group {
    justify-content: center;
    margin-top: 2.8rem;
}


/* ========== VIDEO SECTION ========== */
.video-section { padding-top: 80px; }

.video-wrapper {
    padding: 1.2rem;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

/* ========== USE CASES CAROUSEL ========== */
.carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2.2rem 0 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel-track {
    display: flex;
    gap: 1.9rem;
    padding: 0 0.4rem 0.5rem;
}

.carousel-card {
    flex: 0 0 auto;
    width: 340px;
    scroll-snap-align: start;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 3.5rem auto 0;
    padding: 2rem 0 0.5rem;
}

/* base line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: radial-gradient(circle at top, rgba(55, 243, 255, 0.2), transparent 60%),
                rgba(15, 23, 42, 0.9);
    z-index: 0;
}

/* glowing active line */
.timeline-beam {
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--color-accent-cyan), var(--color-accent-blue));
    box-shadow: var(--glow-shadow);
    z-index: 1;
    transition: height 0.55s ease-out;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.4rem;
    display: flex;
    gap: 2rem;
    z-index: 2;
}

.timeline-marker {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, rgba(55, 243, 255, 0.14), transparent 70%),
                #020617;
    border: 2px solid rgba(55, 65, 81, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    transition: all 0.5s ease;
}

.timeline-item.active .timeline-marker {
    border-color: var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    box-shadow: var(--glow-shadow);
    background: radial-gradient(circle at top left, rgba(55, 243, 255, 0.3), transparent 65%);
}

/* ========== PROJECTS (FLIP CARDS) ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.flip-card-container {
    perspective: 1000px;
    height: 320px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flipped .flip-card {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flip-card-front h4 {
    color: var(--color-accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.client-info {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.flip-hint {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    opacity: 0.6;
    align-self: flex-end;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, rgba(0, 40, 50, 0.7), rgba(0, 0, 0, 0.7));
    border-color: var(--color-accent-cyan);
}

.project-goal {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}
.project-goal strong { color: var(--color-accent-cyan); }

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

.faq-item {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent-cyan);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--color-accent-cyan);
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 260px;
    padding: 0 2rem 1.5rem 2rem;
}

/* ========== CONTACT ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;

    /* NEW FAQ-style gradient */
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.03),
        rgba(0, 0, 0, 0.20)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 18px;
    padding: 3rem;
    position: relative;
}


.glow-border {
    border: 1px solid transparent;
    position: relative;
    background-clip: padding-box;
}
   .glow-border::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;

    /* Subtle cyan glow, NO bright blue wash */
    background: linear-gradient(
        to bottom right,
        rgba(55, 243, 255, 0.35),
        rgba(55, 243, 255, 0.10),
        transparent
    );

    opacity: 0.45;
}

.contact-sidebar h4 {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}
.contact-sidebar ul li {
    margin-bottom: 0.8rem;
    color: var(--color-text-secondary);
    display: flex;
}
.contact-sidebar ul li::before {
    content: '•';
    color: var(--color-accent-cyan);
    margin-right: 10px;
}
.email-contact { margin-top: 2rem; }
.email-contact a { word-break: break-all; font-weight: 600; }

/* ========== FOOTER ========== */
footer {
    padding: 2.8rem 0;

    background:
        radial-gradient(circle at top left, rgba(55, 243, 255, 0.2), transparent 55%),
        rgba(2, 3, 15, 0.88);

    border-top: 1px solid var(--glass-border);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a:hover {
    color: var(--color-accent-cyan);
}

/* VIDEO POSTER ALWAYS VISIBLE */
.intro-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    background: #000;
    object-fit: cover;
    cursor: pointer;
}

/* GLOWING PLAY BUTTON OVERLAY */
.video-wrapper {
    position: relative;
}

.video-overlay-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.12);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;

    /* glowing turquoise ring */
    border: 2px solid rgba(55, 243, 255, 0.65);
    box-shadow:
        0 0 18px rgba(55, 243, 255, 0.7),
        0 0 28px rgba(55, 243, 255, 0.4),
        inset 0 0 10px rgba(55, 243, 255, 0.2);

    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

/* triangle play icon */
.video-overlay-play-button::after {
    content: '';
    margin-left: 4px;
    border-style: solid;
    border-width: 18px 0 18px 28px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

/* hover interaction */
.video-overlay-play-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 0 28px rgba(55, 243, 255, 0.85),
        0 0 42px rgba(55, 243, 255, 0.7),
        inset 0 0 12px rgba(55, 243, 255, 0.3);
}


/* ========== SCROLL ANIMATION UTILITIES ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.2s;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.flip-card-container {
    position: relative;
}

.flip-hover-layer {
    position: absolute;
    inset: 0;
    z-index: 10; /* stays on top, invisible */
    cursor: pointer;
}

/* Carousel dots — mobile only */
@media (pointer: coarse) {
    .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 16px;
        margin-bottom: 24px;
    }

    .carousel-indicators .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;

        /* SAME turquoise as "Deliver Value" */
        background-color: var(--color-accent-cyan);

        /* Glow effect */
        box-shadow:
            0 0 12px rgba(55, 243, 255, 0.8),
            0 0 22px rgba(55, 243, 255, 0.6),
            0 0 32px rgba(55, 243, 255, 0.4);

        opacity: 1; /* full visibility */
    }
}

/* Hide on desktop */
@media (pointer: fine) {
    .carousel-indicators {
        display: none;
    }
}



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

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* keep it simple: no hamburger for now */
    }
    .brand-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .hero-section {
        padding-top: 110px;
        padding-bottom: 90px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 0.14em;
    }

    .button-group {
        flex-direction: column;
        gap: 1rem;
    }
    .btn {
        width: 100%;
    }

    .section-header-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .timeline {
        margin-top: 2.6rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }
    .hero-content .subtitle {
        font-size: 1rem;
    }
}
