/* Font Faces */
@font-face {
    font-family: 'Stack Sans Notch';
    src: url('fonts/StackSansNotch-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('fonts/Rubik-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('fonts/Rubik-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Shadows Into Light Two';
    src: url('fonts/ShadowsIntoLightTwo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;  
    scrollbar-width: none; 
}
*::-webkit-scrollbar {
  display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    touch-action: pan-y pan-x;
}

/* Layout variables used to anchor the island near the centered content area. 
   Adjust `--content-max-width` to match your main container max-width. */
:root {
    --content-max-width: 1200px;
    --content-max-width-small: 960px;
    --content-max-width-large: 1400px;
    --island-gap: 24px; /* horizontal gap from content edge */
    --island-top: 8%; /* consistent vertical offset for island visuals */
    --island-shift-right: 40px; /* positive value pushes island further right (can go offscreen) */
}

/* Navigation Bar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent; /* seamless by default */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: none;
    transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.88);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 44px; /* slightly tighter for a sleeker bar */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-signature {
    height: 32px;
    width: auto;
    /* Force SVG logo to render white regardless of original colors */
    filter: brightness(0) invert(1);
    transition: opacity 170ms linear, transform 170ms cubic-bezier(.2,.9,.2,1);
    will-change: transform, opacity;
}

.nav-logo:hover .nav-signature {
    /* keep hover lightweight: small lift + slight opacity increase */
    opacity: 0.98;
    transform: translateY(-1px) scale(1.001);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(248, 248, 248, 0.88);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 180ms ease, transform 180ms cubic-bezier(.2,.9,.2,1);
    letter-spacing: 0.28px;
    will-change: transform, opacity;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 56%; /* fixed target width, animate via scaleX for GPU acceleration */
    height: 2px;
    background: rgba(73, 104, 197, 0.92); /* royal blue from existing palette */
    border-radius: 2px;
    transition: transform 210ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 160ms ease;
    transform-origin: center;
    opacity: 0.96;
    will-change: transform, opacity;
}

.nav-link:hover {
    color: rgba(248, 248, 248, 1);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* keyboard focus styling for accessibility */
.nav-link:focus-visible {
    outline: none;
    color: rgba(248, 248, 248, 1);
}

.nav-link:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 30px;
    }
    
    .nav-signature {
        height: 28px;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px 20px;
    }
    
    .nav-signature {
        height: 24px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}


#glassCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}


#glassCanvas.hidden {
    display: none;
}

/* Loader Styling */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh; /* Use dynamic viewport height for mobile browsers */
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
    background-color: #0a0a0a; /* Cover any gaps between sections */
}

