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

/* ==========================================
   1. DESIGN SYSTEM & ROOT VARIABLES (THEMES)
   ========================================== */
:root {
    /* --------------------------------------
       MINIMAL SLATE (Default Theme)
       -------------------------------------- */
    --theme-name: "Minimal Slate";
    --bg-main: #f1f3f5;
    --bg-main-hsl: 210, 20%, 95%;
    --bg-panel: rgba(248, 250, 252, 0.9);
    --bg-panel-solid: #f8fafc;
    --border-color: #e4e4e7;
    --border-hover: #a1a1aa;
    
    --accent-1: #2563eb;      /* Clean Blue */
    --accent-1-rgb: 37, 99, 235;
    --accent-2: #18181b;      /* Slate Dark */
    --accent-2-rgb: 24, 24, 27;
    --accent-glow: rgba(37, 99, 235, 0.05);
    
    --text-primary: #09090b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    
    --card-glow-color: rgba(24, 24, 27, 0.02);
    --glow-spot-1: transparent;
    --glow-spot-2: transparent;
    
    --terminal-hdr: #e4e4e7;
    --terminal-bg: #f4f4f5;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;

    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.15s ease;
}

/* --------------------------------------
   SAGE LIGHT Theme
   -------------------------------------- */
[data-theme="cyberpunk"] {
    --theme-name: "Sage Light";
    --bg-main: #edf1ee;
    --bg-main-hsl: 135, 10%, 94%;
    --bg-panel: rgba(243, 246, 244, 0.9);
    --bg-panel-solid: #f3f6f4;
    --border-color: #e2e8f0;
    --border-hover: #94a3b8;
    
    --accent-1: #0f766e;      /* Deep Teal */
    --accent-1-rgb: 15, 118, 110;
    --accent-2: #1e293b;      /* Slate 800 */
    --accent-2-rgb: 30, 41, 59;
    --accent-glow: rgba(15, 118, 110, 0.05);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --card-glow-color: rgba(15, 118, 110, 0.02);
    --glow-spot-1: transparent;
    --glow-spot-2: transparent;
    
    --terminal-hdr: #e2e8f0;
    --terminal-bg: #f1f5f9;
}

/* --------------------------------------
   EDITORIAL SAND Theme
   -------------------------------------- */
[data-theme="emerald"] {
    --theme-name: "Editorial Sand";
    --bg-main: #f5efe6;
    --bg-main-hsl: 38, 28%, 93%;
    --bg-panel: rgba(250, 246, 240, 0.9);
    --bg-panel-solid: #faf6f0;
    --border-color: #e7e5e4;
    --border-hover: #a8a29e;
    
    --accent-1: #c2410c;      /* Terracotta */
    --accent-1-rgb: 194, 65, 12;
    --accent-2: #292524;      /* Stone 800 */
    --accent-2-rgb: 41, 37, 36;
    --accent-glow: rgba(194, 65, 12, 0.05);
    
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    
    --card-glow-color: rgba(194, 65, 12, 0.02);
    --glow-spot-1: transparent;
    --glow-spot-2: transparent;
    
    --terminal-hdr: #e7e5e4;
    --terminal-bg: #f5f5f4;
}

/* --------------------------------------
   INDIGO MINIMAL Theme
   -------------------------------------- */
[data-theme="sunset"] {
    --theme-name: "Indigo Minimal";
    --bg-main: #edf0fa;
    --bg-main-hsl: 228, 40%, 95%;
    --bg-panel: rgba(244, 246, 252, 0.9);
    --bg-panel-solid: #f4f6fc;
    --border-color: #e0e7ff;
    --border-hover: #c7d2fe;
    
    --accent-1: #4f46e5;      /* Royal Indigo */
    --accent-1-rgb: 79, 70, 229;
    --accent-2: #1e1b4b;      /* Indigo 950 */
    --accent-2-rgb: 30, 27, 75;
    --accent-glow: rgba(79, 70, 229, 0.05);
    
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    
    --card-glow-color: rgba(79, 70, 229, 0.02);
    --glow-spot-1: transparent;
    --glow-spot-2: transparent;
    
    --terminal-hdr: #e0e7ff;
    --terminal-bg: #f5f7ff;
}

/* ==========================================
   2. GLOBAL RESETS & STYLING BASE
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(rgba(var(--accent-2-rgb), 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

/* Premium Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-2-rgb), 0.2);
    border-radius: 20px;
    border: 2px solid var(--bg-main);
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-1-rgb), 0.5);
}

/* Custom Selection styling */
::selection {
    background: rgba(var(--accent-1-rgb), 0.35);
    color: var(--text-primary);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent-1);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--accent-2);
}

/* Interactive Ambient Glow Spots */
.ambient-glow {
    display: none;
}

