/* ================================================================
   KARRI VAMSI KRISHNA - ULTRA PREMIUM PORTFOLIO
   Award-Winning Design | Jaw-Dropping Animations
   ================================================================ */

/* === CUSTOM PROPERTIES === */
:root {
    /* Primary Palette - Cyberpunk Neon */
    --neon-cyan: #00fff2;
    --neon-purple: #b14aed;
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --neon-green: #01ff89;

    /* Dark Theme */
    --void-black: #000000;
    --deep-space: #05051a;
    --dark-matter: #0a0a1f;
    --nebula: #12122f;

    /* Text */
    --text-white: #ffffff;
    --text-gray: #8892b0;
    --text-dim: #495670;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    --gradient-glow: linear-gradient(135deg, rgba(0, 255, 242, 0.4), rgba(177, 74, 237, 0.4));

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Spacing */
    --section-gap: 150px;
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--void-black);
}

body {
    font-family: var(--font-body);
    background: var(--void-black);
    color: var(--text-white);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--void-black);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

::selection {
    background: var(--neon-purple);
    color: var(--text-white);
}

/* === CUSTOM CURSOR === */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s var(--ease-out-expo),
        width 0.3s var(--ease-elastic),
        height 0.3s var(--ease-elastic),
        background 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 242, 0.1);
    border-color: var(--neon-purple);
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

/* === BACKGROUND EFFECTS === */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: var(--void-black);
}

/* Aurora Effect */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9;
    opacity: 0.6;
    filter: blur(100px);
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    animation: auroraFloat 20s ease-in-out infinite;
}

.aurora-blob:nth-child(1) {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    top: -30%;
    left: -20%;
    animation-delay: 0s;
}

.aurora-blob:nth-child(2) {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    top: 20%;
    right: -25%;
    animation-delay: -7s;
}

.aurora-blob:nth-child(3) {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
    bottom: -20%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes auroraFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(5%, -5%) rotate(5deg) scale(1.1);
    }

    50% {
        transform: translate(-5%, 5%) rotate(-5deg) scale(0.95);
    }

    75% {
        transform: translate(3%, 3%) rotate(3deg) scale(1.05);
    }
}

/* Noise Texture Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Grid Lines */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8;
    background-image:
        linear-gradient(rgba(0, 255, 242, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 242, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
}

.nav-logo::before {
    content: '<';
    color: var(--neon-cyan);
}

.nav-logo::after {
    content: '/>';
    color: var(--neon-pink);
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.5s var(--ease-out-expo);
}

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

.nav-link span {
    color: var(--neon-cyan);
    margin-right: 4px;
}

/* Mobile Menu */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 48px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

/* Glitch Text Effect */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 24px;
    position: relative;
    animation: glitchText 5s infinite;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(100%);
    animation: wordReveal 1.2s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(2) .word {
    animation-delay: 0.15s;
}

@keyframes wordReveal {
    to {
        transform: translateY(0);
    }
}

.hero-title .gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* Scramble Text */
.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--neon-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeIn 1s 0.8s forwards;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 48px;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

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

/* Magnetic Buttons */
.hero-cta {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.btn-magnetic {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out-expo);
    cursor: none;
}

.btn-magnetic.primary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--neon-cyan);
}

.btn-magnetic.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--neon-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
    z-index: -1;
}

.btn-magnetic.primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-magnetic.primary:hover {
    color: var(--void-black);
}

.btn-magnetic.secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-dim);
}

.btn-magnetic.secondary:hover {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.btn-magnetic i {
    transition: transform 0.3s ease;
}

.btn-magnetic:hover i {
    transform: translateX(4px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--neon-cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        height: 60px;
    }

    50% {
        opacity: 0.5;
        height: 80px;
    }
}

/* === SECTION STYLING === */
section {
    position: relative;
    padding: var(--section-gap) 48px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    margin-bottom: 80px;
    position: relative;
}

.section-number {
    font-family: var(--font-mono);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 255, 242, 0.1);
    position: absolute;
    top: -60px;
    left: -20px;
    z-index: -1;
    user-select: none;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--neon-cyan);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

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

.about-visual {
    position: relative;
}

