@import url('https://fonts.cdnfonts.com/css/coolvetica');

/* ========================================
   Design System & CSS Variables
======================================== */
:root {
    /* Colors */
    --accent: #C0F062;
    --accent-hover: #d4ff7a;
    --bg-dark: #0A0A0A;
    --bg-card: #1A1A1A;
    --bg-card-accent: #C0F062;
    --text-light: #F5F5F5;
    --text-muted: #888888;
    --text-dark: #0A0A0A;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --nav-height: 80px;
    --container-padding: 48px;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   Reset & Base Styles
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Lenis Smooth Scroll Global Styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

/* ========================================
   Grid Overlay
======================================== */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
}

.nav-brand {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;

    /* Glassmorphism Pill Style */
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.3s var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--transition-smooth);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 24px;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192, 240, 98, 0.3);
}

/* ========================================
   Nav Brand Animation (ML11)
======================================== */
.ml11 {
    font-weight: 700;
    /* Removed fixed font-size to inherit from nav-brand */
}

.ml11 .text-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 0.1em;
    padding-right: 0.05em;
    padding-bottom: 0.15em;
}

.ml11 .line {
    opacity: 0;
    position: absolute;
    left: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent);
    transform-origin: 0 50%;
}

.ml11 .line1 {
    top: 0;
    left: 0;
}

.ml11 .letter {
    display: inline-block;
    line-height: 1em;
    opacity: 0;
    /* meaningful start state for animation */
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Background Typography */
.bg-typography {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.bg-name-left,
.bg-name-right {
    font-family: 'Coolvetica', sans-serif;
    font-size: clamp(120px, 18vw, 250px);
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.95;
    letter-spacing: -0.02em;
    line-height: 0.85;
}

.bg-name-left .char,
.bg-name-right .char {
    display: inline-block;
    transform-origin: bottom center;
}

/* Side Text Elements */
.side-text {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    z-index: 3;
    opacity: 0;
}

.side-text-left {
    top: 32%;
    left: var(--container-padding);
    transform: translateY(-50%) translateX(-20px);
    animation: fadeSlideInLeft 1s var(--transition-smooth) 0.5s forwards;
}

.side-text-right {
    top: 70%;
    right: var(--container-padding);
    transform: translateY(-50%) translateX(20px);
    text-align: right;
    animation: fadeSlideInRight 1s var(--transition-smooth) 0.7s forwards;
}

.side-text .accent {
    color: var(--accent);
}

@keyframes fadeSlideInLeft {
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes fadeSlideInRight {
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* ========================================
   ID Card Styles
======================================== */
.card-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: cardFloat 1s var(--transition-smooth) 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
    /* Fixed sizing - use px to prevent zoom scaling */
    transform-origin: center center;
}

@keyframes cardFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-lanyard {
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    z-index: 5;
}

.card-lanyard::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border-radius: 50%;
    border: 3px solid #555;
}

/* Main ID Card with 3D depth effect */
.card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.08s ease-out;
}

.id-card {
    /* FIXED pixel dimensions - won't change with zoom */
    width: 340px;
    min-width: 340px;
    max-width: 340px;
    height: 450px;
    min-height: 450px;
    max-height: 450px;
    background: var(--bg-card);
    border-radius: 24px;
    position: relative;
    transform-style: preserve-3d;
    transition: box-shadow 0.15s ease-out;
    cursor: pointer;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    /* CSS custom properties for dynamic effects */
    --light-x: 50%;
    --light-y: 50%;
    --light-intensity: 0;
    --left-edge-opacity: 0;
    --right-edge-opacity: 0;
    --top-edge-opacity: 0;
    --bottom-edge-opacity: 0;
    --edge-depth: 12px;
}

/* 3D Depth - Left Edge (visible when tilting right) */
.id-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--edge-depth);
    height: 100%;
    background: linear-gradient(90deg,
            #1a1a1a 0%,
            #2d2d2d 20%,
            #3a3a3a 40%,
            #2d2d2d 60%,
            #1f1f1f 100%);
    border-radius: 24px 0 0 24px;
    transform: translateX(-100%) rotateY(-90deg);
    transform-origin: right center;
    opacity: var(--left-edge-opacity);
    transition: opacity 0.1s ease-out;
    /* Metallic shine effect */
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
}

