:root {
    /* Dora's Dawn Palette - Blue Edition */
    --bg-night: #0f172a;
    --bg-twilight: #1e293b;
    --bg-dawn-start: #334155;
    --bg-dawn-end: #475569;
    
    --accent-cyan: #87CEFA;
    --accent-electric-cyan: #64ffda;
    --accent-blue: #87CEFA;
    --accent-magenta: #bd34fe;
    --accent-lavender: #e9d5ff;
    --accent-sky: #bae6fd;

    --text-main: #ccd6f6;
    --text-dim: #8892b0;
    --text-dark: #0f172a;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-script: 'Dancing Script', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor override */
}

body {
    background: linear-gradient(135deg, var(--bg-night) 0%, var(--bg-twilight) 40%, var(--bg-dawn-start) 100%);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

#cursor.hovered {
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--accent-cyan);
}

/* Disable custom cursor on touch devices */
@media (hover: none) {
    #cursor {
        display: none;
    }
    * {
        cursor: auto;
    }
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem 2rem;
    position: relative;
    z-index: 1;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-night) 0%, transparent 100%);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4); }
    70% { opacity: 1; box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); }
    100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); }
}

.nav-socials {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-social-icon {
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-social-icon:hover {
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

/* Identity Section */
.identity-section {
    position: sticky;
    top: 8rem;
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    white-space: nowrap; /* Try to keep in one line */
}

/* Allow wrapping only on very small screens if absolutely necessary */
@media (max-width: 350px) {
    .hero-subtitle {
        white-space: normal;
    }
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 0.9;
    font-weight: 400;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-main), var(--accent-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-name-secondary {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 3rem;
}

/* Career Tabs */
.career-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    padding-bottom: 0.5rem;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--accent-cyan);
}

.tab-btn.active {
    color: var(--accent-cyan);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 -2px 10px var(--accent-cyan);
}

.career-item {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--glass-border);
    transition: border-color 0.3s;
    position: relative;
}

.career-item:hover {
    border-left-color: var(--accent-cyan);
}

.career-role {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.career-company {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Projects Grid */
.projects-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.section-title {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    color: var(--accent-lavender);
    margin-bottom: 1rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan); /* Changed from gold to cyan for consistency */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Card Variants */
.philosophy-card {
    grid-column: 1 / -1;
}

.philosophy-card .folder-icon, .philosophy-card .card-title { color: var(--accent-cyan); }
.card-dsk .folder-icon, .card-dsk .card-title { color: var(--accent-magenta); }
.card-c .folder-icon, .card-c .card-title { color: var(--accent-electric-cyan); }
.card-legacy .folder-icon, .card-legacy .card-title { color: var(--accent-cyan); }
.card-portal .folder-icon, .card-portal .card-title { color: var(--accent-blue); }

.philosophy-card:hover { border-color: var(--accent-cyan); }
.card-dsk:hover { border-color: var(--accent-magenta); }
.card-c:hover { border-color: var(--accent-electric-cyan); }
.card-legacy:hover { border-color: var(--accent-cyan); }
.card-portal:hover { border-color: var(--accent-blue); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.folder-icon {
    font-size: 2rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.glass-card:hover .folder-icon {
    color: var(--accent-cyan); /* Changed from gold to cyan */
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card-content {
    font-size: 0.95rem;
    color: var(--text-dim);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.tech-stack span {
    color: var(--accent-sky);
    background: rgba(186, 230, 253, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Tooltip Overlay */
.card-tooltip {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}

.glass-card:hover .card-tooltip {
    opacity: 1;
}

.tooltip-text {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Language Container and Menu */
.lang-container {
    position: relative;
    display: inline-block;
    padding-bottom: 10px; /* Invisible bridge to menu */
    margin-bottom: -10px; /* Compensate layout */
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-twilight);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0; /* Removed gap to ensure contact */
    z-index: 1000;
    min-width: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lang-container:hover .lang-menu,
.lang-menu:hover {
    display: flex;
}

.lang-opt {
    color: var(--text-dim);
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.lang-opt:hover,
.lang-opt.active {
    color: var(--accent-cyan); /* Changed from gold to cyan */
}

/* Career Header for Experience/Education sections */
.career-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.career-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.career-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

.highlight {
    color: var(--accent-cyan); /* Changed from gold to cyan */
}

/* Navigation Right Side */
.nav-right {
    display: flex;
    align-items: center;
}

.terminal-trigger {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.terminal-trigger:hover {
    color: var(--accent-cyan); /* Changed from gold to cyan */
}

/* Right Column Wrapper */
.right-column-wrapper {
    display: flex;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .identity-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding-top: 10rem; /* More space for stacked navbar */
    }

    nav {
        padding: 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        background: var(--bg-night);
        border-bottom: 1px solid var(--glass-border);
    }

    .status-indicator {
        order: 1;
        width: auto;
        justify-content: flex-start;
        gap: 1.5rem; /* More breathing room */
    }

    /* Hide decorative text on mobile to prevent overlap */
    .status-indicator span {
        display: none;
    }

    .nav-right {
        order: 2;
        position: static;
    }

    .nav-socials {
        order: 3;
        width: 100%;
        position: static;
        transform: none;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid var(--glass-border);
        margin-top: 0;
    }

    .projects-section {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 3.5rem;
    }
}