﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600&family=Space+Grotesk:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;800&display=swap');

:root {
    --bg: #020205;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --accent: #8a4bff;
    --accent-2: #2ab8ff;
    --accent-glow: rgba(138, 75, 255, 0.3);
    --text: #ffffff;
    --muted: #94a3b8;
    --radius-lg: 28px;
    --section-gap: 80px; 
    --hero-progress: 0; /* 0..1 driven by scroll to lift the next section smoothly */
}

/* --- Base & Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}
.container { width: min(1200px, 90%); margin: 0 auto; }

/* --- Cinematic Keyframes --- */
@keyframes heroReveal {
    0% { opacity: 0; filter: blur(20px); transform: translateY(30px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes nebulaMove {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-45%, -55%) scale(1.1); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
}
@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes ripple {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Directional Tab Animations */
@keyframes slideFromRight {
    from { opacity: 0; transform: translateX(60px); filter: blur(10px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-60px); filter: blur(10px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.anim-from-right { animation: slideFromRight 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-from-left { animation: slideFromLeft 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* --- Navigation & Dropdown --- */
.nav-bar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 95%);
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.brand:link, .brand:visited { color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; filter: drop-shadow(0 0 8px var(--accent)); }

.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; margin: 0 14px; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .nav-cta { padding: 10px 20px; font-size: 0.9rem; border-radius: 50px; line-height: 1.1; }
.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    gap: 4px;
    flex-direction: column;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
}

/* Industries Dropdown Fixes */
.dropdown { 
    position: relative; 
    display: inline-block; 
}
.dropbtn { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dropbtn::after { content: '▾'; font-size: 12px; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Flush with trigger to avoid hover gaps */
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0f; /* Higher opacity for visibility over hero */
    backdrop-filter: blur(20px);
    min-width: 320px;
    border: 1px solid var(--accent); /* More visible border */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 1001;
    padding: 10px 0;
}

/* Invisible bridge to prevent dropdown from vanishing when moving mouse */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown-content a {
    color: var(--muted);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    margin: 0 !important;
    font-size: 0.85rem;
    transition: 0.2s;
}
.dropdown-content a:hover {
    background: rgba(138, 75, 255, 0.1);
    color: #fff;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content { display: block; }

/* --- Buttons --- */
.btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 10px 25px -5px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px var(--accent); }
.btn-ghost { background: rgba(255,255,255,0.05); color: white; border: 1px solid var(--border); }

/* --- Hero Section --- */
.hero {
    min-height: 100vh; /* Fill the viewport so next section doesn't peek */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 90px 0 10px; /* Leave room for fixed nav with tighter top spacing */
}
.hero-nebula {
    position: absolute;
    top: 50%; left: 50%;
    width: 80vw; height: 80vh;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1; filter: blur(100px);
    animation: nebulaMove 12s infinite alternate ease-in-out;
}
.hero .eyebrow { color: var(--accent-2); font-weight: 800; letter-spacing: 4px; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 20px; animation: heroReveal 1s ease forwards; }
.hero h1 {
    font-family: 'Space Grotesk';
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff 20%, var(--accent) 50%, var(--accent-2) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroReveal 1.2s ease 0.2s forwards, textShimmer 4s linear infinite;
    opacity: 0;
}
.hero .subhead { color: var(--muted); font-size: 1.3rem; max-width: 750px; margin: 0 auto 45px; opacity: 0; animation: heroReveal 1.2s ease 0.4s forwards; }
.hero .cta-group { opacity: 0; animation: heroReveal 1.2s ease 0.6s forwards; display: flex; gap: 16px; justify-content: center; }

/* --- Section Header Spacing --- */
.section { padding: var(--section-gap) 0; }
.section-first {
    scroll-margin-top: 140px; /* Ensure in-page nav anchors align below fixed nav while keeping lift */
    margin-top: -30px; /* Slight overlap with hero */
    padding-top: calc(var(--section-gap) * 0.4 + 30px);
    transform: translateY(calc(160px * (1 - var(--hero-progress, 0))));
    transition: transform 0.25s ease-out;
    will-change: transform;
}

/* Subtle fade at the bottom of hero to smooth the transition */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(2,2,5,0) 0%, rgba(2,2,5,0.6) 50%, #020205 100%);
    pointer-events: none;
}
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading h2 { font-family: 'Space Grotesk'; font-size: 2.5rem; }
.eyebrow { color: var(--accent-2); font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; }

/* --- Why Dhwani Crisper Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(160px, auto); /* Enough height without leaving lots of empty space */
    gap: 18px;
}
.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 24px; /* Tighter padding */
    border-radius: 20px; /* Slightly tighter radius */
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}
.bento-card:hover {
    background: rgba(138, 75, 255, 0.05);
    border-color: var(--accent);
    transform: scale(1.02);
}
.bento-card h3 { 
    font-family: 'Space Grotesk'; 
    font-size: 1.4rem; 
    font-weight: 600;
    margin-bottom: 8px; 
    color: #fff;
    line-height: 1.2;
}
.bento-card p { 
    color: var(--muted); 
    font-size: 0.9rem; 
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}
.span-2 { grid-column: span 2; }
.featured-card {
    background: linear-gradient(135deg, rgba(138, 75, 255, 0.1), rgba(42, 184, 255, 0.05));
    border-color: rgba(138, 75, 255, 0.3);
}
.bento-card .icon-tag {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.3rem;
    opacity: 0.3;
}

/* --- Demo Tabs --- */
.demo-panel {
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 60px;
    backdrop-filter: blur(20px);
}
.demo-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 50px; }
.tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 12px 28px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}
.tab.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }

.demo-content { display: none; }
.demo-content.active { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }

/* Voice Orb */
.voice-orb-box { position: relative; display: flex; justify-content: center; }
.voice-orb {
    width: clamp(180px, 40vw, 260px);
    height: clamp(180px, 40vw, 260px);
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.voice-orb::before, .voice-orb::after {
    content: ""; position: absolute; width: 100%; height: 100%;
    border: 1px solid var(--accent); border-radius: 50%; animation: ripple 3s infinite;
}
.voice-orb::after { animation-delay: 1.5s; }
.play-btn { 
    width: clamp(60px, 14vw, 80px); 
    height: clamp(60px, 14vw, 80px); 
    background: #fff; 
    border-radius: 50%; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    z-index: 5; 
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease; 
    flex: 0 0 auto;
}
.play-btn:hover { background: var(--accent-2); color: white; transform: scale(1.1); }
.play-btn:active { transform: scale(1.02); }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); padding: 80px 0 40px; background: #010103; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-links ul { list-style: none; margin-top: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-2); }

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card {
    background: #0a0a0f;
    border: 1px solid var(--border);
    padding: 50px;
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-overlay.active .modal-card { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: white; font-size: 2rem; cursor: pointer; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
}

/* Ultra-wide screens: keep layout comfortably compact on 2K/4K laptops */
@media (min-width: 1800px) {
    .container { width: 1200px; }
    .nav-bar { width: 1200px; }
    .hero { padding: 140px 0 60px; }
    .hero h1 { font-size: 4.6rem; }
    .hero .subhead { font-size: 1.15rem; max-width: 680px; }
    .demo-panel { padding: 50px; }
    .section { padding: 70px 0; }
}

@media (max-width: 1024px) {
    .demo-content.active {
        grid-template-columns: 1.05fr 0.95fr; /* keep two columns on tablets */
        gap: 40px;
    }
    .demo-panel { padding: 48px 32px; }
    .demo-tabs {
        flex-wrap: wrap;
        row-gap: 12px;
    }
    .tab { padding: 11px 22px; }
    .voice-orb-box { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: clamp(2.4rem, 8vw, 3.1rem); }
    .hero .subhead { font-size: 1.05rem; }
    .nav-bar { padding: 10px 18px; width: min(95%, 1000px); }
    .demo-panel { padding: 40px 24px; }
    .demo-content.active { grid-template-columns: 1fr 1fr; gap: 26px; align-items: flex-start; }
    .voice-orb-box { justify-content: flex-start; }
    .play-btn { font-size: 1.2rem; }
    .play-btn:hover { transform: none; } /* prevent jump on touch widths */
    .bento-card { padding: 20px; }
    .tab { padding: 10px 18px; }
    .nav-actions .nav-cta { padding: 8px 16px; font-size: 0.88rem; }
}

@media (max-width: 360px) {
    .nav-bar { padding: 8px 14px; width: min(95%, 900px); }
    .hero { padding: 120px 0 40px; }
    .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
    .hero .subhead { font-size: 0.95rem; }
    .btn { padding: 10px 18px; border-radius: 12px; }
    .demo-panel { padding: 28px 16px; border-radius: 28px; }
    .tab { padding: 8px 14px; }
    .bento-card { padding: 16px; }
    .nav-actions .nav-cta { padding: 8px 14px; font-size: 0.86rem; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        right: 14px;
        background: rgba(10,10,18,0.95);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 14px;
        flex-direction: column;
        gap: 12px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: inline-flex; }
    .nav-actions { margin-left: auto; }
    .demo-content.active { grid-template-columns: 1fr; gap: 24px; align-items: center; }
    .voice-orb-box { justify-content: center; }
    .play-btn { font-size: 1.1rem; }
    .demo-panel { padding: 32px 18px; }
    .tab { width: 100%; justify-content: center; }
}


/* --- FOOTER & CONNECT BANNER UPDATES --- */

.footer-connect {
    background: linear-gradient(to bottom, transparent, #05050a);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-connect h2 {
    font-family: 'Space Grotesk';
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-2), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.connect-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.connect-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 50px;
    color: white;
}

.footer {
    background: #05050a;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer-grid-new {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-col h4 {
    color: white;
    font-family: 'Space Grotesk';
    margin-bottom: 20px;
    font-size: 1rem;
}

.company-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 5px; }
.address { color: var(--muted); font-size: 0.8rem; line-height: 1.4; max-width: 250px; }

.badge-pramaan {
    margin-top: 15px;
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.contact-list, .footer-links-list { list-style: none; }
.contact-list li, .footer-links-list li {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-list a {
    color: var(--muted);
    text-decoration: none;
    transition: 0.2s;
}

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

.footer-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.social-links { display: flex; gap: 10px; }
.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid var(--border);
    transition: 0.2s;
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon:hover { border-color: var(--accent); color: var(--accent-2); }

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
}

.disclaimer { margin-top: 10px; opacity: 0.6; }

.back-to-top {
    position: absolute;
    right: 5%;
    bottom: 30px;
    background: var(--accent-2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-glow);
}

@media (max-width: 1024px) {
    .footer-grid-new { grid-template-columns: 1fr 1fr; }
    .connect-actions { flex-direction: column; }
}

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