/* Glassmorphism Styles -> Clean Minimalist Panels */
.glass-panel {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.glass-card {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
}

.glass-card::before {
    display: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 16px -6px rgba(0,0,0,0.03);
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

/* Custom Interactive Tech Badges */
.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(var(--accent-2-rgb), 0.08);
    border: 1px solid rgba(var(--accent-2-rgb), 0.18);
    border-radius: 30px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-1);
    font-weight: 500;
    transition: var(--transition-fast);
}
.tech-badge:hover {
    background: rgba(var(--accent-1-rgb), 0.15);
    border-color: var(--accent-1);
    transform: scale(1.05);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-2);
    color: #fff;
    border: 1px solid var(--accent-2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-1-rgb), 0.2);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: #f4f4f5;
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Container Structure */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-hdr {
    text-align: center;
    margin-bottom: 60px;
}

.section-hdr h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-hdr p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}


/* ==========================================
   3. NAVIGATION HEADER
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

header.scrolled {
    background: rgba(var(--bg-main-hsl), 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-1);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    transition: var(--transition-fast);
}

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

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

.nav-resume-btn {
    border: 1px solid rgba(var(--accent-1-rgb), 0.3) !important;
    border-radius: 20px;
    padding: 6px 16px !important;
    transition: var(--transition-fast) !important;
}

.nav-resume-btn:hover {
    background: rgba(var(--accent-1-rgb), 0.1);
    border-color: var(--accent-1) !important;
    color: var(--text-primary) !important;
}

.nav-resume-btn::after {
    display: none !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Switcher Toggle button */
.theme-panel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.theme-panel-btn:hover {
    border-color: var(--accent-1);
    background: rgba(var(--accent-1-rgb), 0.08);
    transform: rotate(45deg);
}

/* Custom Theme Drawer Panel */
.theme-drawer {
    position: fixed;
    top: 90px;
    right: 24px;
    width: 280px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 101;
    padding: 20px;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

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

.theme-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.theme-hdr h4 {
    font-size: 1rem;
    font-weight: 600;
}

.theme-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.theme-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.theme-option:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(var(--accent-1-rgb), 0.3);
}

.theme-option.active {
    background: rgba(var(--accent-1-rgb), 0.1);
    border-color: var(--accent-1);
    color: #fff;
}

.theme-swatch {
    display: flex;
    gap: 4px;
}

.swatch-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}


/* ==========================================
   4. HERO SECTION & TYPING EFFECT
   ========================================== */
.hero-sec {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 10;
}

.hero-subtitle-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(var(--accent-1-rgb), 0.25);
    background: rgba(var(--accent-1-rgb), 0.05);
    border-radius: 30px;
    font-family: var(--font-mono);
    color: var(--accent-1);
    font-size: 0.85rem;
    margin-bottom: 24px;
    animation: float-badge 3s infinite ease-in-out;
}

.hero-subtitle-badge svg {
    color: var(--accent-1);
    animation: rotate-sync 4s infinite linear;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-title .name-highlight {
    background: linear-gradient(135deg, var(--accent-1) 10%, var(--accent-2) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.typing-container {
    font-size: 1.5rem;
    color: var(--text-secondary);
    min-height: 2.2rem;
    margin-bottom: 24px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hero-para {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 32px auto;
}

.typed-text {
    color: var(--text-primary);
    font-weight: 600;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.3rem;
    background-color: var(--accent-1);
    animation: cursor-blink 0.8s infinite steps(2);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* ==========================================
   5. INTERACTIVE TERMINAL CONSOLE
   ========================================== */
.terminal-section {
    padding: 40px 0;
}

.terminal-panel {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition-smooth);
    background: var(--terminal-bg);
    margin: 0 auto;
    max-width: 850px;
}

.terminal-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08);
}

.terminal-header {
    background: var(--terminal-hdr);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

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

.t-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.t-btn-close { background-color: #ef4444; }
.t-btn-min { background-color: #eab308; }
.t-btn-max { background-color: #22c55e; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.terminal-status {
    width: 14px;
    height: 14px;
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-body {
    padding: 24px;
    height: 380px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    scrollbar-width: thin;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-welcome {
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.terminal-accent {
    color: var(--accent-1);
    font-weight: 600;
}

.terminal-green {
    color: #0f766e;
}

.terminal-yellow {
    color: #b45309;
}

.terminal-pink {
    color: #4f46e5;
}

.ascii-banner {
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: pre;
    color: var(--accent-1);
    margin: 10px 0;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terminal-prompt {
    color: var(--accent-1);
    white-space: nowrap;
    user-select: none;
    font-weight: 600;
}

.terminal-input-wrap {
    flex-grow: 1;
    display: flex;
    position: relative;
}

.terminal-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    caret-color: transparent; /* custom blinking cursor inside input line */
}

.terminal-caret {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--accent-1);
    position: absolute;
    animation: t-cursor-blink 0.8s infinite steps(2);
    pointer-events: none;
}


/* ==========================================
   6. PROJECTS SHOWCASE
   ========================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    list-style: none;
}

.filter-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-1);
    background: rgba(var(--accent-1-rgb), 0.04);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(var(--accent-2-rgb), 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(var(--accent-1-rgb), 0.1);
    border: 1px solid rgba(var(--accent-1-rgb), 0.2);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.project-highlights li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.project-highlights li span {
    color: var(--accent-1);
    font-weight: 600;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-screenshot {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.project-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-screenshot img {
    transform: scale(1.03);
}

.project-links {
    display: flex;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.proj-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.proj-link:hover {
    color: var(--accent-1);
}


/* ==========================================
   7. SKILLS DASHBOARD
   ========================================== */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.skills-category {
    padding: 28px;
    height: 100%;
}

.skills-category h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-1);
}

.skills-category h3 svg {
    color: var(--accent-1);
}

.skills-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(var(--accent-1-rgb), 0.08);
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-1-rgb), 0.15);
}


/* ==========================================
   8. STUDENTS TIMELINE (EXPERIENCE & EDUCATION)
   ========================================== */
.timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Timeline Vertical Line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 32px;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-color) 0%, var(--accent-1) 50%, var(--border-color) 100%);
    z-index: 0;
}