.about-image-container {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.about-image-container {
    box-shadow: 0 0 60px rgba(0, 255, 242, 0.2), 0 0 100px rgba(177, 74, 237, 0.1);
}

/* Animated Border */
.about-image-border {
    position: absolute;
    inset: -2px;
    background: var(--gradient-main);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.about-image-container:hover .about-image-border {
    opacity: 1;
}

/* Floating Elements */
.about-float {
    position: absolute;
    background: var(--deep-space);
    border: 1px solid rgba(0, 255, 242, 0.2);
    padding: 16px 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    animation: float 6s ease-in-out infinite;
}

.about-float:nth-child(2) {
    top: 10%;
    right: -40px;
    animation-delay: -2s;
}

.about-float:nth-child(3) {
    bottom: 15%;
    left: -40px;
    animation-delay: -4s;
}

@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

.about-float .number {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.about-float .label {
    color: var(--text-gray);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-content p strong {
    color: var(--text-white);
}

/* === SKILLS SECTION - BENTO GRID === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 24px;
}

.bento-card {
    background: rgba(5, 5, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 242, 0.1);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-8px);
}

.bento-card:hover::before {
    opacity: 0.1;
}

/* Bento Layout Variations */
.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-card.tall {
    grid-row: span 2;
}

.bento-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.1), rgba(177, 74, 237, 0.1));
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--neon-cyan);
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-pill {
    background: rgba(0, 255, 242, 0.05);
    border: 1px solid rgba(0, 255, 242, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.skill-pill:hover {
    background: var(--neon-cyan);
    color: var(--void-black);
    border-color: var(--neon-cyan);
}

/* === EXPERIENCE SECTION === */
.experience-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
}

.experience-nav {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.exp-tab {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-left: 2px solid rgba(0, 255, 242, 0.2);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exp-tab:hover,
.exp-tab.active {
    color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.05);
    border-left-color: var(--neon-cyan);
}

.experience-content {
    position: relative;
}

.exp-panel {
    display: none;
    animation: panelFade 0.5s ease;
}

.exp-panel.active {
    display: block;
}

@keyframes panelFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.exp-role {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.exp-role .company {
    color: var(--neon-cyan);
}

.exp-meta {
    display: flex;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.exp-meta i {
    color: var(--neon-cyan);
    margin-right: 8px;
}

.exp-details {
    list-style: none;
}

.exp-details li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

.exp-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.exp-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 14px;
    background: rgba(177, 74, 237, 0.1);
    border: 1px solid rgba(177, 74, 237, 0.3);
    border-radius: 4px;
    color: var(--neon-purple);
}

/* === EDUCATION - CARDS === */
.education-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edu-card {
    background: linear-gradient(145deg, rgba(5, 5, 26, 0.8), rgba(18, 18, 47, 0.4));
    border: 1px solid rgba(0, 255, 242, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out-expo);
}

.edu-card:hover::before {
    transform: scaleX(1);
}

.edu-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 255, 242, 0.3);
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.edu-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.edu-institution {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.edu-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 255, 137, 0.1);
    border: 1px solid rgba(1, 255, 137, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-green);
}

/* === PROJECTS SECTION - SHOWCASE === */
.projects-showcase {
    display: grid;
    gap: 100px;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-item:nth-child(even) {
    direction: rtl;
}

.project-item:nth-child(even)>* {
    direction: ltr;
}

.project-visual {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--deep-space), var(--dark-matter));
    border: 2px solid rgba(0, 255, 242, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.6s var(--ease-out-expo);
}

.project-item:hover .project-visual {
    border-color: var(--neon-cyan);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 255, 242, 0.2),
        inset 0 0 60px rgba(0, 255, 242, 0.05);
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 1s var(--ease-out-expo), filter 0.5s ease;
}

.project-item:hover .project-visual img {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.1);
}

.project-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 50%,
            rgba(5, 5, 26, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.project-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(177, 74, 237, 0.2), rgba(0, 255, 242, 0.15));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.project-item:hover .project-visual::after {
    opacity: 1;
}

/* Animated corner accents */
.project-visual .corner {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-item:hover .project-visual .corner {
    opacity: 1;
}

.project-visual-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: var(--deep-space);
    transition: all 0.5s ease;
}

