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

:root {
    --background: #0f172a;
    --surface: rgba(15, 23, 42, 0.65);
    --text: #ffffff;
    --secondary: #cbd5e1;
    --accent: #22c55e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);

    min-height: 100vh;
    padding-top: 100px;

    background:
        linear-gradient(rgba(15, 23, 42, .75), rgba(15, 23, 42, .85)),
        url("images/bg/background.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

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

.navbar {

    position: fixed;

    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: fit-content;
    height: 60px;

    padding: 0 40px;

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

    background: rgba(30, 41, 59, .75);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

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

    border-radius: 999px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);

    z-index: 1000;
}

.nav-links {

    display: flex;

    list-style: none;

    gap: 45px;
}

.nav-links a {

    color: white;

    text-decoration: none;

    font-size: 16px;
    font-weight: 500;

    transition: .25s;
}

.nav-links a:hover,
.nav-links a.active {

    color: var(--accent);
}

/* ===========================
   Intro
=========================== */

.intro {

    min-height: calc(100vh - 100px);

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

    text-align: center;

    padding: 30px;

    position: relative;

    overflow: hidden;
}

.intro::before {

    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(34, 197, 94, .22),
            transparent 70%);

    filter: blur(100px);

    z-index: 0;
}

.intro-content {

    position: relative;

    z-index: 1;

    max-width: 900px;
}

.intro h1 {

    font-size: clamp(60px, 7vw, 90px);

    line-height: 1.1;

    margin-bottom: 25px;
}

.intro p {

    font-size: 20px;

    color: var(--secondary);

    line-height: 1.7;

    max-width: 750px;

    margin: auto auto 40px;
}

.intro-buttons {

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;
}

.button-primary,
.button-secondary {

    padding: 15px 34px;

    border-radius: 999px;

    text-decoration: none;

    font-weight: bold;

    transition: .25s;
}

.button-primary {

    background: var(--accent);

    color: white;
}

.button-primary:hover {

    transform: translateY(-3px);

    background: #16a34a;
}

.button-secondary {

    color: white;

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

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

.button-secondary:hover {

    transform: translateY(-3px);

    background: rgba(255, 255, 255, .10);
}

/* 404 Page */

.error-page {

    width: 100%;
    min-height: calc(100vh - 100px);

    display: flex;

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

    text-align: center;

    padding: 40px 20px;

    position: relative;

    overflow: hidden;
}

.error-page::before {

    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    background: radial-gradient(circle,
            rgba(34, 197, 94, .18),
            transparent 70%);

    filter: blur(100px);

    z-index: 0;
}

.error-content {

    position: relative;

    z-index: 1;

    max-width: 700px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-content h1 {

    font-size: clamp(120px, 18vw, 220px);

    line-height: .9;

    color: var(--accent);

    margin-bottom: 15px;
}

.error-content h2 {

    font-size: clamp(32px, 4vw, 46px);

    margin-bottom: 20px;
}

.error-content p {

    max-width: 600px;

    font-size: 20px;

    color: var(--secondary);

    line-height: 1.7;

    margin-bottom: 40px;
}

.error-buttons {

    display: flex;

    gap: 20px;

    justify-content: center;

    flex-wrap: wrap;
}

/* Projects */

.projects {

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 40px 30px 80px;
}

.projects-header {

    text-align: center;

    margin-bottom: 60px;
}

.projects-header h1 {

    font-size: clamp(48px, 6vw, 72px);

    margin-bottom: 20px;
}

.projects-header p {

    max-width: 700px;

    margin: 0 auto;

    color: var(--secondary);

    font-size: 20px;

    line-height: 1.7;
}

/* Projects Grid */

.projects-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 35px;
}

/* Project Card */

.project-card {

    display: flex;
    flex-direction: column;

    text-decoration: none;

    color: var(--text);

    background: rgba(30, 41, 59, .55);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

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

    border-radius: 20px;

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.project-card:hover {

    transform: translateY(-8px);

    border-color: rgba(34, 197, 94, .4);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
}

.project-card img {

    width: 100%;
    height: 230px;

    object-fit: cover;

    transition: transform .35s ease;
}

.project-card:hover img {

    transform: scale(1.05);
}

.project-content {

    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 30px;
}

.project-content h2 {

    font-size: 28px;

    margin-bottom: 15px;
}

.project-content p {

    color: var(--secondary);

    line-height: 1.7;

    margin-bottom: 30px;
}

/* Project Footer */

.project-footer {

    margin-top: auto;

    display: flex;

    justify-content: space-between;
    align-items: center;
}

.project-status {

    padding: 7px 14px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

    border: 1px solid transparent;
}

.project-status.active {

    color: #22c55e;

    background: rgba(34, 197, 94, .15);

    border-color: rgba(34, 197, 94, .35);
}

.project-status.coming-soon {

    color: #f59e0b;

    background: rgba(245, 158, 11, .15);

    border-color: rgba(245, 158, 11, .35);
}

.project-status.abandoned {

    color: #ef4444;

    background: rgba(239, 68, 68, .15);

    border-color: rgba(239, 68, 68, .35);
}

.project-arrow {

    font-size: 28px;

    transition: transform .25s ease;
}

.project-card:hover .project-arrow {

    transform: translateX(8px);
}

/* Responsive */

@media (max-width: 900px) {

    .projects {

        padding: 30px 20px 60px;
    }

    .projects-grid {

        grid-template-columns: 1fr;
    }

    .project-card img {

        height: 200px;
    }

}