/* ==========================================================================
   kochicode Style Sheet - Warm Espresso & Brushed Champagne Theme
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
    --bg-base: #0F172A;
    --bg-surface: rgba(30, 41, 59, 0.45);
    --bg-surface-solid: #1E293B;
    --bg-card: rgba(51, 65, 85, 0.5);
    --border-color: rgba(6, 182, 212, 0.06);
    --border-glow: rgba(6, 182, 212, 0.15);
    
    /* Elegant Editorial Color Palette */
    --accent-teal: #06B6D4;      /* Warm Champagne Gold */
    --accent-blue: #38BDF8;      /* Brushed Bronze */
    --accent-purple: #6366F1;    /* Warm Amber */
    --accent-violet: #8B5CF6;    /* Warm Copper / Terracotta */
    --accent-green: #10B981;     /* Soft Sage Green */
    --accent-warn: #F59E0B;      /* Apricot Gold */
    
    /* Text Colors */
    --text-primary: #F1F5F9;     /* Cream Linen */
    --text-secondary: #CBD5E1;   /* Soft Sand */
    --text-muted: #94A3B8;       /* Muted Earth-Gray */
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #06B6D4 0%, #6366F1 100%);
    --grad-purple: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    --grad-dark: linear-gradient(180deg, rgba(51, 65, 85, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Shadows & Glows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.55), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.12);
    --shadow-glow-purple: 0 0 25px rgba(99, 102, 241, 0.12);

    --border-radius: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}



/* --- Base & Reset Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

input, select, textarea, button {
    font-family: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Ambient Background Glow Blobs & Tech Grid Patterns --- */
.tech-grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(to right, rgba(6, 182, 212, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.02) 1px, transparent 1px);
    background-size: 30px 30px, 90px 90px, 90px 90px;
    z-index: -2;
    mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 90%);
    pointer-events: none;
}

.decorative-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to bottom, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 100%);
    z-index: 999;
    pointer-events: none;
    animation: scanSweep 12s linear infinite;
    opacity: 0.3;
}

@keyframes scanSweep {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.14; /* Slightly more vibrant opacity to make it eye-catching */
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-teal) 0%, transparent 75%);
    top: 2%;
    left: -8%;
    animation: floatGlow1 22s infinite alternate ease-in-out;
}

.glow-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 75%);
    top: 35%;
    right: -8%;
    animation: floatGlow2 26s infinite alternate ease-in-out;
}

.glow-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 75%);
    bottom: 8%;
    left: 15%;
    animation: floatGlow3 20s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(60px, -90px, 0) scale(1.1); }
    66% { transform: translate3d(-40px, 50px, 0) scale(0.95); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes floatGlow2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-80px, 80px, 0) scale(1.18); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes floatGlow3 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(90px, -50px, 0) scale(0.92); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* --- Navigation Header --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    height: 70px;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: var(--shadow-md);
}

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

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-bracket {
    color: var(--accent-teal);
    opacity: 0.8;
    font-family: var(--font-code);
    font-weight: 500;
    margin: 0 4px;
    transition: var(--transition-smooth);
}

.logo:hover .logo-bracket {
    color: var(--accent-purple);
    transform: scale(1.1);
}

.logo-accent {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Mobile Nav Screen */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    z-index: 999;
    border-top: 1px solid var(--border-color);
}

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

.mobile-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
}

.mobile-link:hover {
    color: var(--accent-teal);
    padding-left: 8px;
}

.mobile-btn {
    text-align: center;
    padding: 16px;
    background: var(--grad-primary);
    color: #0F172A !important;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 160px 0 80px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Badge styles */
.badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 100px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-teal);
    box-shadow: 0 0 8px var(--accent-teal);
    animation: pulse 1.5s infinite alternate;
}

.badge-text {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent-teal);
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 1; }
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #FFF 0%, var(--accent-teal) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

