:root {
    --bg-base: #03050a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #0ea5e9;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --spacing-section: clamp(6rem, 12vw, 10rem);
    --wrapper-width: 1100px;
    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}


/* =========================================
   TYPOGRAPHY & UTILS
========================================= */
h1, h2, h3, h4 {
    letter-spacing: -0.04em;
    font-weight: 700;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    color: var(--accent-blue);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Scroll reveal overrides */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--transition-smooth), transform 1s var(--transition-smooth);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal[style*="--delay"] {
    transition-delay: calc(var(--delay) * 0.1s);
}


/* =========================================
   AMBIENT BACKGROUND ORBS & GRAIN
========================================= */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-base);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: drift 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 40vw; height: 40vw;
    background: rgba(14, 165, 233, 0.15);
    top: -10%; left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 35vw; height: 35vw;
    background: rgba(139, 92, 246, 0.15);
    bottom: -10%; right: -5%;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.orb-3 {
    width: 30vw; height: 30vw;
    background: rgba(14, 165, 233, 0.1);
    top: 40%; left: 60%;
    animation-duration: 25s;
}

@keyframes drift {
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.08;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    filter: invert(1);
    mix-blend-mode: overlay;
}

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

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
    border-radius: 50%;
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
}

.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.05);
    border-color: transparent;
    backdrop-filter: blur(2px);
}
.cursor-hover .cursor-dot {
    background-color: transparent;
}

.cursor-pointer .cursor-ring {
    width: 40px;
    height: 40px;
    border-color: var(--accent-blue);
    background-color: rgba(14, 165, 233, 0.1);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 1000;
    transition: all 0.4s var(--transition-smooth);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
}

.navbar.scrolled .navbar-inner {
    background: rgba(3, 5, 10, 0.7);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(14, 165, 233, 0.1);
}

.navbar-logo .logo-initials {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.05em;
}

.navbar-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after { width: 100%; }

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.navbar-cta:hover {
    background: var(--text-main);
    color: var(--bg-base);
}

.navbar-hamburger {
    display: none;
    background: none; border: none;
    flex-direction: column; gap: 4px;
    width: 24px; height: 20px;
    position: relative;
    z-index: 1001;
}
.navbar-hamburger span {
    width: 100%; height: 2px; background: var(--text-main);
    transition: 0.3s; border-radius: 2px;
}

.navbar-mobile {
    position: fixed;
    top: 5rem; left: 50%; transform: translateX(-50%) translateY(-20px);
    width: 90%; max-width: 400px;
    background: rgba(3, 5, 10, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex; flex-direction: column; gap: 1.5rem; align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.navbar-mobile.active {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-mobile-link {
    font-size: 1.1rem; font-weight: 500; color: var(--text-muted);
}
.nav-mobile-link.highlight-link {
    color: var(--accent-blue);
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border);
    width: 100%; text-align: center;
}

/* =========================================
   MAIN WRAPPER & SECTIONS
========================================= */
.wrapper {
    max-width: var(--wrapper-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: monospace;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 2px;
    background: var(--accent-gradient); border-radius: 2px;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: saturate(1.2) contrast(1.1);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(3, 5, 10, 0.3) 0%, 
        rgba(3, 5, 10, 0.8) 70%, 
        rgba(3, 5, 10, 1) 100%
    );
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 4rem;
    width: 100%;
    max-width: 1100px;
}

@media (min-width: 900px) {
    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .hero-text-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .hero-name {
        align-items: flex-start;
    }
    .hero-description {
        text-align: left;
        margin-left: 0;
    }
    
    .hero-section {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px; height: 8px;
    background: #10b981; border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.hero-name {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.hero-role {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blink-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-blue);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.4s var(--transition-spring), box-shadow 0.4s var(--transition-spring), background 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.magnetic-btn:active {
    transform: scale(0.95) !important;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-base);
    border: none;
}
.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-main);
}

.hero-social {
    display: flex; gap: 1.5rem; margin-bottom: 3rem;
}
.hero-social-link {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s var(--transition-bounce);
}
.hero-social-link:hover {
    color: var(--text-main); transform: translateY(-3px);
}

/* Photo side layout */
.hero-photo-container.side-photo {
    position: relative;
    top: auto; left: auto; transform: none;
    width: clamp(250px, 30vw, 450px);
    height: clamp(250px, 30vw, 450px);
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
    mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
    margin: 0 auto;
}
.hero-photo-img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-photo-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 60%);
    opacity: 0.2; mix-blend-mode: screen;
}

