/* 🎨 DESIGN SYSTEM (Apple OS Glassmorphism Theme) */
:root {
    /* Colors - Darkened and desaturated for vibrant background contrast */
    --bg-primary: #050508;
    /* Deepest black/blue to allow ambient background to pop */
    --bg-secondary: rgba(20, 20, 25, 0.4);
    /* Highly translucent Apple Glass base */

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.65);

    /* Accents */
    --accent: #4F46E5;
    --accent-glow: rgba(79, 70, 229, 0.4);
    --neon-violet: #8B5CF6;

    /* Gradients */
    --gradient-text: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--neon-violet) 100%);

    /* Apple OS Glass Properties */
    --glass-blur: blur(24px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1280px;
    --nav-height: 80px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Custom Cursor Prep */
    cursor: none;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    /* Slightly increased for more tactile energy */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Energetic Ambient Background */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, var(--bg-primary) 0%, #050508 100%);
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: blobMove 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(139, 92, 246, 0.15);
    /* Neon Violet */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -15%;
    width: 80vw;
    height: 80vw;
    background: rgba(79, 70, 229, 0.12);
    /* Electric Blue */
    animation-delay: -5s;
    animation-duration: 30s;
}

.blob-3 {
    top: 40%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    background: rgba(236, 72, 153, 0.08);
    /* Pinch of Pink for warmth */
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(15vw, 15vh) scale(1.3) rotate(15deg);
    }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover state for cursor */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.highlight {
    color: var(--text-primary);
    font-weight: 500;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: none;
    /* Let custom cursor handle it */
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Magnetic Element Wrapper */
.magnetic {
    display: inline-block;
}

/* 1️⃣ NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.4);
    /* Glassmorphism Adjust */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
    cursor: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

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

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

/* 2️⃣ HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    padding-top: var(--nav-height);
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 24px;
}

.hero-title .gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Hero Visual / ID Card */
.hero-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 350px;
    height: 500px;
    z-index: 10;
    pointer-events: auto;
    perspective: 1000px;
}

.id-card-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: top center;
    animation: swing 6s ease-in-out infinite alternate;
}

.lanyard {
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 320px;
    background: #111;
    z-index: 10;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.4);
    border-radius: 6px;
}

.clip-hardware {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 11;
}

.clip-ring {
    width: 20px;
    height: 20px;
    border: 3px solid #222;
    border-radius: 50%;
    margin-bottom: -4px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 4px 6px rgba(0, 0, 0, 0.5);
}

.clip-base {
    width: 16px;
    height: 25px;
    background: linear-gradient(to bottom, #333, #111);
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2), 0 5px 10px rgba(0, 0, 0, 0.5);
}

.clip-base::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 15px;
    background: #111;
    border-radius: 4px;
    z-index: -1;
}

/* Mobile Responsive Adjustments for Hero & ID Card */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: calc(var(--nav-height) + 40px);
        min-height: auto;
        /* Let content dictate height on mobile to prevent squishing */
        padding-bottom: 80px;
        gap: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        /* create space below text before the card */
        order: 1;
        /* Force content text to be above the ID card */
        z-index: 10;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        position: relative;
        /* Change from absolute so it flows in document */
        top: auto;
        right: auto;
        transform: none;
        margin: 0 auto;
        /* Center horizontally */
        margin-top: 260px;
        order: 2;
        /* Force ID card to render below the content text and buttons */
        transform: scale(0.85);
        /* Scale down the entire card assembly slightly */
        transform-origin: top center;
    }

    /* Keep the lanyard centered but push it higher out of frame if needed */
    .lanyard {
        height: 350px;
        top: -330px;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        transform: scale(0.75);
        /* Scale down more for smaller screens to fit nicely */
        margin-top: 40px;
    }
}

.id-card {
    position: relative;
    width: 290px;
    height: 420px;
    margin: 0 auto;
    /* Light Theme Styling Matching Reference */
    background: #e9e9e9;
    background-image: linear-gradient(to bottom, #f2f2f2, #e5e5e5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    cursor: grab;
}

.id-card * {
    transform-style: preserve-3d;
}

.id-card:active {
    cursor: grabbing;
}

/* Remove old physical clip */
.id-card::before {
    display: none;
}

.id-card-flip-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.id-card-flip-container.is-flipped {
    transform: rotateY(180deg);
}

.id-card-front,
.id-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    transform-style: preserve-3d;
    outline: 1px solid transparent;
    /* Anti-aliasing hack */
}

