* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #ff6b6b;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Indie Flower", cursive;
    color: var(--primary-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding-bottom: 2rem;
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.nav-btn {
    padding: 20px 50px;
    font-size: 2rem;
    font-weight: 400;
    font-family: "Barrio", system-ui;
    border: none;
    background-color: transparent;
    color: #FFCD7D;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-btn[data-target="showreel"] {
    color: #EF7754;
}

.nav-btn:hover {
    opacity: 0.7;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    position: relative;
    width: 100%;
    height: 60vh;
    padding: 2rem 0 1rem 0;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.gallery-section .section-title {
    display: none;
}

.section-title {
    font-family: "Barrio", system-ui;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-left: 2rem;
    padding-right: 2rem;
}

.gallery-container {
    display: flex;
    gap: 2rem;
    padding-left: 0;
    padding-right: 0;
}

.gallery-item {
    flex: 0 0 auto;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    height: 100%;
    width: auto;
    display: block;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    width: 100%;
    padding: 0 2rem 2rem 2rem;
    background-color: transparent;
    position: relative;
    margin-top: -8rem;
    z-index: 50;
    overflow: visible;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
    overflow: visible;
    background-color: transparent;
    padding: 2rem;
}

/* Overlay title "About Me" */
.about-container .section-title {
    position: absolute;
    top: -5rem;
    right: 2rem;
    left: auto;
    font-family: "Barrio", system-ui;
    font-size: 6rem;
    font-weight: 700;
    color: #FFCD7D;
    z-index: 100;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    grid-column: 1 / -1;
}

.about-content {
    position: relative;
    z-index: 2;
    padding: 1rem 0 1rem 0;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #805386;
    text-align: left;
}

.about-image {
    width: 350px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== SHOWREEL SECTION ===== */
.showreel-section {
    width: 100%;
    padding: 2rem 2rem;
    background-color: transparent;
    position: relative;
    margin-top: -6rem;
    z-index: 60;
}

.showreel-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 60;
}

.year-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Barrio", system-ui;
    font-size: 18vw;
    font-weight: 700;
    color: #FFCD7D;
    line-height: 0.7;
    text-align: center;
    position: relative;
    margin-top: -14rem;
    z-index: 100;
}

.year-badge span {
    display: block;
}

.showreel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Barrio", system-ui;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    margin-top: 0;
    color: #EF7754;
}

.showreel-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    display: none;
}

.showreel-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--primary-color);
}

.showreel-highlights {
    display: none;
}

.highlight-item {
    padding: 1.5rem;
    background-color: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

.highlight-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.highlight-item p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.showreel-video {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 9;
    background-color: #ffffff;
    position: relative;
    z-index: 60;
}

.showreel-video iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    width: 100%;
    padding: 2rem 2rem 4rem 2rem;
    background-color: var(--secondary-color);
}

.projects-section .section-title {
    font-family: "Barrio", system-ui;
    font-size: 6rem;
    font-weight: 700;
    color: #FFCD7D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 2rem;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img,
.project-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f0f0f0;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.95rem;
}

/* ===== PARALLAX SCROLL EFFECT ===== */
@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }
}

/* Parallax effect on scroll - dynamically applied via JavaScript */
.gallery-container.parallax {
    transform: translateX(var(--scroll-offset, 0px));
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-nav {
        gap: 1rem;
    }

    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-container .section-title {
        position: relative;
        top: 0;
        font-size: 3rem;
        text-align: center;
        color: #FFCD7D;
    }

    .showreel-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showreel-content .section-title {
        text-align: center;
    }

    .about-text,
    .showreel-text {
        text-align: center;
    }

    .showreel-highlights {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .highlight-item {
        flex: 1;
        min-width: 200px;
    }

    .gallery-item {
        width: 300px;
        height: 225px;
    }

    .gallery-wrapper {
        padding: 0 1rem;
    }

    .gallery-container {
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-btn {
        width: 100%;
        max-width: 200px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .about-container {
        gap: 1.5rem;
    }

    .skills-list {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .showreel-container {
        gap: 1.5rem;
    }

    .showreel-highlights {
        gap: 1rem;
    }

    .highlight-item {
        padding: 1rem;
    }

    .gallery-item {
        width: 250px;
        height: 188px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    width: 100%;
    padding: 6rem 2rem;
    background-color: var(--secondary-color);
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    color: #FFCD7D;
    margin-bottom: 2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-link {
    display: block;
    font-size: 1.1rem;
    color: #805386;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

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

.footer-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-link {
    color: #FFCD7D;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}