/* ==========================================================================
   CYBER EMERALD & OBSIDIAN MATRIX DESIGN SYSTEM
   Kartik Gupta Portfolio | AI/ML & Software Engineer
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #070d14;
    --bg-deep: #04080e;
    --bg-card: rgba(13, 21, 34, 0.75);
    --bg-card-hover: rgba(18, 30, 48, 0.9);
    --bg-glass: rgba(15, 25, 40, 0.55);
    
    /* Accents & Glows */
    --accent: #00ff9d;             /* Cyber Emerald / Mint */
    --accent-secondary: #00e5ff;   /* Electric Cyan */
    --accent-hover: #00cc7e;
    --accent-glow: rgba(0, 255, 157, 0.35);
    --accent-glow-subtle: rgba(0, 255, 157, 0.15);
    --accent-cyan-glow: rgba(0, 229, 255, 0.25);
    
    /* Text Colors */
    --text-main: #e2e8f0;
    --text-muted: #8b9bb4;
    --text-dim: #5c6b84;
    --text-heading: #ffffff;
    
    /* Borders & Lines */
    --border-color: rgba(0, 255, 157, 0.18);
    --border-bright: rgba(0, 255, 157, 0.45);
    --grid-line: rgba(0, 255, 157, 0.04);
    
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --glow-shadow: 0 0 25px rgba(0, 255, 157, 0.25);
}

/* Theme Variant 2 (Electric Cyan) */
body.theme-cyan {
    --accent: #00e5ff;
    --accent-secondary: #00ff9d;
    --accent-glow: rgba(0, 229, 255, 0.35);
    --border-color: rgba(0, 229, 255, 0.2);
    --border-bright: rgba(0, 229, 255, 0.5);
}

