:root {
    --bg-dark: #020205;
    --text-light: #ffffff;
    --neon-cyan: #00e5ff;
    --neon-blue: #2979ff;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }
body { background: var(--bg-dark); color: var(--text-light); font-family: var(--font-body); overflow-x: hidden; overscroll-behavior: none; }
.mono { font-family: var(--font-mono); }

#liquid-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none;
}

.noise { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9000; opacity: 0.1; background: url('https://grainy-gradients.vercel.app/noise.svg'); mix-blend-mode: overlay; }
.cursor-dot { position: fixed; width: 4px; height: 4px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: difference; pointer-events: none; z-index: 9999; }
.cursor-wrapper { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; }
.cursor-outline { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); transform: translate(-50%, -50%); transition: transform 0.1s; mix-blend-mode: difference; }
body.hovering .cursor-outline { transform: translate(-50%, -50%) scale(1.5); border-color: var(--neon-cyan); }

.v4-nav { position: fixed; top: 0; width: 100%; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; mix-blend-mode: difference; color: #fff; pointer-events: none; }
.v4-nav * { pointer-events: auto; }
.logo { font-size: 1.5rem; text-decoration: none; color: #fff; font-weight: 700; }
.neon-dot { color: var(--neon-cyan); }
.switch-nav { border: 1px solid #fff; padding: 10px 20px; border-radius: 30px; text-decoration: none; color: #fff; font-size: 0.8rem; transition: all 0.3s; background: transparent; }
.switch-nav:hover { background: #fff; color: #000; }

.preloader-surge {
    position: fixed;
    inset: 0;
    background: #010205; 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.surge-line {
    width: 0%;
    height: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff, 0 0 40px #00e5ff;
    position: relative;
    z-index: 2;
    border-radius: 50%;
}

.surge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 0vh;
    background: #00e5ff;
    opacity: 0;
    z-index: 1;
}

.surge-text {
    position: absolute;
    bottom: 40px;
    color: #00e5ff;
    font-size: 14px;
    letter-spacing: 4px;
    opacity: 0;
}

#liquid-canvas {
    filter: brightness(0) contrast(2);
    transform: scale(1.05);
}

.depth-meter {
    position: fixed; left: 50px; top: 50%; transform: translateY(-50%);
    z-index: 100; mix-blend-mode: difference; color: #fff;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.depth-label { font-size: 0.7rem; letter-spacing: 4px; writing-mode: vertical-rl; transform: rotate(180deg); opacity: 0.5; }
.depth-value { font-size: 1.2rem; font-weight: 700; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--neon-cyan); }
.depth-line { width: 1px; height: 100px; background: linear-gradient(to bottom, var(--neon-cyan), transparent); }

.liquid-viewport { position: relative; width: 100vw; z-index: 1; }

.fluid-section {
    position: relative; width: 100vw; height: 120vh; 
    display: flex; justify-content: center; align-items: center;
}
.auto-height { height: auto; padding: 100px 0; }

.fluid-content { 
    width: 90%; max-width: 1200px; padding: 40px; 
    position: relative; z-index: 2; 
    will-change: transform, filter; 
}

.left-align { text-align: left; margin-right: auto; }
.right-align { text-align: right; margin-left: auto; }
.center-align { text-align: center; margin: 0 auto; }

.accent-tag { font-size: 1rem; color: var(--neon-cyan); margin-bottom: 20px; letter-spacing: 4px; text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
.massive-title { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 18rem); line-height: 0.8; margin: 0; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.section-title { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 10rem); line-height: 0.85; margin-bottom: 30px; text-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.outline { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.8); }
.subtitle { color: #fff; margin-top: 20px; font-size: 1rem; letter-spacing: 4px; }
.fluid-desc { font-size: 1.5rem; line-height: 1.6; max-width: 600px; font-weight: 400; color: rgba(255,255,255,0.9); display: inline-block; }

.project-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px; margin-top: 40px; text-align: left;
}

.glass-project-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
    padding: 40px; overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-project-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 229, 255, 0.15), transparent 40%);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none; z-index: 0;
}

.glass-project-card:hover {
    transform: translateY(-10px); border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0, 229, 255, 0.15);
}
.glass-project-card:hover::before { opacity: 1; }

.card-content { position: relative; z-index: 1; }
.project-id { color: var(--neon-cyan); font-size: 1rem; display: block; margin-bottom: 10px; opacity: 0.9; letter-spacing: 2px; }
.project-name { font-family: var(--font-display); font-size: 3.5rem; margin: 10px 0 20px; line-height: 0.9; color: #fff; text-shadow: 0 5px 15px rgba(0,0,0,0.4); }
.project-desc { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; }

.project-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.project-tags li { 
    background: rgba(0, 229, 255, 0.08); color: var(--neon-cyan); 
    padding: 6px 14px; border-radius: 30px; border: 1px solid rgba(0, 229, 255, 0.3);
    font-size: 0.85rem; letter-spacing: 1px;
}

.timeline-container { 
    position: relative; margin-top: 50px; padding-left: 50px; 
    max-width: 900px; display: flex; flex-direction: column; gap: 25px; 
}

.timeline-line {
    position: absolute; top: 0; left: 15px; width: 2px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--neon-cyan), rgba(0, 229, 255, 0.3), transparent);
}

.glass-row {
    position: relative; 
    display: grid; 
    grid-template-columns: 200px 1fr; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 12px;
    padding: 35px 40px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-row:hover { 
    background: rgba(0, 229, 255, 0.08); 
    border-color: rgba(0, 229, 255, 0.3); 
    transform: translateX(15px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.career-year { color: var(--neon-cyan); font-size: 1.1rem; letter-spacing: 2px; font-weight: 700; text-shadow: 0 0 10px rgba(0,229,255,0.3); }
.career-info { display: flex; flex-direction: column; gap: 8px; }
.career-company { font-family: var(--font-display); font-size: 3.2rem; margin: 0; line-height: 0.9; color: #fff; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.career-role { font-size: 1rem; color: rgba(255,255,255,0.8); letter-spacing: 1px; margin: 0; }

.huge-contact { display: inline-block; font-family: var(--font-display); font-size: clamp(5rem, 15vw, 15rem); color: var(--text-light); text-decoration: none; line-height: 0.8; transition: color 0.3s, text-shadow 0.3s; margin-bottom: 30px; }
.huge-contact:hover { color: var(--neon-cyan); text-shadow: 0 0 30px rgba(0,229,255,0.5); }
.footer-data { display: flex; justify-content: center; gap: 20px; font-size: 0.9rem; opacity: 0.7; }

.char { display: inline-block; will-change: transform, opacity, filter; }

@media (max-width: 768px) {
    .depth-meter { display: none; }
    .project-grid { grid-template-columns: 1fr; }
    .timeline-container { padding-left: 30px; gap: 15px; }
    .timeline-line { left: 5px; }
    .timeline-node { left: -32px; }
    .glass-row { grid-template-columns: 1fr; gap: 15px; padding: 25px; }
}