.project-type {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.project-item:hover .project-info h3 {
    color: var(--neon-cyan);
}

.project-info p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.project-stack span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 8px 16px;
    background: rgba(0, 255, 242, 0.05);
    border: 1px solid rgba(0, 255, 242, 0.15);
    border-radius: 6px;
    color: var(--text-gray);
}

.project-links {
    display: flex;
    gap: 24px;
}

.project-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--neon-cyan);
}

.project-link i {
    font-size: 1.1rem;
}

/* Work Note */
.work-note {
    background: linear-gradient(135deg, rgba(177, 74, 237, 0.05), rgba(0, 255, 242, 0.05));
    border: 1px solid rgba(177, 74, 237, 0.2);
    border-radius: 20px;
    padding: 32px 40px;
    margin-top: 80px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.work-note-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(177, 74, 237, 0.1);
    border-radius: 12px;
    color: var(--neon-purple);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.work-note-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.work-note-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* === ACHIEVEMENTS === */
.achievements-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.achievement-card {
    background: rgba(5, 5, 26, 0.6);
    border: 1px solid rgba(0, 255, 242, 0.1);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.achievement-card.featured {
    background: linear-gradient(135deg, rgba(177, 74, 237, 0.1), rgba(0, 255, 242, 0.05));
    border-color: var(--neon-purple);
}

.achievement-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
}

.achievement-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: 16px;
    font-size: 1.5rem;
    color: var(--void-black);
    margin-bottom: 24px;
}

.achievement-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.achievement-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Certifications */
.certs-list {
    display: grid;
    gap: 16px;
    margin-top: 60px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: rgba(5, 5, 26, 0.4);
    border: 1px solid rgba(0, 255, 242, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: var(--neon-cyan);
    transform: translateX(12px);
}

.cert-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.1), rgba(177, 74, 237, 0.1));
    border-radius: 12px;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cert-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.cert-info p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin: 0;
}

/* === GAMES SECTION === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    background: rgba(5, 5, 26, 0.6);
    border: 1px solid rgba(0, 255, 242, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.5s var(--ease-out-expo);
}

.game-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-8px);
}

.game-card h3 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--neon-cyan);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.game-canvas {
    display: block;
    margin: 0 auto 20px;
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 255, 242, 0.2);
}

.game-card:last-child .game-canvas {
    border-color: var(--neon-purple);
    box-shadow: 0 0 40px rgba(177, 74, 237, 0.2);
}

.game-score {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 16px;
}

.game-score strong {
    color: var(--neon-green);
    font-size: 1.25rem;
}

.game-instructions {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.game-instructions i {
    color: var(--neon-cyan);
    margin: 0 4px;
}

/* === CONTACT SECTION === */
.contact-section {
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.contact-title .outline {
    -webkit-text-stroke: 2px var(--text-white);
    -webkit-text-fill-color: transparent;
}

.contact-description {
    color: var(--text-gray);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 48px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    text-decoration: none;
    padding: 20px 40px;
    border: 2px solid var(--neon-cyan);
    border-radius: 60px;
    transition: all 0.5s var(--ease-out-expo);
    margin-bottom: 60px;
}

.contact-email:hover {
    background: var(--neon-cyan);
    color: var(--void-black);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 242, 0.4);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.contact-socials a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(0, 255, 242, 0.2);
    border-radius: 50%;
    color: var(--text-gray);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
}

.contact-socials a:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-8px) rotate(-10deg);
    box-shadow: 0 20px 40px rgba(0, 255, 242, 0.2);
}

/* === FOOTER === */
.footer {
    padding: 60px 48px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 242, 0.1);
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
}