.id-card-front {
    transform: rotateY(0deg) translateZ(1px);
    z-index: 2;
    background: #e9e9e9;
    background-image: linear-gradient(to bottom, #f2f2f2, #e5e5e5);
}

.id-card-back {
    transform: rotateY(180deg) translateZ(1px);
    z-index: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: hidden;
    /* Ensure image doesn't spill out of border-radius */
}

/* Specific styling for the illustration on the back */
.id-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.5;
    /* Desired opacity for the Apple OS Glass vibe */
    pointer-events: none;
}

.id-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Clean inner light background */
    background: transparent;
    padding: 40px 20px 30px;
    border: none;
}

/* Profile Photo styling matches reference */
.id-photo {
    width: 100%;
    height: 220px;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 24px;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Push photo to bottom of container */
}

.id-photo img {
    width: 180px;
    height: auto;
    object-fit: contain;
    /* Rough masking for character cutout look */
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    /* Grayscale reference style applied by default */
    filter: grayscale(100%) contrast(1.2) brightness(1.1);
    transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.id-card:hover .id-photo img {
    filter: grayscale(0%) contrast(1.1) brightness(1.1);
    transform: scale(1.05);
}

.id-details {
    text-align: center;
    margin-bottom: 12px;
    width: 100%;
}

.id-details h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
    /* Dark text on light background */
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
}

.id-status-pill {
    margin-top: auto;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #444;
    font-family: var(--font-mono);
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 500;
    background: transparent;
}

.id-barcode {
    width: 100%;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes swing {
    0% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(3deg);
    }
}

@keyframes pulseFloat {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-20px, 20px);
    }

    100% {
        transform: scale(0.9) translate(20px, -20px);
    }
}

/* Intro Animations */
.reveal-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-text span:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.reveal-text span:nth-child(5) {
    animation-delay: 0.3s;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

.fade-up-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.7s;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    /* Add hamburger menu later if needed */
    .hero {
        padding: 0 24px;
        padding-top: var(--nav-height);
        text-align: center;
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        right: 50%;
        transform: translate(50%, -50%);
        opacity: 0.3;
    }

    /* Disable custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body,
    a,
    button {
        cursor: auto !important;
    }
}

/* Base Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 64px;
    letter-spacing: -0.03em;
}

.mt-32 {
    margin-top: 32px;
}

/* Scroll Reveal Utilities */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3️⃣ ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.about-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-value {
    font-weight: 500;
    color: var(--text-primary);
}

.highlight-status {
    color: var(--neon-violet);
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--neon-violet);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-violet);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-secondary);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image {
    width: 100%;
    height: 100%;
    transform: scale(1.05);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
}

.gradient-bg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.about-image-wrapper:hover {
    transform: translateY(-10px);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1);
}

/* Responsive About */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* 4️⃣ SELECTED WORK */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    position: relative;
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: var(--glass-border);
    box-shadow: var(--glass-highlight), var(--glass-shadow);
    /* Transform logic managed by JS */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
}

.project-content {
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
    /* Brings content forward in 3D space */
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.project-link {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-link:hover {
    color: var(--text-primary);
    transform: translate(2px, -2px) scale(1.1);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Subtle Glow Follow Effect on Card */
.project-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    /* Centered on mouse */
}

.project-card:hover .project-glow {
    opacity: 0.5;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

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

    .section-padding {
        padding: 80px 0;
    }

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

    .project-card {
        padding: 32px;
        min-height: 300px;
    }
}

/* 5️⃣ TOOLS & STACK */
.text-center {
    text-align: center;
}

.marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee {
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 24px;
    padding-right: 24px;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.tool-badge {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tool-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(139, 92, 246, 0.5);
    /* Neon violet glow border */
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 6️⃣ EXPERIENCE TIMELINE */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(79, 70, 229, 0.1),
            rgba(139, 92, 246, 0.5) 50%,
            rgba(79, 70, 229, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    padding-left: 100px;
}

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

.timeline-dot {
    position: absolute;
    top: 0;
    left: 31px;
    /* 40px - half width */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--neon-violet);
    box-shadow: 0 0 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--neon-violet);
    transform: scale(1.2);
}

.timeline-content {
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glass-highlight), var(--glass-shadow);
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 24px;
}

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

.timeline-company {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--neon-violet);
    font-weight: 500;
}

.timeline-date {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* Image Grid Placeholder for Certificate/Photos */
.timeline-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 16/9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 11px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 12px;
    }

    .timeline-content {
        padding: 24px;
    }
}

