@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700;800&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom Cursor */
}

body,
h1,
h2,
h3,
h4,
p,
a,
span,
div,
section,
.navbar,
.btn,
.project-card,
.list-item,
.terminal-window,
.term-input-line {
    transition: color 0.6s ease, background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}


:root {
    --bg-body: #050505;
    --text-main: #F5F5F7;
    --text-muted: #666666;
    --accent: #DFFF00;
    /* Cyber Lime */
    --accent-2: #00F5FF;
    /* Electric Cyan */
    --surface: #0f0f0f;
    --border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
    --bg-body: #F5F5F7;
    --text-main: #050505;
    --text-muted: #888888;
    --accent: #FF0055;
    --accent-2: #0055FF;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .eve-visor {
    background: #d0d0d0;
    box-shadow: inset 0 5px 15px rgba(255, 255, 255, 0.5), inset 0 -5px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .terminal-window {
    background: #fff;
    border: 1px solid var(--border);
}

[data-theme="light"] .term-input-line {
    background: #f9f9f9;
}

[data-theme="light"] #terminal-toggler {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .marquee {
    -webkit-text-stroke: 1px #ccc;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

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

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

.cursor-outline {
    width: 80px;
    height: 80px;
    border: 1px solid var(--accent-2);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    backdrop-filter: invert(1);
    -webkit-backdrop-filter: invert(1);
}

/* Typography */
h1,
h2,
h3,
h4,
.mono {
    font-family: 'JetBrains Mono', monospace;
}

h2 {
    font-size: 5vw;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 4rem;
    line-height: 1;
    color: var(--text-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: 0.3s cubic-bezier(0.75, 0, 0.125, 1);
}

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

#theme-toggle {
    background: none;
    border: none;
    color: #fff;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulb-icon {
    width: 24px;
    height: 24px;
    transition: color 0.3s, fill 0.3s;
}

#theme-toggle:hover .bulb-icon {
    color: var(--accent);
    fill: var(--accent);
}

.theme-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 1;

    pointer-events: none;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}








/* Sections */
section,
.marquee-container {
    z-index: 10;
}

.navbar,
.terminal-wrapper,
.cursor-dot,
.cursor-outline {
    z-index: 1000;
}


.navbar,
.terminal-wrapper,
.cursor-dot,
.cursor-outline {
    position: fixed;
}

section,
.marquee-container {
    position: relative;
}


section {
    padding: 10rem 5%;
}


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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 8vw;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Hover Image Popup */
.profile-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(20px, -10%) scale(0.8);
    width: 240px;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    z-index: 10;
    pointer-events: none;
    border: 1px solid var(--accent);
    box-shadow: 20px 20px 0px rgba(0, 245, 255, 0.2);
}

.hover-trigger:hover~.profile-popup {
    opacity: 1;
    visibility: visible;
    transform: translate(20px, -15%) scale(1);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-2);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(44px, 9999px, 48px, 0);
    }

    20% {
        clip: rect(100px, 9999px, 89px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    60% {
        clip: rect(80px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 10px, 0);
    }
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Brutalist Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--border);
    color: var(--text-main);
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    background: transparent;
    transition: color 0.3s;
    margin: 1rem;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--text-main);
    z-index: -1;
    transition: height 0.3s cubic-bezier(0.75, 0, 0.125, 1);
}

.btn:hover {
    color: var(--bg-body);
}

.btn:hover::after {
    height: 100%;
}

.btn-accent::after {
    background: var(--accent);
}

.btn-accent2::after {
    background: var(--accent-2);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--text-main);
}

/* WALL-E Robot Avatar */
.avatar-container {
    display: flex;
    justify-content: center;
    padding-left: 2rem;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 350px;
}

.walle-robot {
    position: relative;
    width: 220px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float-bot 4s ease-in-out infinite;
}


