/* ROOT & VARIABLES */
:root {
    --color-bg-dark: #020817;
    --color-bg-card: #0f172a;
    --color-primary: #38bdf8;
    /* Cyan blue for buttons/links */
    --color-accent: #fbbf24;
    /* Gold */
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #1e293b;

    --font-heading: 'Playfair Display', serif;
    /* Or Inter, sticking to plan but Playfair gives the "Umami" logo vibe? No, Plan said Inter/Plus Jakarta. sticking to Inter mostly. */
    --font-body: 'Inter', sans-serif;

    --gradient-hero: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #020817 60%);
    --gradient-text: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);

    --spacing-container: 1200px;
    --spacing-section: 80px 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

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

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    background: #7dd3fc;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: rgba(56, 189, 248, 0.1);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(2, 8, 23, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brochure-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brochure-link:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.brochure-link i {
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* --- DOCTORS PAGE STYLES --- */
.doc-header {
    padding: 140px 0 60px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(56, 189, 248, 0.1), transparent 70%);
}

.doc-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.doc-header .lead {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Video Section */
.doc-video {
    padding: 40px 20px;
}

/* Comparison Section */
.doc-comparison {
    padding: 60px 20px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
}

.comp-card {
    background: var(--color-bg-card);
    width: 100%;
    height: 100%;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s;
}

.comp-card:hover {
    transform: translateY(-5px);
}

.comp-card.chaos {
    border-color: rgba(239, 68, 68, 0.3);
    /* Red tint */
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.05), rgba(15, 23, 42, 0.6));
}

.comp-card.calm {
    border-color: rgba(56, 189, 248, 0.3);
    /* Blue tint */
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.05), rgba(15, 23, 42, 0.8));
}

.comp-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.chaos .comp-icon {
    color: #ef4444;
}

.calm .comp-icon {
    color: #38bdf8;
}

.comp-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.comp-card ul {
    text-align: left;
    margin: 0 auto;
}

.comp-card li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chaos li i {
    color: #ef4444;
}

.calm li i {
    color: #38bdf8;
}

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

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .doc-header h1 {
        font-size: 2.5rem;
    }

    .doc-header {
        padding: 120px 0 40px;
    }
}