/* Button Stylings */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    color: #0F172A !important;
    background: var(--grad-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

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

/* --- Hero Terminal Window --- */
.terminal-window {
    background: rgba(15, 13, 11, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    max-width: 100%;
}

.terminal-header {
    height: 40px;
    background: rgba(51, 65, 85, 0.6);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.action-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.6;
}

.action-btn.close { background-color: #94A3B8; }
.action-btn.minimize { background-color: #38BDF8; }
.action-btn.maximize { background-color: #06B6D4; }

.terminal-title {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--text-muted);
}

.terminal-status {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
    animation: pulse 1s infinite alternate;
}

.terminal-body {
    flex-grow: 1;
    padding: 20px;
    font-family: var(--font-code);
    font-size: 13px;
    line-height: 1.6;
    overflow-y: auto;
    color: #CBD5E1;
    max-height: 260px;
}

.terminal-line {
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.line-meta {
    color: var(--accent-blue);
}

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

.prompt {
    color: var(--accent-purple);
    margin-right: 8px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--accent-teal);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.terminal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.4);
    border-top: 1px solid var(--border-color);
}

.chip {
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    font-family: var(--font-code);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chip:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.terminal-input-bar {
    display: flex;
    align-items: center;
    background: rgba(51, 65, 85, 0.6);
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
}

.prompt-arrow {
    color: var(--accent-teal);
    font-family: var(--font-code);
    margin-right: 12px;
    font-weight: bold;
}

.terminal-input-bar input {
    flex-grow: 1;
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--text-primary);
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    margin-bottom: 48px;
}

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

.section-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel-track {
    position: relative;
    height: 380px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-btn:hover {
    border-color: var(--accent-teal);
    background: rgba(6, 182, 212, 0.1);
    transform: scale(1.05);
}

.service-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), var(--shadow-sm);
    border-radius: var(--border-radius);
    padding: 32px;
    position: absolute;
    width: 100%;
    max-width: 340px;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    will-change: transform, opacity;
    opacity: 0;
    transform: translate3d(0, 0, -200px) scale(0.6);
    pointer-events: none;
    z-index: 0;
}

.card-active {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.05);
}

.card-prev {
    transform: translate3d(-60%, 0, -100px) scale(0.85);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.card-next {
    transform: translate3d(60%, 0, -100px) scale(0.85);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--grad-primary);
    color: #0F172A;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.service-bullets {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-bullets li {
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-teal);
}

.service-card:nth-child(2):hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.service-card:nth-child(2) .service-icon {
    color: var(--accent-violet);
    background: rgba(99, 102, 241, 0.03);
    border-color: rgba(99, 102, 241, 0.15);
}

.service-card:nth-child(2):hover .service-icon {
    background: var(--grad-purple);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.service-card:nth-child(2) .bullet-dot {
    background: var(--accent-violet);
}

/* --- Portfolio Section --- */
.portfolio-section {
    padding: 120px 0;
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-glow);
}

