    :root {
        --pixel-black: #0f0f1e;
        --pixel-purple: #7c3aed;
        --pixel-pink: #ec4899;
        --pixel-cyan: #06b6d4;
        --pixel-yellow: #fbbf24;
        --pixel-green: #10b981;
        --pixel-white: #f8fafc;
        --pixel-gray: #94a3b8;
        --pixel-dark-gray: #1e293b;
        --scanline-opacity: 0.08;
    }

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

    body {
        font-family: 'Inter', sans-serif;
        background: var(--pixel-black);
        color: var(--pixel-white);
        overflow-x: hidden;
        image-rendering: pixelated;
        image-rendering: crisp-edges;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(0deg,
                rgba(0, 0, 0, 0.15),
                rgba(0, 0, 0, 0.15) 1px,
                transparent 1px,
                transparent 2px);
        pointer-events: none;
        z-index: 9999;
        opacity: var(--scanline-opacity);
        animation: scanlines 8s linear infinite;
    }

    @keyframes scanlines {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(10px);
        }
    }

    .pixel-border {
        position: relative;
        image-rendering: pixelated;
    }

    .pixel-border::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 4px solid currentColor;
        clip-path: polygon(0 8px, 8px 8px, 8px 0,
                calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
                100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
                8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
        pointer-events: none;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(15, 15, 30, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
        border-bottom: 4px solid var(--pixel-purple);
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    }

    nav {
        max-width: 1400px;
        margin: 0 auto;
        padding: 1.5rem 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-family: 'Press Start 2P', monospace;
        font-size: 1.2rem;
        color: var(--pixel-pink);
        text-shadow:
            2px 2px 0 var(--pixel-purple),
            4px 4px 0 var(--pixel-cyan);
        animation: glitch 3s infinite;
    }

    @keyframes glitch {

        0%,
        90%,
        100% {
            transform: translate(0);
        }

        92% {
            transform: translate(-2px, 1px);
        }

        94% {
            transform: translate(2px, -1px);
        }

        96% {
            transform: translate(-1px, 2px);
        }
    }

    .nav-links {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    .nav-links a {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.75rem;
        color: var(--pixel-cyan);
        text-decoration: none;
        transition: all 0.3s;
        position: relative;
    }

    .nav-links a::before {
        content: '>';
        position: absolute;
        left: -15px;
        opacity: 0;
        transition: all 0.3s;
    }

    .nav-links a:hover {
        color: var(--pixel-pink);
        transform: translateX(10px);
    }

    .nav-links a:hover::before {
        opacity: 1;
    }

    /* Sections */
    section {
        min-height: 100vh;
        padding: 120px 6rem 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .container {
        max-width: 1400px;
        width: 100%;
    }

    .section-title {
        font-family: 'Press Start 2P', monospace;
        font-size: 2.2rem;
        color: var(--pixel-pink);
        text-align: center;
        margin-bottom: 4rem;
        text-shadow:
            3px 3px 0 var(--pixel-purple),
            6px 6px 0 rgba(124, 58, 237, 0.3);
        animation: titleFloat 3s ease-in-out infinite;
    }

    @keyframes titleFloat {

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

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

    #about {
        background:
            radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .hero-text {
        animation: slideInLeft 1s ease-out;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }

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

    .hero-text h1 {
        font-family: 'Press Start 2P', monospace;
        font-size: 3rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, var(--pixel-pink), var(--pixel-purple), var(--pixel-cyan));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-text h2 {
        font-family: 'Inter', sans-serif;
        font-size: 1.7rem;
        color: var(--pixel-cyan);
        margin-bottom: 2rem;
    }

    .hero-text p {
        font-size: 1.2rem;
        color: var(--pixel-gray);
        line-height: 1.8;
        margin-bottom: 0.25rem;
    }

    .cta-button {
        display: inline-block;
        font-family: 'Press Start 2P', monospace;
        font-size: 0.9rem;
        padding: 1.2rem 2.5rem;
        background: var(--pixel-pink);
        color: var(--pixel-black);
        text-decoration: none;
        position: relative;
        margin-top: 2rem;
        transition: all 0.3s;
        box-shadow: 6px 6px 0 var(--pixel-purple);
    }

    .cta-button:hover {
        transform: translate(3px, 3px);
        box-shadow: 3px 3px 0 var(--pixel-purple);
    }

    .cta-button:active {
        transform: translate(6px, 6px);
        box-shadow: 0 0 0 var(--pixel-purple);
    }

    .pixel-avatar {
        position: relative;
        animation: slideInRight 1s ease-out;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

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

    .avatar-frame {
        width: 400px;
        height: 400px;
        background: linear-gradient(135deg, var(--pixel-purple), var(--pixel-pink));
        padding: 8px;
        clip-path: polygon(0 20px, 20px 20px, 20px 0,
                calc(100% - 20px) 0, calc(100% - 20px) 20px, 100% 20px,
                100% calc(100% - 20px), calc(100% - 20px) calc(100% - 20px), calc(100% - 20px) 100%,
                20px 100%, 20px calc(100% - 20px), 0 calc(100% - 20px));
        animation: float 4s ease-in-out infinite;
        margin: 0 auto;
    }

    @keyframes float {

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

        50% {
            transform: translateY(-20px) rotate(2deg);
        }
    }

    .avatar-inner {
        width: 100%;
        height: 100%;
        background: var(--pixel-dark-gray);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Press Start 2P', monospace;
        font-size: 4rem;
        color: var(--pixel-cyan);
    }

    /* Skills Section */
    #skills {
        background:
            radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    }

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

    .skill-card {
        background: var(--pixel-dark-gray);
        padding: 2rem;
        position: relative;
        border: 4px solid var(--pixel-cyan);
        transition: all 0.3s;
        animation: fadeIn 1s ease-out backwards;
    }

    .skill-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .skill-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .skill-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .skill-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .skill-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .skill-card:nth-child(6) {
        animation-delay: 0.6s;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

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

    .skill-card::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(135deg, var(--pixel-cyan), var(--pixel-purple));
        opacity: 0;
        transition: opacity 0.3s;
        z-index: -1;
    }

    .skill-card:hover {
        transform: translateY(-10px);
        border-color: var(--pixel-pink);
    }

    .skill-card:hover::before {
        opacity: 0.3;
    }

    .skill-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .skill-card h3 {
        font-family: 'Press Start 2P', monospace;
        font-size: 1.2rem;
        color: var(--pixel-cyan);
        margin-bottom: 1rem;
    }

    .skill-card ul {
        list-style: none;
    }

    .skill-card li {
        font-size: 1.1rem;
        color: var(--pixel-gray);
        margin-bottom: 0.5rem;
        padding-left: 1.5rem;
        position: relative;
    }

    .skill-card li::before {
        content: '▸';
        position: absolute;
        left: 0;
        color: var(--pixel-pink);
    }

    /* Projects Section */
    #projects {
        background:
            radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 3rem;
    }

    .project-card {
        background: var(--pixel-dark-gray);
        border: 4px solid var(--pixel-purple);
        overflow: hidden;
        transition: all 0.3s;
        position: relative;
    }

    .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.2), transparent);
        transition: left 0.5s;
    }

    .project-card:hover::before {
        left: 100%;
    }

    .project-card:hover {
        transform: scale(1.05);
        border-color: var(--pixel-pink);
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
    }

    .project-image {
        width: 100%;
        height: 200px;
        background: linear-gradient(135deg, var(--pixel-purple), var(--pixel-cyan));
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Press Start 2P', monospace;
        font-size: 2rem;
        color: var(--pixel-black);
        position: relative;
        overflow: hidden;
    }

    .project-image::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200%;
        height: 200%;
        background: repeating-linear-gradient(45deg,
                transparent,
                transparent 10px,
                rgba(255, 255, 255, 0.1) 10px,
                rgba(255, 255, 255, 0.1) 20px);
        animation: moveStripes 20s linear infinite;
    }

    @keyframes moveStripes {
        from {
            transform: translate(-50%, -50%) rotate(0deg);
        }

        to {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    .project-content {
        padding: 2rem;
    }

    .project-content h3 {
        font-family: 'Press Start 2P', monospace;
        font-size: 1.3rem;
        color: var(--pixel-pink);
        margin-bottom: 1rem;
    }

    .project-content p {
        font-size: 1.1rem;
        color: var(--pixel-gray);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .tag {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
        background: var(--pixel-purple);
        color: var(--pixel-white);
    }

    .project-links {
        display: flex;
        gap: 1rem;
    }

    .project-link {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.75rem;
        padding: 0.8rem 1.5rem;
        background: transparent;
        border: 3px solid var(--pixel-cyan);
        color: var(--pixel-cyan);
        text-decoration: none;
        transition: all 0.3s;
    }

    .project-link:hover {
        background: var(--pixel-cyan);
        color: var(--pixel-black);
    }

    .project-link-comingsoon {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.75rem;
        padding: 0.8rem 1.5rem;
        border: 3px solid var(--pixel-cyan);
        text-decoration: none;
        background: transparent;
        color: var(--pixel-cyan);
    }

    /* Work Experience Section */
    #experience {
        background:
            radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    }

    .timeline {
        position: relative;
        max-width: 900px;
        margin: 0 auto;
    }

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 100%;
        background: var(--pixel-purple);
    }

    .timeline-item {
        margin-bottom: 4rem;
        position: relative;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 0;
        margin-right: calc(50% + 3rem);
        text-align: right;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: calc(50% + 3rem);
        margin-right: 0;
    }

    .timeline-dot {
        position: absolute;
        left: 50%;
        top: 2rem;
        transform: translateX(-50%);
        width: 30px;
        height: 30px;
        background: var(--pixel-pink);
        border: 5px solid var(--pixel-black);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
        }

        50% {
            box-shadow: 0 0 0 20px rgba(236, 72, 153, 0);
        }
    }

    .timeline-content {
        background: var(--pixel-dark-gray);
        padding: 2rem;
        border: 4px solid var(--pixel-cyan);
        position: relative;
    }

    .timeline-content h3 {
        font-family: 'Press Start 2P', monospace;
        font-size: 1.2rem;
        color: var(--pixel-pink);
        margin-bottom: 0px;
        line-height: 1.5;
    }

    .timeline-content h4 {
        font-family: 'Inter', sans-serif;
        font-size: 1.2rem;
        color: var(--pixel-cyan);
        margin-bottom: 0.5rem;
    }

    .timeline-date {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.75rem;
        color: var(--pixel-yellow);
        margin-bottom: 1rem;
    }

    .timeline-content ul {
        list-style: none;
    }

    .timeline-content li {
        font-size: 1.1rem;
        color: var(--pixel-gray);
        margin-bottom: 0.5rem;
        padding-left: 1.5rem;
        position: relative;
    }

    .timeline-content li::before {
        content: '◆';
        position: absolute;
        left: 0;
        color: var(--pixel-purple);
    }

    /* Education Section */
    #education {
        background:
            radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    }

    .education-grid {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-bottom: 4rem;
    }

    .education-card {
        background: var(--pixel-dark-gray);
        padding: 2.5rem;
        border: 4px solid var(--pixel-yellow);
        position: relative;
        transition: all 0.3s;
    }

    .education-card::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(135deg, var(--pixel-yellow), var(--pixel-purple));
        opacity: 0;
        transition: opacity 0.3s;
        z-index: -1;
    }

    .education-card:hover {
        transform: translateY(-10px);
        border-color: var(--pixel-pink);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
    }

    .education-card:hover::before {
        opacity: 0.3;
    }

    .education-icon {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .education-card h3 {
        font-family: 'Press Start 2P', monospace;
        font-size: 1.3rem;
        color: var(--pixel-yellow);
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

    .education-card h4 {
        font-family: 'Inter', sans-serif;
        font-size: 1.2rem;
        color: var(--pixel-cyan);
        margin-bottom: 1rem;
    }

    .education-date {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.75rem;
        color: var(--pixel-pink);
        margin-bottom: 1.5rem;
    }

    .education-card p {
        font-size: 1.1rem;
        color: var(--pixel-gray);
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .education-card ul {
        list-style: none;
    }

    .education-card li {
        font-size: 1rem;
        color: var(--pixel-gray);
        margin-bottom: 0.5rem;
        padding-left: 1.5rem;
        position: relative;
    }

    .education-card li::before {
        content: '⭐';
        position: absolute;
        left: 0;
        font-size: 0.7rem;
    }

    /* Certifications Section */
    .certifications-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .cert-badge {
        background: var(--pixel-dark-gray);
        padding: 2rem;
        border: 3px solid var(--pixel-purple);
        text-align: center;
        transition: all 0.3s;
        position: relative;
    }

    .cert-badge::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        background: linear-gradient(135deg, var(--pixel-purple), var(--pixel-pink), var(--pixel-cyan));
        opacity: 0;
        transition: opacity 0.3s;
        z-index: -1;
    }

    .cert-badge:hover {
        transform: scale(1.05) rotate(2deg);
        border-color: var(--pixel-cyan);
    }

    .cert-badge:hover::before {
        opacity: 0.4;
    }

    .cert-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {

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

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

    .cert-badge h4 {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.9rem;
        color: var(--pixel-cyan);
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .cert-badge p {
        font-size: 1rem;
        color: var(--pixel-gray);
    }

    .cert-date {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.65rem;
        color: var(--pixel-pink);
        margin-top: 0.5rem;
    }

    .section-subtitle {
        font-family: 'Press Start 2P', monospace;
        font-size: 1.5rem;
        color: var(--pixel-cyan);
        text-align: center;
        margin: 4rem 0 2rem 0;
    }

    /* Contact Section */
    #contact {
        background:
            radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    }

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

    .contact-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
    }

    .contact-info {
        background: var(--pixel-dark-gray);
        padding: 2rem;
        border: 4px solid var(--pixel-green);
    }

    .contact-info h3 {
        font-family: 'Press Start 2P', monospace;
        font-size: 1.2rem;
        color: var(--pixel-green);
        margin-bottom: 2rem;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    .contact-item a {
        font-size: 1.1rem;
        color: var(--pixel-cyan);
        text-decoration: none;
        transition: color 0.3s;
    }

    .contact-item a:hover {
        color: var(--pixel-pink);
    }

    .contact-form {
        background: var(--pixel-dark-gray);
        padding: 2rem;
        border: 4px solid var(--pixel-green);
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.85rem;
        color: var(--pixel-cyan);
        display: block;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        background: var(--pixel-black);
        border: 3px solid var(--pixel-purple);
        color: var(--pixel-white);
        font-family: 'Inter', sans-serif;
        font-size: 1.1rem;
        transition: border-color 0.3s;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--pixel-cyan);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 150px;
    }

    .submit-btn {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.9rem;
        padding: 1.2rem 2.5rem;
        background: var(--pixel-green);
        color: var(--pixel-black);
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 6px 6px 0 var(--pixel-cyan);
        width: 100%;
    }

    .submit-btn:hover {
        transform: translate(3px, 3px);
        box-shadow: 3px 3px 0 var(--pixel-cyan);
    }

    .submit-btn:active {
        transform: translate(6px, 6px);
        box-shadow: 0 0 0 var(--pixel-cyan);
    }

    /* Footer */
    footer {
        background: var(--pixel-dark-gray);
        border-top: 4px solid var(--pixel-purple);
        padding: 2rem;
        text-align: center;
    }

    footer p {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.75rem;
        color: var(--pixel-gray);
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: none;
        font-family: 'Press Start 2P', monospace;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--pixel-cyan);
        cursor: pointer;
    }

    /* Responsive */
    @media (max-width: 968px) {
        .menu-toggle {
            display: block;
        }

        .nav-links {
            position: fixed;
            top: 80px;
            left: -100%;
            flex-direction: column;
            background: rgba(15, 15, 30, 0.98);
            width: 100%;
            padding: 2rem;
            transition: left 0.3s;
            border-bottom: 4px solid var(--pixel-purple);
        }

        .nav-links.active {
            left: 0;
        }

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

        .avatar-frame {
            width: 300px;
            height: 300px;
        }

        .hero-text h1 {
            font-size: 1.7rem;
        }

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

        .timeline::before {
            left: 20px;
        }

        .timeline-item:nth-child(odd) .timeline-content,
        .timeline-item:nth-child(even) .timeline-content {
            margin-left: 60px;
            margin-right: 0;
            text-align: left;
        }

        .timeline-dot {
            left: 20px;
            transform: translateX(0);
        }
    }

    @media (max-width: 640px) {
        .hero-text h1 {
            font-size: 1.5rem;
        }

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

        .skills-grid,
        .projects-grid {
            grid-template-columns: 1fr;
        }

        .avatar-frame {
            width: 250px;
            height: 250px;
        }

        .avatar-inner {
            font-size: 2rem;
        }
    }

    /* Loading Animation */
    .loading-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--pixel-black);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        animation: fadeOut 1s 2s forwards;
    }

    @keyframes fadeOut {
        to {
            opacity: 0;
            pointer-events: none;
        }
    }

    .loading-text {
        font-family: 'Press Start 2P', monospace;
        font-size: 2rem;
        color: var(--pixel-cyan);
        animation: blink 1s infinite;
    }

    @keyframes blink {

        0%,
        50% {
            opacity: 1;
        }

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

    /* GIF Modal */
    .gif-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 15, 30, 0.98);
        z-index: 10001;
        animation: modalFadeIn 0.3s ease-out;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .gif-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }

    .gif-modal-content {
        position: relative;
        width: 90%;
        max-width: 1400px;
        background: var(--pixel-dark-gray);
        border: 4px solid var(--pixel-purple);
        padding: 2rem;
        animation: modalSlideIn 0.4s ease-out;
        box-shadow: 0 0 50px rgba(124, 58, 237, 0.5);
        max-height: 90vh;
        overflow-y: auto;
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-50px) scale(0.9);
        }

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

    .gif-modal-content::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(135deg, var(--pixel-purple), var(--pixel-pink), var(--pixel-cyan));
        opacity: 0.3;
        z-index: -1;
        animation: rotateGradient 3s linear infinite;
    }

    @keyframes rotateGradient {
        from {
            filter: hue-rotate(0deg);
        }

        to {
            filter: hue-rotate(360deg);
        }
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 3px solid var(--pixel-purple);
    }

    .modal-title {
        font-family: 'Press Start 2P', monospace;
        font-size: 1.3rem;
        color: var(--pixel-pink);
        line-height: 1.5;
    }

    .modal-close {
        font-family: 'Press Start 2P', monospace;
        font-size: 1.5rem;
        background: transparent;
        border: 3px solid var(--pixel-pink);
        color: var(--pixel-pink);
        padding: 0.8rem 1.5rem;
        cursor: pointer;
        transition: all 0.3s;
        flex-shrink: 0;
        margin-left: 1rem;
    }

    .modal-close:hover {
        background: var(--pixel-pink);
        color: var(--pixel-black);
        transform: scale(1.1);
    }

    .gif-container {
        position: relative;
        width: 100%;
        background: var(--pixel-black);
        border: 3px solid var(--pixel-cyan);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 400px;
    }

    .gif-container img {
        width: 100%;
        height: auto;
        display: block;
        image-rendering: crisp-edges;
    }

    .gif-loading {
        position: absolute;
        font-family: 'Press Start 2P', monospace;
        font-size: 1rem;
        color: var(--pixel-cyan);
        animation: blink 1s infinite;
    }

    .modal-description {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 3px solid var(--pixel-purple);
    }

    .modal-description h4 {
        font-family: 'Press Start 2P', monospace;
        font-size: 1rem;
        color: var(--pixel-cyan);
        margin-bottom: 1rem;
    }

    .modal-description p {
        font-size: 1.1rem;
        color: var(--pixel-gray);
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .modal-tech-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .modal-tech-tag {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
        background: var(--pixel-purple);
        color: var(--pixel-white);
        border: 2px solid var(--pixel-cyan);
    }

    .modal-links {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .modal-link {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.8rem;
        padding: 1rem 2rem;
        background: transparent;
        border: 3px solid var(--pixel-cyan);
        color: var(--pixel-cyan);
        text-decoration: none;
        transition: all 0.3s;
        display: inline-block;
    }

    .modal-link:hover {
        background: var(--pixel-cyan);
        color: var(--pixel-black);
        transform: translateY(-2px);
    }

    /* Project Card Hover - Removed since using buttons */
    .project-image {
        position: relative;
    }

    @media (max-width: 768px) {
        .gif-modal-content {
            width: 95%;
            padding: 1.5rem;
        }

        .modal-title {
            font-size: 0.7rem;
        }

        .modal-close {
            font-size: 0.8rem;
            padding: 0.6rem 1rem;
        }

        .modal-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

        .modal-close {
            margin-left: 0;
            width: 100%;
        }

        .gif-container {
            min-height: 250px;
        }
    }

    @media (max-width: 480px) {

        /* Navigation */
        nav {
            padding: 1rem 1.2rem;
        }

        .logo {
            font-size: 0.6rem;
        }

        /* Sections */
        section {
            padding: 100px 1.2rem 60px;
            min-height: auto;
        }

        /* Hero */
        .hero-content {
            grid-template-columns: 1fr;
            gap: 2.5rem;
            text-align: center;
        }

        .hero-text h1 {
            font-size: 1.3rem;
            line-height: 1.5;
        }

        .hero-text h2 {
            font-size: 1.1rem;
        }

        .hero-text p {
            font-size: 1rem;
        }

        .cta-button {
            font-size: 0.7rem;
            padding: 1rem 1.8rem;
        }

        .pixel-avatar {
            order: -1;
        }

        .avatar-frame {
            width: 200px;
            height: 200px;
            margin: 0 auto;
        }

        .avatar-inner {
            font-size: 1.5rem;
        }

        /* Avatar image fills the frame */
        .avatar-inner image,
        .avatar-inner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Section titles */
        .section-title {
            font-size: 1rem;
            margin-bottom: 2.5rem;
        }

        .section-subtitle {
            font-size: 1rem;
            margin: 2.5rem 0 1.5rem 0;
        }

        /* Skills */
        .skills-grid {
            grid-template-columns: 1fr;
            gap: 1.2rem;
        }

        .skill-card {
            padding: 1.5rem;
        }

        .skill-card h3 {
            font-size: 0.9rem;
        }

        .skill-card li {
            font-size: 1rem;
        }

        /* Projects */
        .projects-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .project-content h3 {
            font-size: 1rem;
        }

        .project-content p {
            font-size: 1rem;
        }

        .project-link {
            font-size: 0.65rem;
            padding: 0.7rem 1rem;
        }

        /* Timeline */
        .timeline::before {
            left: 12px;
        }

        .timeline-dot {
            left: 12px;
            width: 22px;
            height: 22px;
            top: 1.5rem;
        }

        .timeline-item:nth-child(odd) .timeline-content,
        .timeline-item:nth-child(even) .timeline-content {
            margin-left: 48px;
            margin-right: 0;
            text-align: left;
            padding: 1.2rem;
        }

        .timeline-content h3 {
            font-size: 0.8rem;
        }

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

        .timeline-date {
            font-size: 0.6rem;
        }

        .timeline-content li {
            font-size: 0.95rem;
        }

        /* Education */
        .education-card {
            padding: 1.5rem;
        }

        .education-card h3 {
            font-size: 0.9rem;
        }

        .education-card h4 {
            font-size: 1rem;
        }

        .education-card p,
        .education-card li {
            font-size: 1rem;
        }

        /* Certifications */
        .certifications-grid {
            grid-template-columns: 1fr;
            gap: 1.2rem;
        }

        .cert-badge {
            padding: 1.5rem;
        }

        .cert-badge h4 {
            font-size: 0.75rem;
        }

        /* Contact */
        .contact-info {
            padding: 1.5rem;
            width: 100%;
        }

        .contact-info h3 {
            font-size: 0.9rem;
        }

        /* Footer */
        footer p {
            font-size: 0.55rem;
            line-height: 2;
        }

        /* Loading screen */
        .loading-text {
            font-size: 1.2rem;
        }

        /* Modal */
        .gif-modal-content {
            padding: 1rem;
        }

        .modal-title {
            font-size: 0.65rem;
        }
    }