/* =========================================
   VARIABLES & THEME CONFIGURATION
   ========================================= */
:root {
    /* Cyber/Dark Theme Colors */
    --bg-dark: #050505;
    --bg-surface: #0f1115;
    --bg-surface-light: #16181d;

    /* Neon Accents */
    --cyan: #00f0ff;
    --magenta: #ff003c;
    --purple: #8a2be2;
    --green: #00ff66;

    /* Typography */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;

    /* Spacing & Layout */
    --section-padding: 100px 0;
    --container-width: 1100px;

    /* Effects */
    --neon-glow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Hide scrollbar for cleaner look, but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) var(--bg-dark);
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

html::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 4px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* We will use a custom cursor */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.2;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--magenta);
    text-shadow: 0 0 8px var(--magenta);
}

/* Typography Utilities */
.highlight {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 300px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    margin-left: 20px;
    opacity: 0.5;
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--cyan);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--magenta);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* =========================================
   NAVIGATION 
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    transition: transform 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.logo span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* =========================================
   HERO SECTION 
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.cyber-subtitle {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.glitch-text {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Simple glitch effect */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--magenta);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(19px, 9999px, 83px, 0);
    }

    20% {
        clip: rect(73px, 9999px, 14px, 0);
    }

    40% {
        clip: rect(29px, 9999px, 45px, 0);
    }

    60% {
        clip: rect(81px, 9999px, 63px, 0);
    }

    80% {
        clip: rect(11px, 9999px, 91px, 0);
    }

    100% {
        clip: rect(52px, 9999px, 32px, 0);
    }
}

.typing-text {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: none;
    /* custom cursor */
    transition: var(--transition-fast);
}

.btn-primary {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2) inset, 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4) inset, 0 0 20px rgba(0, 240, 255, 0.4);
    color: var(--cyan);
    text-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--magenta);
    border: 1px solid var(--magenta);
}

.btn-secondary:hover {
    background: rgba(255, 0, 60, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.4) inset, 0 0 20px rgba(255, 0, 60, 0.4);
    color: var(--magenta);
    text-shadow: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--cyan);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--cyan);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--cyan);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* =========================================
   SECTIONS: ABOUT
   ========================================= */
section {
    padding: var(--section-padding);
}

.about {
    position: relative;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.about-hover-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease, background 0.6s ease;
    pointer-events: none;
}

.about-hover-visual.active-ai {
    opacity: 1;
    background: radial-gradient(circle at 75% 50%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(0, 240, 255, 0.03) 40px, rgba(0, 240, 255, 0.03) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0, 240, 255, 0.03) 40px, rgba(0, 240, 255, 0.03) 41px);
}

.about-hover-visual.active-robotics {
    opacity: 1;
    background: radial-gradient(circle at 75% 50%, rgba(255, 0, 60, 0.12) 0%, transparent 50%),
        repeating-radial-gradient(circle at 75% 50%, transparent, transparent 20px, rgba(255, 0, 60, 0.04) 20px, rgba(255, 0, 60, 0.04) 21px);
}

.about-hover-visual.active-space {
    opacity: 1;
    background: radial-gradient(circle at 75% 50%, rgba(138, 43, 226, 0.2) 0%, transparent 60%);
}

.about-hover-visual.active-arvr {
    opacity: 1;
    background: radial-gradient(circle at 75% 50%, rgba(0, 255, 102, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 255, 102, 0.05) 25%, transparent 25%, transparent 75%, rgba(0, 255, 102, 0.05) 75%, rgba(0, 255, 102, 0.05) 100%);
    background-size: 20px 20px;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text strong {
    color: #fff;
}

.terminal-prompt {
    font-family: var(--font-mono);
    color: var(--green) !important;
    margin-bottom: 1rem !important;
}

.skills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.skills-list li {
    display: flex;
    align-items: center;
    cursor: none;
    transition: var(--transition-fast);
}

.skills-list li:hover {
    color: #fff;
    transform: translateX(10px);
}

.skills-list li::before {
    content: '▹';
    color: var(--cyan);
    margin-right: 10px;
    font-size: 1.2rem;
}

.about-visual {
    position: relative;
}

.cyber-frame {
    position: relative;
    padding: 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.05);
}

#about-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transition: var(--transition-slow);
}

.cyber-frame:hover #about-img {
    filter: grayscale(0%) contrast(1);
}

.frame-corners {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    pointer-events: none;
}

.frame-corners::before,
.frame-corners::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--cyan);
    border-style: solid;
}

.frame-corners::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.frame-corners::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* =========================================
   SECTIONS: PROJECTS
   ========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    transform: translateY(0);
    transition: var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 60, 0.05));
    opacity: 0;
    transition: var(--transition-slow);
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: var(--neon-glow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.folder-icon {
    font-size: 2.5rem;
    color: var(--cyan);
}

.project-links a {
    font-size: 1.2rem;
    margin-left: 10px;
    color: var(--text-muted);
}

.project-links a:hover {
    color: var(--cyan);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   SECTIONS: CONTACT (TERMINAL)
   ========================================= */
.contact-terminal {
    background: #111;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #000;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-header p {
    margin-left: auto;
    margin-right: auto;
    color: #888;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #e2e8f0;
    min-height: 250px;
}

.terminal-body p {
    margin-bottom: 10px;
}

.prompt {
    color: var(--green);
    margin-right: 10px;
}

.response {
    color: var(--text-muted);
    margin-left: 15px;
}

.terminal-body pre {
    margin: 10px 0 20px 15px;
    color: var(--cyan);
}

.terminal-link {
    color: var(--magenta);
    text-decoration: underline;
    text-decoration-color: rgba(255, 0, 60, 0.3);
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    border-top: 1px solid #111;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-sub {
    color: var(--cyan);
    font-size: 0.8rem;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 3rem;
    }

    .typing-text {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        padding: 2rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    /* Disable custom cursor on mobile */
    body {
        cursor: auto;
    }
}