/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.7;
}

/* =========================
   VARIABLES
========================= */

:root {
    --bg: #0a0a0f;
    --card: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.1);

    --primary: #00d4ff;
    --secondary: #7b61ff;

    --text: #ffffff;
    --text-light: #b5b5b5;

    --radius: 18px;

    --shadow:
        0 10px 40px rgba(0,0,0,.4);
}

/* =========================
   GRID BACKGROUND
========================= */

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            rgba(255,255,255,.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.03) 1px,
            transparent 1px
        );

    background-size: 40px 40px;
}

body::before {
    content: "";

    position: fixed;
    width: 800px;
    height: 800px;

    background:
        radial-gradient(
            circle,
            rgba(0,212,255,.15),
            transparent 70%
        );

    top: -300px;
    left: -200px;

    z-index: -1;
}

body::after {
    content: "";

    position: fixed;
    width: 700px;
    height: 700px;

    background:
        radial-gradient(
            circle,
            rgba(123,97,255,.15),
            transparent 70%
        );

    right: -250px;
    bottom: -250px;

    z-index: -1;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: min(1200px, 90%);
    margin: auto;
}

/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(20px);

    background:
        rgba(10,10,15,.65);

    border-bottom:
        1px solid var(--border);
}

.navbar {
    width: min(1200px, 92%);
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 80px;
}

.logo {
    font-family: Orbitron, sans-serif;
    font-size: 1.8rem;
    font-weight: 900;

    text-decoration: none;
    color: white;
}

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

.nav-links a {
    text-decoration: none;
    color: white;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.resume-btn {
    padding: .8rem 1.4rem;

    border-radius: 999px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 100px 20px;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-block;

    padding: .7rem 1rem;

    border: 1px solid rgba(0,212,255,.25);

    background:
        rgba(0,212,255,.08);

    color: var(--primary);

    border-radius: 999px;

    font-size: .85rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(
        3rem,
        8vw,
        6rem
    );

    line-height: 1.05;

    margin-bottom: 1rem;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 700px;

    margin: auto;

    color: var(--text-light);

    font-size: 1.2rem;

    margin-bottom: 3rem;
}

/* =========================
   BUTTONS
========================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;

    margin-bottom: 4rem;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    font-weight: 600;

    padding: 1rem 2rem;

    border-radius: 999px;

    transition: .3s;
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px);
}

.btn-secondary {
    border:
        1px solid var(--border);

    color: white;
}

.btn-secondary:hover {
    background:
        rgba(255,255,255,.05);
}

/* =========================
   STATS
========================= */

.hero-stats {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px,1fr)
        );

    gap: 1rem;
}

.stat {
    background: var(--card);

    border:
        1px solid var(--border);

    backdrop-filter: blur(20px);

    border-radius: var(--radius);

    padding: 2rem;
}

.stat h2 {
    color: var(--primary);
    margin-bottom: .5rem;
}

.stat p {
    margin: 0;
    font-size: .95rem;
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header span {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
}

/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-card {
    background: var(--card);

    border:
        1px solid var(--border);

    backdrop-filter: blur(20px);

    border-radius: var(--radius);

    padding: 2rem;
}

.about-card pre {
    color: #00ff88;
    font-family: monospace;
    white-space: pre-wrap;
}

/* =========================
   SKILLS
========================= */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px,1fr)
        );

    gap: 1rem;
}

.skill-card {
    padding: 1.5rem;

    text-align: center;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    transition: .3s;
}

.skill-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(0,212,255,.5);

    box-shadow:
        0 0 25px
        rgba(0,212,255,.15);
}

/* =========================
   PROJECTS
========================= */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px,1fr)
        );

    gap: 1.5rem;
}

.project-card {
    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    padding: 2rem;

    transition: .3s;
}

.project-card:hover {
    transform:
        translateY(-8px);

    border-color:
        rgba(0,212,255,.5);
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-light);
}

.projects-button {
    text-align: center;
    margin-top: 3rem;
}

/* =========================
   CTA
========================= */

.cta-section {
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* =========================
   FOOTER
========================= */

footer {
    border-top:
        1px solid var(--border);

    padding: 3rem 0;
}

.footer-content {
    width: min(1200px,90%);
    margin: auto;

    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-content p {
    color: var(--text-light);
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            var(--primary),
            var(--secondary)
        );

    border-radius: 999px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .navbar {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}