* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f1eb;
    color: #2b2b2b;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
    font-family: Georgia, serif;
    margin: 0 0 12px;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 70px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 9999;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #111;
    text-decoration: none;
    font-weight: bold;
}

.hero .nav-links a {
    color: white;
}

.nav-links a.active,
.nav-links a:hover {
    border-bottom: 2px solid currentColor;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #111;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

.hero .menu-toggle {
    color: white;
}

/* HOME HERO */
.hero {
    position: relative;
    min-height: 700px;
    color: white;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
    animation: slowZoom 8s ease forwards;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

.hero-grid {
    position: relative;
    z-index: 2;
    padding: 150px 70px 40px;
}

.hero-content {
    width: 90%;
    max-width: 1100px;
}

.hero-content h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content p {
    max-width: 900px;
    font-size: 1.1rem;
}

/* CINEMATIC INTRO */
.hero-type {
    opacity: 0;
    transform: translateY(25px);
    animation: heroReveal 0.8s ease forwards;
    animation-delay: 0.8s;
}

.type-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.1s ease forwards;
}

.hero-type h1 {
    animation-delay: 1.2s;
}

.delay-one {
    animation-delay: 2s;
}

.delay-two {
    animation-delay: 2.8s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PAGE HERO IMAGE */
.page-hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #f5f1eb;
}

.page-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ABOUT PAGE DESKTOP FIX ONLY */
@media screen and (min-width: 769px) {
    body:has(img[src="about hero.jpg"]) .page-hero {
        height: 420px;
        overflow: hidden;
        background-image: url("about hero.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center 65%;
    }

    body:has(img[src="about hero.jpg"]) .page-hero-img {
        display: none;
    }
}

/* BUTTONS */
.btn,
.portfolio-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #c39a61;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn:hover,
.portfolio-btn:hover {
    background-color: #a97d44;
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    margin-left: 10px;
}

/* COPY */
.copy-section {
    padding: 60px 20px;
    text-align: center;
    background: #f4f0ea;
}

.copy-block {
    max-width: 850px;
    margin: auto;
}

.copy-block p {
    margin-bottom: 18px;
}

/* CARDS */
.cards-section {
    padding: 40px 20px 70px;
    background: #f4f0ea;
}

.cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-card {
    width: 250px;
    padding: 20px;
    color: white;
    border-radius: 8px;
    background:
        linear-gradient(rgba(20,20,20,0.82), rgba(20,20,20,0.82)),
        url("portrait-of-neo-mashiangwako.jpg") center/cover;
}

.portfolio-card {
    background:
        linear-gradient(rgba(20,20,20,0.82), rgba(20,20,20,0.82)),
        url("portfolio hero.jpg") center/cover;
}

.contact-card {
    background:
        linear-gradient(rgba(20,20,20,0.82), rgba(20,20,20,0.82)),
        url("contact hero.jpg") center/cover;
}

.mini-link {
    color: #f0d3a3;
    font-weight: bold;
    text-decoration: none;
}

/* PORTFOLIO */
.portfolio-section {
    padding: 60px 20px;
}

.portfolio-group {
    max-width: 1100px;
    margin: 0 auto 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.portfolio-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
}

/* CONTACT */
.contact-section {
    padding: 40px 20px 60px;
}

.contact-card-large {
    background: white;
    padding: 35px;
    max-width: 700px;
    margin: auto;
    border-radius: 8px;
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
}

.email-line {
    margin-top: 25px;
}

/* FOOTER */
.site-footer {
    background: #1b1715;
    color: white;
    text-align: center;
    padding: 30px;
}

.site-footer a {
    color: #c39a61;
}

/* FADE */
.fade-in {
    opacity: 1;
    animation: fadeUp 0.9s ease;
}

/* TABLET */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 26px 28px;
        justify-content: flex-end;
    }

    .menu-toggle {
        display: block;
        color: #111;
    }

    .hero .menu-toggle {
        color: white;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 24px;
        top: 70px;
        background: rgba(245, 241, 235, 0.98);
        padding: 18px 24px;
        border-radius: 8px;
        z-index: 10001;
        min-width: 160px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    }

    .hero .nav-links {
        background: rgba(27, 23, 21, 0.95);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        color: #111;
        padding: 8px 0;
        display: block;
    }

    .hero .nav-links a {
        color: white;
    }

    .hero {
        min-height: 620px;
    }

    .hero-grid {
        padding: 150px 30px 40px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media screen and (max-width: 480px) {
    .navbar {
        padding: 26px 28px;
    }

    .hero {
        min-height: 520px;
    }

    .hero-grid {
        padding: 145px 20px 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        width: 100%;
        max-width: 320px;
    }

    .copy-section {
        padding: 50px 20px;
    }
}