.portfolio-preview {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.browser-bar {
    height: 28px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.browser-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.5;
}

.dot.close { background-color: #FF5F56; }
.dot.min { background-color: #FFBD2E; }
.dot.max { background-color: #27C93F; }

.preview-placeholder {
    flex-grow: 1;
    background-size: cover;
    background-position: top center;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.portfolio-card:hover .preview-placeholder {
    opacity: 1;
}

/* Static Project Snaps */
.preview-1 { background-image: url('assets/snap_tharians.png'); }
.preview-2 { background-image: url('assets/snap_jwellery.png'); }
.preview-3 { background-image: url('assets/snap_providence.png'); }

.portfolio-info {
    padding: 0 8px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-info h4 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.visit-link {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-teal);
    transition: var(--transition-smooth);
}

.portfolio-card:hover .visit-link {
    color: var(--text-primary);
    gap: 10px;
}

/* --- Contact Section --- */
.tech-section {
    padding: 80px 0;
    position: relative;
    background: rgba(15, 23, 42, 0.4);
}

.tech-visual-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    margin-top: 32px;
}

.tech-stack-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tech-node {
    padding: 14px 20px;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, background 0.3s ease;
    will-change: transform;
}

.tech-node:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tech-node.active {
    border-color: var(--accent-teal);
    background: rgba(6, 182, 212, 0.02);
    box-shadow: var(--shadow-glow);
}

.tech-node.active[data-layer="cloud"] {
    border-color: var(--accent-violet);
    background: rgba(99, 102, 241, 0.02);
    box-shadow: var(--shadow-glow-purple);
}

.node-icon {
    font-size: 28px;
}

.node-name {
    font-size: 15px;
    font-weight: 600;
}

.tech-layer-display {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.layer-card {
    padding: 24px;
    border-radius: var(--border-radius);
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    opacity: 0.4;
    transform: scale(0.98);
}

.layer-card.highlighted {
    opacity: 1;
    transform: scale(1);
    border-color: var(--accent-teal);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: var(--shadow-md);
}

.layer-card.highlighted-purple {
    opacity: 1;
    transform: scale(1);
    border-color: var(--accent-violet);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: var(--shadow-md);
}

.layer-tag {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.layer-card.highlighted-purple .layer-tag {
    color: var(--accent-violet);
}

.layer-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.layer-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.layer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.badge-pill {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- About Section & Dashboard Visual --- */
.about-section {
    padding: 100px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-content h2 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-teal);
}

.metric-item:nth-child(2) .metric-value {
    color: var(--accent-violet);
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* System Monitor visual box */
.system-monitor-box {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.monitor-header {
    background: rgba(51, 65, 85, 0.4);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.monitor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.monitor-title {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.monitor-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.graph-row {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 16px;
}

.graph-label {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-secondary);
}

.graph-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    overflow: hidden;
}

.graph-bar {
    height: 100%;
    background: var(--accent-teal);
    box-shadow: 0 0 8px var(--accent-teal);
    border-radius: 100px;
    transition: width 1s ease-in-out;
}

.graph-bar.glow-purple {
    background: var(--accent-violet);
    box-shadow: 0 0 8px var(--accent-violet);
}

.graph-bar.glow-blue {
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

.graph-val {
    font-family: var(--font-code);
    font-size: 12px;
    text-align: right;
}

.console-box {
    margin-top: 8px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    font-family: var(--font-code);
}

.console-title {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.console-logs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    font-size: 11px;
    color: var(--text-secondary);
}

.log-ok {
    color: var(--accent-green);
}

.log-warn {
    color: var(--accent-warn);
}

/* --- Contact & Onboarding --- */
.contact-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
}

.contact-info h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.mode-toggles {
    display: flex;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 10px;
    gap: 6px;
    margin-bottom: 32px;
}

.mode-toggle-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mode-toggle-btn:hover {
    color: var(--accent-teal);
    background: rgba(255, 255, 255, 0.01);
}

.mode-toggle-btn.active {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight-item {
    display: flex;
    gap: 16px;
}

.highlight-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-item h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.highlight-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Panels */
.glass-panel {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Forms visibility toggle */
#standard-contact-form,
#terminal-contact-form,
#form-success-state {
    display: none;
    width: 100%;
}

#standard-contact-form.active-form,
#terminal-contact-form.active-form,
#form-success-state.active-form {
    display: block;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.06);
    background: rgba(15, 23, 42, 0.8);
}

.form-group select option {
    background: var(--bg-surface-solid);
    color: var(--text-primary);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    color: #0F172A !important;
    background: var(--grad-primary);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* Terminal CLI Onboarding form styling */
.terminal-wizard-box {
    background: #0F172A;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    font-family: var(--font-code);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.wizard-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.wizard-badge {
    color: var(--accent-teal);
    font-weight: bold;
}

.wizard-terminal-body {
    flex-grow: 1;
    min-height: 180px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 12px;
}

.wizard-line {
    animation: textReveal 0.2s ease-out;
}

.w-accent {
    color: var(--accent-teal);
}

.w-input-echo {
    color: var(--accent-green);
    font-weight: 600;
}

@keyframes textReveal {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-input-bar {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.wizard-prompt {
    color: var(--accent-purple);
    font-size: 13px;
    margin-right: 12px;
    font-weight: bold;
}

.wizard-input-bar input {
    flex-grow: 1;
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--accent-teal);
}

.wizard-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.wizard-chip {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.wizard-chip:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* Success Form Screen Styling */
.form-success-box {
    text-align: center;
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--accent-green);
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 var(--accent-green);
    animation: fillSuccess .4s ease-in-out .4s forwards, scaleCheckmark .3s ease-in-out .9s forwards;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--accent-green);
    fill: none;
    animation: strokeSuccess .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeSuccess .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes strokeSuccess {
    100% { stroke-dashoffset: 0; }
}

@keyframes fillSuccess {
    100% { box-shadow: inset 0px 0px 0px 40px rgba(168, 230, 207, 0.08); }
}

.form-success-box h3 {
    font-size: 26px;
    margin-bottom: 12px;
}

.form-success-box p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 380px;
    margin: 0 auto 24px auto;
    line-height: 1.5;
}

.reset-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reset-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px 0;
    background: rgba(15, 23, 42, 0.8);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-links-group {
    display: flex;
    gap: 64px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h5 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 64px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .badge {
        align-self: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tech-visual-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        height: 70px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links-group {
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-status {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 38px;
    }
    
    .terminal-body {
        padding: 12px;
        font-size: 11px;
    }
    
    .terminal-header {
        padding: 0 10px;
    }
    
    .terminal-chips {
        padding: 8px 10px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.95);
    transition: opacity 0.4s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.stagger-1 { transition-delay: 0.15s; }
.stagger-2 { transition-delay: 0.3s; }
.stagger-3 { transition-delay: 0.45s; }
.stagger-4 { transition-delay: 0.6s; }
.stagger-5 { transition-delay: 0.75s; }


