/* --- CORE VARIABLES & THEME (PASTEL EARTHY SYSTEM) --- */
:root {
    /* Light Mode (Default) */
    --bg-main: #F9F8F6; /* Warm Alabaster */
    --bg-panel: rgba(255, 255, 255, 0.65);
    --bg-modal: rgba(255, 255, 255, 0.95);
    --text-main: #2F3E46; /* Charcoal */
    --text-muted: #6B777A; /* Stone */
    
    /* Accents - Earthy Light */
    --primary: #7C9082; /* Sage Green */
    --primary-dim: rgba(124, 144, 130, 0.15);
    --secondary: #D4A373; /* Warm Sand */
    --accent: #E29578; /* Terracotta */
    
    --glass-border: rgba(47, 62, 70, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    
    /* Fonts */
    --font-header: 'Playfair Display', serif;
    --font-main: 'Mulish', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- DARK MODE (PASTEL CALM) --- */
body.dark-mode {
    /* Dark Mode - Deep Slate & Muted Tones */
    --bg-main: #1A1E23; /* Deep Slate */
    --bg-panel: rgba(35, 40, 48, 0.7);
    --bg-modal: rgba(26, 30, 35, 0.95);
    --text-main: #E6E8E6; /* Off-white */
    --text-muted: #9CA3AF; /* Cool Grey */
    
    /* Accents - Earthy Dark */
    --primary: #A3B18A; /* Muted Olive */
    --primary-dim: rgba(163, 177, 138, 0.15);
    --secondary: #DDBEA9; /* Pale Sand */
    --accent: #CB997E; /* Muted Peach */
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor used */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* --- CREATIVE CSS: NOISE TEXTURE OVERLAY --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- SCROLL PROGRESS BAR --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 99999;
    transition: width 0.1s;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    transition: background-color 0.3s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    width: 35px;
    height: 35px;
    border: 1px solid var(--primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

body.hovering .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: var(--primary-dim);
    border-color: transparent;
}

/* --- BINARY CURSOR TRAIL --- */
#binary-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998; /* Just below cursor, above content */
    overflow: hidden;
}

.binary-particle {
    position: fixed;
    color: var(--primary); 
    font-family: var(--font-code);
    font-weight: bold;
    pointer-events: none;
    animation: binaryFade 1s linear forwards;
    user-select: none;
    will-change: transform, opacity;
}

body.dark-mode .binary-particle {
    color: var(--secondary); /* Sand color in dark mode for visibility */
    text-shadow: 0 0 5px rgba(212, 163, 115, 0.3);
}

@keyframes binaryFade {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(40px) scale(0.5); /* Falls down */
        opacity: 0;
    }
}

/* --- GLITCH TITLE EFFECT --- */
.glitch-effect {
    position: relative;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-effect::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-effect::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 15px, 0); }
    20% { clip: rect(60px, 9999px, 75px, 0); }
    40% { clip: rect(18px, 9999px, 35px, 0); }
    60% { clip: rect(85px, 9999px, 100px, 0); }
    80% { clip: rect(10px, 9999px, 30px, 0); }
    100% { clip: rect(50px, 9999px, 90px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(80px, 9999px, 95px, 0); }
    20% { clip: rect(10px, 9999px, 45px, 0); }
    40% { clip: rect(90px, 9999px, 105px, 0); }
    60% { clip: rect(30px, 9999px, 70px, 0); }
    80% { clip: rect(55px, 9999px, 20px, 0); }
    100% { clip: rect(12px, 9999px, 55px, 0); }
}

/* --- BOOT SEQUENCE OVERLAY --- */
.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main); /* Changed from #000 to theme bg */
    color: var(--primary); /* Changed from #0f0 to theme primary */
    font-family: var(--font-code); /* Use theme code font */
    z-index: 10000;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 14px;
    pointer-events: none; 
    transition: opacity 0.8s ease; /* Add smooth fade out transition */
}

/* Ensure boot overlay uses dark mode colors specifically if needed, 
   but using CSS variables handles this automatically based on body class */
body.dark-mode .boot-overlay {
    background-color: #1A1E23; /* Explicit dark bg */
    color: #7C9082; /* Explicit sage green text */
}

.boot-text {
    white-space: pre-wrap;
    line-height: 1.6;
}

.boot-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: var(--primary); /* Match primary color */
    animation: blink 1s infinite;
    vertical-align: middle;
}

/* --- REDACTED TEXT REVEAL --- */
.redacted-text {
    position: relative;
    color: transparent;
    background-color: var(--text-main);
    border-radius: 4px;
    padding: 0 4px;
    transition: color 0.4s ease, background-color 0.4s ease;
    cursor: help;
    user-select: none;
}