@keyframes float-bot {

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

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

.walle-head {
    width: 140px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.walle-eye {
    width: 65px;
    height: 60px;
    background: #555;
    border-radius: 15px 15px 10px 10px;
    position: relative;
    border: 4px solid #333;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.left-eye-binocular {
    transform: rotate(-5deg);
    margin-right: -5px;
}

.right-eye-binocular {
    transform: rotate(5deg);
    margin-left: -5px;
}

.walle-lens {
    width: 45px;
    height: 45px;
    background: #111;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #444;
}

.walle-pupil {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -7px;
    margin-left: -7px;
    box-shadow: 0 0 10px var(--accent);
    transition: transform 0.1s ease-out;
}

.walle-neck {
    width: 20px;
    height: 25px;
    background: #444;
    margin-top: -5px;
    position: relative;
    z-index: 1;
    background: linear-gradient(to right, #333, #666, #333);
}

.walle-body {
    width: 120px;
    height: 100px;
    background: #e5b026;
    /* Wall-E Yellow */
    border-radius: 10px;
    position: relative;
    border: 4px solid #8b5a2b;
    /* Rusty Brown */
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.walle-panel {
    position: absolute;
    top: 20px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(139, 90, 43, 0.5);
    border-radius: 5px;
}

.walle-body::before {
    content: 'WALL·E';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    color: #8b5a2b;
    opacity: 0.7;
}

/* Arms */
.walle-arm {
    position: absolute;
    width: 15px;
    height: 60px;
    background: #444;
    top: 100px;
    z-index: 0;
    border: 2px solid #333;
}

.left-arm {
    left: 20px;
    transform: rotate(15deg);
    border-radius: 5px 0 0 5px;
}

.right-arm {
    right: 20px;
    transform: rotate(-15deg);
    border-radius: 0 5px 5px 0;
}

.walle-hand {
    position: absolute;
    bottom: -15px;
    left: -10px;
    width: 35px;
    height: 20px;
    border: 4px solid #333;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #555;
}

.left-arm .walle-hand {
    transform: rotate(-10deg);
}

.right-arm .walle-hand {
    transform: rotate(10deg);
}

/* Tracks (Legs) */
.walle-tracks-container {
    display: flex;
    justify-content: space-between;
    width: 140px;
    margin-top: -10px;
    position: relative;
    z-index: 0;
}

.walle-track {
    width: 45px;
    height: 50px;
    background: #333;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    border: 3px solid #222;
    position: relative;
}

.walle-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #444;
    border-radius: 50%;
    box-shadow: 15px 0 0 #444, -15px 0 0 #444;
}



/* Skills Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 5rem 0;
}

.marquee {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 4vw;
    font-weight: 800;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-muted);
    animation: scroll 20s linear infinite;
}

.marquee span {
    margin: 0 2rem;
}

.marquee span:hover {
    color: var(--accent);
    -webkit-text-stroke: 0;
}

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

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

/* Lists for Experience, Publications, Competitions */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.list-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.75, 0, 0.125, 1);
}

.list-item:hover::after {
    width: 100%;
}

.list-item:hover .item-title {
    color: var(--accent);
    transform: translateX(10px);
}

.item-left {
    flex: 1;
}

.item-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    transition: all 0.3s;
}

.item-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.item-right {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--accent-2);
    min-width: 150px;
}

.item-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

.project-card {
    padding: 3rem;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    z-index: 0;
    transition: width 0.5s cubic-bezier(0.75, 0, 0.125, 1);
}

.project-info {
    position: relative;
    z-index: 1;
}

.project-card h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.project-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    transition: color 0.3s;
}

.project-tags {
    margin-top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-2);
}

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

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

.project-card:hover h3,
.project-card:hover p,
.project-card:hover .project-tags {
    color: #000;
}

/* Terminal AI Chatbot */
.terminal-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#terminal-toggler {
    width: 65px;
    height: 65px;
    padding: 0;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#terminal-toggler svg {
    transition: transform 0.3s;
}

#terminal-toggler:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(223, 255, 0, 0.3);
    border-color: var(--accent);
}

#terminal-toggler:hover svg {
    transform: scale(1.1);
}

.terminal-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    background: #000;
    border: 1px solid var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    display: none;
    flex-direction: column;
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.5);
}

.terminal-window.active {
    display: flex;
}

.term-header {
    background: var(--surface);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--text-muted);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.term-close {
    color: var(--text-main);
}

.term-close:hover {
    color: red;
}

.term-body {
    height: 300px;
    padding: 1rem;
    overflow-y: auto;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.term-line {
    line-height: 1.4;
}

.term-sys {
    color: var(--accent);
}

.term-user {
    color: var(--text-main);
}

.term-prompt-txt {
    color: var(--accent-2);
    margin-right: 8px;
}

.term-input-line {
    display: flex;
    padding: 1rem;
    background: #050505;
    border-top: 1px solid var(--text-muted);
}

.term-input-line span {
    color: var(--accent-2);
    margin-right: 10px;
}

.term-input-line input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4rem;
    width: 90%;
    max-width: 800px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    font-family: 'JetBrains Mono';
}

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

/* Responsive */
@media(max-width: 768px) {
    h2 {
        font-size: 3rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

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

    .project-card {
        padding: 2rem;
    }

    .project-card h3 {
        font-size: 2rem;
    }

    .terminal-window {
        width: calc(100vw - 60px);
    }

    .nav-links {
        display: none;
    }
}