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

@import "https://unpkg.com/open-props";
@import "https://unpkg.com/open-props/normalize.min.css";

:root {
    --primary-color: hsl(27, 97%, 55%);
    --primary-color-darker: hsl(38, 89%, 18%); /* darker by lowering lightness */
    --default-text-color: hsl(0, 0%, 100%);
    --sub-text-color: hsl(0 0% 100% / 0.6);
}

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

html {
    scroll-behavior: smooth;
}

/* Page base */
body {
    background-color: #0d0d0d;
    font-family: Roboto;
    color: var(--default-text-color);
    padding-top: 80px;
}

/* Navbar */
.topnav {
    width: 100%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);

    padding: 16px 24px;

}

/* Center container */
.nav-center {
    width: 100%;
    max-width: 1100px;
    padding: 0 24px;
}

/* Grid layout */
.nav-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Links container */
.nav-links {
    display: flex;
    gap: 28px;
}


/* Individual links */
.nav-links a {
    text-decoration: none;
    color: var(--default-text-color);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.4px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* Hover effect */
.nav-links a:hover {
    color: var(--primary-color);
}

/* Brand link */
.brand {
    text-decoration: none;
    color: inherit;
}

.brand:hover .name {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* Text container */
.brand-text {
    display: flex;
    flex-direction: column;
}

.project-footer {
    display: flex;
    justify-content: space-between; /* pushes tags left, arrow right */
    align-items: center;
    margin-top: 20px;
}

/* Name styling */
.name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Subtitle styling */
.title {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.6;
    margin-top: 2px;
}

@media (max-width: 600px) {

    .nav-grid {
        flex-direction: column;
        align-items: center;   /* center horizontally */
        text-align: center;    /* center text */
        gap: 12px;
    }

    .nav-links {
        justify-content: center;
        gap: 18px;
    }

    .brand-text {
        align-items: center;   /* center the name + title stack */
    }

}

/* ============================= */
/* ARTICLE LAYOUT */
/* ============================= */

.article {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
}

.article-container {
    max-width: 800px;
    width: 100%;
}

/* Header */

.article-header {
    margin-bottom: 48px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.article-header .header-top {
    display: flex;
    align-items: center;       /* vertically centers button with the title */
    gap: 20px;                 /* space between title and button */
    flex-wrap: wrap;           /* allows wrapping on smaller screens */
}

.article-header .header-top h1 {
    margin: 0;
    font-size: 2.5rem;
}

.article-header .header-top .btn-primary {
    margin: 0;
}

.article-subtitle {
    color: var(--sub-text-color);
    font-size: 1.1rem;
}

/* Hero Image */

.article-hero-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 48px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Sections */

.article section {
    margin-bottom: 48px;
}

.article h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.article h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.article p {
    margin-bottom: 16px;
    color: var(--sub-text-color);
    max-inline-size: none !important;
    font-size: 1.0rem;
}

.article-actions {
    margin-bottom: 48px;
}

.article-figure {
    margin: 24px 0;
    place-items: start;
}

.article-figure img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    aspect-ratio: 16 / 9;
    display: block;
}

.article-figure figcaption {
    margin-top: 6px;
    font-size: 0.84rem;
    color: var(--sub-text-color);
    text-align: left;
    max-inline-size: none !important;
    text-wrap-style: auto !important;
}

.highlight-name {
    color: var(--primary-color);
}
.highlight-link-name {
    color: var(--primary-color);
    text-decoration: none;
}
.highlight-link-name:hover {
    opacity: 0.85;
}

/* Primary button */
.btn-primary {
    background: var(--primary-color);
    color: var(--default-text-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.85;
}

/* Responsive */

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }
}

/* CONNECT SECTION */
#connect {
    background-color: #0d0d0d;
    padding: 120px 24px;
    display: flex;
    justify-content: center; /* centers container horizontally */
    text-align: center;      /* centers all inner text */
}

.connect-container {
    display: flex;
    flex-direction: column;
    align-items: center;     /* centers heading, paragraph, button, socials vertically */
    gap: 24px;               /* spacing between elements */
    max-width: 800px;
    width: 100%;
    color: var(--default-text-color);
}

/* Heading */
#connect h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

/* Paragraph */
#connect p {
    font-size: 1rem;
    color: var(--sub-text-color);
    line-height: 1.6;
    margin: 0;
}

/* Button */
#connect .btn-primary {
    padding: 12px 28px;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: var(--default-text-color);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

#connect .btn-primary:hover {
    opacity: 0.85;
}

/* Social Icons */
.connect-socials {
    display: flex;
    gap: 28px;
    justify-content: center;  /* ensures icons are centered */
}

.connect-socials a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    border-radius: 50%;

    color: var(--sub-text-color);
    font-size: 1.2rem;

    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.connect-socials a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary-color-darker);

    transform: scale(0.6);
    opacity: 0;

    transition: transform 0.25s ease, opacity 0.25s ease;

    z-index: 0; /* behind icon */
}

.connect-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.connect-socials a:hover::before {
    transform: scale(1);
    opacity: 1;
}

.connect-socials a i {
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}

.connect-socials a:hover i {
    transform: scale(1.15);
}

/* Responsive */
@media (max-width: 900px) {
    #connect {
        padding: 80px 24px;
    }

    #connect h2 {
        font-size: 1.75rem;
    }
}

/* FOOTER */

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px 24px;

    border-top: 1px solid rgba(255,255,255,0.05);

    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.site-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--sub-text-color);
}