/* ==========================================================================
   KANDULA SRIKAR PORTFOLIO - ROYAL INDIGO + NEON VIOLET (LUXURY AI STARTUP)
   ========================================================================== */

:root {
    --bg-dark: #080414;
    --bg-card: rgba(17, 24, 39, 0.78);
    --bg-card-hover: rgba(25, 34, 54, 0.92);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(168, 85, 247, 0.45);
    --border-indigo: rgba(99, 102, 241, 0.45);

    --primary: #8B5CF6;
    --secondary: #6366F1;
    --accent: #C084FC;
    --glow: #A855F7;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;

    --text-main: #F5F5F5;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;

    --gradient-hero: linear-gradient(135deg, #8B5CF6 0%, #6366F1 50%, #C084FC 100%);
    --gradient-text: linear-gradient(135deg, #C084FC 0%, #8B5CF6 50%, #6366F1 100%);
    --gradient-card: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.25);
    --shadow-indigo: 0 0 40px rgba(99, 102, 241, 0.25);

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas Background */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.ambient-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-hero);
    z-index: 1000;
    width: 0%;
    transition: width 0.1s linear;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Headings */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #F5F5F5;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 48px;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   2. NAVBAR & NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(8, 4, 20, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: #F5F5F5;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cmd-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.cmd-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F5F5F5;
    border-color: var(--border-glow);
}

.cmd-key {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #F5F5F5;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 90vh;
    padding-top: 150px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-content-centered {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.pulse-dot, .pulse-emerald {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-name {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-role-wrapper {
    font-size: 1.7rem;
    font-family: var(--font-mono);
    color: var(--accent);
    min-height: 44px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 1.3em;
    background: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-bio {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 720px;
}

.hero-actions-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 44px;
}

/* Buttons & Icon Boxes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-hero);
    color: #F5F5F5;
    box-shadow: 0 4px 24px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #F5F5F5;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.btn-icon-box {
    width: 50px;
    height: 50px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #F5F5F5;
    text-decoration: none;
    transition: var(--transition);
}

.btn-icon-box:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--border-glow);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.social-svg-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.hero-stats-centered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    width: 100%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 18px 14px;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-link {
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.stat-card-link:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
    padding: 100px 0;
}

/* --------------------------------------------------------------------------
   5. EDUCATION SECTION
   -------------------------------------------------------------------------- */
.education-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
}

.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.edu-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.edu-degree {
    font-size: 1.25rem;
    font-weight: 700;
    color: #F5F5F5;
}

.edu-institution {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.edu-grade-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}

.coursework-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.course-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. TECHNICAL SKILLS SECTION
   -------------------------------------------------------------------------- */
.skills-section {
    padding: 100px 0;
}

.skills-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skill-card {
    padding: 20px;
}

.skill-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skill-name-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   7. PROJECTS SECTION & LIVE DEMOS
   -------------------------------------------------------------------------- */
.projects-section {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 992px) {
    .project-card {
        grid-template-columns: 1fr;
    }
}

.project-details h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.project-category {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tool-badge {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

.project-architecture {
    background: rgba(8, 4, 20, 0.6);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    overflow-x: auto;
}

/* Sandbox Cards */
.sandbox-card {
    margin-top: 60px;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.sandbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.agent-workflow-logs {
    background: #080414;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    min-height: 220px;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.agent-log-line {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.log-agent-name {
    color: var(--accent);
    font-weight: 700;
    min-width: 110px;
}

.log-content {
    color: #F5F5F5;
}

.sandbox-controls {
    display: flex;
    gap: 12px;
}

.sandbox-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: #F5F5F5;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
}

.sandbox-input:focus {
    border-color: var(--glow);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.3);
}

/* --------------------------------------------------------------------------
   8. LIVE CODING STATS & DASHBOARD STYLES
   -------------------------------------------------------------------------- */
.coding-section {
    padding: 100px 0;
}

.live-sync-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    width: fit-content;
}

.live-badge-glow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.live-metric-box {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.metric-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #F5F5F5;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.metric-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.live-status-pill {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-glow);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
}

.sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-emerald);
}

.coding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 992px) {
    .coding-grid, .hero-stats-centered {
        grid-template-columns: 1fr 1fr;
    }
}

.chart-container {
    position: relative;
    width: 100%;
    height: 280px;
}

.coding-profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.profile-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   9. CERTIFICATIONS & ACHIEVEMENTS
   -------------------------------------------------------------------------- */
.certifications-section {
    padding: 100px 0;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-org {
    color: var(--accent);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-bottom: 8px;
}

.cert-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   10. AI CHATBOT & COMMAND PALETTE
   -------------------------------------------------------------------------- */
.ai-trigger-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-hero);
    border: none;
    color: #F5F5F5;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 950;
    transition: var(--transition);
}

.ai-trigger-btn:hover {
    transform: scale(1.1);
}

.chatbot-drawer {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 520px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 950;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.chatbot-drawer.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #e5e7eb;
}

.chat-msg.user {
    background: var(--gradient-hero);
    color: #F5F5F5;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-row {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: #F5F5F5;
    outline: none;
    font-size: 0.88rem;
}

/* Command Palette */
.cmd-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cmd-modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.cmd-modal {
    width: 100%;
    max-width: 600px;
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.cmd-search-input {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: #F5F5F5;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    outline: none;
}

.cmd-results-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 12px;
    list-style: none;
}

.cmd-item {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.cmd-item:hover, .cmd-item.selected {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   11. CONTACT & FOOTER SECTION
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #F5F5F5;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--glow);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        background: rgba(8, 4, 20, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 12px 24px 24px;
        z-index: 950;
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active .nav-link {
        display: block;
        width: 100%;
        padding: 14px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 1rem;
    }

    .mobile-toggle {
        display: block;
    }

    .chatbot-drawer {
        width: 90vw;
        right: 5vw;
        bottom: 90px;
    }

    .hero-stats-centered {
        grid-template-columns: 1fr 1fr;
    }
}