.footer a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* === ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s var(--ease-out-expo);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 1s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-reveal>* {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.stagger-reveal.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-reveal.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-reveal.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-reveal.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-reveal.visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-reveal.visible>*:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-reveal.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-gap: 100px;
    }

    .nav {
        padding: 20px 24px;
    }

    section {
        padding: var(--section-gap) 24px;
    }

    .hero {
        padding: 100px 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .experience-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .experience-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 0;
    }

    .exp-tab {
        border-left: none;
        border-bottom: 2px solid rgba(0, 255, 242, 0.2);
        white-space: nowrap;
    }

    .exp-tab:hover,
    .exp-tab.active {
        border-bottom-color: var(--neon-cyan);
    }

    .education-cards {
        grid-template-columns: 1fr;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-item:nth-child(even) {
        direction: ltr;
    }

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

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-dot {
        display: none;
    }

    /* MOBILE MENU - FIXED VISIBILITY */
    .nav {
        mix-blend-mode: normal;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        padding: 16px 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(5, 5, 26, 0.99), rgba(18, 18, 47, 0.99));
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s var(--ease-out-expo);
        z-index: 999;
        backdrop-filter: blur(30px);
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background:
            radial-gradient(circle at 20% 20%, rgba(0, 255, 242, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(177, 74, 237, 0.1) 0%, transparent 50%);
        z-index: -1;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s var(--ease-out-expo);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text-white);
        text-shadow: 0 0 20px rgba(0, 255, 242, 0.3);
        padding: 12px 24px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(0, 255, 242, 0.1);
        color: var(--neon-cyan);
        text-shadow: 0 0 30px var(--neon-cyan);
    }

    .nav-links a span {
        color: var(--neon-cyan);
        font-size: 0.9rem;
    }

    /* Menu Button */
    .menu-btn {
        display: flex;
        z-index: 1001;
        position: relative;
        background: rgba(0, 255, 242, 0.1);
        border: 1px solid rgba(0, 255, 242, 0.3);
        border-radius: 8px;
        padding: 12px;
    }

    .menu-btn span {
        background: var(--neon-cyan);
        box-shadow: 0 0 10px var(--neon-cyan);
    }

    .menu-btn.active {
        background: rgba(177, 74, 237, 0.2);
        border-color: var(--neon-purple);
    }

    .menu-btn.active span {
        background: var(--neon-purple);
        box-shadow: 0 0 10px var(--neon-purple);
    }

    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-title {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

    .bento-card.large,
    .bento-card.wide,
    .bento-card.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .contact-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    /* Better touch targets */
    .btn-magnetic {
        padding: 16px 32px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .project-link {
        padding: 12px 20px;
        background: rgba(0, 255, 242, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 242, 0.2);
    }

    /* === MOBILE HERO === */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero-role {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 24px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 32px;
        padding: 0 10px;
    }

    .hero-cta {
        gap: 16px;
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    /* === MOBILE SECTIONS === */
    section {
        padding: 60px 20px;
    }

    .container {
        width: 100%;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-number {
        font-size: 4rem;
        top: -30px;
        left: -10px;
    }

    .section-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .section-label::before {
        width: 25px;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    /* === MOBILE ABOUT === */
    .about-grid {
        gap: 40px;
    }

    .about-visual {
        max-width: 280px;
    }

    .about-image-container {
        aspect-ratio: 1/1;
        border-radius: 50%;
    }

    .about-image {
        border-radius: 50%;
    }

    .about-float {
        display: none;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    /* === MOBILE BENTO GRID === */
    .bento-grid {
        gap: 16px;
    }

    .bento-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .bento-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .bento-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .skill-pills {
        gap: 6px;
    }

    .skill-pill {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    /* === MOBILE EXPERIENCE === */
    .experience-wrapper {
        gap: 24px;
    }

    .experience-nav {
        display: flex;
        gap: 0;
        margin-bottom: 8px;
    }

    .exp-tab {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .exp-role {
        font-size: 1.25rem;
    }

    .exp-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }

    .exp-details li {
        font-size: 0.95rem;
        margin-bottom: 12px;
        padding-left: 20px;
    }

    .exp-tech {
        gap: 8px;
    }

    .exp-tech span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* === MOBILE EDUCATION === */
    .education-cards {
        gap: 16px;
    }

    .edu-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .edu-year {
        font-size: 0.75rem;
    }

    .edu-card h3 {
        font-size: 1.05rem;
    }

    .edu-institution {
        font-size: 0.9rem;
    }

    .edu-score {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* === MOBILE PROJECTS === */
    .projects-showcase {
        gap: 60px;
    }

    .project-item {
        gap: 24px;
    }

    .project-visual {
        aspect-ratio: 16/10;
        border-radius: 16px;
    }

    .project-type {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .project-info h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .project-info p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .project-stack {
        gap: 8px;
        margin-bottom: 20px;
    }

    .project-stack span {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .project-links {
        gap: 16px;
    }

    .work-note {
        padding: 20px;
        border-radius: 16px;
        flex-direction: column;
        margin-top: 40px;
    }

    .work-note-icon {
        width: 40px;
        height: 40px;
    }

    .work-note-content h4 {
        font-size: 1rem;
    }

    .work-note-content p {
        font-size: 0.9rem;
    }

    /* === MOBILE ACHIEVEMENTS === */
    .achievements-grid {
        gap: 16px;
    }

    .achievement-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .achievement-card h3 {
        font-size: 1.05rem;
    }

    .achievement-card p {
        font-size: 0.9rem;
    }

    .certs-list {
        gap: 12px;
    }

    .cert-item {
        padding: 16px;
        border-radius: 12px;
        gap: 14px;
    }

    .cert-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cert-info h4 {
        font-size: 0.9rem;
    }

    .cert-info p {
        font-size: 0.7rem;
    }

    /* === MOBILE GAMES === */
    .games-grid {
        gap: 24px;
    }

    .game-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .game-card h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .game-canvas {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    #snake-canvas {
        width: 280px;
        height: 280px;
    }

    #tetris-canvas {
        width: 180px;
        height: 360px;
    }

    .game-score {
        font-size: 0.9rem;
    }

    .game-instructions {
        font-size: 0.8rem;
    }

    /* === MOBILE CONTACT === */
    .contact-content {
        padding: 0;
    }

    .contact-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        margin-bottom: 16px;
    }

    .contact-description {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .contact-email {
        font-size: 0.85rem;
        padding: 16px 28px;
        margin-bottom: 40px;
    }

    .contact-socials {
        gap: 20px;
    }

    .contact-socials a {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
    }

    /* === MOBILE FOOTER === */
    .footer {
        padding: 40px 20px;
    }

    .footer p {
        font-size: 0.8rem;
    }

    /* === MOBILE MARQUEE === */
    .marquee-container {
        margin: 40px 0;
        padding: 24px 0;
    }

    .marquee-content span {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        padding: 0 20px;
    }
}

/* === EXTRA SMALL DEVICES === */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .bento-card {
        padding: 20px 16px;
    }

    .project-info h3 {
        font-size: 1.15rem;
    }

    .btn-magnetic {
        padding: 14px 24px;
        font-size: 0.8rem;
    }

    #snake-canvas {
        width: 240px;
        height: 240px;
    }

    #tetris-canvas {
        width: 150px;
        height: 300px;
    }
}

/* === GLITCH EFFECT === */
@keyframes glitchText {

    0%,
    100% {
        text-shadow: none;
    }

    92% {
        text-shadow: none;
    }

    92.5% {
        text-shadow:
            2px 0 var(--neon-cyan),
            -2px 0 var(--neon-pink);
    }

    93% {
        text-shadow: none;
    }

    93.5% {
        text-shadow:
            -2px 0 var(--neon-cyan),
            2px 0 var(--neon-pink);
    }

    94% {
        text-shadow: none;
    }
}

/* === MARQUEE === */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 255, 242, 0.1);
    border-bottom: 1px solid rgba(0, 255, 242, 0.1);
    margin: 80px 0;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 255, 242, 0.3);
    padding: 0 60px;
}

.marquee-content span.solid {
    -webkit-text-stroke: none;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(0, 255, 242, 0.3));
}

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

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

/* Hover effects for better UX */
a,
button {
    cursor: none;
}

@media (max-width: 768px) {

    a,
    button {
        cursor: pointer;
    }
}

/* === EPIC ENHANCEMENTS === */

/* Floating Particles */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: -5;
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Shimmer Effect for Cards */
.bento-card::after,
.project-visual::before,
.achievement-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            transparent 40%,
            rgba(0, 255, 242, 0.03) 50%,
            transparent 60%);
    transform: rotate(-45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.bento-card:hover::after,
.project-item:hover .project-visual::before,
.achievement-card:hover::after {
    animation: shimmer 1.5s ease forwards;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(-45deg);
        opacity: 1;
    }

    100% {
        transform: translateX(100%) rotate(-45deg);
        opacity: 0;
    }
}

