@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&family=Inter:wght@300;400;600;700&family=Quicksand:wght@400;500;600&display=swap');

:root {
    --bg-color: #cebacb;
    --text-color: #000000;
    --nav-bg: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 4rem 5%;
    scroll-margin-top: 100px;
    /* Offset for sticky header */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(206, 186, 203, 0.7);
    /* --bg-color with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(14, 1, 13, 0.2);
    transition: background-color 0.3s ease;
}




/* Hero Section Styles */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    background-color: #000;
    padding: 0;
    /* Override default section padding */
}


.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 10%;
}

.hero-content h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
    color: #fff;
    letter-spacing: 4px;
    animation: fadeInDown 1.5s ease-out;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: fadeInUp 2s ease-out;
}

.scroll-indicator .arrow {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #fff);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .arrow::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
    0% {
        top: -50px;
    }

    100% {
        top: 50px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 0.8;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    header {
        padding: 0.8rem 5%;
    }

    .logo {
        font-size: 1.1rem;
    }

    .scroll-indicator .arrow {
        height: 30px;
    }
}


.logo,
nav a {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.15em;
    opacity: 0.75;
    text-transform: uppercase;
    background: linear-gradient(120deg,
            rgba(0, 0, 0, 1) 40%,
            rgba(113, 70, 119, 0.7) 50%,
            rgba(0, 0, 0, 1) 60%);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: rgba(0, 0, 0, 1);
    /* Fallback */
    color: transparent;
    animation: headerShimmer 12s infinite linear;
    display: inline-block;
    /* Required for some background effects */
}

@keyframes headerShimmer {
    0% {
        background-position: 150% center;
    }

    100% {
        background-position: -150% center;
    }
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    /* Slightly smaller to accommodate wide spacing */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

nav a:hover {
    transform: translateY(-2px);
}




h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.15em;
    opacity: 0.75;
    margin-bottom: 2rem;
    color: rgb(38, 67, 68);
}

h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 630;
    letter-spacing: 0.25em;
    opacity: 1.0;
    margin-bottom: 2rem;
    color: rgb(221, 191, 191);
}



h3,
h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.75;
    margin-bottom: 2rem;
    color: rgb(12, 12, 12);
}




#who-we-are {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 5%;
    position: relative;
    background-image: linear-gradient(rgba(206, 186, 203, 0.7), rgba(206, 186, 203, 0.7)), url('https://res.cloudinary.com/dqilabyy/image/upload/team.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#who-we-are h1 {
    line-height: 1.2;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    #who-we-are h1 {
        font-size: 2.0rem;
    }
}

.scroll-top {
    display: inline-block;
    margin: 2rem 0;
    padding: 0.8rem 1.5rem;
    border: 2px solid #6b556e;
    background: transparent;
    color: #070101;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 4rem;
    /* Row gap and Col gap */
    align-items: start;
}

.play-poster {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    display: block;
    margin-left: auto;
    /* Aligns to right column */
}

