* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2b2b2b;
    background-color: #f8f5e9;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* HEADINGS */
h1,
h2,
h3 {
    font-family: 'Sue Ellen Francisco', cursive;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8em 0;
    z-index: 10;
}

.navbar ul {
    display: flex;
    gap: 2em;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: #2b2b2b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #7c4d1b;
}

/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 150vh;
    /* full window height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-color: #bde0ff;
    /* fallback sky color */
}

/* BACKGROUND IMAGE */
.background {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(-50%);
    z-index: 1;
}

/* FOREGROUND IMAGE */
.foreground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: auto;
    object-fit: cover;
    z-index: 3;
    pointer-events: none;
    transform: translateX(0);
}

/* TITLE */
.name {
    position: absolute;
    top: 12%;
    left: 50%;
    z-index: 4;
    text-align: center;
    font-family: 'Sue Ellen Francisco', cursive;
    font-size: 3rem;
    color: #bb822b;
}

/* RESPONSIVE SCALING */
@media (max-width: 1024px) {
    .hero {
        height: 80vh;
    }

    .foreground {
        width: 110%;
    }

    .name {
        font-size: 2rem;
        bottom: 10%;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 70vh;
    }

    .background {
        height: 100%;
        width: 120%;
    }

    .foreground {
        width: 130%;
    }

    .name {
        font-size: 1.6rem;
        bottom: 8%;
    }
}

/* CLOUDS */
.cloud {
    position: absolute;
    top: 10%;
    opacity: 0.9;
    z-index: 2;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* Each cloud: different size, speed, and position */
.cloud1 {
    top: 10%;
    left: 0%;
    width: 180px;
    animation-name: cloudDrift1;
    animation-duration: 60s;
}

.cloud2 {
    top: 20%;
    left: 10%;
    width: 240px;
    animation-name: cloudDrift2;
    animation-duration: 90s;
}

.cloud3 {
    top: 8%;
    left: 40%;
    width: 150px;
    animation-name: cloudDrift3;
    animation-duration: 70s;
}

.cloud4 {
    top: 18%;
    left: 70%;
    width: 200px;
    animation-name: cloudDrift4;
    animation-duration: 110s;
}

.cloud5 {
    top: 25%;
    left: 50%;
    width: 220px;
    animation-name: cloudDrift5;
    animation-duration: 85s;
}

/* Keyframes for drifting clouds */
@keyframes cloudDrift1 {
    0% {
        transform: translateX(-12vw);
    }

    100% {
        transform: translateX(22vw);
    }
}

@keyframes cloudDrift2 {
    0% {
        transform: translateX(-5vw);
    }

    100% {
        transform: translateX(25vw);
    }
}

@keyframes cloudDrift3 {
    0% {
        transform: translateX(10vw);
    }

    100% {
        transform: translateX(-15vw);
    }
}

@keyframes cloudDrift4 {
    0% {
        transform: translateX(-20vw);
    }

    100% {
        transform: translateX(10vw);
    }
}

@keyframes cloudDrift5 {
    0% {
        transform: translateX(0vw);
    }

    100% {
        transform: translateX(30vw);
    }
}

/* Foreground */
.foreground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 3;
}

/* Name text */
.name {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #3a2d19;
    z-index: 4;
    text-align: center;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .cloud {
        width: 120px;
    }

    .name {
        font-size: 1.8rem;
        bottom: 8%;
    }
}

.name {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #3a2d19;
    z-index: 3;
    text-align: center;
}

/* Artwork Section */
.artwork {
    text-align: center;
    padding: 4em 2em;
    background: #ffffcc;
}

.artwork h2 {
    font-size: 2rem;
    margin-bottom: 2em;
}

.art-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
}

.art-card {
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.art-card:hover {
    transform: translateY(-5px);
}

.art-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f6f6f6;
    /* neutral background for letterboxing when aspect ratios differ */
}

/* Make embedded videos match the art card sizing and behavior */
.art-card .art-video,
.art-card video {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f6f6f6;
}

.art-card h3 {
    padding: 1em;
    background: #e4d6a7;
    color: #3a2d19;
}

/* About Section */
.about {
    position: relative;
    color: #2b2b2b;
    padding: 3.5em 2em 1.5em;
    /* reduce bottom padding since we'll show a band */
    text-align: center;
    /* two-tone: main olive area and a lighter band at the bottom for the email */
    background: #999933;
}

/* Decorative triangular strip at top of About to mimic the reference */
.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background-image: repeating-linear-gradient(-45deg, rgba(58, 45, 25, 0.12) 0 12px, transparent 12px 24px);
}

/* Style the email band to sit visually inside the lighter bottom band */
.about .email {
    display: block;
    margin-top: 1em;
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 4px;
    background: transparent;
    text-align: left;
    max-width: 300px;
}

/* Two-column layout for About */
.about-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.about-left {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-right {
    width: 60%;
    text-align: left;
}

.about-box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    height: 160px;
}

