/* ===== Reset ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #0f192f, #1e293b);
    color: #f8fafc;
    line-height: 1.6;
}

/* ===== Navigation ===== */

header {
    text-decoration: none;
    min-height: 100vh;
}

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

    padding: 0.8rem 5%;

    position: sticky;
    top: 0;

    backdrop-filter: blur(25px);
    background: rgba(15, 23, 80, 0.65);
}

.logo {
    text-decoration: none;
    color: #38bdf8;
    font-size: 1.6rem;
    /* font-weight: bold; */
}

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

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

nav a:hover {
    color: #38bdf8;
}

/* ===== Hero ===== */

#hero {
    min-height: calc(100vh - 80px);

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

    text-align: center;
    padding: 2rem;
}

#hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: .5rem;
}

#hero p {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons a {
    text-decoration: none;
    padding: .9rem 1.8rem;
    border-radius: 999px;

    background: #38bdf8;
    color: #0f172a;
    font-weight: bold;

    transition: .25s;
}

.hero-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, .4);
}

/* ===== Sections ===== */

section {
    max-width: 1000px;
    margin: auto;
    padding: 6rem 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #38bdf8;
}

section p {
    color: #cbd5e1;
}

/* ===== Cards ===== */

.project,
article {
    margin-top: 2rem;

    padding: 2rem;

    border-radius: 16px;

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.08);

    transition: .3s;
}

.project:hover,
article:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.08);
    border-color: #38bdf8;
}

.project h3,
article h3 {
    margin-bottom: .5rem;
}

/* ===== Links ===== */

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    opacity: .8;
}

/* ===== Footer ===== */

footer {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {

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

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero-buttons {
        flex-direction: column;
    }
}

/* Scroll animations */

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease, transform .6s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Active navigation link */

nav a.active {
    color: #38bdf8;
}