/* Pulsing Glow for Featured Elements */
.achievement-card.featured {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(177, 74, 237, 0.2);
    }

    50% {
        box-shadow: 0 0 60px rgba(177, 74, 237, 0.4), 0 0 100px rgba(0, 255, 242, 0.2);
    }
}

/* Neon Text Glow */
.hero-title .gradient {
    text-shadow: 0 0 40px rgba(0, 255, 242, 0.3);
}

/* Project Card Hover Enhancement */
.project-item {
    transition: all 0.5s var(--ease-out-expo);
}

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

/* Rotating Border Animation */
@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

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

.about-image-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: conic-gradient(from 0deg,
            var(--neon-cyan),
            var(--neon-purple),
            var(--neon-pink),
            var(--neon-cyan));
    border-radius: inherit;
    z-index: -1;
    animation: rotateBorder 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-image-container:hover::before {
    opacity: 1;
}

/* Skill Pills Stagger Animation */
.skill-pills .skill-pill {
    animation: pillPop 0.5s var(--ease-out-expo) backwards;
}

.skill-pills .skill-pill:nth-child(1) {
    animation-delay: 0.05s;
}

.skill-pills .skill-pill:nth-child(2) {
    animation-delay: 0.1s;
}

.skill-pills .skill-pill:nth-child(3) {
    animation-delay: 0.15s;
}