.redacted-text.revealed,
.redacted-text:hover {
    color: var(--text-main);
    background-color: transparent;
}

/* Dark mode adjustment for redacted text */
body.dark-mode .redacted-text {
    background-color: var(--text-main); /* Uses the off-white text color as the block */
}

body.dark-mode .redacted-text.revealed,
body.dark-mode .redacted-text:hover {
    color: var(--text-main);
    background-color: transparent;
}

/* --- BACKGROUND CANVAS --- */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; 
    opacity: 0.5;
    transition: opacity 0.5s;
}

/* --- FIXED RABBIT BACKGROUND --- */
.rabbit-bg-fixed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vmin;
    height: 60vmin;
    z-index: -1; 
    opacity: 0.05; 
    pointer-events: none;
    color: var(--text-main);
    transition: color 0.6s ease;
}
.rabbit-bg-fixed svg {
    width: 100%;
    height: 100%;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-main);
    margin-top: 0.2rem;
    line-height: 1.1;
}

.section-subtitle {
    font-family: var(--font-code);
    color: var(--secondary);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    font-weight: 500;
}

/* Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-text {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 8px 0;
    z-index: 100;
    transition: var(--ease-smooth);
    border-bottom: 1px solid transparent;
}

/* Limit nav container width specifically */
nav .container {
    max-width: 900px;
}

nav.scrolled {
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 5px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

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

.brand {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand span { color: var(--secondary); font-style: italic; }

.vlog-header-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.vlog-header-link:hover {
    background: rgba(0,0,0,0.05);
}

.header-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* --- HIDE VLOG ICON IN DARK MODE --- */
body.dark-mode .vlog-header-link {
    display: none !important;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
    font-weight: 500;
}

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

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

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

/* --- PHYSICAL LIGHT SWITCH --- */
.switch-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.switch-label {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.light-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.light-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4a5568; /* Dark Grey for OFF */
    transition: .4s;
    border-radius: 34px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.4);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* When Checked (Light Mode ON) */
input:checked + .slider {
    background-color: var(--secondary);
}

input:checked + .slider:before {
    transform: translateX(18px);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 25px;
    background: none;
    border: none;
    z-index: 101;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 50px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-family: var(--font-header);
    font-size: 4.5rem;
    line-height: 0.95;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -2px;
}

.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
    color: var(--primary);
    font-style: italic;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--secondary);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-10deg);
}

.typing-container {
    font-family: var(--font-code);
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.typing-cursor {
    width: 8px;
    height: 20px;
    background: var(--secondary);
    animation: blink 1s infinite;
}

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

/* BUTTONS */
.btn-main {
    display: inline-block;
    padding: 12px 30px;
    background: var(--text-main);
    color: var(--bg-main);
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-main);
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.btn-main:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 15px 25px -5px rgba(0,0,0,0.15);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-main);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-main);
    transform: translateY(-3px);
}

/* Explicit Dark Mode fix for Buttons */
body.dark-mode .btn-outline {
    border-color: #fff !important;
    color: #fff !important;
}

body.dark-mode .btn-outline:hover {
    background: #fff !important;
    color: #1A1E23 !important;
}

/* Specific fix for Download CV Button in Dark Mode */
body.dark-mode button.btn-outline {
    border-color: #fff !important; /* White Border */
    color: #fff !important; /* White Text */
    background: transparent !important; /* Dark/Transparent BG */
}

/* Hover: Filled Sage/Olive, White Text */
body.dark-mode button.btn-outline:hover {
    background: var(--primary) !important; 
    color: #fff !important; 
    border-color: var(--primary) !important;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

.stat-item h3 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1;
}

.stat-item p {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.profile-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BLOBS */
.blob-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.6;
    animation: morph 10s ease-in-out infinite;
}

.blob-1 {
    width: 250px;
    height: 250px;
    background: var(--primary);
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: 20%;
    right: 20%;
    animation-delay: -5s;
}

