/* =========================
   GLOBAL
========================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b0d;
    color: #f5f5f5;
}


/* =========================
   NAVIGATION
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 60px;

    background: rgba(11, 11, 13, 0.85);
    border-bottom: 1px solid #25252a;

    backdrop-filter: blur(6px);

    z-index: 1000;
}

.logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-developer,
.logo-glory {
    display: inline-block;
    min-width: 0.1em;
}

.logo-accent {
    color: #e63946;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    position: relative;

    color: #b8b8bd;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    opacity: 0;
    transform: translateY(4px);
    transform-origin: center;
    animation: navTextFadeIn 0.55s ease-out forwards;
    transition: color 0.25s ease;
}

nav a:nth-child(2) {
    animation-delay: 0.08s;
}

nav a:nth-child(3) {
    animation-delay: 0.16s;
}

nav a:nth-child(4) {
    animation-delay: 0.24s;
}

@keyframes navTextFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #e63946;

    transition: width 0.25s ease;
}

nav a:hover {
    color: #ffffff;
}

nav a:hover::after {
    width: 100%;
}


/* =========================
   GENERAL SECTIONS
========================= */

.section {
    min-height: 100vh;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 110px 40px;

    text-align: center;
}

.section > :not(.background-form):not(.background-image-layer) {
    position: relative;
    z-index: 1;

    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity 0.65s ease-out,
        transform 0.65s ease-out;
}

.section.content-visible > :not(.background-form):not(.background-image-layer) {
    opacity: 1;
    transform: translateY(0);
}

.background-image-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;
}

.section.shapes-visible .background-image-layer {
    opacity: 1;
}

.background-image {
    position: absolute;
    display: block;
    opacity: 1;
    transform-origin: center;
}

.background-shape-slot {
    position: absolute;
    overflow: visible;
    pointer-events: none;
    animation: shapeFadeIn 0.9s ease-out both;
}

@keyframes shapeFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   HOME
========================= */

.home {
    position: relative;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(230, 57, 70, 0.12),
            transparent 45%
        ),
        #0b0b0d;
}

.home h1 {
    width: min(900px, calc(100vw - 80px));
    max-width: 900px;

    font-size: clamp(45px, 7vw, 80px);
    line-height: 1.05;

    margin-bottom: 25px;

    letter-spacing: -3px;
}

.home h1 span {
    color: #e63946;
}

.home h1 span.typed-white {
    color: #ffffff;
}

.home h1 span.typed-red {
    color: #e63946;
}

.home p {
    width: min(600px, calc(100vw - 80px));
    max-width: 600px;

    color: #9b9ba1;

    font-size: 19px;
    line-height: 1.7;

    margin-bottom: 35px;
}


/* =========================
   BUTTON
========================= */

.button {
    display: inline-block;

    padding: 14px 28px;

    background: #e63946;
    color: #ffffff;

    text-decoration: none;

    font-weight: 700;

    border-radius: 7px;

    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.18);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.button:hover {
    background: #ff4654;

    transform: translateY(-3px);

    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.3);
}

.home-actions {
    display: flex;
    align-items: center;
    gap: 60px;
}

.button-light {
    background: #ffffff;
    color: #000000;
}

.button-light:hover {
    background: #eeeeee;
    color: #000000;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.277), 0 10px 35px rgba(255, 255, 255, 0.2);
}


/* =========================
   SECTION HEADINGS
========================= */

.about h2,
.projects h2,
.contact h2 {
    font-size: clamp(35px, 5vw, 50px);

    margin-bottom: 25px;

    letter-spacing: -2px;
}

.about h2::after,
.projects h2::after,
.contact h2::after {
    content: "";

    display: block;

    width: 45px;
    height: 3px;

    margin: 15px auto 0;

    background: #e63946;
}


/* =========================
   ABOUT
========================= */

.about {
    background:
        radial-gradient(
           circle at 50% 40%,
        rgba(230, 57, 70, 0.12),
        transparent 45%
    ),
    #111114;
}

.about p {
    max-width: 700px;

    color: #a5a5aa;

    font-size: 18px;
    line-height: 1.8;
}

.about .drop-cap {
    float: left;

    margin: 4px 10px 0 0;

    color: #e63946;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 76px;
    font-weight: 700;
    line-height: 0.75;
}

.about .drop-cap2 {
    float: left;

    margin: 4px 10px 0 0;

    color: #fbfbfb;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 76px;
    font-weight: 700;
    line-height: 0.75;
}


/* =========================
   PROJECTS
========================= */

.projects {
    background: #0b0b0d;
}

.project-container {
    display: flex;

    justify-content: center;

    gap: 25px;

    max-width: 1000px;

    margin-top: 30px;
}