.skill-pills .skill-pill:nth-child(4) {
    animation-delay: 0.2s;
}

.skill-pills .skill-pill:nth-child(5) {
    animation-delay: 0.25s;
}

.skill-pills .skill-pill:nth-child(6) {
    animation-delay: 0.3s;
}

.skill-pills .skill-pill:nth-child(7) {
    animation-delay: 0.35s;
}

.skill-pills .skill-pill:nth-child(8) {
    animation-delay: 0.4s;
}

.skill-pills .skill-pill:nth-child(9) {
    animation-delay: 0.45s;
}

@keyframes pillPop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Contact Email Button Glow */
.contact-email {
    position: relative;
}

.contact-email::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-main);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.5s ease;
}

.contact-email:hover::before {
    opacity: 0.6;
}

/* Enhanced Nav Link Glow */
.nav-link:hover {
    text-shadow: 0 0 20px var(--neon-cyan);
}

/* Scramble Text Color */
.scramble-char {
    color: var(--neon-pink);
}

/* Bento Card 3D Depth */
.bento-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-icon {
    transform: translateZ(20px);
    transition: transform 0.5s ease;
}

.bento-card:hover .bento-icon {
    transform: translateZ(40px) scale(1.1);
}

/* Epic Game Card Effects */
.game-canvas {
    transition: box-shadow 0.5s ease;
}

.game-card:hover .game-canvas {
    box-shadow: 0 0 60px rgba(0, 255, 242, 0.4), inset 0 0 30px rgba(0, 255, 242, 0.1);
}

.game-card:last-child:hover .game-canvas {
    box-shadow: 0 0 60px rgba(177, 74, 237, 0.4), inset 0 0 30px rgba(177, 74, 237, 0.1);
}

/* Footer Gradient Line */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Smooth Page Load Animation */
body {
    animation: pageLoad 0.8s ease;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Experience Tab Glow */
.exp-tab.active {
    text-shadow: 0 0 15px var(--neon-cyan);
}

/* Education Card Hover Lift */
.edu-card {
    transform-origin: center bottom;
}

.edu-card:hover {
    transform: translateY(-12px) rotateX(5deg);
}

/* === MORE EPIC ANIMATIONS === */

/* Liquid Button Effect */
.btn-magnetic::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-main);
    border-radius: inherit;
    z-index: -2;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
}

.btn-magnetic:hover::after {
    opacity: 0.7;
    animation: liquidPulse 2s ease infinite;
}

@keyframes liquidPulse {

    0%,
    100% {
        filter: blur(20px);
        transform: scale(1);
    }

    50% {
        filter: blur(30px);
        transform: scale(1.1);
    }
}

