/* ===========================
   HERO SECTION
=========================== */

#hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding-top: 120px;

    flex-direction: column;

}

#hero h1 {

    margin-bottom: 20px;

}

#hero h1 span {

    color: var(--text);

}

#hero p {

    font-size: 1.3rem;

    margin-bottom: 40px;

    color: var(--text-secondary);

}

#hero .hero-content {

    max-width: 800px;

    animation: fadeUp 1s ease forwards;

}


/* ===========================
   FEATURED SECTION
=========================== */

#featured {

    padding: 80px 0;

    display: flex;

    justify-content: center;

}

.featured-card {

    width: min(100%, 1000px);

    background: linear-gradient(
        145deg,
        #0d0d0d,
        #111
    );

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    overflow: hidden;

    display: grid;

    grid-template-columns: 1.2fr 1fr;

    transition: var(--transition);

}

.featured-card:hover {

    transform: translateY(-6px);

    border-color: #333;

}

.featured-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.featured-content {

    padding: 40px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}

.featured-content h3 {

    font-size: 2rem;

    margin-bottom: 12px;

}

.featured-content p {

    margin-bottom: 20px;

    color: var(--text-secondary);

}


/* ===========================
   PROJECT GRID
=========================== */

#projects {

    padding: 120px 0;

}

#project-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

}

.project-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 24px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    flex-direction: column;

    gap: 14px;

}

.project-card:hover {

    transform: translateY(-8px);

    border-color: #444;

}

.project-card h3 {

    font-size: 1.3rem;

}

.project-card p {

    font-size: 0.95rem;

    color: var(--text-muted);

}

.project-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}

.project-card .card-thumb {

    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    border-radius: var(--radius-sm);

}

.card-thumb-empty {

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        repeating-linear-gradient(
            45deg,
            #0d0d0d,
            #0d0d0d 10px,
            #101010 10px,
            #101010 20px
        );

    color: var(--text-muted);

    font-size: .9rem;

    letter-spacing: .04em;

}

.featured-label {

    display: inline-block;

    color: var(--accent);

    font-size: .85rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .1em;

    margin-bottom: 14px;

}


/* ===========================
   ABOUT SECTION
=========================== */

#about {

    padding: 120px 0;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,0.02)
    );

}

#about .container {

    max-width: 800px;

    text-align: center;

}

#about h2 {

    margin-bottom: 20px;

}

#about p {

    margin-bottom: 18px;

    line-height: 1.8;

}


/* ===========================
   CONTACT SECTION
=========================== */

#contact {

    padding: 120px 0;

    text-align: center;

}

#contact a {

    color: var(--accent);

    font-weight: 500;

}

#contact a:hover {

    color: var(--accent-hover);

}


/* ===========================
   ANIMATIONS
=========================== */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1000px) {

    #project-grid {

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

    }

    .featured-card {

        grid-template-columns: 1fr;

    }

}

@media (max-width: 700px) {

    #project-grid {

        grid-template-columns: 1fr;

    }

    #hero h1 {

        font-size: 2.8rem;

    }

    .featured-content {

        padding: 24px;

    }

}


/* =====================================================================
   OLD-SITE THEME
   Scoped entirely to body.home (the home page). Never touches
   style.css or project.css, so project.html keeps its own look.
===================================================================== */

body.home {

    text-transform: lowercase;

    background: #000;

}

/* top-level section titles stay thin (300); card/content headings
   inside them stay readable weights, matching the old site exactly */

body.home h1,
body.home h2 {

    font-weight: 300;

}

body.home #hero p {

    color: #888;

}


/* ---- full-screen section rhythm, like the old one-screen-per-section feel ---- */

body.home #projects,
body.home #about,
body.home #contact {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


/* ---- loader: 3x3 grid of pieces scaling in, like the old site ---- */

.loader-grid {

    display: grid;

    grid-template-columns: repeat(3, 60px);

    gap: 10px;

}

.loader-grid .piece {

    width: 60px;

    height: 60px;

    background: #fff;

    opacity: 0;

    border-radius: 4px;

    transform: scale(.2) rotate(-30deg);

    transition: all .5s ease-out;

}

.loader-grid .piece.in {

    opacity: 1;

    transform: scale(1) rotate(0deg);

}


/* ---- nav: plain bar instead of the glass pill, active-section tracking ---- */

body.home nav {

    background: transparent;

    backdrop-filter: none;

    border: none;

    border-bottom: 1px solid var(--border);

    border-radius: 0;

    margin: 0;

    width: 100%;

    padding: 22px 30px;

    transition: transform .3s;

}

body.home .logo {

    text-transform: lowercase;

    font-weight: 600;

}

body.home .nav-links a {

    color: #888;

    font-size: .95rem;

}

body.home .nav-links a.active {

    color: #fff;

}


/* ---- hero: parallax fade handled in JS; ghost CTA + bouncing arrow here ---- */

body.home .primary-button {

    background: transparent;

    border: 1px solid var(--border);

    color: #9cbcff;

    font-weight: 400;

}

body.home .primary-button:hover {

    background: transparent;

    border-color: #9cbcff;

    transform: translateY(-2px);

}

body.home .scroll-indicator {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    margin-top: 46px;

    color: #9cbcff;

}

body.home .scroll-indicator span {

    font-size: .85rem;

    letter-spacing: .08em;

}

body.home .scroll-arrow {

    width: 10px;

    height: 10px;

    border-right: 2px solid #9cbcff;

    border-bottom: 2px solid #9cbcff;

    transform: rotate(45deg);

    animation: arrowBounce 1.6s infinite;

    filter: drop-shadow(0 0 6px rgba(156, 188, 255, .5));

}

@keyframes arrowBounce {

    0%, 100% { transform: rotate(45deg) translateY(0); opacity: .6; }

    50%      { transform: rotate(45deg) translateY(6px); opacity: 1; }

}


/* ---- cards: plain black, subtler lift, old-style dark tags ---- */

body.home .project-card,
body.home .featured-card {

    background: #000;

}

body.home .project-card h3,
body.home .featured-content h3 {

    font-weight: 500;

}

body.home .project-card:hover,
body.home .featured-card:hover {

    transform: translateY(-2px);

    border-color: #444;

}

/* default tag = plain grey pill like the old site. Colored variants
   (tag.yellow / tag.green / tag.blue) keep their accent colors so you
   can still flag things like "in progress" — see projects.js template */

body.home .tag:not(.yellow):not(.green):not(.blue) {

    background: #111;

    color: #666;

    border: 1px solid #1a1a1a;

}

body.home .tag {

    border-radius: 6px;

    padding: .4rem 1rem;

    font-size: .8rem;

}

body.home .project-card p,
body.home .featured-content p,
body.home .section-title p {

    color: #888;

}

body.home .featured-label {

    color: #9cbcff;

}


/* ---- about / contact: match old spacing + copy-to-clipboard feedback ---- */

body.home #about p,
body.home #contact p {

    color: #aaa;

    line-height: 1.8;

    font-size: 1.1rem;

}

body.home #contact a {

    color: #fff;

    font-weight: 400;

    border-bottom: 1px solid #333;

    padding-bottom: 2px;

}

body.home #contact a:hover {

    border-bottom-color: #fff;

    color: #fff;

}