.loader-section {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50vh;
    min-height: 50vh;
    min-height: 50dvh;
    background-color: #0a0a0a;
    transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader-section-top {
    top: 0;
}

.loader-section-bottom {
    bottom: 0;
    display: flex;
    align-items: center; /* center to avoid vertical crop */
    justify-content: center;
    padding: 40px 0 30px; /* balanced vertical padding */
}

.loader-content {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.signature-animation {
    width: 100%;
    max-width: 620px;
    opacity: 0.97;
    overflow: visible; /* prevent stroke cropping */
    padding: 12px 8px;
}

.signature-animation svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.signature-path {
    will-change: stroke-dashoffset;
    opacity: 0;
    visibility: hidden;
    will-change: stroke-dashoffset, opacity;
    stroke-width: 13px
}

.loader-percentage {
    font-family: 'Stack Sans Notch', monospace;
    font-size: clamp(60px, 12vw, 100px);
    color: #f8f8f8;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.02em;
}

.loader-container.split {
    background-color: transparent;
}

.loader-container.split .loader-section-top {
    transform: translateY(-100%);
}

.loader-container.split .loader-section-bottom {
    transform: translateY(100%);
}

/* Hero Section Styling */
.hero {
    position: relative;
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.name {
    font-family: 'Stack Sans Notch', sans-serif;
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    color: white;
    position: relative;
    margin: 0;
    pointer-events: auto;
}

.greeting {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

.title {
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;
    color: white;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0;
}

.performance-note {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    color: rgba(248, 248, 248, 0.5);
    font-style: italic;
    position: absolute;
    bottom: -2rem;
    right: 0;
    margin: 0;
    text-align: right;
    max-width: 400px;
    animation: fadeInNote 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeInNote {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.loaded {
    overflow-y: auto;
    overflow-x: hidden;
}


.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll Indicator Styling */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInScroll 1s ease-in 2s forwards;
}

.scroll-indicator.fade-out {
    opacity: 0 !important;
    transition: opacity 0.8s ease;
}

@keyframes fadeInScroll {
    to {
        opacity: 1;
    }
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(248, 248, 248, 0.8);
    border-radius: 15px;
    position: relative;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background-color: rgba(248, 248, 248, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.scroll-text {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    color: rgba(248, 248, 248, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* About Section Styling */
.about-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
    background-color: #0a0a0a;
}


/* Island: base styles (will be refined by breakpoint rules below) */
.island-canvas {
    position: absolute;
    top: var(--island-top);
    /* Anchor near the right edge of the centered content area; subtract
       --island-shift-right to push the island further right (may go offscreen) */
    right: calc((100% - var(--content-max-width)) / 2 + var(--island-gap) - var(--island-shift-right));
    width: 320px;
    height: 380px;
    z-index: 3;
    pointer-events: auto;
    cursor: grab;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.island-static {
    position: absolute;
    top: var(--island-top);
    right: calc((100% - var(--content-max-width)) / 2 + var(--island-gap) - var(--island-shift-right));
    width: 280px;
    height: 340px;
    object-fit: contain;
    z-index: 1; 
    opacity: 0.9;
    pointer-events: none;
    display: none;
    transform: translateZ(0);
    transition: opacity 0.5s ease-in, right 300ms ease, top 300ms ease;
}

.island-static.active {
    display: block;
}

.island-static.lazy {
    opacity: 0;
}

.island-static.lazy:not([src=""]) {
    opacity: 0.9;
}




/* Keep the 3D island visually anchored to the right edge of the centered content
   on wide and ultra-wide screens. Uses calc() so the island stays near the
   content area (which has a max-width around 1200-1400px) rather than being
   pushed too far into the large viewport gutter. */
/* Wide screens (1200px and up) — anchor island to content edge and increase size */
@media (min-width: 1200px) {
    /* On large screens, stop pushing the island offscreen — keep it near content */
    :root {
        --island-shift-right: 0px;
    }
    .island-canvas {
        right: calc((100% - var(--content-max-width)) / 2 + var(--island-gap) - var(--island-shift-right));
        top: var(--island-top);
        width: 360px;
        height: 440px;
        z-index: 3;
    }

    .island-static {
        right: calc((100% - var(--content-max-width)) / 2 + var(--island-gap) - var(--island-shift-right));
        top: var(--island-top);
        width: 320px;
        height: 380px;
        z-index: 1;
    }
}

/* Ultra-wide screens: nudge island slightly inward so it stays visually close
   to the content on very large viewports */
@media (min-width: 1600px) {
    /* On very wide screens, only nudge slightly to maintain visual closeness */
    :root {
        --island-shift-right: 12px;
    }
    .island-canvas,
    .island-static {
        right: calc((100% - var(--content-max-width-large)) / 2 + 36px - var(--island-shift-right));
    }
}

/* Island Hint Cursor Animation */
.island-hint-cursor {
    position: absolute;
    top: var(--island-top);
    /* align hint near the island position */
        right: calc((100% - var(--content-max-width)) / 2 + var(--island-gap) + 24px - var(--island-shift-right));
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    display: none; /* hide cursor hint by default */
}

.island-hint-cursor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.island-hint-cursor.animate {
    animation: dragHintLeftRight 3s ease-in-out forwards;
}

@keyframes dragHintLeftRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(0) scale(0.8);
    }
    5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0) scale(1);
    }
    15% {
        transform: translate(-50%, -50%) translateX(-60px) scale(1);
    }
    25% {
        transform: translate(-50%, -50%) translateX(60px) scale(1);
    }
    35% {
        transform: translate(-50%, -50%) translateX(-60px) scale(1);
    }
    45% {
        transform: translate(-50%, -50%) translateX(60px) scale(1);
    }
    55% {
        transform: translate(-50%, -50%) translateX(0) scale(1);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(0) scale(0.8);
    }
}

.about-content {
    position: relative;
    z-index: 12;
    max-width: 800px;
    text-align: center;
}

.about-title {
    font-family: 'Stack Sans Notch', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

.about-text {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(248, 248, 248, 0.9);
    max-width: 600px;
    margin: 0 auto;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-spacing: 0.05em;
    white-space: normal;
}

.about-text strong {
    color: transparent;
    background: linear-gradient(to bottom, rgba(248, 248, 248, 0.95) 50%, #4968c5 100%);
    background-clip: text;
    -webkit-background-clip: text;
}


.skills-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-top: 90px;
    position: relative;
    z-index: 5;
}


.skill-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}


.skill-icon {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.skill-icon:hover {
    transform: translateY(-6px);
}


.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
    position: relative;
    z-index: 2;
}


.skill-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.skill-name {
    font-family: 'Stack Sans Notch', sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: 0.08em;
}

.skill-years {
    font-family: 'Rubik', sans-serif;
    font-size: 0.85rem;
    color: rgba(248, 248, 248, 0.75);
    font-weight: 300;
}


.skill-caption {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms cubic-bezier(.2,.9,.3,1), transform 220ms cubic-bezier(.2,.9,.3,1);
    pointer-events: none;
}

.skill-wrap:hover .skill-caption,
.skill-wrap:focus-within .skill-caption {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.skill-wrap:hover .skill-name,
.skill-wrap:focus-within .skill-name {
    transform: translateY(-1px);
}


/* Responsive Styling */
@media (max-width: 1024px) {
    .name {
        font-size: clamp(5rem, 12vw, 10rem);
    }
    
    .greeting, .title {
        font-size: 1rem;
    }
    
    .island-canvas {
        /* tablet / small-laptop — keep island visible but smaller and anchored
           closer to content center so it doesn't overlap text */
        width: 250px;
        height: 300px;
        right: calc((100% - var(--content-max-width-small)) / 2 + 12px - var(--island-shift-right));
        top: var(--island-top);
        z-index: 3;
    }

    .island-static {
        width: 240px;
        height: 300px;
        right: calc((100% - var(--content-max-width-small)) / 2 + 12px - var(--island-shift-right));
        top: var(--island-top);
        z-index: 1;
    }
    
    .about-section {
        padding: 80px 30px;
        overflow: hidden;
    }
    
    .about-content {
        position: relative;
        z-index: 12;
    }
}

/* Fix for in-between widths where the island was overlapping (1025px - 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
    /* reduce shift for mid-range so island stays nearer to content */
    :root { --island-shift-right: 20px; }
    .island-canvas {
        /* mid range — anchored to content with slightly smaller size */
        width: 300px;
        height: 360px;
        right: calc((100% - var(--content-max-width)) / 2 + var(--island-gap));
        top: var(--island-top);
        z-index: 3;
    }

    .island-static {
        width: 280px;
        height: 340px;
        right: calc((100% - var(--content-max-width)) / 2 + var(--island-gap));
        top: var(--island-top);
        z-index: 1;
    }
}


@media (max-width: 768px) {
    body.loaded {
        overflow-y: auto;
        overflow-x: hidden;
    }
    
   
    #glassCanvas {
        display: none !important;
    }
    
   
    .island-canvas,
    .island-static {
        display: none !important;
    }
    
   
    .scroll-indicator {
        display: none !important;
    }
    
    .blackhole-static {
        width: 90%;
        max-width: 600px;
    }
    
    .about-section {
        padding: 80px 30px;
    }
    
    .about-content {
        margin-bottom: 0;
    }
    
    .skills-container {
        gap: 40px;
        margin-top: 50px;
    }
    
    .skill-icon {
        width: 80px;
        height: 80px;
    }
    
    .hero-section {
        padding: 0 20px;
    }
    
    .greeting {
        font-size: 0.9rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
}


@media (max-width: 480px) {
    .name {
        font-size: clamp(4rem, 12vw, 6rem);
    }
    
    .greeting {
        font-size: 0.8rem;
    }
    
    .title {
        font-size: 0.95rem;
    }
    
   
    
    .blackhole-static {
        width: 95%;
        max-width: 400px;
    }
    
    .about-section {
        padding: 60px 20px;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .skills-container {
        gap: 30px;
        margin-top: 40px;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
    }
    
   
    .portfolio-track.show-swipe-hint {
        animation: swipeLeftOnce 2.5s ease-in-out forwards;
    }
    
    @keyframes swipeLeftOnce {
        0% {
            transform: translateX(0);
        }
        15% {
            transform: translateX(-60px);
        }
        35% {
            transform: translateX(-60px);
        }
        50% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(0);
        }
    }
    
   
    .portfolio-item {
        padding: 60px 20px;
    }
    
    .portfolio-content {
        max-width: calc(100vw - 40px);
    }
    
    .portfolio-title {
        font-size: 2rem;
    }
    
    .portfolio-description {
        font-size: 1rem;
        padding: 0 5px;
    }
}

/* Hobby Section Styling */
.hobby-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px 120px 50px;
    margin-bottom: 50px;
    background-color: #0a0a0a;
   
    overflow: visible;
}

.hobby-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hobby-title {
    font-family: 'Shadows Into Light Two', cursive;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: rgba(248, 248, 248, 0.95);
    margin-bottom: 60px;
    font-weight: normal;
    letter-spacing: 0.5px;
}


.hobby-title-group {
    position: relative;
    display: inline-block;
    text-align: left;
    margin-bottom: 60px;
}

.hobby-subtitle {
    position: absolute;
    right: 0;
    bottom: -6px;
    transform: translateY(-40%);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    pointer-events: none;
    z-index: 2;
}

.hobby-subtitle-text {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: rgba(248, 248, 248, 0.85);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.hobby-underline {
    width: 100%;
    height: 16px;
    overflow: visible;
    display: block;
    pointer-events: none;
}

.hobby-underline path {
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
}

.hobby-underline.draw path {
    animation: draw-diagonal 1.8s cubic-bezier(.65,.05,.36,1) forwards;
}

@keyframes draw-diagonal {
    to { stroke-dashoffset: 0; }
}

.hobby-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.hobby-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 35px;
    background: rgba(248, 248, 248, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(248, 248, 248, 0.1);
    max-width: 650px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hobby-item:nth-child(1) {
    animation-delay: 0.1s;
}

.hobby-item:nth-child(2) {
    animation-delay: 0.2s;
}

.hobby-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hobby-item:hover {
    transform: translateY(-3px);
    background: rgba(248, 248, 248, 0.04);
    border-color: rgba(109, 179, 242, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hobby-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    opacity: 0.9;
    transition: transform 0.3s ease;
}


.hobby-icon {
    width: 3.8rem;
    height: 3.8rem;
    display: block;
    object-fit: contain;
}


.hobby-icon--small {
    width: 3.8rem;
    height: 3.8rem;
}

.hobby-icon--medium {
    width: 4rem;
    height: 4rem;
}

.hobby-icon--large {
    width: 4.5rem;
    height: 4.5rem;
}


.hobby-item:nth-child(3) .hobby-icon {
    margin-left: -6px;
}

.hobby-item:hover .hobby-icon {
    transform: scale(1.1);
}

.hobby-text {
    font-family: 'Rubik', sans-serif;
    font-size: 1.15rem;
    color: rgba(248, 248, 248, 0.85);
    text-align: left;
    line-height: 1.6;
    font-weight: 300;
}


.hobby-bg-element {
   
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 179, 242, 0.08), transparent);
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
    will-change: transform;
   
    animation-name: floatAround;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

.hobby-bg-element:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -10%;
    left: -5%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.hobby-bg-element:nth-child(2) {
    width: 350px;
    height: 350px;
    bottom: -50px;
    right: -5%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.hobby-bg-element:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 40%;
    right: -10%;
    animation-duration: 14s;
    animation-delay: 4s;
}


@keyframes floatAround {
    0% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(6px, -8px, 0); }
    50% { transform: translate3d(-6px, 6px, 0); }
    75% { transform: translate3d(8px, 4px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}


@media (prefers-reduced-motion: reduce) {
    .hobby-bg-element {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .hobby-section {
        padding: 80px 30px 100px 30px;
        margin-bottom: 100px;
    }
    .hobby-title-group {
        display: block;
        text-align: center;
        margin-bottom: 70px;
    }
    .hobby-subtitle {
        position: static;
        right: auto;
        bottom: auto;
        transform: none;
        display: flex;
        align-items: flex-end;
        margin-top: 10px;
        white-space: normal;
        text-align: right;
    }
    .hobby-underline { width: 180px; height: 20px; }
    .hobby-underline { width: 100%; height: 16px; }
    
    .hobby-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px;
    }
    
    .hobby-text {
        text-align: center;
        font-size: 1.05rem;
    }
    
    .hobby-icon {
       
        width: 2.8rem;
        height: 2.8rem;
        font-size: 2.5rem;
    }

   
    .hobby-item:nth-child(3) .hobby-icon {
        margin-left: 0;
    }
    
    .hobby-bg-element {
        opacity: 0.2;
    }
}

/* Firework Particle Styling */
.firework-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}


.custom-scrollbox {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scrollbox-inner {
    width: 36px;
    height: 160px;
    background: rgba(12,12,12,0.55);
    border-radius: 20px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 200ms ease, transform 200ms ease;
    pointer-events: none;
}

.custom-scrollbox.visible .scrollbox-inner {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


#customScrollbar {
    width: 8px;
    height: 100%;
    position: relative;
    background: rgba(0,0,0,0.0);
    border-radius: 999px;
    cursor: pointer;
    touch-action: none;
}


.custom-thumb {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transition: box-shadow 120ms ease, transform 120ms ease;
    will-change: transform;
}

.scrollbox-inner:hover .custom-thumb,
.custom-thumb:active {
    transform: translateX(-50%) scale(1.02);
}


#customScrollbar:focus .custom-thumb {
    box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 0 6px rgba(73,104,197,0.09);
}


@media (max-width: 420px) {
    .custom-scrollbox { display: none; }
}

/* Portfolio Section Styling */
.portfolio-scroll-container {
    position: relative;
   
   
    height: 400vh;
}

.portfolio-section {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: #0a0a0a;
    overflow: hidden;
}

.portfolio-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-track {
    display: flex;
    height: 100%;
    width: max-content;
    will-change: transform;
    transition: transform 0.1s ease-out;
}


.portfolio-item {
    display: flex;
    align-items: center;
    width: 100vw;
    height: 100%;
    padding: 80px 100px;
    gap: 60px;
    flex-shrink: 0;
    will-change: transform;
}

.portfolio-image {
    position: relative;
    flex: 0 0 45%;
    height: 70%;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}


.portfolio-item.no-image .portfolio-image {
    background: linear-gradient(135deg, rgba(73, 104, 197, 0.3), rgba(109, 179, 242, 0.2));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.portfolio-item.no-image .portfolio-image {
    display: none;
}

.portfolio-item.no-image {
    justify-content: center;
}

.portfolio-item.no-image .portfolio-content {
    flex: 0 1 800px;
    max-width: 800px;
    text-align: center;
    align-items: center;
}

.portfolio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.portfolio-title {
    font-family: 'Stack Sans Notch', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin: 0;
}

.portfolio-description {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(248, 248, 248, 0.85);
    max-width: 600px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(73, 104, 197, 0.2);
    border: 1px solid rgba(73, 104, 197, 0.4);
    border-radius: 20px;
    color: rgba(248, 248, 248, 0.9);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(73, 104, 197, 0.3);
    border-color: rgba(73, 104, 197, 0.6);
    transform: translateY(-2px);
}

.portfolio-source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.portfolio-source-text {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    color: rgba(248, 248, 248, 0.85);
    position: relative;
}

.portfolio-source-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: rgba(248, 248, 248, 0.85);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-source-link:hover .portfolio-source-text::after {
    width: 100%;
}

.portfolio-source-icon {
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.portfolio-source-link:hover .portfolio-source-icon {
    opacity: 1;
}


@media (max-width: 1024px) {
    .portfolio-item {
        padding: 60px 60px;
        gap: 40px;
    }
    
    .portfolio-image {
        flex: 0 0 40%;
    }
}

@media (max-width: 768px) {
   
    .portfolio-scroll-container {
        height: auto !important;
        min-height: 100vh;
        position: relative;
        overflow: hidden;
    }
    
    .portfolio-section {
        position: relative;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scroll-padding: 0;
        width: 100vw;
    }
    
   
    .portfolio-track {
        transition: none;
        display: flex;
        height: 100%;
        width: auto;
    }
    
   
    .portfolio-track.show-swipe-hint {
        animation: swipeLeftOnce 2.5s ease-in-out forwards !important;
    }
    
    @keyframes swipeLeftOnce {
        0% {
            transform: translateX(0);
        }
        15% {
            transform: translateX(-80px);
        }
        35% {
            transform: translateX(-80px);
        }
        50% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(0);
        }
    }
    
    .portfolio-section.scrolled .portfolio-track {
        animation: none !important;
    }
    
    .portfolio-wrapper {
        overflow: visible;
        height: 100%;
        width: 100%;
    }
    
    .portfolio-item {
        flex-direction: column;
        padding: 80px 40px 60px 40px;
        gap: 30px;
        justify-content: center;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        min-width: 100vw;
        max-width: 100vw;
        width: 100vw;
        flex-shrink: 0;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }
    
    .portfolio-image {
        flex: 0 0 auto;
        width: calc(100% - 20px);
        max-width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .portfolio-content {
        text-align: center;
        align-items: center;
        width: 100%;
        max-width: calc(100vw - 80px);
        display: flex;
        flex-direction: column;
    }
    
    .portfolio-title {
        width: 100%;
    }
    
    .portfolio-description {
        max-width: 100%;
        padding: 0 10px;
        width: 100%;
    }
    
    .portfolio-tags {
        justify-content: center;
        width: 100%;
    }
    
    .portfolio-source-link {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
   
    .portfolio-item.no-image .portfolio-content {
        text-align: center;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        padding: 40px 30px;
    }
    
    .portfolio-title {
        font-size: 2rem;
    }
    
    .portfolio-description {
        font-size: 1rem;
    }
}
/* Blackhole Section Styling */

.blackhole-section {
    position: relative;
    width: 100%;
    min-height: 150vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 50px;
    background-color: #0a0a0a;
    overflow: hidden;
}

.blackhole-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}


.blackhole-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
    display: none;
    transition: opacity 0.5s ease-in;
    transform: translateZ(0);
}

.blackhole-static.active {
    display: block;
}

.blackhole-static.lazy {
    opacity: 0;
}

.blackhole-static.lazy:not([src=""]) {
    opacity: 0.8;
}

.stickman {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 120px;
    height: auto;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.stickman.falling {
    animation: shrinkIntoBlackhole 2s cubic-bezier(0.4, 0, 0.6, 1) forwards,
               spinForever 1s linear infinite;
}

@keyframes shrinkIntoBlackhole {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    40% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.6);
    }
    70% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.25);
    }
    85% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.01);
    }
}

@keyframes spinForever {
    from {
        rotate: 0deg;
    }
    to {
        rotate: 360deg;
    }
}

@media (max-width: 768px) {
    .blackhole-section {
        padding: 80px 30px;
    }
    
    .stickman {
        width: 80px;
    }
}

/* Contact me section styling */
.social-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
    background-color: #0a0a0a;
}

.social-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.social-title {
    font-family: 'Stack Sans Notch', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: rgba(248, 248, 248, 0.9);
    margin-bottom: 2.5px;
    font-weight: 300;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    perspective: 800px;
}

.social-subtitle {
    font-family: 'Rubik', sans-serif;
    font-size: 2.3rem;
    color: rgba(248, 248, 248, 0.85);
    margin-bottom: 40px;
    text-align: center;
}

.yet-text {
    font-family: 'Shadows Into Light Two', cursive;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: rgba(248, 248, 248, 0.95);
    display: inline;
    margin-left: 15px;
    opacity: 0;
    white-space: nowrap;
}


.yet-text.animate {
    animation: fadeInYet 1s ease 1.5s forwards;
}

@keyframes fadeInYet {
    to { opacity: 1; }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(-3deg) scale(0.8);
    }
    50% {
        transform: translateY(-5px) rotate(2deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(-2deg) scale(1);
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    color: rgba(248, 248, 248, 0.85);
    text-decoration: none;
    padding: 15px 35px;
    border: 2px solid rgba(248, 248, 248, 0.2);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(73, 104, 197, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.social-link:hover {
    color: white;
    border-color: rgba(73, 104, 197, 0.6);
    transform: translateY(-3px);
}

.social-link:hover::before {
    width: 200px;
    height: 200px;
}

.social-link span {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .social-section {
        padding: 80px 30px;
        min-height: 50vh;
    }
    
    .social-title {
        display: inline-block;
        text-align: center;
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    
    .yet-text {
        display: inline;
        margin-left: 10px;
        margin-top: 0;
        font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    }
    
    .social-subtitle {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .social-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* Analog Clock Styling */
.analog-clock {
    position: absolute;
    bottom: 30px;
    right: 80px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.analog-clock:hover {
    transform: scale(1.15);
}

.clock-face {
    position: relative;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(248, 248, 248, 0.3);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(248, 248, 248, 0.9);
    border-radius: 50%;
    z-index: 3;
}

.clock-hour-hand,
.clock-minute-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    background: rgba(248, 248, 248, 0.85);
    border-radius: 2px 2px 0 0;
}

.clock-hour-hand {
    width: 3px;
    height: 22px;
    margin-left: -1.5px;
    /* 13:00 = 1:00 PM position: 30° (1 hour) + 30° (base offset) = 60° */
    transform: translateX(-50%) rotate(60deg);
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.clock-minute-hand {
    width: 2px;
    height: 30px;
    margin-left: -1px;
    /* 0 minutes = 12 o'clock position */
    transform: translateX(-50%) rotate(0deg);
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}



@media (max-width: 768px) {
    .analog-clock {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        z-index: 5;
    }
    
    .clock-hour-hand {
        height: 15px;
        width: 2px;
        margin-left: -1px;
    }
    
    .clock-minute-hand {
        height: 20px;
        width: 1.5px;
        margin-left: -0.75px;
    }
    
    .clock-center {
        width: 4px;
        height: 4px;
    }
    
    .clock-face {
        border: 2px solid rgba(248, 248, 248, 0.3);
    }
    
    .social-section {
        padding: 80px 30px 120px 30px;
        min-height: 50vh;
    }
}

@media (max-width: 480px) {
    .analog-clock {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .clock-hour-hand {
        height: 12px;
        width: 1.5px;
        margin-left: -0.75px;
    }
    
    .clock-minute-hand {
        height: 16px;
        width: 1px;
        margin-left: -0.5px;
    }
    
    .clock-center {
        width: 3px;
        height: 3px;
    }
    
    .social-section {
        padding: 80px 30px 100px 30px;
    }
}



/* No JavaScript Warning Styling */
.nojs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    z-index: 9999;
    padding: 2rem;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 30px 20px;
    text-align: center;
}

.footer-text {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(248, 248, 248, 0.35);
    letter-spacing: 0.3px;
}

.footer-link {
    color: rgba(248, 248, 248, 0.35);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: rgba(248, 248, 248, 0.6);
}

@media (max-width: 768px) {
    .footer {
        padding: 25px 15px;
    }
    
    .footer-text {
        font-size: 12px;
    }
}

/* Time Machine Overlay */
.time-machine-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.time-machine-overlay.active {
    opacity: 1;
    visibility: visible;
}

.time-machine-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 60px 40px 40px;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.time-machine-overlay.active .time-machine-content {
    transform: translateY(0);
    opacity: 1;
}

.time-machine-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(248, 248, 248, 0.1);
    border: 2px solid rgba(248, 248, 248, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: rgba(248, 248, 248, 0.8);
}

.time-machine-close:hover {
    background: rgba(248, 248, 248, 0.2);
    border-color: rgba(248, 248, 248, 0.4);
    transform: rotate(90deg);
    color: white;
}

.time-machine-title {
    font-family: 'Stack Sans Notch', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 20px rgba(73, 104, 197, 0.3);
}

/* Timeline Styling */
.timeline-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 20px 0;
}

.timeline-svg {
    width: 100%;
    height: 100px;
    overflow: visible;
}

.timeline-line {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
}

.time-machine-overlay.active .timeline-line {
    animation: drawTimeline 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes drawTimeline {
    to {
        stroke-dashoffset: 0;
    }
}

.timeline-point {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.time-machine-overlay.active .timeline-point {
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.timeline-point:nth-child(2) { animation-delay: 0.8s; }
.timeline-point:nth-child(3) { animation-delay: 1s; }
.timeline-point:nth-child(4) { animation-delay: 1.2s; }
.timeline-point:nth-child(5) { animation-delay: 1.4s; }

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.timeline-point:hover .timeline-dot {
    fill: rgba(109, 179, 242, 1);
    r: 10;
}

.timeline-point:hover .timeline-label {
    fill: white;
    font-weight: 600;
}

.timeline-dot {
    transition: all 0.3s ease;
}

.timeline-label {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    fill: rgba(248, 248, 248, 0.9);
    transition: all 0.3s ease;
}

/* Version Grid */
.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.version-card {
    position: relative;
    background: rgba(248, 248, 248, 0.05);
    border: 2px solid rgba(248, 248, 248, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: not-allowed;
    opacity: 0;
    transform: translateY(20px);
}

.time-machine-overlay.active .version-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.version-card:nth-child(1) { animation-delay: 0.5s; }
.version-card:nth-child(2) { animation-delay: 0.6s; }
.version-card:nth-child(3) { animation-delay: 0.7s; }
.version-card:nth-child(4) { animation-delay: 0.8s; }

.version-card.blocked::after {
    content: 'Available to view in future updates';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.9);
    color: rgba(248, 248, 248, 0.9);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
}

.version-card:hover {
    transform: translateY(-5px);
    border-color: rgba(73, 104, 197, 0.4);
    box-shadow: 0 10px 40px rgba(73, 104, 197, 0.2);
}

.version-card.blocked:hover {
    transform: none;
    border-color: rgba(248, 248, 248, 0.2);
    box-shadow: none;
}

.version-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.version-card:hover .version-image {
    transform: scale(1.05);
}

.version-card.blocked .version-image {
    filter: blur(8px) brightness(0.6);
}

.version-card.blocked:hover .version-image {
    transform: none;
}

.version-info {
    padding: 20px;
}

.version-date {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    color: rgba(248, 248, 248, 0.6);
    margin-bottom: 8px;
}

.version-name {
    font-family: 'Stack Sans Notch', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .time-machine-content {
        width: 95%;
        max-height: 85vh;
        padding: 60px 20px 30px;
    }
    
    .time-machine-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .time-machine-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .timeline-container {
        display: none;
    }
    
    .timeline-svg {
        height: 100px;
    }
    
    .timeline-label {
        font-size: 12px;
        font-weight: 600;
    }
    
    .version-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .version-image {
        height: 180px;
    }
    
    .version-card.blocked::after {
        font-size: 0.85rem;
        padding: 10px 16px;
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .time-machine-content {
        padding: 50px 15px 25px;
        max-height: 80vh;
    }
    
    .time-machine-title {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }
    
    .timeline-container {
        display: none;
    }
    
    .timeline-svg {
        height: 120px;
    }
    
    .timeline-label {
        font-size: 13px;
        font-weight: 700;
    }
    
    .version-image {
        height: 160px;
    }
    
    .version-card.blocked::after {
        font-size: 0.75rem;
        padding: 8px 12px;
        white-space: normal;
        max-width: 80%;
        line-height: 1.3;
    }
    
    .version-info {
        padding: 15px;
    }
    
    .version-name {
        font-size: 1.3rem;
    }
}

/* Scrollbar for time machine content */
.time-machine-content::-webkit-scrollbar {
    width: 8px;
    display: block;
}

.time-machine-content::-webkit-scrollbar-track {
    background: rgba(248, 248, 248, 0.05);
    border-radius: 10px;
}

.time-machine-content::-webkit-scrollbar-thumb {
    background: rgba(248, 248, 248, 0.2);
    border-radius: 10px;
}

.time-machine-content::-webkit-scrollbar-thumb:hover {
    background: rgba(248, 248, 248, 0.3);
}

/* Prevent body scroll when overlay is active */
body.time-machine-active {
    overflow: hidden;
}

/* Hide navigation completely on mobile devices
   This rule targets common nav selectors and forces them hidden
   to ensure the navigation menu does not appear on narrow screens. */
@media (max-width: 768px) {
    nav,
    .navbar,
    .nav-container,
    .nav-menu,
    .nav-item,
    .nav-link,
    .nav-logo,
    .nav-signature,
    #nav,
    .navigation,
    .menu,
    .main-nav,
    .navbar.scrolled {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}