.about-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive: stack vertically on small screens and show text first */
@media (max-width: 768px) {
    .about-inner {
        flex-direction: column;
        padding: 0 1rem;
    }

    .about-right {
        order: 1;
        /* text appears first */
        width: 100%;
        text-align: center;
    }

    .about-left {
        order: 2;
        width: 100%;
        flex-direction: row;
        gap: 1rem;
    }

    .about-box {
        flex: 1 1 50%;
        height: 140px;
    }
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1em;
}

.about p {
    max-width: 700px;
    margin: 1em auto;
    line-height: 1.6;
}

.email {
    margin-top: 2em;
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 2em;
    background: #cccc99;
    text-align: left;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1em;
}

.contact .email {
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 4px;
    background: transparent;
    max-width: 300px;
}

/* Fixed Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8em 0;
    z-index: 10;
}

.navbar ul {
    display: flex;
    gap: 2em;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: #2b2b2b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #7c4d1b;
}

/* Scrollable Animation Section */
.animations {
    display: flex;
    overflow-x: auto;
    gap: 1em;
    padding: 2em;
    background: #f8f5e9;
}

.animation-item {
    flex: 0 0 auto;
    text-align: center;
}

.animation-item img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.animation-name {
    margin-top: 0.5em;
    font-size: 1rem;
    color: #2b2b2b;
}

/* Divider Section */
.divider {
    text-align: center;
    position: relative;
    margin-top: -16vh;
    z-index: 5;
    line-height: 0;
}

.divider img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Background for Sections */
.character,
.animation,
.illustration {
    background: #ffffcc;
    position: relative;
    z-index: 1;
    padding: 4em 2em;
    text-align: center;
}

.character img,
.animation video,
.illustration img {
    position: relative;
    z-index: 2;
    width: 300px;
    height: auto;
    border-radius: 8px;
    padding-bottom: 10%;
}

.character h2,
.animation h2,
.illustration h2 {
    position: relative;
    z-index: 2;
    color: #2b2b2b;
}

.character p,
.animation p,
.illustration p {
    position: relative;
    z-index: 2;
    color: #2b2b2b;
}

/* Section Links */
.section-link {
    display: inline-block;
    margin-top: 1em;
    padding: 0.6em 1.5em;
    background: #2b2b2b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.section-link:hover {
    background: #555;
    transform: translateX(2px);
}

/* Gallery Page Styles */
.gallery-page {
    min-height: 100vh;
    padding: 8em 2em 3em 2em;
    margin-top: 0.5em;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3em;
}

.gallery-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
    color: #2b2b2b;
}

.gallery-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5em;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f0f0f0;
}

.gallery-item-video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f0f0f0;
}

.gallery-item-name {
    padding: 1.2em;
    font-family: 'Sue Ellen Francisco', cursive;
    font-size: 1.3rem;
    color: #2b2b2b;
    text-align: center;
}

.gallery-link {
    display: inline-block;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 1em;
    background: #1a1a1a;
    color: white;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 50vh;
    /* Half of the screen */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 400%;
    /* 4 slides */
    height: 100%;
}

.slide {
    flex: 0 0 50%;
    /* Each slide takes half the screen */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.slide video,
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    scale: 1.1;
}

.slide-overlay {
    position: absolute;
    top: 15%;
    left: 5%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 4px;
    font-size: 1.2rem;
    text-align: left;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Character Section */
.character-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    max-width: 900px;
    margin: 0 auto;
}

.character-text {
    flex: 1;
    text-align: left;
}

.character img {
    flex: 0 0 auto;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
}

/* Animation Section */
.animation-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    max-width: 900px;
    margin: 0 auto;
}

.animation video {
    flex: 0 0 auto;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
}

.animation-text {
    flex: 1;
    text-align: left;
}

/* Illustration Section */
.illustration-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    max-width: 900px;
    margin: 0 auto;
}

.illustration img {
    flex: 0 0 auto;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
}

.illustration-text {
    flex: 1;
    text-align: left;
}

/* Larger Headings */
h2 {
    font-size: 2.5rem;
    color: #2b2b2b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .art-grid {
        flex-direction: column;
        align-items: center;
    }

    .name {
        font-size: 1.8rem;
    }
}

/* Divider 2 Section */
.divider2 {
    text-align: center;
    position: relative;
    margin-top: -8vh;
    z-index: 5;
    line-height: 0;
}

.divider2 img {
    width: 100%;
    height: auto;
    max-width: 100%;
    background: #ffffcc;
}

/* Divider 3 Section */
.divider3 {
    text-align: center;
    position: relative;
    margin-top: -8vh;
    z-index: 5;
    line-height: 0;
}

.divider3 img {
    width: 100%;
    height: auto;
    max-width: 100%;
    background: #669999;
}

/* About Me Section */
.about-me {
    background: #669999;
    position: relative;
    z-index: 1;
    padding: 4em 0;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: stretch;
    height: 100%;
    padding-left: 10%;
}

