/* ############ IMPORTS ############ */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

/* ############ RESET + BASE ############ */
* {
    margin: 0;
    padding: 0;
    border: 0;
    color: #A8A7A2;
    font-family: "Source Code Pro", "Trebuchet MS", sans-serif;
}

body {
    background-color: #0D0D0F;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ############ UTILITIES ############ */
.headings {
    font-family: "Libre Baskerville", Georgia, serif;
    color: #E8E3D2;
}

.accent {
    color: #BFA66B;
}

.container {
    max-width: 900px;
    margin: auto;
}

.container-wide {
    max-width: 1000px;
    margin: auto;
}

.section {
    text-align: center;
    padding: 60px 20px 8vh;
}

/* ############ NAV ############ */
header {
    border-bottom: 1px solid #BFA66B22;
}

nav {
    background-color: #1A1A1E;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.nav-brand {
    padding-left: 0.6rem;
    color:#a8a7a280
}

.nav-brand svg {
    height: 1.8em;
    width: auto;
    opacity: 0.3;
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 10px 0;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    padding: 10px 15px;
}

nav a:hover {
    color: #BFA66B;
    transition: 0.3s ease;
}

nav ul li {
    font-size: 1.1rem;
}

/* ############ MAIN ############ */
main {
    padding: 30px;
}

/* General section height rhythm */
main > section {
    min-height: 45vh;
}

/* ############ HERO ############ */
.hero {
    padding: 17vh 20px 4vh;
}

.author-name {
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 25px;
}

.gold-line {
    width: 180px;
    height: 1px;
    background-color: #BFA66B;
    margin: 0 auto;
    opacity: 0.7;
}

/* ############ ABOUT PREVIEW ############ */
.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ---------- ICONS ---------- */
.social-icon {
    margin: 0 10px;          /* spacing */
    display: inline-block;   /* ensures correct spacing */
}

.social-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;      /* enables hover color */
    vertical-align: middle;
}

.social-icon svg path {
    fill: #BFA66B; /* gold by default */
    transition: fill 0.5s ease-in-out; /* smoother, half a second */
}

.social-icon:hover svg path {
    fill: #E8E3D2; /* silver on hover */
}

/* Heading underline accent */
.section h2.headings::after {
    content: '';
    display: block;
    height: 1px;
    background-color: #BFA66B;
    margin: 20px auto;
}

/* ############ PROJECT CARDS ############ */
.project-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.card-link {
    text-decoration: none;
}

.card {
    background-color: #1A1A1E;
    border: 1px solid #BFA66B22;
    padding: 30px 20px;
    width: 250px;
    transition: transform 0.3s ease;
}

.card-title {
    font-family: "Libre Baskerville", Georgia, serif;
    color: #E8E3D2;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-title::after {
    content: '';
    display: block;
    height: 1px;
    background-color: #BFA66B;
    margin: 6px auto 12px;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px #BFA66B33; }
    50% { box-shadow: 0 0 20px #BFA66B55; }
    100% { box-shadow: 0 0 10px #BFA66B33; }
}

.card:hover {
    transform: translateY(-5px);
    animation: pulseGlow 1.5s infinite alternate;
}

.card:hover .card-title {
    color: #BFA66B;
}

/* ############ ABOUT PAGE ############ */
.intro {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.6;
}

.about-body {
    max-width: 700px;
    margin: auto;
    padding: 40px 20px 80px;
}

.about-body p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-socials {
    text-align: center;
    padding-bottom: 100px;
}

/* ############ PROJECT PAGES ############ */
.project-hero {
    text-align: center;
    padding: 100px 20px 60px;
}

.project-hero h1 {
    font-size: 2.5rem;
}

.project-content {
    max-width: 700px;
    margin: auto;
    padding: 60px 20px 100px;
    text-align: center;
}

.project-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ############ FOOTER ############ */
footer {
    background-color: #1A1A1E;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #BFA66B22;
}

footer p {
    font-size: 0.9rem;
}

/* ############ BLOG PAGE ############ */
.blog-list {
    text-align: left;
}

.blog-post {
    max-width: 700px;
    margin: 0 auto 60px;
}

.blog-title {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.blog-title a {
    text-decoration: none;
    color: inherit;
}

.blog-title a:hover {
    color: #BFA66B;
}

.blog-meta {
    font-size: 0.85rem;
    color: #A8A7A299;
    margin-bottom: 15px;
}

.blog-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
}

#post-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* $$$$$$$$$$$$$ MEDIA QUERIES $$$$$$$$$$$$$ */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;
        margin-right: 0.5rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1A1A1E;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 1.5rem 0;
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    nav ul li {
        font-size: 1.2rem;
    }
}
