:root {
    --sage: #dfe8e1;
    --sage-dark: #c6d4ca;
    --blush: #f6e7ea;
    --ink: #3a3a3a;
    --text-light: #6e6e6e;
    --white: #ffffff;

    --radius: 8px;
}

/* Base resets */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

/* HERO HEADER */
.hero {
    height: 75vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: url('https://www.lizjohnston.ca/images/purplebubbles.jpg') no-repeat center top;
    background-size: cover;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom right,
        rgba(223, 232, 225, 0.6), /* --sage */
        rgba(246, 231, 234, 0.6)  /* --blush */
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1; /* makes sure text sits above the overlay */
    color: var(--white);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin: 0;
}

.tagline {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* NAVIGATION */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.2rem 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}

/* SECTIONS */
.section {
    padding: 6rem 2rem;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

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

/* PORTFOLIO CONTROLS */
.controls {
    margin-bottom: 1rem;
}
.toggle {
    border: 1px solid var(--sage-dark);
    background: var(--white);
    padding: .5rem 1rem;
    cursor: pointer;
    border-radius: var(--radius);
}
.toggle.active {
    background: var(--sage-dark);
}

/* FILTERS */
.filters {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters li {
    padding: .4rem .9rem;
    background: var(--blush);
    border-radius: var(--radius);
    cursor: pointer;
}
.filters li.active {
    background: var(--sage);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: .9rem;
}



/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Portfolio Card */
.portfolio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: centre;
}

/* Images */
.portfolio-card img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: var(--radius);
    display: block;
    margin-bottom: .8rem;
}

/* Title */
.portfolio-card h3 {
    margin: .5rem 0 .3rem;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
}

/* Notes */
.notes {
    font-size: .9rem;
    color: var(--text-light);
}

/* Status colours */
.status {
    font-size: .8rem;
    text-transform: uppercase;
    margin-top: .4rem;
    letter-spacing: .05em;
}

.status-live { color: green; }
.status-dead { color: #b76d6d; }
.status-concept { color: #8c6bb7; }


.filters {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filters li {
    padding: .4rem 1rem;
    background: var(--blush);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s ease;
}

.filters li.active {
    background: var(--sage);
    font-weight: 500;
}


/* Fade-in animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}


.filters li {
    transition: background 0.25s ease, transform 0.18s ease;
}

.filters li:active {
    transform: scale(0.94);
}

.filters li.active {
    background: var(--sage);
    transform: scale(1.04);
}

#portfolio-grid {
    min-height: 600px; /* adjust to the height of 6 items */
    position: relative;
}



.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    color: var(--sage-dark);
    transform: scale(1.1);
}

.social-links svg {
    width: 24px;
    height: 24px;
}