/* Theme Variant 3 (Solar Amber) */
body.theme-amber {
    --accent: #ffb703;
    --accent-secondary: #fb8500;
    --accent-glow: rgba(255, 183, 3, 0.35);
    --border-color: rgba(255, 183, 3, 0.2);
    --border-bright: rgba(255, 183, 3, 0.5);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Ambient Lighting */
.glow-bg {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.08) 0%, rgba(0, 229, 255, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

code, pre, .mono, .logo, .nav-link, .section-tag, .btn, .tech-pill, .skill-tag {
    font-family: var(--font-mono);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

section {
    padding: 7rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: rgba(7, 13, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-prefix {
    color: var(--accent);
    font-weight: 700;
}

.logo-dot {
    color: var(--accent);
    animation: pulseGlow 2s infinite ease-in-out;
}

.nav-menu {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
    padding: 0.4rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* CLI Trigger Button in Nav */
.cli-trigger-btn {
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid var(--border-color);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.cli-trigger-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

.cli-icon {
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

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

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 157, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline-container {
    font-size: 1.3rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    min-height: 38px;
}

.prompt-symbol {
    color: var(--accent);
    font-weight: 700;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 580px;
    line-height: 1.7;
    border-left: 3px solid var(--accent);
    padding-left: 1.2rem;
}

.description strong {
    color: var(--text-main);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-item .stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}

.hero-stat-item .stat-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #00d980 100%);
    color: #03080e;
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 255, 157, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 255, 157, 0.05);
    transform: translateY(-3px);
}

.btn-tertiary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent);
}

.btn-tertiary:hover {
    background: rgba(0, 255, 157, 0.1);
    box-shadow: var(--glow-shadow);
}

/* Hero Visual & Canvas */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-deep);
    border: 1px solid var(--border-bright);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 157, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

#matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.canvas-controls {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.canvas-btn {
    background: rgba(7, 13, 20, 0.85);
    border: 1px solid var(--border-color);
    color: var(--accent);
    padding: 0.38rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: var(--transition);
}

.canvas-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Profile Image Frame - Perfectly Centered & Aligned */
.profile-image-hero {
    position: relative;
    width: 240px;
    height: 240px;
    z-index: 5;
    border-radius: 24px;
    padding: 6px;
    background: rgba(7, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--accent);
    box-shadow: 0 0 35px rgba(0, 255, 157, 0.35), inset 0 0 20px rgba(0, 255, 157, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.profile-image-hero:hover {
    transform: scale(1.05);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 45px rgba(0, 229, 255, 0.45);
}

.profile-image-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 18px;
    filter: contrast(1.05) brightness(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.profile-image-hero:hover img {
    filter: contrast(1) brightness(1.05);
}

.profile-frame-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--accent);
    border-style: solid;
}
.top-left { top: -6px; left: -6px; border-width: 3px 0 0 3px; }
.top-right { top: -6px; right: -6px; border-width: 3px 3px 0 0; }
.bottom-left { bottom: -6px; left: -6px; border-width: 0 0 3px 3px; }
.bottom-right { bottom: -6px; right: -6px; border-width: 0 3px 3px 0; }

.profile-overlay-badge {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* ==========================================================================
   Section Headers & Glass Cards
   ========================================================================== */

.section-header {
    margin-bottom: 3.5rem;
}

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

.section-tag {
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

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

.section-header.center .section-subtitle {
    margin: 0 auto;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
    opacity: 0.5;
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 255, 157, 0.12);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 2rem;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-card p strong {
    color: var(--text-main);
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.stats-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(0, 255, 157, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.stat-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.stat-text p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.quote-box {
    position: relative;
    border-left: 3px solid var(--accent-secondary);
}

.quote-symbol {
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    font-family: serif;
    opacity: 0.3;
}

.quote-text {
    font-style: italic;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

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

.skill-category-card {
    display: flex;
    flex-direction: column;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
}

.category-icon {
    font-size: 1.5rem;
}

.skill-category-card h3 {
    font-size: 1.25rem;
}

.category-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.skills-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-main);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 255, 157, 0.08);
}

.skill-tag.highlight-tag {
    border-color: var(--border-bright);
    color: var(--accent);
    background: rgba(0, 255, 157, 0.06);
    font-weight: 600;
}

/* ==========================================================================
   Projects Section & Filters
   ========================================================================== */

.project-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    box-shadow: var(--glow-shadow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

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

.project-card.hide {
    display: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.project-tag {
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(0, 255, 157, 0.1);
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
}

.project-status {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-heading);
}

.project-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.tech-pill {
    font-size: 0.78rem;
    color: var(--accent-secondary);
    background: rgba(0, 229, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.project-links {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2rem;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--text-heading);
    transform: translateX(4px);
}

/* ==========================================================================
   Profiles & Platforms Section
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.platform-icon {
    color: var(--accent);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.stat-number {
    font-size: 1.4rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.stat-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: var(--transition);
    margin-top: auto;
}

.stat-card:hover .stat-link {
    color: var(--accent);
    transform: translateX(4px);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 2rem;
    text-align: center;
}

.contact-email-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(7, 13, 20, 0.9);
    border: 1px solid var(--border-bright);
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    box-shadow: var(--glow-shadow);
    flex-wrap: wrap;
    justify-content: center;
}

.email-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.email-address {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.copy-btn {
    background: rgba(0, 255, 157, 0.12);
    border: 1px solid var(--border-color);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.contact-methods {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-link {
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.contact-link.btn-primary {
    color: #03080e;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.terminal-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}

/* ==========================================================================
   CLI Terminal Modal & Drawer
   ========================================================================== */

.terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.terminal-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.terminal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 8, 14, 0.85);
    backdrop-filter: blur(8px);
}

.terminal-window {
    position: relative;
    width: 90%;
    max-width: 850px;
    height: 520px;
    background: #050a10;
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 255, 157, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-modal.open .terminal-window {
    transform: scale(1);
}

.terminal-header {
    height: 42px;
    background: #0a111a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}
.term-close { background: #ff5f56; }
.term-minimize { background: #ffbd2e; }
.term-maximize { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-actions {
    display: flex;
    gap: 8px;
}

.term-action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.term-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.terminal-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #a6b4c9;
    display: flex;
    flex-direction: column;
}

.terminal-brand-header {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed rgba(0, 255, 157, 0.2);
}

.terminal-brand-title {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-shadow: 0 0 16px rgba(0, 255, 157, 0.45);
    margin-bottom: 0.2rem;
}

.terminal-brand-sub {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-secondary);
    letter-spacing: 0.12em;
    font-weight: 600;
}

.terminal-welcome {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

.cmd-highlight {
    color: var(--accent);
    font-weight: bold;
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.terminal-line {
    line-height: 1.5;
    word-break: break-word;
}

.terminal-line.cmd-entry {
    color: var(--accent);
    font-weight: 600;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: bold;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-heading);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-dark);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    box-shadow: var(--glow-shadow);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Animations */
.cursor { animation: blink 1s infinite; color: var(--accent); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #162438; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .description {
        margin: 0 auto 2rem;
    }
    .hero-stats {
        justify-content: center;
    }
    .cta-buttons {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(7, 13, 20, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
    }
    .nav-menu.open {
        left: 0;
    }
    .mobile-toggle {
        display: flex;
    }
    .hero-text h1 {
        font-size: 2.4rem;
    }
    .terminal-window {
        width: 95%;
        height: 80vh;
    }
    .terminal-ascii {
        display: none;
    }
}