/* 3D Depth - Right Edge (visible when tilting left) */
.id-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: var(--edge-depth);
    height: 100%;
    background: linear-gradient(270deg,
            #1a1a1a 0%,
            #2d2d2d 20%,
            #3a3a3a 40%,
            #2d2d2d 60%,
            #1f1f1f 100%);
    border-radius: 0 24px 24px 0;
    transform: translateX(100%) rotateY(90deg);
    transform-origin: left center;
    opacity: var(--right-edge-opacity);
    transition: opacity 0.1s ease-out;
    /* Metallic shine effect */
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
}

/* Dynamic light reflection overlay */
.id-card .card-light-overlay {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.1) 30%,
            transparent 70%);
    opacity: var(--light-intensity);
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.2s ease-out;
    mix-blend-mode: overlay;
}

/* Animated Border */
/* Snake Border SVG */
.snake-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    overflow: visible;
}

.snake-border-rect {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5px;
    stroke-dasharray: 25 75;
    /* 25% stroke, 75% gap */
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: snakeMove 4s linear infinite;
    filter: drop-shadow(0 0 12px var(--accent));
}

@keyframes snakeMove {
    to {
        stroke-dashoffset: -100;
    }
}


.card-top-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 50%;
    background: var(--bg-card-accent);
    border-radius: 0 24px 0 100%;
    z-index: 1;
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-light);
    z-index: 5;
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    animation: badgeFadeIn 0.8s var(--transition-smooth) 1.2s forwards;
}

@keyframes badgeFadeIn {
    to {
        opacity: 1;
    }
}

.card-image-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 60%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 24px 24px 0 0;
    /* Round top corners to match card */
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.4s ease-out;
}



.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 5;
    background: linear-gradient(to top, var(--bg-card) 60%, transparent 100%);
}

.card-role-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 8px;
    opacity: 1;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-light);
}