/* Rainbow Border on Featured */
.achievement-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg,
            var(--neon-cyan),
            var(--neon-purple),
            var(--neon-pink),
            var(--neon-cyan));
    border-radius: inherit;
    z-index: -1;
    background-size: 300% 100%;
    animation: rainbowBorder 4s linear infinite;
}

@keyframes rainbowBorder {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* Typewriter Cursor for Hero Role */
.hero-role::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--neon-cyan);
    margin-left: 4px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Spotlight Effect on Sections */
section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle,
            rgba(0, 255, 242, 0.03) 0%,
            transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

/* Text Gradient Animation */
.section-title {
    background: linear-gradient(90deg,
            var(--text-white) 0%,
            var(--neon-cyan) 50%,
            var(--text-white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 5s ease infinite;
}

@keyframes textGradient {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

/* Floating Effect for About Floats */
.about-float {
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.about-float::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.1), transparent);
    border-radius: inherit;
}

/* Glowing Skill Pills */
.skill-pill {
    position: relative;
    overflow: hidden;
}

.skill-pill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: translateY(-50%) skewX(-20deg);
    transition: left 0.6s ease;
}

.skill-pill:hover::before {
    left: 200%;
}

/* Better Responsive Images */
.about-image {
    border-radius: 20px;
}

.about-image-container {
    border-radius: 20px;
    position: relative;
    overflow: visible;
}

/* Enhanced Project Cards Mobile */
@media (max-width: 768px) {
    .project-visual {
        aspect-ratio: 16/9;
    }

    .project-visual img {
        object-position: center center;
    }

    .project-info h3 {
        font-size: 1.4rem;
    }

    .project-info p {
        font-size: 0.95rem;
    }
}

/* Better Animations on Mobile */
@media (max-width: 768px) {
    .aurora-blob {
        animation-duration: 30s;
    }

    .section-title {
        animation: none;
        background: none;
        -webkit-text-fill-color: var(--text-white);
    }

    .achievement-card.featured::before {
        animation: rainbowBorder 8s linear infinite;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-main);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Hover Lift for All Cards */
.cert-item,
.exp-panel {
    transition: all 0.4s var(--ease-out-expo);
}

.cert-item:hover {
    background: rgba(0, 255, 242, 0.05);
}

/* Epic Loading State */
.loading {
    position: fixed;
    inset: 0;
    background: var(--void-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 242, 0.1);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Marquee Speed on Mobile */
@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 20s;
    }

    .marquee-content span {
        font-size: clamp(2rem, 8vw, 3rem);
        padding: 0 30px;
    }
}

/* Final Touch - Glow on Focus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 4px;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.4);
}

/* ===========================================================
   TRULY PREMIUM & EPIC EFFECTS
   =========================================================== */

/* Holographic Card Shine Effect */
.bento-card,
.edu-card,
.achievement-card,
.game-card {
    position: relative;
    background: linear-gradient(135deg,
            rgba(5, 5, 26, 0.9) 0%,
            rgba(18, 18, 47, 0.8) 50%,
            rgba(5, 5, 26, 0.9) 100%);
    border: 1px solid rgba(0, 255, 242, 0.15);
    overflow: hidden;
}

.bento-card::before,
.edu-card::before,
.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 255, 242, 0.08),
            rgba(177, 74, 237, 0.08),
            transparent);
    transition: left 0.8s ease;
    z-index: 0;
}

.bento-card:hover::before,
.edu-card:hover::before,
.achievement-card:hover::before {
    left: 100%;
}

/* Premium Neon Glow Text */
.hero-title .gradient {
    position: relative;
    filter: drop-shadow(0 0 30px rgba(0, 255, 242, 0.5)) drop-shadow(0 0 60px rgba(177, 74, 237, 0.3));
}

/* Animated Gradient Border */
.project-visual {
    position: relative;
}