/* 7️⃣ WHEN I'M NOT DESIGNING */
.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects-layout {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.vibe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.vibe-card {
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-highlight), var(--glass-shadow);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.vibe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vibe-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.vibe-card:hover::before {
    opacity: 1;
}

/* Arrow Hover Effect */
.vibe-card:hover .vibe-arrow {
    stroke: var(--neon-violet);
    transform: translate(4px, -4px);
}

.vibe-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.vibe-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Offline Explorations */
.exploration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.explore-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: none;
}

.explore-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.explore-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.5);
    /* Stronger tint for inner glass */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.explore-content h4 {
    font-size: 1.25rem;
    text-align: center;
    padding: 0 20px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.explore-card:hover .explore-bg {
    transform: scale(1.1);
}

.explore-card:hover .explore-content {
    opacity: 1;
}

.explore-card:hover .explore-content h4 {
    transform: translateY(0);
}

/* Dual Hover Animation (Design Samvaad - Andrea Da Silva Style) */
.dual-hover-card {
    overflow: visible !important;
    /* Allow images to pop out of card bounds */
    cursor: none;
    z-index: 1;
    /* Base z-index */
    transition: z-index 0s linear 0s;
    /* Z-index swaps immediately on hover */
}

.dual-hover-card:hover {
    z-index: 30;
    /* Elevate card so popping images cover adjacent sibling cards */
}

/* Ensure background color doesn't spill out since card is now visible overflow */
.dual-hover-card .explore-bg {
    border-radius: inherit;
    z-index: 0;
}

/* Stop background from scaling to prevent spilling */
.dual-hover-card:hover .explore-bg {
    transform: none;
}

.dual-hover-card .explore-content {
    opacity: 1;
    /* Text always visible initially */
    background: transparent;
    /* No dark overlay */
    backdrop-filter: none;
    /* REMOVE BLUR */
    z-index: 5;
    /* Place text OVER images */
}

.dual-hover-card .explore-content h4 {
    transform: translateY(0);
    font-size: 1.8rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dual-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Images pushed BEHIND text */
    pointer-events: none;
}

.hover-img {
    position: absolute;
    width: 65%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Base starting positions */
.hover-img.img-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    z-index: 2;
}

.hover-img.img-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    z-index: 4;
    /* Higher z-index to sit comfortably in the middle if 3 images exist */
}

.hover-img.img-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    z-index: 3;
}

/* Reveal all */
.dual-hover-card:hover .hover-img {
    opacity: 1;
}

/* 1 Image Scenario */
.single-hover-card:hover .hover-img.img-1 {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
}

/* 2 Images Scenario (Standard) */
.dual-hover-card:not(.single-hover-card):not(.triple-hover-card):hover .hover-img.img-1 {
    transform: translate(-105%, -45%) rotate(-6deg) scale(0.95);
}

.dual-hover-card:not(.single-hover-card):not(.triple-hover-card):hover .hover-img.img-2 {
    transform: translate(5%, -55%) rotate(6deg) scale(0.95);
}

/* 3 Images Scenario */
.triple-hover-card:hover .hover-img.img-1 {
    transform: translate(-140%, -40%) rotate(-12deg) scale(0.85);
}

.triple-hover-card:hover .hover-img.img-2 {
    transform: translate(-50%, -60%) rotate(0deg) scale(1.05);
    /* Middle pops out higher */
}

.triple-hover-card:hover .hover-img.img-3 {
    transform: translate(40%, -40%) rotate(12deg) scale(0.85);
}

/* Hide text completely on hover so images take focus */
.dual-hover-card:hover .explore-content h4,
.dual-hover-card:hover .explore-content h3,
.dual-hover-card:hover .explore-content p {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 8️⃣ ACHIEVEMENTS */
.achievements {
    position: relative;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(79, 70, 229, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.achievement-card {
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-highlight), var(--glass-shadow);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ach-icon {
    font-size: 2.5rem;
    z-index: 1;
}

.ach-title {
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 1;
}

.ach-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    z-index: 1;
}

.ach-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: var(--neon-violet);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    z-index: 0;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.2);
}

.achievement-card:hover .ach-glow {
    opacity: 0.15;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-num,
.stat-num-plus {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-num-plus {
    color: var(--neon-violet);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 9️⃣ FOOTER */
.footer {
    background: var(--bg-primary);
    padding: 120px 0 40px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.footer-cta h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
}

.footer-bottom {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-socials {
    display: flex;
    gap: 32px;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
    cursor: none;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

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

.scroll-top {
    position: absolute;
    top: -24px;
    right: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-top:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent);
}

.footer-credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 80px;
    }

    .footer-socials {
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer-credits {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .scroll-top {
        position: relative;
        top: 0;
        margin-top: 24px;
    }
}