/* ================= 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; }

/* ================= UTILITIES ================= */
.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;
}

/* ================= GLASS 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 ================= */
.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 {
    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 {
    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;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    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: 0.85rem;
    font-weight: 700;
    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;
    letter-spacing: 0.05em;
}

.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;
    font-family: var(--font-header);
}

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

.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;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid rgba(55, 243, 255, 0.15);
    margin-top: 0.5rem;
}

.mobile-nav a {
    padding: 0.9rem 1.4rem;
    font-family: var(--font-header);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.85;
}

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

.mobile-nav.open { display: flex; }

/* ================= HERO ================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 120px;
    text-align: center;
    color: var(--color-text-primary);
    background:
        radial-gradient(circle at top center,
            rgba(15, 23, 42, 0.35),
            rgba(2, 3, 10, 0.65) 55%
        ),
        linear-gradient(160deg, #020b1a 0%, #02030a 60%);
}

.hero-software {
    background:
        radial-gradient(circle at 20% 50%, rgba(55, 243, 255, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
        radial-gradient(circle at top center, rgba(15, 23, 42, 0.35), rgba(2, 3, 10, 0.65) 55%),
        linear-gradient(160deg, #020b1a 0%, #02030a 60%);
}

.hero-medical {
    background:
        radial-gradient(circle at 80% 50%, rgba(55, 243, 255, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.10) 0%, transparent 45%),
        radial-gradient(circle at top center, rgba(15, 23, 42, 0.35), rgba(2, 3, 10, 0.65) 55%),
        linear-gradient(160deg, #020a18 0%, #02030a 60%);
    min-height: 80vh;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.32) 75%),
        radial-gradient(circle at left 40%, rgba(55, 243, 255, 0.12) 0%, transparent 60%);
}

.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-group {
    justify-content: center;
    margin-top: 2.8rem;
}

/* Service badge */
.service-badge {
    display: inline-block;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(55, 243, 255, 0.5);
    background: rgba(55, 243, 255, 0.08);
    font-family: var(--font-header);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent-cyan);
    margin-bottom: 1.4rem;
}

.service-badge--medical {
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.08);
    color: #7eb8ff;
}

/* ================= 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));
}

.carousel-indicators {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-accent-cyan);
    box-shadow: 0 0 12px rgba(55, 243, 255, 0.8), 0 0 22px rgba(55, 243, 255, 0.6);
}

@media (pointer: coarse) {
    .carousel-indicators { display: flex; }
}

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

.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;
}

.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%);
}

.timeline-content {
    flex: 1;
    align-self: flex-start;
}

/* ================= PRICING ================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.pricing-featured {
    border-color: rgba(55, 243, 255, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(55, 243, 255, 0.2);
}

.pricing-header { display: flex; flex-direction: column; gap: 0.5rem; }

.pricing-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(55, 243, 255, 0.4);
    background: rgba(55, 243, 255, 0.08);
    font-family: var(--font-header);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent-cyan);
}

.badge-featured {
    border-color: rgba(55, 243, 255, 0.8);
    background: rgba(55, 243, 255, 0.15);
    box-shadow: 0 0 12px rgba(55, 243, 255, 0.3);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.price-amount {
    font-family: var(--font-header);
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.04em;
}

.price-currency {
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: var(--color-accent-cyan);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.pricing-features li {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-accent-cyan);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.pricing-btn { width: 100%; margin-top: auto; }

.stripe-test-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    margin-top: -0.5rem;
}

/* ================= 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;
    position: relative;
}

.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); }

.flip-hover-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

/* ================= COVERAGE SECTION ================= */
.coverage-section { padding: 40px 0; }

.coverage-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2.2rem;
}

.coverage-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.coverage-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--color-accent-cyan);
}

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

/* ================= SECTION DIVIDER ================= */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    max-width: 88%;
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(55, 243, 255, 0.4), transparent);
}

.divider-label {
    font-family: var(--font-header);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent-cyan);
    white-space: nowrap;
    opacity: 0.7;
}

/* ================= 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;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.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.35s ease-out, padding 0.3s ease;
}

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

.faq-answer p { color: var(--color-text-secondary); line-height: 1.7; }

/* ================= CONTACT ================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    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;
    background-clip: padding-box;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    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; }

.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 p { color: var(--color-text-secondary); font-size: 0.9rem; margin-bottom: 0.35rem; }
.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); }

/* ================= SCROLL ANIMATIONS ================= */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .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%; }

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

    .timeline { margin-top: 2.6rem; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }

    .coverage-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

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