.card-tagline {
    margin-top: 16px;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ========================================
   Page Indicator
======================================== */
.page-indicator {
    position: absolute;
    left: var(--container-padding);
    bottom: var(--container-padding);
    z-index: 10;
}

.indicator-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

/* ========================================
   Scroll Indicator
======================================== */
.scroll-indicator {
    position: absolute;
    bottom: var(--container-padding);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.scroll-arrow svg {
    transform: rotate(180deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* ========================================
   Achievement Badge
======================================== */
.achievement-badge {
    position: absolute;
    right: var(--container-padding);
    bottom: var(--container-padding);
    text-align: right;
    z-index: 10;
}

.achievement-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.achievement-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.achievement-highlight {
    font-weight: 400;
    color: var(--text-muted);
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --container-padding: 32px;
    }

    .bg-name-left,
    .bg-name-right {
        font-size: clamp(80px, 15vw, 180px);
    }

    /* Keep card at fixed size - only scale down for very small screens */
    .id-card {
        width: 340px;
        min-width: 340px;
        max-width: 340px;
        height: 450px;
        min-height: 450px;
        max-height: 450px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .side-text {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
        --nav-height: 64px;
    }

    .navbar {
        padding: 0 20px;
    }

    .nav-brand {
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        display: none;
    }

    .nav-cta {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .bg-typography {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .bg-name-left,
    .bg-name-right {
        font-size: clamp(60px, 20vw, 120px);
    }

    /* Keep card at fixed size */
    .id-card {
        width: 340px;
        min-width: 340px;
        max-width: 340px;
        height: 450px;
        min-height: 450px;
        max-height: 450px;
        border-radius: 24px;
    }

    .card-light-overlay {
        border-radius: 24px;
    }

    .card-top-accent {
        border-radius: 0 24px 0 100%;
    }

    .card-image-wrapper {
        border-radius: 24px 24px 0 0;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .page-indicator,
    .achievement-badge {
        display: none;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

/* Small Mobile - only scale if truly needed */
@media (max-width: 380px) {
    .id-card {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
        height: 400px;
        min-height: 400px;
        max-height: 400px;
        border-radius: 20px;
    }

    .card-light-overlay,
    .id-card::before,
    .id-card::after {
        border-radius: 20px;
    }

    /* Update SVG rect radius for smaller size */
    .snake-border-rect {
        rx: 20;
        ry: 20;
    }

    .card-lanyard {
        height: 40px;
    }
}



/* Touch Device Optimization */
@media (hover: none) {
    .id-card {
        transform: none !important;
    }

    .id-card::before,
    .id-card::after {
        display: none;
    }

    .card-light-overlay {
        display: none;
    }
}

/* ========================================
   Shared Section Styles
======================================== */
.section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(192, 240, 98, 0.2);
    border-radius: 50px;
}

.section-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

/* ========================================
   Scroll Reveal Animation
======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth),
        transform 0.8s var(--transition-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Filter Tabs
======================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.filter-tab:hover {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-tab.active {
    color: var(--text-dark);
    background: var(--accent);
    border-color: var(--accent);
}

/* ========================================
   Project Grid & Cards
======================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 5;
    transition: transform 0.4s var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder gradients (remove when using real images) */
.placeholder-gradient-1 {
    background: linear-gradient(135deg, #1a1a2e, #e94560);
}

.placeholder-gradient-2 {
    background: linear-gradient(135deg, #0f3443, #34e89e);
}

.placeholder-gradient-3 {
    background: linear-gradient(135deg, #2c3e50, #fd746c);
}

.placeholder-gradient-4 {
    background: linear-gradient(135deg, #0f2027, #2c5364, #203a43);
}

.placeholder-gradient-5 {
    background: linear-gradient(135deg, #200122, #6f0000);
}

.placeholder-gradient-6 {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

.placeholder-gradient-7 {
    background: linear-gradient(135deg, #0c0c0c, #C0F062);
}

.placeholder-gradient-8 {
    background: linear-gradient(135deg, #141e30, #243b55);
}

.placeholder-gradient-9 {
    background: linear-gradient(135deg, #000428, #004e92);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
}

.project-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Hidden cards (for filter animation) */
.project-card.hidden {
    display: none;
}

/* Play Button for Video Cards */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s var(--transition-smooth);
    z-index: 5;
}

.video-card:hover .play-button {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========================================
   Video Modal
======================================== */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: color 0.3s ease;
}

.video-modal-close:hover {
    color: var(--accent);
}

.video-modal-player {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Floating Tools Section
======================================== */
.tools-section {
    background: #F5F5F5;
    position: relative;
    z-index: 3;
    border-top: none;
    padding-bottom: 80px;
}

.tools-section .section-label-tag.tools-label {
    color: #555;
    border-color: rgba(0, 0, 0, 0.12);
}

.tools-section .section-heading.tools-heading {
    color: #111;
}

.tools-section .section-description.tools-description {
    color: #666;
}

.floating-tools-canvas {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.floating-tools-canvas:active {
    cursor: grabbing;
}

/* Hidden drag proxy for GSAP Draggable */
.drag-proxy {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
}

.tool-bubble {
    position: absolute;
    left: 0;
    top: 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    touch-action: none;
}

.tool-bubble:active {
    cursor: grabbing;
}

.tool-bubble.dragging {
    z-index: 20;
}

/* ---- Raw icon container — no background, no border ---- */
.tool-bubble-circle {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.tool-bubble:hover .tool-bubble-circle {
    transform: scale(1.1);
}

.tool-bubble.dragging .tool-bubble-circle {
    transform: scale(1.12);
}

/* ---- Colored bubbles — keep explicit bg, restore shape ---- */
.tool-bubble.colored .tool-bubble-circle {
    border-radius: 50%;
    box-shadow: none;
}

/* Colored-bg icons: render as provided, no filter override */
.tool-bubble.colored .tool-bubble-circle img {
    filter: none;
}

/* ---- Icon sizing — full native size, no wrapper padding ---- */
.tool-bubble-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
}

/* ---- Label ---- */
.tool-bubble-label {
    display: none;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #999;
    margin-top: 8px;
    white-space: nowrap;
    pointer-events: none;
    transition: color 0.3s ease;
}

.tool-bubble:hover .tool-bubble-label {
    color: #444;
}

/* ---- Text fallback initials ---- */
.tool-bubble-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    pointer-events: none;
    letter-spacing: -0.02em;
}

/* ========================================
   Resume Section
======================================== */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.resume-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(192, 240, 98, 0.4);
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tools & Skills */
.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

.tool-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.tool-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #a8d84e);
    border-radius: 3px;
    transition: width 1.2s var(--transition-smooth);
    width: 0;
}



/* ========================================
   Contact Section
======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-light);
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.3s ease;
    resize: none;
    overflow-y: auto;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #1f1f1f;
    box-shadow: 0 0 20px rgba(192, 240, 98, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--accent);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    align-self: flex-start;
}

.form-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192, 240, 98, 0.3);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}

.contact-detail h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-detail a,
.contact-detail p {
    font-size: 1rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: var(--accent);
}

.contact-socials h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s var(--transition-smooth);
}

.social-link:hover {
    color: var(--text-dark);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ========================================
   Footer
======================================== */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px var(--container-padding);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Responsive — New Sections
======================================== */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resume-grid {
        gap: 40px;
    }

    .contact-grid {
        gap: 40px;
    }

    .floating-tools-canvas {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .resume-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .floating-tools-canvas {
        height: 200px;
        width: 100vw;
        max-width: 100%;
    }

    .tools-section {
        overflow-x: hidden;
    }

    .tool-bubble-circle {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 480px) {
    .floating-tools-canvas {
        height: 180px;
    }
}

/* ========================================
   Back to Top Button
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s var(--transition-smooth);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.back-to-top:hover {
    background: var(--bg-card-accent);
    color: var(--text-dark);
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(192, 240, 98, 0.3);
    border-color: var(--accent);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ========================================
   Easter Egg - Neon Flicker Toggle
======================================== */
@keyframes neon-flicker {

    0%,
    10%,
    18%,
    30%,
    42%,
    52%,
    70%,
    90% {
        opacity: 1;
        filter: drop-shadow(0 0 12px var(--accent));
    }

    5%,
    15%,
    25%,
    35%,
    48%,
    60%,
    80%,
    95% {
        opacity: 0;
        filter: none;
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 12px var(--accent));
    }
}

.flicker-anim {
    animation: neon-flicker 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.glow-off {
    opacity: 0 !important;
    transition: opacity 0.3s ease-out;
}

/* ========================================
   Animated Light Lines Overlay
======================================== */
.light-lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
    transition: opacity 0.5s ease;
}

.light-lines-container svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ========================================
   Glass Dock Interaction
======================================== */
.glass-dock {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: max-content;
}

.dock-item {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        color 0.2s ease;
    will-change: transform;
}

.dock-item:hover {
    color: #ffffff;
}

.dock-item svg {
    pointer-events: none;
}

/* Tooltip — positioned above the dock */
.dock-tooltip {
    position: absolute;
    top: -48px;
    left: 0;
    pointer-events: none;
    z-index: 30;
    opacity: 0;
    transform: translateY(8px) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dock-tooltip-inner {
    padding: 8px 20px;
    border-radius: 10px;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock-tooltip-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.025em;
    white-space: nowrap;
    display: block;
    font-family: var(--font-primary);
}

/* ========================================
   Image Lightbox Modal
======================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.lightbox-modal.active .lightbox-content {
    transform: translateY(0) scale(1);
    opacity: 1;
    transition-delay: 0.1s;
}

#lightboxImage {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.lightbox-text-container {
    margin-top: 24px;
    text-align: center;
    color: #ffffff;
}

#lightboxTitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-secondary);
}

#lightboxDesc {
    font-size: 16px;
    color: #a3a3a3;
    font-family: var(--font-primary);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}