.project-visual::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg,
            var(--neon-cyan),
            var(--neon-purple),
            var(--neon-pink),
            var(--neon-cyan));
    border-radius: inherit;
    z-index: -1;
    background-size: 400% 400%;
    animation: gradientBorder 6s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-item:hover .project-visual::before {
    opacity: 1;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glass Card Effect */
.exp-panel {
    background: rgba(5, 5, 26, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 242, 0.1);
    border-radius: 20px;
    padding: 32px;
}

/* Premium Button Hover */
.btn-magnetic {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--neon-cyan), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
    opacity: 0.3;
}

.btn-magnetic:hover::before {
    width: 300%;
    height: 300%;
}

/* Floating Animation for Cards */
.bento-card {
    animation: subtleFloat 6s ease-in-out infinite;
}

.bento-card:nth-child(2) {
    animation-delay: -1s;
}

.bento-card:nth-child(3) {
    animation-delay: -2s;
}

.bento-card:nth-child(4) {
    animation-delay: -3s;
}

.bento-card:nth-child(5) {
    animation-delay: -4s;
}

@keyframes subtleFloat {

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

    50% {
        transform: translateY(-5px);
    }
}

/* Neon Underline Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    transition: width 0.4s var(--ease-out-expo);
}

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

/* Epic Project Card Transform */
.project-item {
    transform-style: preserve-3d;
    perspective: 1500px;
}

.project-visual {
    transform-origin: center;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s ease;
}

.project-item:hover .project-visual {
    transform: rotateY(-5deg) rotateX(5deg) translateZ(20px);
}

/* Glowing Stats Numbers */
.about-float .number {
    text-shadow:
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan);
}

/* Premium Input Focus */
input:focus,
textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.2);
}

/* Fancy Contact Button */
.contact-email {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.1), rgba(177, 74, 237, 0.1));
    border: 2px solid var(--neon-cyan);
}

.contact-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 255, 242, 0.4),
            transparent);
    transition: left 0.5s ease;
}

.contact-email:hover::before {
    left: 100%;
}

.contact-email:hover {
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.2), rgba(177, 74, 237, 0.2));
    box-shadow:
        0 0 30px rgba(0, 255, 242, 0.3),
        0 0 60px rgba(0, 255, 242, 0.1);
    transform: translateY(-3px);
}

/* Premium Certification Cards */
.cert-item {
    background: linear-gradient(135deg,
            rgba(5, 5, 26, 0.8),
            rgba(18, 18, 47, 0.6));
    border: 1px solid rgba(0, 255, 242, 0.1);
    transition: all 0.4s var(--ease-out-expo);
}

.cert-item:hover {
    border-color: var(--neon-cyan);
    transform: translateX(10px);
    box-shadow: -10px 0 30px rgba(0, 255, 242, 0.1);
}

.cert-icon {
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.2), rgba(177, 74, 237, 0.2));
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.2);
}

/* Epic Social Links */
.contact-socials a {
    position: relative;
    overflow: hidden;
    background: rgba(5, 5, 26, 0.8);
    border: 2px solid rgba(0, 255, 242, 0.2);
    transition: all 0.4s var(--ease-out-expo);
}

.contact-socials a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-socials a:hover {
    border-color: transparent;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 255, 242, 0.3);
}

.contact-socials a:hover::before {
    opacity: 1;
}

.contact-socials a i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.contact-socials a:hover i {
    transform: scale(1.2);
}

/* Premium Section Dividers */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--neon-cyan),
            transparent);
    opacity: 0.5;
}

/* Staggered Card Reveal */
.stagger-reveal.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-reveal.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-reveal.visible>*:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger-reveal.visible>*:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger-reveal.visible>*:nth-child(5) {
    transition-delay: 0.25s;
}

.stagger-reveal.visible>*:nth-child(6) {
    transition-delay: 0.3s;
}

/* Hero Background Pulse */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center,
            rgba(0, 255, 242, 0.05) 0%,
            transparent 50%);
    transform: translate(-50%, -50%);
    animation: heroPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Premium Typography Enhancement */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

/* Disable heavy animations on reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile: Disable heavy effects for performance */
@media (max-width: 768px) {
    .bento-card {
        animation: none;
    }

    .project-item:hover .project-visual {
        transform: none;
    }

    .btn-magnetic::before {
        display: none;
    }

    section::before,
    section::after {
        display: none;
    }

    .hero::before {
        display: none;
    }
}