/* Journey Roadmap */
.doc-journey {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.journey-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.journey-roadmap {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.journey-roadmap::before {
    content: '';
    position: absolute;
    left: 19px;
    /* Align with marker center */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #38bdf8, transparent);
}

.journey-step {
    margin-bottom: 60px;
    position: relative;
}

.step-marker {
    position: absolute;
    left: -50px;
    width: 40px;
    height: 40px;
    background: #0f172a;
    border: 2px solid #38bdf8;
    color: #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
}

.step-content {
    background: var(--color-bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-content h3 {
    margin-bottom: 10px;
    color: #fff;
}

.step-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.step-time {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #ecc94b;
    background: rgba(236, 201, 75, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Doc CTA */
.doc-cta {
    padding: 60px 20px;
    text-align: center;
}

.doc-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.doc-cta p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Trust Section */
.doc-trust {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(56, 189, 248, 0.3);
}

.trust-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.trust-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.trust-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    padding: 160px 20px 100px;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-visual {
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 800px;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Ensure video shape */
    margin: 40px auto 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-visual iframe,
.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-container {
    position: relative;
    cursor: pointer;
}

.custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(251, 191, 36, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    pointer-events: none;
    /* Let clicks pass through to container javascript handler */
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    z-index: 10;
}

.video-container.playing .custom-play-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
}

.video-thumbnail-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(251, 191, 36, 0.9);
    /* Gold */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    transition: 0.3s;
}

.video-thumbnail-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

.video-thumbnail-wrapper:hover .video-thumb {
    transform: scale(1.05);
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Glass Card Mockup in Hero */
.glass-card {
    width: 80%;
    height: 70%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.stat-item strong {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.stat-item i {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.chart-area {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 10%;
}

.line {
    width: 30%;
    background: var(--color-primary);
    height: 40%;
    border-radius: 4px 4px 0 0;
    opacity: 0.3;
    animation: grow 2s ease-out forwards;
}

.line:nth-child(2) {
    height: 70%;
    opacity: 0.6;
    animation-delay: 0.2s;
}

.line:nth-child(3) {
    height: 90%;
    opacity: 0.9;
    animation-delay: 0.4s;
}

@keyframes grow {
    from {
        height: 0;
    }
}


/* TICKER */
.ticker {
    background: #000;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.ticker p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.logo-ticker {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-ticker span {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}


/* FEATURES GRID */
.features {
    padding: var(--spacing-section);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

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

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

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 32px;
    border-radius: 16px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.feature-card.highlight-card {
    border-color: rgba(251, 191, 36, 0.3);
    /* Gold tint */
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.05) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.feature-card.highlight-card .icon-box {
    color: var(--color-accent);
    background: rgba(251, 191, 36, 0.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

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


/* USE CASES */
.use-cases {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.use-case-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.use-case-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.use-case-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.check-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--color-text-main);
}

.check-list i {
    color: var(--color-primary);
}

.use-case-visual {
    flex: 1;
    background: var(--gradient-card);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.use-case-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* FAQ */
.faq-section {
    padding: var(--spacing-section);
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    gap: 24px;
}

.faq-item {
    background: var(--color-bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.faq-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}


/* FOOTER */
.footer {
    padding: 80px 20px 40px;
    background: #000;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-cta {
    margin-bottom: 60px;
}

.footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
}

.contact-details i {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 30px;
    padding-top: 40px;
    border-top: 1px solid #111;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-links .separator {
    color: #333;
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

.copyright a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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


/* ANIMATIONS */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- Services Page Layout --- */
.page-header {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-layout {
    display: grid;
    grid-template-columns: 250px 1fr 200px;
    gap: 40px;
    padding: 60px 20px;
    align-items: start;
}

/* Left Sidebar */
.service-sidebar {
    position: sticky;
    top: 100px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.service-nav {
    list-style: none;
    padding: 0;
}

.service-nav li {
    margin-bottom: 10px;
}

.service-nav a {
    display: block;
    padding: 10px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.service-nav a:hover,
.service-nav a.active {
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
    border-left-color: #38bdf8;
}

/* Main Content */
.service-content {
    min-height: 500px;
}

.service-section {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease;
}

.service-section.active {
    display: block;
}

.service-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.service-section .lead {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.6;
}

.service-section h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: #38bdf8;
}

.service-section ul {
    list-style: disc;
    margin-left: 20px;
    color: #ecc94b;
}

.service-section ul li {
    margin-bottom: 10px;
}

/* Timeline Imitation in Content */
.timeline-imitation {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
    margin: 20px 0;
}

.t-item {
    margin-bottom: 15px;
    position: relative;
    padding-left: 10px;
}

.t-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: #38bdf8;
    border-radius: 50%;
}

.case-studies-placeholder {
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Right TOC */
.toc-sidebar {
    position: sticky;
    top: 100px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.toc-container h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 15px;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: none;
}

.toc-list a:hover {
    color: #38bdf8;
}

/* --- Dropdown Menu --- */
.nav-links {
    position: relative;
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
    height: 100%;
    /* Ensure full height for hover area */
}

.dropdown-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.dropdown-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Center and offset */
    width: 220px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 2000;
    /* Higher than Side Panel overlay/nav */
    display: block;
    /* Force layout */
}

/* Hover Logic */
.dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-wrapper:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 2px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
    padding-left: 25px;
    /* Slight nudge effect */
}

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

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

/* Responsive */
@media (max-width: 900px) {
    .services-layout {
        grid-template-columns: 1fr;
    }

    .service-sidebar,
    .toc-sidebar {
        display: none;
        /* Simple mobile stack for now, or convert sidebar to horizontal scroll */
    }

    /* Mobile nav handling for services is simpler to just show all sections stacked
       or assume user scrolls. For this MVP, we stack.
    */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: transparent;
        display: none;
        /* Use JS toggle for mobile */
    }
}

/* SIDE PANEL & OVERLAY */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-panel {
    position: fixed;
    top: 0;
    right: -500px;
    /* Hidden off-screen */
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: var(--color-bg-card);
    border-left: 1px solid var(--color-border);
    z-index: 2001;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-panel.active {
    right: 0;
}

.panel-content {
    padding: 40px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--color-primary);
}

.panel-content h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.panel-content p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.panel-cta {
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

/* TIMELINE */
.timeline-section h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    border-left: 2px solid rgba(56, 189, 248, 0.2);
    margin-left: 10px;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--color-accent);
    margin-bottom: 4px;
    font-weight: 600;
}

.timeline-title {
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg-card);
        padding: 20px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .brochure-link {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-left: 10px;
    }

    .brochure-link i {
        font-size: 0.8rem;
    }

    .use-case-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .use-case-visual {
        order: -1;
        height: 250px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1e293b;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.modal-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.modal-header span {
    color: var(--color-primary);
    font-weight: 600;
}

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form input {
    width: 100%;
    padding: 12px 15px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

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

/* --- NAV LOGIN LINK --- */
.nav-login-link {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
    margin-left: 15px;
    /* Added margin-left instead of right since it's now last */
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-login-link:hover {
    opacity: 0.8;
}

.nav-login-link .login-sub {
    font-size: 0.65rem;
    /* Reduced from 0.75rem */
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-login-link .login-main {
    font-size: 0.8rem;
    /* Reduced from 0.95rem */
    color: #fff;
    font-weight: 600;
}

/* Ensure navbar items align correctly */
.nav-links {
    align-items: center;
    /* Center vertically */
}

/* Hide login link on very small screens if needed, or adjust */
@media (max-width: 768px) {
    .nav-login-link {
        align-items: center;
        text-align: center;
        margin: 10px 0;
    }
}