.project-card {
    width: 280px;

    display: flex;
    flex-direction: column;

    padding: 35px 25px;

    background: #151518;

    border: 1px solid #28282d;

    border-radius: 12px;

    text-align: left;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: #e63946;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-card h3 {
    color: #ffffff;

    font-size: 21px;

    margin-bottom: 12px;
}

.project-card p {
    color: #8f8f96;

    line-height: 1.6;
}


/* =========================
   CONTACT
========================= */

.contact {
    background:
        radial-gradient(
           circle at 50% 40%,
        rgba(230, 57, 70, 0.12),
        transparent 45%
    ),
    #111114;
}

.contact p {
    color: #9b9ba1;

    font-size: 18px;

    margin-bottom: 20px;
}

.contact a:not(.button) {
    color: #e63946;

    text-decoration: none;

    font-weight: 700;

    transition: color 0.2s ease;
}

.contact a:not(.button):hover {
    color: #ff4654;
}

.contact a.button,
.contact a.button:hover {
    color: #ffffff;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    padding: 52px 60px 58px;

    background:
        linear-gradient(135deg, rgba(230, 57, 70, 0.06), transparent 38%),
        #151518;

    border-top: 1px solid #28282d;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(280px, 1.2fr);
    column-gap: 90px;
    row-gap: 0;

    max-width: 1080px;
    margin: 0 auto;
}

.footer-content > .footer-column:first-child {
    grid-column: 1;
    grid-row: 1;
}

.footer-social-column {
    grid-column: 2;
    grid-row: 1;
}

.footer-label {
    margin-bottom: 16px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-links a,
.footer-review {
    color: #a5a5aa;
    text-decoration: none;

    transition: color 0.25s ease;
}

.footer-links a {
    font-size: 16px;
}

.footer-links a:hover,
.footer-review:hover {
    color: #e63946;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.social-links a {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    color: #e9e9eb;
    background: #0b0b0d;
    border: 1px solid #303036;
    border-radius: 6px;

    text-decoration: none;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.social-links svg {
    width: 25px;
    height: 25px;

    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
}

.social-links svg rect,
.social-links svg circle {
    fill: none;
}

.social-links svg .social-dot {
    fill: currentColor;
    stroke: none;
}

.social-links a:hover {
    color: #ffffff;
    background: #e63946;
    border-color: #e63946;
    transform: translateY(-3px);
}

.footer-review {
    display: inline-block;

    font-size: 16px;
    line-height: 1.55;
}

/* =========================
   FOOTER COPYRIGHT
========================= */

.footer-copyright {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 12px;
    padding-top: 12px;

    color: #a5a5aa;
    font-size: 14px;
    text-align: center;

    border-top: 1px solid #28282d;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .navbar {
        padding: 0 20px;
    }

    .logo {
        font-size: 20px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 13px;
    }

    .home h1 {
        letter-spacing: -2px;
    }

    .project-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: min(100%, 350px);
    }

    .site-footer {
        padding: 42px 24px 48px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        row-gap: 24px;
        column-gap: 0;
    }

    .footer-content > .footer-column:first-child,
    .footer-social-column,
    .footer-copyright {
        grid-column: 1;
    }

    .footer-content > .footer-column:first-child {
        grid-row: 1;
    }

    .footer-social-column {
        grid-row: 2;
    }

    .footer-copyright {
        grid-row: 3;
    }
}

/* =========================
   PLAYFAIR DISPLAY TITLE
========================= */

.home h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(45px, 7vw, 80px);
    font-weight: 600;

    line-height: 1.1;

    letter-spacing: -2px;

    color: #ffffff;
}


/* =========================
   TYPING CURSOR
========================= */

.cursor {
    position: relative;

    display: inline-block;

    width: 2px;
    height: 0.85em;

    margin-left: 8px;

    background: #e63946;

    vertical-align: -0.05em;

    opacity: 1;
}

.cursor.blinking {
    animation: cursorBlink 1.2s infinite;
}


/* =========================
   INTRO REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);

    transition:
    opacity 0.65s ease-out,
    transform 0.65s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:not(.content-visible) > :not(.background-form):not(.background-image-layer) {
    opacity: 0;
    transform: translateY(22px);
}

.cursor::before,
.cursor::after {
    content: "";

    position: absolute;
    left: 50%;

    width: 12px;
    height: 2px;

    background: #e63946;

    transform: translateX(-50%);
}

.cursor::before {
    top: 0;
}

.cursor::after {
    bottom: 0;
}


@keyframes cursorBlink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }

}

.social-links svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
}

.social-links svg rect,
.social-links svg circle {
    fill: none;
}

.social-links svg .social-dot {
    fill: currentColor;
    stroke: none;
}

.project-card .button {
    align-self: center;
    margin-top: 25px;
}