.about-left {
    flex: 1;
    padding: 4em 4em 4em 6em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-left h2 {
    font-size: 2.5rem;
    color: #2b2b2b;
    margin-bottom: 1.5em;
}

.about-left p {
    font-size: 1rem;
    line-height: 1.8;
    color: #2b2b2b;
    max-width: 500px;
}

.about-right {
    flex: 0 0 35%;
    margin-right: 0;
    overflow: hidden;
}

.about-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Design - Tablet and below */
@media (max-width: 1024px) {
    .navbar ul {
        gap: 1.5em;
        font-size: 0.95em;
    }

    .character-content,
    .animation-content,
    .illustration-content {
        gap: 1em;
        max-width: 800px;
    }

    .character img,
    .animation video,
    .illustration img {
        max-width: 220px;
    }

    .character-text,
    .animation-text,
    .illustration-text {
        flex: 1;
    }

    h2 {
        font-size: 2rem;
    }

    .about-left {
        padding: 3em 3em 3em 4em;
    }

    .about-left h2 {
        font-size: 2rem;
    }

    .about-right {
        flex: 0 0 40%;
    }

    .about-page-content {
        gap: 2em;
    }

    .about-page-left h1 {
        font-size: 2.8rem;
    }

    .about-page-right {
        flex: 0 0 30%;
    }
}

/* Mobile - Medium devices */
@media (max-width: 768px) {
    .navbar {
        padding: 0.6em 0;
    }

    .navbar ul {
        gap: 1em;
        font-size: 0.9em;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar a {
        font-size: 0.95rem;
    }

    .hero-slider {
        height: 40vh;
    }

    .slide {
        flex: 0 0 100%;
    }

    .slider-container {
        width: 400%;
    }

    .slide-overlay {
        font-size: 1rem;
        padding: 0.4em 0.8em;
        top: 10%;
        left: 5%;
    }

    .divider {
        margin-top: -12vh;
    }

    .divider2,
    .divider3 {
        margin-top: -6vh;
    }

    .character,
    .animation,
    .illustration {
        padding: 2em 1em;
    }

    .character-content,
    .animation-content,
    .illustration-content {
        flex-direction: column;
        gap: 1.5em;
        max-width: 100%;
    }

    .character img,
    .animation video,
    .illustration img {
        max-width: 200px;
    }

    .character-text,
    .animation-text,
    .illustration-text {
        text-align: center;
    }

    .character-text p,
    .animation-text p,
    .illustration-text p {
        max-width: 100%;
    }

    h2 {
        font-size: 1.8rem;
    }

    .about-me {
        padding: 2em 0;
    }

    .about-content {
        flex-direction: column;
        padding-left: 0;
    }

    .about-left {
        flex: 1;
        padding: 2em 1.5em;
        order: 1;
    }

    .about-left h2 {
        font-size: 1.8rem;
        margin-bottom: 1em;
    }

    .about-left p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .about-right {
        flex: 0 0 100%;
        order: 2;
        height: 250px;
        margin-right: 0;
    }

    footer {
        padding: 0.8em;
        font-size: 0.95rem;
    }
}

/* Mobile - Small devices */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5em 0;
    }

    .navbar ul {
        gap: 0.7em;
        font-size: 0.8em;
    }

    .navbar a {
        font-size: 0.85rem;
    }

    .hero-slider {
        height: 35vh;
    }

    .slide-overlay {
        font-size: 0.9rem;
        padding: 0.3em 0.6em;
        top: 20%;
        left: 3%;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .divider {
        margin-top: -10vh;
    }

    .divider2,
    .divider3 {
        margin-top: -5vh;
    }

    .character,
    .animation,
    .illustration {
        padding: 2em 1.5em;
    }

    .character-content,
    .animation-content,
    .illustration-content {
        flex-direction: column;
        gap: 1.5em;
        text-align: center;
    }

    .character-text,
    .animation-text,
    .illustration-text {
        text-align: center;
    }

    .character img,
    .animation video,
    .illustration img {
        max-width: 200px;
        width: 100%;
    }

    h2 {
        font-size: 1.5rem;
    }

    .character-text,
    .animation-text,
    .illustration-text {
        font-size: 0.95rem;
    }

    .character-text p,
    .animation-text p,
    .illustration-text p {
        font-size: 0.9rem;
    }

    .section-link {
        padding: 0.5em 1.2em;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5em;
    }

    .gallery-item-image,
    .gallery-item-video {
        height: 200px;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }

    .about-me {
        padding: 1.5em 0;
    }

    .about-left {
        padding: 1.5em 1em;
    }

    .about-left h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8em;
    }

    .about-left p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .about-right {
        height: 200px;
    }

    .about-page {
        padding: 6em 1.5em 2em 1.5em;
    }

    .about-page-content {
        flex-direction: column;
        gap: 2em;
    }

    .about-page-left {
        padding-right: 0;
    }

    .about-page-left h1 {
        font-size: 2rem;
    }

    .about-page-left h3 {
        font-size: 1.3rem;
    }

    .about-page-left p {
        font-size: 0.95rem;
    }

    .about-page-right {
        flex: 1;
    }

    footer {
        padding: 0.6em;
        font-size: 0.85rem;
    }
}