@keyframes morph {
    0% { transform: translate(0, 0) scale(1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { transform: translate(30px, -50px) scale(1.1); border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { transform: translate(0, 0) scale(1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* --- EXPERIENCE CARDS --- */
.timeline {
    position: relative;
    padding: 10px 0;
    border-left: 1px solid var(--glass-border);
    margin-left: 20px;
}

.timeline-progress {
    position: absolute;
    left: -1px;
    top: 0;
    width: 3px;
    height: 0%;
    background: var(--primary);
    z-index: 1;
    transition: height 0.1s linear;
}

.job-card {
    margin-left: 30px;
    margin-bottom: 30px;
    position: relative;
}

.job-card::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--bg-main);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: var(--ease-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    /* Spotlight vars */
    --x: 50%;
    --y: 50%;
}

.glass-panel:hover, .skill-chip:hover, .project-card:hover {
    transform: translateY(-5px);
    background: radial-gradient(circle at var(--x) var(--y), rgba(255,255,255,0.1) 0%, var(--bg-modal) 100%);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

body.dark-mode .glass-panel:hover, body.dark-mode .skill-chip:hover, body.dark-mode .project-card:hover {
     background: radial-gradient(circle at var(--x) var(--y), rgba(255,255,255,0.05) 0%, rgba(35, 40, 48, 0.8) 100%);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.job-role {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.job-company {
    font-family: var(--font-code);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.job-date {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--glass-border);
    padding: 5px 10px;
    border-radius: 4px;
}

.job-points li {
    list-style: none;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.job-points li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 1.2em;
}

/* --- PROJECTS SECTION --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    --x: 50%;
    --y: 50%;
}

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

.project-title {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--glass-border);
    color: var(--primary);
    border-radius: 4px;
}

.project-icon {
    width: 40px;
    height: 40px;
    background: var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

/* --- SKILLS GRID --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.skill-chip {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    /* Spotlight vars */
    --x: 50%;
    --y: 50%;
}

.skill-chip:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.skill-icon {
    display: block;
    margin: 0 auto 10px auto;
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: var(--ease-smooth);
    filter: grayscale(100%) opacity(0.8);
}

.skill-icon path {
    fill: var(--text-main);
    transition: fill 0.3s ease;
}

.skill-chip:hover .skill-icon {
    filter: grayscale(0%) opacity(1);
}

.skill-chip:hover .skill-icon path {
    fill: var(--primary);
}

.skill-chip h4 {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.85rem;
}

/* --- AI TERMINAL --- */
.terminal-container {
    background: #2F3E46;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    font-family: var(--font-code);
    margin-top: 30px;
}

body.dark-mode .terminal-container {
    border: 1px solid var(--glass-border);
}

.terminal-header {
    background: #1e292e;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.8;
}
.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27c93f; }

.terminal-title {
    color: #8fa1a8;
    font-size: 0.8rem;
}

.terminal-body {
    height: 350px;
    padding: 20px;
    overflow-y: auto;
    color: #dce4e6;
    font-size: 0.9rem;
    background: #2F3E46;
}

.msg-line {
    line-height: 1.6;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease;
}
.msg-line.user { color: var(--secondary); }
.msg-line.ai { color: #fff; }
.msg-line.error { color: var(--accent); }

.prompt-area {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 15px 20px;
    background: #28353c;
}

.prompt-symbol {
    color: var(--primary);
    margin-right: 12px;
    font-weight: bold;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-family: var(--font-code);
    font-size: 0.95rem;
    outline: none;
}

/* --- COMMAND PALETTE --- */
.cmd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

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

.cmd-palette {
    background: var(--bg-modal);
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: var(--font-main);
    border: 1px solid var(--glass-border);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.cmd-overlay.active .cmd-palette {
    transform: scale(1);
}

.cmd-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.cmd-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: var(--text-main);
    outline: none;
}

.cmd-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.cmd-item {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: background 0.2s;
}

.cmd-item:hover, .cmd-item.selected {
    background: var(--glass-border);
}

.cmd-key {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--glass-border);
    color: var(--text-muted);
}

/* --- TOAST --- */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--text-main);
    color: var(--bg-main);
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-family: var(--font-main);
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* --- FOOTER --- */
footer {
    margin-top: 50px;
    padding: 40px 0;
    background: var(--bg-main);
    border-top: 1px solid var(--glass-border);
    transition: background-color 0.6s ease;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
}

.social-btn:hover {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.social-btn:hover .social-icon {
    filter: grayscale(0%);
}
/* --- HEART ICON --- */
.heart-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
    display: inline-block;
    vertical-align: middle;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-text h1 { font-size: 3.2rem; }
    .hero-stats, .typing-container { justify-content: center; }
    .profile-visual { display: none; }
    .section-title { font-size: 2.5rem; }
    .blob-shape { display: none; } 
}

@media (max-width: 768px) {
    .nav-items {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%; 
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 99;
    }
    .nav-items.active { right: 0; }
    .menu-btn { display: flex; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .job-header { flex-direction: column; gap: 10px; }
    .cursor-dot, .cursor-outline { display: none; }
    * { cursor: auto; }
    .btn-main, .btn-outline { padding: 12px 25px; width: 100%; text-align: center; margin-bottom: 10px; }
    .switch-container { margin-left: 0; margin-top: 20px; } /* Switch in mobile menu */
    
    /* Hide specific terminal header elements only on mobile */
    .terminal-title, .terminal-status {
        display: none !important;
    }
    /* Keep traffic lights visible and aligned left */
    .terminal-header {
        justify-content: flex-start !important; 
    }
}