/* =========================
   General
   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;

    background: #080808;
    color: #f5f5f5;

    line-height: 1.6;
}


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

header {
    position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(8, 8, 8, 0.85);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid #222;
}

nav {
    max-width: 1200px;

    min-height: 75px;

    margin: auto;
    padding: 0 30px;

    display: flex;

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

    gap: 30px;
}


/* Logo / Website Name */

nav h1 {
    font-size: 1.4rem;

    font-weight: 800;

    letter-spacing: -0.5px;

    color: #ffffff;
}


/* Make first letter red */

nav h1::first-letter {
    color: #ff3b30;
}


/* Navigation Links */

.nav-links {
    display: flex;

    align-items: center;

    gap: 25px;
}

.nav-links a {
    color: #a8a8a8;

    text-decoration: none;

    font-size: 0.9rem;

    font-weight: 500;

    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #ff3b30;
}


/* =========================
   Main
   ========================= */

main {
    max-width: 1100px;

    margin: auto;

    padding: 0 30px;
}


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

section {
    min-height: 70vh;

    padding: 120px 0;

    border-bottom: 1px solid #1e1e1e;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);

    line-height: 1.1;

    margin-bottom: 25px;

    font-weight: 800;

    letter-spacing: -1.5px;
}


section p {
    max-width: 650px;

    color: #a8a8a8;

    font-size: 1.05rem;

    line-height: 1.8;

    margin-bottom: 15px;
}


/* =========================
   Home
   ========================= */

#home {
    min-height: calc(100vh - 75px);

    align-items: flex-start;
}


/* Main heading */

#home h2 {
    max-width: 750px;

    font-size: clamp(3rem, 8vw, 6rem);

    background: linear-gradient(
        90deg,
        #ffffff,
        #ff3b30
    );

    background-clip: text;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* Home paragraph */

#home p {
    font-size: 1.15rem;

    margin-bottom: 35px;
}


/* =========================
   Home Button
   ========================= */

.home-button {
    display: inline-block;

    padding: 13px 24px;

    background: #ff3b30;

    color: #ffffff;

    text-decoration: none;

    border-radius: 6px;

    font-size: 0.9rem;

    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.home-button:hover {
    background: #e52d24;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(255, 59, 48, 0.2);
}


/* =========================
   Project Card
   ========================= */

.project-card {
    margin-top: 50px;

    max-width: 750px;

    padding: 35px;

    background: #0d0d0d;

    border: 1px solid #242424;

    border-radius: 12px;

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


.project-card:hover {
    border-color: #ff3b30;

    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(255, 59, 48, 0.08);
}


/* Project Category */

.project-category {
    color: #ff3b30;

    font-size: 0.75rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


/* Project Title */

.project-info h3 {
    margin-top: 12px;

    margin-bottom: 15px;

    font-size: 2rem;

    font-weight: 700;

    color: #ffffff;
}


/* Project Description */

.project-info p {
    margin-bottom: 25px;

    color: #999;

    font-size: 0.95rem;

    line-height: 1.8;
}


/* =========================
   Project Technologies
   ========================= */

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 30px;
}


.project-tech span {
    padding: 6px 12px;

    background: #171717;

    border: 1px solid #292929;

    border-radius: 5px;

    color: #bdbdbd;

    font-size: 0.75rem;

    font-weight: 500;
}


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

.project-links {
    display: flex;

    gap: 12px;
}


.project-links a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 18px;

    border: 1px solid #333;

    border-radius: 6px;

    color: #ddd;

    text-decoration: none;

    font-size: 0.85rem;

    font-weight: 600;

    transition: 0.25s ease;
}


.project-links a:hover {
    background: #ff3b30;

    border-color: #ff3b30;

    color: #ffffff;
}


/* =========================
   About Me
   ========================= */

#about p {
    max-width: 700px;
}


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

.social-links {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;
}


.social-links a {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 18px;

    color: #aaa;

    border: 1px solid #292929;

    border-radius: 7px;

    text-decoration: none;

    font-size: 0.85rem;

    font-weight: 500;

    transition: 0.25s ease;
}


.social-links i {
    font-size: 1.1rem;
}


.social-links a:hover {
    color: #ff3b30;

    border-color: #ff3b30;

    transform: translateY(-3px);
}


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

footer {
    max-width: 1100px;

    margin: auto;

    padding: 35px 30px;

    color: #666;

    font-size: 0.85rem;

    text-align: center;
}


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

@media (max-width: 768px) {

    nav {
        padding: 0 20px;
    }


    nav h1 {
        font-size: 1.1rem;
    }


    .nav-links {
        gap: 12px;
    }


    .nav-links a {
        font-size: 0.75rem;
    }


    main {
        padding: 0 20px;
    }


    section {
        min-height: auto;

        padding: 90px 0;
    }


    #home {
        min-height: calc(100vh - 75px);
    }


    #home h2 {
        font-size: 3.2rem;
    }


    #home p {
        font-size: 1rem;
    }


    .project-card {
        padding: 25px;
    }


    .project-info h3 {
        font-size: 1.6rem;
    }


    .project-links {
        flex-direction: column;
    }


    .project-links a {
        justify-content: center;
    }


    footer {
        padding: 30px 20px;
    }
}


/* =========================
   Small Mobile Screens
   ========================= */

@media (max-width: 500px) {

    nav {
        flex-direction: column;

        justify-content: center;

        padding: 15px 20px;

        gap: 10px;
    }


    .nav-links {
        flex-wrap: wrap;

        justify-content: center;

        gap: 12px;
    }


    #home h2 {
        font-size: 2.7rem;
    }


    section h2 {
        font-size: 2.3rem;
    }

}