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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --accent-primary: #00ff41;
    --accent-secondary: #ff0080;
    --accent-tertiary: #00d4ff;
    --accent-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background: #000000;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* EXTREME ANIMATED BACKGROUND */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 128, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 15s linear infinite;
}

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

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

@keyframes gridScroll {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Scanline Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 255, 65, 0.02) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

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

    100% {
        transform: translateY(100vh);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 0;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 40px rgba(0, 255, 65, 0.1),
        inset 0 0 40px rgba(0, 255, 65, 0.02);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-shadow:
        0 0 10px rgba(0, 255, 65, 0.8),
        0 0 20px rgba(0, 255, 65, 0.6),
        0 0 30px rgba(0, 255, 65, 0.4);
    position: relative;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(0, 255, 65, 0.8),
            0 0 20px rgba(0, 255, 65, 0.6),
            0 0 30px rgba(0, 255, 65, 0.4);
    }

    50% {
        text-shadow:
            0 0 20px rgba(0, 255, 65, 1),
            0 0 30px rgba(0, 255, 65, 0.8),
            0 0 40px rgba(0, 255, 65, 0.6);
    }
}

.logo span {
    color: var(--accent-secondary);
    text-shadow:
        0 0 10px rgba(255, 0, 128, 0.8),
        0 0 20px rgba(255, 0, 128, 0.6);
}

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

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

nav a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    margin-bottom: 4rem;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    position: relative;
}

.hero-greeting {
    font-family: var(--font-mono);
    color: var(--accent-tertiary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    position: relative;
    text-shadow: 0 0 80px rgba(0, 255, 65, 0.5);
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), transparent);
    box-shadow: 0 0 20px var(--accent-primary);
}

.hero h2 {
    font-size: 3rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    background: linear-gradient(135deg, var(--text-secondary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: #000000;
    font-weight: 700;
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 50px rgba(0, 255, 65, 0.8),
        0 15px 40px rgba(0, 0, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow:
        inset 0 0 20px rgba(0, 255, 65, 0.1),
        0 0 20px rgba(0, 255, 65, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-3px);
    box-shadow:
        inset 0 0 30px rgba(0, 255, 65, 0.2),
        0 0 40px rgba(0, 255, 65, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 212, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 0 50px rgba(0, 255, 65, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.6);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.6));
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Titles */
.section-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Terminal */
.terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--accent-primary);
    padding: 2rem;
    font-family: var(--font-mono);
    margin: 3rem 0 6rem;
    box-shadow:
        0 0 50px rgba(0, 255, 65, 0.3),
        inset 0 0 50px rgba(0, 255, 65, 0.05);
    position: relative;
    transition: all 0.4s ease;
}

.terminal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.terminal:hover::before {
    opacity: 0.5;
    animation: gradientShift 3s ease infinite;
}

.terminal:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 60px rgba(0, 255, 65, 0.5),
        inset 0 0 60px rgba(0, 255, 65, 0.1);
}

@keyframes gradientShift {

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

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

.terminal-line {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.terminal-prompt {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.terminal-command {
    color: var(--accent-tertiary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.project-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 65, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px);
    box-shadow:
        0 0 50px rgba(0, 255, 65, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.6);
}

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

.project-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.6));
}

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

.project-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.project-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
    transform: scale(1.2);
}

.project-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 65, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

/* Skills Section */
.skills-container {
    margin-bottom: 6rem;
}

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

.skill-category {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
}

.skill-category h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-mono);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.skill-item::before {
    content: '▸';
    color: var(--accent-primary);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.skill-item:hover {
    color: var(--accent-primary);
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 6rem 0;
    margin-bottom: 4rem;
}

.contact-section h2 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-section p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover::before {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
}

.social-link:hover {
    color: var(--accent-primary);
    transform: translateY(-5px) scale(1.2);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.5);
}

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

::-webkit-scrollbar-track {
    background: #000000;
    border-left: 1px solid rgba(0, 255, 65, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

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

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

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

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

/* Selection */
::selection {
    background: var(--accent-primary);
    color: #000000;
}

/* Fade In Animation */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}