.timeline-item {
    margin-bottom: 50px;
    padding-left: 72px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Interactive Glowing Connectors */
.timeline-icon {
    position: absolute;
    left: 20px;
    top: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--accent-2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.timeline-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--accent-1);
    border-radius: 50%;
    display: block;
}

.timeline-item:hover .timeline-icon {
    border-color: var(--accent-1);
    box-shadow: 0 0 15px var(--accent-1);
}

.timeline-card {
    padding: 24px 30px;
}

.timeline-badge {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(var(--accent-1-rgb), 0.1);
    border: 1px solid rgba(var(--accent-1-rgb), 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-1);
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.timeline-org {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-1);
    margin-bottom: 10px;
}

.timeline-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 16px;
}

.timeline-details {
    list-style: none;
}

.timeline-details li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.timeline-details li::before {
    content: '➔';
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--accent-1);
    font-size: 0.75rem;
}


/* ==========================================
   9. CONTACT FORM
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.contact-card {
    padding: 30px;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--accent-1-rgb), 0.08);
    border: 1px solid rgba(var(--accent-1-rgb), 0.15);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Glassmorphic Form Fields */
.contact-form {
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    background: rgba(var(--bg-main-hsl), 0.5);
    border-color: var(--accent-1);
    box-shadow: 0 0 10px rgba(var(--accent-1-rgb), 0.2);
}

/* Floating labels effect */
.form-label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    background: transparent;
}

/* Label states: floating up */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-1);
    background: var(--bg-panel-solid);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
    animation: slideUp 0.3s ease;
}

.form-status.success {
    display: block;
    color: #10b981;
}

.form-status.error {
    display: block;
    color: #ef4444;
}


/* ==========================================
   10. FOOTER
   ========================================== */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

.social-links {
    display: flex;
    gap: 16px;
    list-style: none;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--accent-1);
    border-color: var(--accent-1);
    background: rgba(var(--accent-1-rgb), 0.08);
    transform: translateY(-3px);
}

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


/* ==========================================
   11. ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes floating-glow-slow {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(5vw, 5vh) scale(1.1) rotate(180deg);
    }
    100% {
        transform: translate(-3vw, -5vh) scale(0.9) rotate(360deg);
    }
}

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

@keyframes t-cursor-blink {
    50% { opacity: 0; }
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes rotate-sync {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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


/* ==========================================
   12. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        order: 2;
    }
    .contact-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 110;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-panel-solid);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .typing-container {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline-wrapper::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 45px;
    }
    .timeline-icon {
        left: 8px;
    }
    
    .theme-drawer {
        right: 12px;
        width: calc(100% - 24px);
    }
}

/* ==========================================
   13. CUSTOM CURSOR & FLOATING SHAPES
   ========================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Hide native cursor only when custom cursor is active (managed by JS class) */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor [role="button"],
body.has-custom-cursor .theme-option,
body.has-custom-cursor .project-card,
body.has-custom-cursor .filter-btn,
body.has-custom-cursor .logo {
    cursor: none !important;
}

.cursor-eye {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-1); /* Glows with selected theme color */
    border-radius: 50%;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease, 
                background-color 0.25s ease, 
                border-radius 0.25s ease;
    box-sizing: border-box;
}

.cursor-pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    background-color: var(--accent-2); /* Matches dark accent swatch of selected theme */
    border-radius: 50%;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.25s ease, 
                border-radius 0.25s ease;
}

/* Hover over links / interactive nodes */
.custom-cursor.hovered .cursor-eye {
    width: 32px;
    height: 32px;
    border-color: var(--accent-1);
    background-color: rgba(var(--accent-1-rgb), 0.05);
}

.custom-cursor.hovered .cursor-pupil {
    width: 4px;
    height: 4px;
    background-color: var(--accent-1);
}

/* Hover over inputs / text areas */
.custom-cursor.text-hovered .cursor-eye {
    width: 8px;
    height: 24px;
    border-radius: 4px;
    border-color: var(--accent-1);
    background-color: transparent;
}

.custom-cursor.text-hovered .cursor-pupil {
    width: 2px;
    height: 12px;
    border-radius: 1px;
    background-color: var(--accent-1);
}

/* Tech Background Canvas */
#tech-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}