.hero-scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted);
}
.scroll-line {
    width: 1px; height: 60px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden;
}
.scroll-line::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 30px;
    background: var(--accent-blue); animation: scrollDown 2s infinite ease-in-out;
}
@keyframes scrollDown {
    0% { transform: translateY(-100%); } 100% { transform: translateY(200%); }
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 900px) {
    .about-container { grid-template-columns: 350px 1fr; }
}

.about-photo-wrapper {
    position: sticky; top: 8rem;
    display: flex; justify-content: center; align-items: flex-start;
}
.about-photo {
    width: 250px; height: 320px; border-radius: 24px; position: relative; z-index: 2; overflow: hidden;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.about-photo img {
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: 0.5s;
}
.about-photo:hover img { filter: grayscale(0%); transform: scale(1.05); }
.about-photo-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,5,10,0.8), transparent);
}
.about-photo-ring {
    position: absolute; width: 270px; height: 340px; border: 1px solid var(--accent-blue);
    border-radius: 28px; z-index: 1; top: -10px; opacity: 0.3; transform: rotate(-3deg);
    transition: 0.5s;
}
.about-photo-wrapper:hover .about-photo-ring { transform: rotate(0deg) scale(1.02); opacity: 0.6; }

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 1.5rem;
}
.about-intro {
    font-size: 1.15rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; line-height: 1.7;
}

/* Bento Grid */
.about-bento-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 600px) { .about-bento-grid { grid-template-columns: 1fr 1fr; } }

.bento-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px;
    padding: 2rem; position: relative; overflow: hidden; backdrop-filter: blur(10px);
    transition: transform 0.4s var(--transition-bounce), border-color 0.4s ease;
}
.bento-card-glow {
    position: absolute; top: -50px; left: -50px; width: 100px; height: 100px;
    background: var(--accent-blue); filter: blur(60px); opacity: 0; transition: 0.4s;
}
.bento-card:hover {
    transform: translateY(-5px); border-color: var(--glass-border-hover);
}
.bento-card:hover .bento-card-glow { opacity: 0.3; }

.bento-card.stats-card, .bento-card.interests { grid-column: 1 / -1; }

.bento-icon { font-size: 2rem; margin-bottom: 1rem; }
.bento-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-main); }
.bento-card p { font-size: 0.95rem; color: var(--text-muted); }

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
@media (min-width: 600px) { .about-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
    padding: 1rem; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid var(--glass-border);
    text-align: center;
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--text-main); }
.stat-plus { font-size: 1.5rem; font-weight: 700; color: var(--accent-blue); }
.stat-label { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 0.25rem; }

.interest-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.interest-tag {
    padding: 0.5rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 100px; font-size: 0.85rem; color: var(--text-muted); transition: 0.3s;
}
.interest-tag:hover { background: rgba(14, 165, 233, 0.1); color: var(--text-main); border-color: var(--accent-blue); }

/* =========================================
   GITHUB CALENDAR
========================================= */
.calendar-container {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px;
    padding: 2.5rem; backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.calendar-scroll-wrapper { width: 100%; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--glass-border) transparent; }
.calendar-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.calendar-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }
.calendar-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

.calendar-inner { display: flex; flex-direction: column; min-width: max-content; }
.calendar-months { display: flex; position: relative; height: 20px; margin-bottom: 0.5rem; }
.calendar-months span { font-size: 0.75rem; color: var(--text-muted); position: absolute; }
.calendar-grid { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-columns: 12px; grid-auto-flow: column; gap: 4px; }
.calendar-day { width: 100%; height: 100%; border-radius: 3px; background: rgba(255,255,255,0.05); transition: 0.2s; }
.calendar-day:hover { transform: scale(1.3); z-index: 2; box-shadow: 0 0 10px var(--accent-blue); box-shadow: 0 0 10px var(--accent-purple); }