@media (max-width: 768px) {
    .play-poster {
        max-height: 50vh;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .intro-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

#portfolio {
    position: relative;
    background-image: linear-gradient(rgba(223, 185, 219, 0.4), rgba(223, 185, 219, 0.3)), url('https://res.cloudinary.com/dqilabyy/image/upload/Vox_Populi_1_10.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Makes the background image static while scrolling */
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    perspective: 1200px;
    align-items: stretch;
}

.play-card {
    padding: 0;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.play-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(20px);
    transition: transform 0.3s ease;
    border: none;
}

.play-card a {
    text-decoration: none;
    display: flex;
    height: 100%;
    width: 100%;
}

/* Portfolio Transition States */
.portfolio-grid.transitioning .play-card:not(.selected) {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(8px);
    pointer-events: none;
}

.portfolio-grid.transitioning .play-card.selected {
    transform: scale(1.02);
}

/* Flash overlay for smooth page transition */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

.page-transition-overlay.active {
    opacity: 1;
}

.play-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Allow details to fill the card height */
}

.play-details img {
    margin-bottom: 1.5rem;
    border: 1px solid #000;
}

.play-details p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.synteletes {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.video-bg-container {
    position: relative;
    width: 100%;
    margin-top: 4rem;
    overflow: hidden;
    background-color: #000;
    border: 2px solid #000;
    border-radius: 20px;
}

.video-bg-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    /* "Transparent" atmospheric look */
}

.video-bg-content iframe,
.video-bg-content video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-bg-container .synteletes {
    color: #fff;
    border-top: none;
    margin-top: 0;
}

.video-bg-container .synteletes h4,
.video-bg-container .synteletes p {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.video-bg-container .synteletes h4 {
    border-bottom: 2px solid #fff;
    display: inline-block;
    padding-bottom: 5px;
}

.cast-wrap {
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;


}

/* Gallery & Play Page Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery img,
.gallery-video iframe {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid #000;
}

.gallery-video {
    width: 100%;
    height: 500px;
}

.back-btn {
    display: inline-block;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid #000;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
}

.more-info-link {
    display: block;
    margin-top: auto;
    padding-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: #000;
    text-decoration: underline;
}

/* Contact Page Specific Styles */
.contact-page {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 5% 2rem 5%;
    background-image: linear-gradient(rgba(181, 138, 177, 0.75), rgba(181, 138, 177, 0.75)), url('https://res.cloudinary.com/dqilabyy/image/upload/contact.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


.contact-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-image-container {
    width: 100%;
    max-width: 600px;
    margin-top: 1.5rem;
    margin-bottom: 0;
}


.contact-photo {
    width: 100%;
    height: auto;
    border: 2px solid #000;
}

.contact-info-large {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.contact-info-large p {
    margin-bottom: 1rem;
}

.intro-text p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 2.5rem;
    font-weight: 500;
    color: #07020a;
    /* Deep, high-contrast charcoal-purple */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    /* Subtle lift */
}

/* Specific bubble for readability, used in things-i-know.html */
.readable-bubble {
    background-color: rgba(255, 255, 255, 0.15);
    /* More transparent but still provides contrast */
    padding: 3rem;
    border-radius: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.readable-bubble h1 {
    margin-bottom: 2rem;
    font-size: 2.4rem;
    border-bottom: 1px solid rgba(7, 7, 7, 0.1);
    padding-bottom: 1rem;
}

.readable-bubble p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.9 !important;
    letter-spacing: 0.01em;
    color: #000 !important;
    /* Reset to black for detail pages */
    text-shadow: none !important;
    margin-bottom: 1.5rem !important;
}

#who-we-are .readable-bubble p {
    color: #1f6959 !important;
    /* Teal color strictly for the homepage intro */
}

.vox-populi-page .readable-bubble h1,
.vox-populi-page .readable-bubble p {
    color: #0a0b42 !important;
    /* Specific dark teal theme for Vox Populi */
}

.children-of-the-sun-page .readable-bubble h1,
.children-of-the-sun-page .readable-bubble p {
    color: #251a2c !important;
    /* Darker teal/forest green for Children of the Sun */
}

.things-i-know-page .readable-bubble h1 {
    color: #000 !important;
    /* Black color for Things I Know title */
}

.hedda-gabler-page .readable-bubble h1 {
    color: #000 !important;
    /* Black color for Hedda Gabler title */
}

.readable-bubble p:last-child {
    margin-bottom: 0 !important;
}

.things-i-know-page .intro-text p {
    font-weight: 700;
}



.contact-info-large a {
    color: #000;
    text-decoration: none;
    border-bottom: 3px solid #000;
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

.contact-info-large a:hover {
    opacity: 0.7;
}

.social-links-large {
    margin-top: 1.5rem;
    display: flex;
    gap: 2.5rem;
    font-size: 2.2rem;
}

.social-links-large a {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.social-links-large a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #ccb3dd;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    padding: 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    color: #ccb3dd;
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.gallery img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 2rem;
        padding: 10px;
    }
}

/* Homepage Contact Section */
#contact {
    padding: 4rem 5%;
    position: relative;
    background-image: linear-gradient(rgba(181, 138, 177, 0.75), rgba(181, 138, 177, 0.75)), url('https://res.cloudinary.com/dqilabyy/image/upload/hedda-gabler-1_11.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    font-size: 1.5rem;
    margin-bottom: 6rem;
    color: #2c162e;
}

.email-link {
    font-size: 1.3rem;
    margin-bottom: 2rem !important;
}

.email-link a {
    color: #ece6e6;
    text-decoration: none;
    border-bottom: 2px solid #f3f2f2;
    padding-bottom: 2px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.email-link a:hover {
    opacity: 0.3;
}

.social-links-container {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.05);
}

.social-icon {
    width: 2.8rem;
    height: 2.8rem;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.contact-image {
    flex: 1.5;
    max-width: 700px;
}


.contact-image img {
    width: 100%;
    height: auto;
    border: 2px solid #000;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .social-links-container {
        justify-content: center;
    }

    .contact-image {
        max-width: 100%;
        order: -1;
    }
}

/* Specific Play Page Backgrounds */
.hedda-gabler-page {
    background-image: linear-gradient(rgba(206, 186, 203, 0.75), rgba(206, 186, 203, 0.75)), url('https://res.cloudinary.com/dqilabyy/image/upload/hedda-gabler-1_3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.vox-populi-page {
    background-image: linear-gradient(rgba(206, 186, 203, 0.55), rgba(206, 186, 203, 0.2)), url('https://res.cloudinary.com/dqilabyy/image/upload/Vox_Populi_1_7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.children-of-the-sun-page {
    background-image: linear-gradient(rgba(206, 186, 203, 0.25), rgba(161, 123, 156, 0.65)), url('https://res.cloudinary.com/dqilabyy/image/upload/Children-of-the-sun-1_10.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.things-i-know-page {
    background-image: linear-gradient(rgba(206, 186, 203, 0.65), rgba(107, 83, 103, 0.65)), url('https://res.cloudinary.com/dqilabyy/image/upload/oogsa-play-01.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.axinos-page {
    background-image: linear-gradient(rgba(206, 186, 203, 0.72), rgba(161, 123, 156, 0.68)), url('https://res.cloudinary.com/dqilabyy/image/upload/%CE%BF_%CE%B1%CF%87%CE%B9%CE%BD%CF%8C%CF%82_%CE%B1%CF%86%CE%AF%CF%83%CE%B1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

footer {
    text-align: center;
    padding: 4rem 5% 2rem 5%;
    background-color: rgba(158, 130, 154, 0.85);
    /* Much more transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

footer .scroll-top {
    margin: 0;
    /* Remove old margin to use footer gap */
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS ENHANCEMENTS
   ========================================================================== */

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 2.5rem 4%;
        scroll-margin-top: 70px;
    }

    header {
        padding: 0.8rem 5%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .logo {
        font-size: 1.05rem;
        letter-spacing: 0.1em;
        text-align: left;
        max-width: calc(100% - 50px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hamburger Menu Toggle Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2.5px;
        background-color: #07020a;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    /* Slide-down mobile nav drawer */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: rgba(206, 186, 203, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 999;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 2.2rem;
        text-align: center;
        padding: 0;
    }

    nav a {
        font-size: 1.25rem;
        letter-spacing: 0.15em;
        font-weight: 700;
        padding: 0.5rem 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Keep all plays visible and scrollable in one screen view on mobile */
    .portfolio-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1.2rem;
        padding-top: 0.5rem;
    }

    .portfolio-grid::-webkit-scrollbar {
        height: 6px;
    }

    .portfolio-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.25);
        border-radius: 4px;
    }

    .play-card {
        flex: 0 0 72vw;
        max-width: 280px;
        scroll-snap-align: center;
    }

    .play-card img {
        transform: none;
    }

    .readable-bubble {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .intro-text p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .intro-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .play-poster {
        max-height: 45vh;
        margin: 0 auto;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gallery img,
    .gallery-video iframe {
        height: 340px;
    }

    .synteletes {
        padding: 2rem 1rem;
        font-size: 0.95rem;
    }

    .synteletes h4 {
        font-size: 1.15rem;
    }

    .contact-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .contact-info {
        padding: 0;
    }

    .contact-info p {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }

    .email-link {
        font-size: clamp(0.85rem, 4.2vw, 1.1rem);
        margin-bottom: 2.5rem !important;
        word-break: break-all;
        overflow-wrap: break-word;
        padding: 0 0.5rem;
    }

    .email-link a {
        display: inline-block;
        max-width: 100%;
        line-height: 1.4;
    }

    .social-links-container {
        justify-content: center;
        gap: 1.5rem;
    }

    .social-icon {
        width: 2.6rem;
        height: 2.6rem;
    }

    footer {
        padding: 2.5rem 4% 1.5rem 4%;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }

    .play-card {
        flex: 0 0 78vw;
    }

    .gallery img,
    .gallery-video iframe {
        height: 280px;
    }

    .intro-text p {
        font-size: 0.95rem;
    }
}