:root {
    --bg-dark: #030712; 
    --bg-deep: #020617;
    --text: #ffffff;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
        --border-highlight: rgba(255, 255, 255, 0.4);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.4;
    color: var(--text);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    
    /* Default Mouse coordinates to center */
    --mouse-x: 50vw;
    --mouse-y: 50vh;
}

.viewport-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% -10%, rgba(16, 185, 129, 0.08) 0%, rgba(5, 11, 20, 1) 100%);
    z-index: -2;
}
.viewport-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.08), transparent 40%);
    z-index: -1;
    pointer-events: none;
}
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 150px; /* Reduced size for a "smaller" feel */
    height: 150px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, rgba(45, 212, 191, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: opacity 0.3s ease;
}
/* Layout */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.section-container {
    width: 100%;
    max-width: 900px;
    margin: 60px 0;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
}

.section-title {
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 24px;
    text-align: left;
    color: #e2e8f0;
}

/* Nav */
.header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-capsule {
    position: relative;
    pointer-events: auto;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10, 20, 30, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 6px 12px;
    gap: 8px;
}

.nav-capsule a {
    position: relative;
    z-index: 1; /* Keeps text above bubble */
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 999px;
    transition: color 0.2s ease;
}

.nav-capsule a:hover {
    color: var(--text);
}

.nav-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle {
    display: none;
    pointer-events: auto;
    position: absolute;
    right: 20px;
    top: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    pointer-events: auto;
    position: absolute;
    top: 50px;
    right: 20px;
    background: rgba(10, 20, 30, 0.95);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(12px);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
}

.hero-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 2px;
}

.flag-icon {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    font-size: clamp(48px, 9vw, 110px);
    line-height: 1.05;
    letter-spacing: -1px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
    margin-bottom: 32px;
}

.title-line1 {
    display: block;
}

.title-line2 {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.cta-button {
    position: absolute;
    left: calc(100% + 16px);
    bottom: 15%; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 10px 20px;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.6);
}

.social-circles {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

/* Experience */
.tabs-wrapper {
    display: flex;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 24px;
    width: 100%;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
}

.timeline-box {
    border: 1px solid var(--border-highlight);
    background: rgba(255,255,255,0.01);
    padding: 32px 24px;
    border-radius: 12px;
    position: relative;
    width: 100%;
}

.timeline-line {
    position: absolute;
    left: 51px;
    top: 32px;
    bottom: 32px;
    width: 1px;
    background: var(--border-highlight);
    z-index: 1;
}

.timeline-item {
    display: flex;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0d1a24;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 24px;
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-heading);
}

.marker-poly {
    position: relative;
}
.marker-poly .inner-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
}

.marker-tvz {
    background: #0056b3;
    border-color: #0056b3;
}

.marker-esrp {
    background: #ffffff;
}

.marker-esrp svg {
    width: 28px;
    height: 28px;
    stroke: #0d1a24;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4px;
}

.timeline-date {
    font-weight: 400;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.timeline-role {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 2px;
    color: #ffffff;
}

.timeline-desc {
    font-weight: 400;
    font-size: 15px;
    color: #cbd5e1;
}

/* Tech Stack */
.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    font-weight: 400;
    color: #e2e8f0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.chip:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255,255,255,0.15);
}

.chip svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.2, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Projects Layout */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.view-more {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.view-more:hover {
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.project-card {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-highlight);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-12px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #fff;
}

.project-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--border-highlight);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 24px;
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-name {
    font-size: 20px;
    font-weight: 600;
}

.discover-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--text);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.discover-btn:hover {
    background: #fff;
    color: #000;
}

.project-desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #e2e8f0;
}

footer.section-container {
    max-width: 1200px;
    margin: 0 auto;    
    padding: 0 20px 40px 20px;
}

.footer-box {
    border: 1px solid var(--border-highlight);
    border-radius: 24px;
    padding: 60px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 24px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    flex: 1;
}

.footer-links-container {
    display: flex;
    gap: 60px;
    flex: 1;
    justify-content: flex-end;
}

.footer-column h4 {
    color: var(--text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    opacity: 0.8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    color: var(--muted);
    font-size: 13px;
    opacity: 0.5;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    animation: pulse 2s infinite ease-in-out;
}

.loader-text span {
    color: #60a5fa;
}

.loader-bar {
    width: 100px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: loading-slide 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.98); }
}

@keyframes loading-slide {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

::-webkit-scrollbar {
  display: none;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Responsive Variables */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title {
        font-size: 48px;
    }
    .title-line2 {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .cta-button {
        position: static;
        margin-top: 10px;
    }
    .timeline-box {
        padding: 24px 16px;
    }
    .timeline-line {
        left: 37px;
    }
    .timeline-marker {
        width: 42px;
        height: 42px;
        margin-right: 16px;
    }
    .marker-poly .inner-circle {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 768px) {
    .footer-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        gap: 40px;
    }
    
    .footer-links-container {
        justify-content: flex-start;
        gap: 40px;
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-brand {
        font-size: 28px;
    }
}

@media (max-width: 500px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.about-text {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 24px;
}

.about-text strong {
    color: var(--text);
}

.about-image-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
.jelly-cursor {
    position: fixed;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s;
    will-change: transform;
}
.divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 60px 0;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
}

@media (max-width: 900px) {
    .jelly-cursor {
        display: none;
    }
}