/* New Colors: Obsidian -> Deep Violet -> Sky Blue */
.calendar-day[data-level="0"] { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.calendar-day[data-level="1"] { background: rgba(139, 92, 246, 0.3); }
.calendar-day[data-level="2"] { background: rgba(139, 92, 246, 0.6); }
.calendar-day[data-level="3"] { background: rgba(14, 165, 233, 0.6); }
.calendar-day[data-level="4"] { background: rgba(14, 165, 233, 1); box-shadow: 0 0 10px rgba(14, 165, 233, 0.4); }

.calendar-legend { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.calendar-legend span { font-size: 0.75rem; color: var(--text-muted); }
.legend-item { width: 12px; height: 12px; border-radius: 3px; }
.legend-item[data-level="0"] { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.legend-item[data-level="1"] { background: rgba(139, 92, 246, 0.3); }
.legend-item[data-level="2"] { background: rgba(139, 92, 246, 0.6); }
.legend-item[data-level="3"] { background: rgba(14, 165, 233, 0.6); }
.legend-item[data-level="4"] { background: rgba(14, 165, 233, 1); }

/* =========================================
   SKILLS SECTION
========================================= */
.skills-layout {
    display: grid; grid-template-columns: 1fr; gap: 4rem;
}
@media (min-width: 800px) { .skills-layout { grid-template-columns: 1fr 300px; } }

.skills-bars { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-bar-item { width: 100%; }
.skill-bar-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.skill-name { font-weight: 500; font-size: 1rem; color: var(--text-main); }
.skill-percent { font-size: 0.85rem; color: var(--text-muted); font-family: monospace; }

.skill-bar-track {
    width: 100%; height: 6px; background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 10px; overflow: hidden; position: relative;
}
.skill-bar-fill {
    height: 100%; width: 0; background: var(--accent-gradient); border-radius: 10px;
    position: relative; transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.skill-bar-glow {
    position: absolute; right: 0; top: -5px; width: 20px; height: 16px;
    background: #fff; filter: blur(5px); opacity: 0.5;
}

.skills-tags-section {
    background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 2rem;
    border-radius: 20px; height: max-content;
}
.skills-tags-title { font-size: 1.25rem; margin-bottom: 1.5rem; text-align: center; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.skill-tag {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 1rem; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 16px; width: calc(50% - 0.5rem); transition: 0.3s;
}
.skill-tag:hover {
    background: rgba(139, 92, 246, 0.1); border-color: var(--accent-purple); transform: translateY(-5px);
}
.skill-tag-icon { font-size: 1.5rem; }
.skill-tag span:last-child { font-size: 0.8rem; color: var(--text-muted); }

/* =========================================
   PROJECTS SECTION
========================================= */
.projects-grid {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 800px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }

.project-item { perspective: 1000px; height: 400px; }
.project-inner {
    width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.project-item.flipped .project-inner { transform: rotateY(180deg); }

.project-front, .project-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    border-radius: 24px; padding: 2.5rem; display: flex; flex-direction: column; overflow: hidden;
}

.project-front {
    background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
}
.project-glow {
    position: absolute; top: 0; right: 0; width: 200px; height: 200px;
    background: rgba(14, 165, 233, 0.15); filter: blur(60px); border-radius: 50%;
}
.project-glow.glow-purple { background: rgba(139, 92, 246, 0.15); }

.project-header { z-index: 2; position: relative; }
.project-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-blue); margin-bottom: 0.5rem; font-weight: 600; }
.project-header h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-main); }
.project-header p { font-size: 1rem; color: var(--text-muted); max-width: 80%; }

.project-view-btn {
    margin-top: auto; align-self: flex-start; background: none; border: none;
    display: flex; align-items: center; gap: 0.5rem; color: var(--text-main); font-weight: 600;
    font-size: 0.95rem; z-index: 2; padding: 0.5rem 0; cursor: none;
}
.project-view-btn svg { transition: transform 0.3s ease; }
.project-item:hover .project-view-btn svg { transform: translateX(5px); }

/* Mini Solar System */
.mini-solar-system {
    position: absolute; bottom: 2rem; right: 2rem; width: 120px; height: 120px; z-index: 1; opacity: 0.6; pointer-events: none;
}
.sun { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 15px rgba(255,255,255,0.8); }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-1 { width: 40px; height: 40px; animation: spin 4s linear infinite; }
.orbit-2 { width: 60px; height: 60px; animation: spin 7s linear infinite; }
.orbit-3 { width: 85px; height: 85px; animation: spin 10s linear infinite; }
.orbit-4 { width: 110px; height: 110px; animation: spin 15s linear infinite; }
.planet { position: absolute; top: -3px; left: 50%; transform: translateX(-50%); border-radius: 50%; }
.planet-1 { width: 6px; height: 6px; background: #94a3b8; }
.planet-2 { width: 8px; height: 8px; background: #38bdf8; box-shadow: 0 0 8px rgba(56,189,248,0.5); }
.planet-3 { width: 7px; height: 7px; background: #f87171; }
.planet-4 { width: 10px; height: 10px; background: #fbbf24; }

/* Placeholder Anim */
.placeholder-animation { position: absolute; bottom: 3rem; right: 3rem; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; }
.pulse-ring { position: absolute; inset: 0; border: 1px solid var(--accent-purple); border-radius: 50%; animation: pulseRing 3s linear infinite; opacity: 0; }
.pulse-ring.delay-1 { animation-delay: 1s; }
.pulse-ring.delay-2 { animation-delay: 2s; }
@keyframes pulseRing { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(2); opacity: 0; } }
.placeholder-icon { font-size: 1.5rem; z-index: 2; }

/* =========================================
   PROJECT MODAL
========================================= */
.project-modal {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; justify-content: center; align-items: center;
    visibility: hidden; opacity: 0;
    transition: visibility 0.4s, opacity 0.4s var(--transition-spring);
}
.project-modal.active { visibility: visible; opacity: 1; }

.project-modal-bg {
    position: absolute; inset: 0;
    background: rgba(3, 5, 10, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

.project-modal-content {
    position: relative; width: 90%; max-width: 800px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 3rem; transform: scale(0.9) translateY(30px);
    transition: transform 0.6s var(--transition-spring);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.project-modal.active .project-modal-content { transform: scale(1) translateY(0); }

.close-modal {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}

.pm-body { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.pm-tag { font-size: 0.8rem; font-weight: 600; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.1em; }
.pm-title { font-size: 2.5rem; margin-bottom: 0.5rem; }
.pm-video-container { width: 100%; border-radius: 12px; overflow: hidden; position: relative; min-height: 200px; display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.3); margin: 1rem 0; }
.pm-desc { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.pm-link { padding: 1rem 2rem; }

/* =========================================
   EXPERIENCE SECTION (Horizontal Scroll)
========================================= */
.experience-section {
    padding-bottom: 0;
}

.horizontal-scroll-container {
    height: 200vh; /* Scroll length */
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.pin-wrap-sticky {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.pin-wrap {
    display: flex;
    gap: 4rem;
    padding: 0 10vw;
    will-change: transform;
    align-items: center;
}

.timeline { margin: 0; display: flex; align-items: center; position: relative; height: 100%; }

.timeline-line {
    position: absolute; left: 0; top: 50%; width: 100%; height: 2px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple), transparent);
    transform: translateY(-50%); z-index: -1;
}

.timeline-start-node {
    flex-shrink: 0; width: 250px; padding-right: 2rem; text-align: right;
}
.timeline-start-node h3 { font-size: 2.5rem; color: var(--text-muted); line-height: 1.1; }

.timeline-item { 
    width: 350px; flex-shrink: 0; position: relative; 
    display: grid; grid-template-rows: 1fr auto 1fr;
    gap: 2rem; align-items: center; height: 500px;
}
.timeline-item[data-side="right"] .timeline-content { grid-row: 3; align-self: start; }
.timeline-item[data-side="left"] .timeline-content { grid-row: 1; align-self: end; }

.timeline-dot {
    grid-row: 2; position: relative; width: 16px; height: 16px; z-index: 2; justify-self: center; margin: 0;
}
.timeline-dot-inner { width: 100%; height: 100%; background: var(--bg-base); border: 2px solid var(--accent-blue); border-radius: 50%; position: relative; z-index: 2; }
.timeline-dot-pulse { position: absolute; inset: -5px; background: var(--accent-blue); border-radius: 50%; filter: blur(5px); opacity: 0.5; animation: pulseDot 2s infinite; }

.timeline-content {
    background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 2rem;
    border-radius: 20px; width: 100%; text-align: left;
    transition: transform 0.4s var(--transition-spring);
}
.timeline-item:hover .timeline-content { transform: scale(1.05); }

.timeline-date { display: inline-block; padding: 0.3rem 0.8rem; background: rgba(14, 165, 233, 0.1); color: var(--accent-blue); border-radius: 100px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.timeline-content h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.timeline-company { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.timeline-content p:last-child { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   HOBBIES SECTION
========================================= */
.hobbies-container { display: flex; flex-direction: column; gap: 4rem; }
.hobby-card {
    position: relative; background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 3rem; overflow: hidden; transform-style: preserve-3d;
}
.hobby-card-bg {
    position: absolute; inset: 0; background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%); z-index: 0; opacity: 0; transition: opacity 0.5s;
}
.hobby-card:hover .hobby-card-bg { opacity: 1; }

.hobby-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; position: relative; z-index: 2; transform: translateZ(30px); }
.hobby-icon { font-size: 2rem; }
.hobby-header h3 { font-size: 1.5rem; color: var(--text-main); }
.hobby-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; position: relative; z-index: 2; transform: translateZ(20px); }

.hobby-slider-wrapper { width: 100%; overflow: hidden; cursor: grab; position: relative; z-index: 2; transform: translateZ(40px); padding-bottom: 1rem; }
.hobby-slider-wrapper:active { cursor: grabbing; }
.hobby-slider { display: flex; gap: 1.5rem; width: max-content; }

.album-slot {
    width: 250px; height: 160px; border-radius: 16px; overflow: hidden; position: relative;
    border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.3s ease;
}
.album-slot.vertical { width: 180px; height: 250px; }
.album-slot img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.album-slot:hover img { transform: scale(1.1); }

.slot-overlay {
    position: absolute; inset: auto 0 0 0; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); display: flex; align-items: flex-end; padding: 1rem;
}
.slot-overlay span { color: #fff; font-weight: 500; font-size: 0.9rem; transform: translateY(10px); opacity: 0; transition: 0.3s; }
.album-slot:hover .slot-overlay span { transform: translateY(0); opacity: 1; }

.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,0.4); color: #fff; transition: 0.3s; z-index: 2;
}
.album-slot.video-slot:hover .play-btn { background: #fff; color: #000; transform: translate(-50%, -50%) scale(1.1); }

/* =========================================
   CONTACT SECTION & FOOTER
========================================= */
.contact-section { margin-top: 4rem; padding-bottom: 2rem; }
.contact-inner {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 32px;
    padding: clamp(2rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden;
}
.contact-inner::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-blue), transparent);
}
.contact-inner::after {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 100px;
    background: var(--accent-blue); filter: blur(80px); opacity: 0.15;
}

.contact-headline { margin-bottom: 3rem; }
.contact-headline h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem; }
.contact-headline p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

.contact-links {
    display: flex; flex-direction: column; gap: 1rem; max-width: 500px; margin: 0 auto 3rem auto;
}
@media (min-width: 600px) { .contact-links { flex-direction: row; } }

.contact-item {
    flex: 1; display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border); border-radius: 20px; transition: all 0.3s ease; text-align: left;
}
.contact-item:hover {
    background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); transform: translateY(-3px);
}
.contact-item-icon {
    width: 48px; height: 48px; border-radius: 50%; background: rgba(14, 165, 233, 0.1); color: var(--accent-blue);
    display: flex; justify-content: center; align-items: center;
}
.contact-item:nth-child(2) .contact-item-icon { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.contact-item-text { display: flex; flex-direction: column; }
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact-value { font-weight: 600; color: var(--text-main); font-size: 0.9rem; }
.contact-arrow { margin-left: auto; color: var(--text-muted); transition: 0.3s; }
.contact-item:hover .contact-arrow { color: var(--text-main); transform: translateX(3px) translateY(-3px); }

.contact-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 4rem; }
.social-orb {
    width: 50px; height: 50px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--text-muted); transition: all 0.3s var(--transition-bounce);
}
.social-orb:hover {
    background: var(--text-main); color: var(--bg-base); transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* =========================================
   LIGHTBOX
========================================= */
.lightbox-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
    z-index: 100000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s;
}
.lightbox-modal.active { opacity: 1; display: flex; }
.lightbox-content { max-width: 90vw; max-height: 90vh; position: relative; }
#lightbox-img, #lightbox-video { max-width: 100%; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: none; }
#lightbox-caption { text-align: center; color: #fff; margin-top: 1rem; font-size: 1.1rem; }
.close-lightbox { position: absolute; top: 2rem; right: 2rem; color: #fff; font-size: 2.5rem; font-weight: 300; transition: 0.3s; z-index: 2; }
.close-lightbox:hover { transform: scale(1.2); }

/* =========================================
   RESPONSIVE OVERRIDES
========================================= */
@media (max-width: 768px) {
    .navbar-links, .navbar-cta { display: none; }
    .navbar-hamburger { display: flex; }
    .hero-ctas { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 3rem auto; }
    .magnetic-btn { width: 100%; }
    .hero-photo-container { position: relative; top: 0; left: 0; transform: none; margin-top: 2rem; width: 100%; height: 300px; opacity: 1; }
    .about-photo-wrapper { position: relative; top: 0; margin-bottom: 2rem; }
    .section-label { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .contact-item { padding: 1rem; }
    .contact-value { font-size: 0.8rem; }
}
