/* Font Faces */
@font-face {
    font-family: 'Coolvetica';
    src: url('assets/Coolvetica Rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GT Walsheim';
    src: url('assets/GT Walsheim Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'GT Walsheim', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

/* Homepage Styles */
.homepage {
    min-height: 100vh;
    width: 100%;
    background-image: url('assets/homepage/homepage picture.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Main Content */
.content {
    position: absolute;
    right: 4%;
    top: 62%;
    transform: translateY(-50%);
    max-width: 60vw;
    z-index: 10;
}

.title {
    font-family: 'Coolvetica', sans-serif;
    font-size: clamp(3rem, 10vw, 10.5rem);
    font-weight: normal;
    margin-bottom: 1.5rem;
    line-height: 1;
    text-transform: lowercase;
    color: #f2e4ab;
    white-space: nowrap;
}

.description {
    font-family: 'GT Walsheim', sans-serif;
    font-size: clamp(0.875rem, 1rem, 1.125rem);
    color: #f2e4ab;
    max-width: clamp(300px, 35vw, 450px);
    white-space: normal;
    margin-left: 33%;
    margin-right: 5%;
}

/* Decorative Elements */
.decorative-element {
    position: absolute;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.decorative-element img {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.element-text {
    position: absolute;
    font-family: 'GT Walsheim', sans-serif;
    font-size: clamp(1rem, 2vw, 3.3rem);
    font-weight: 100;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    white-space: nowrap;
}

/* Star Element */
.star-element {
    left: 14%;
    bottom: 24%;
    width: clamp(200px, 20vw, 450px);
    height: clamp(200px, 20vw, 450px);
}

.star-text {
    color: #efcce1;
    font-size: clamp(1.5rem, 2vw, 3.3rem);
}

.star-element:hover img {
    transform: rotate(20deg) scale(1.1);
}

/* Starburst Element */
.starburst-element {
    left: 31%;
    top: 11%;
    width: clamp(220px, 20vw, 450px);
    height: clamp(220px, 20vw, 450px);
}

.starburst-text {
    color: #a62228;
    font-size: clamp(1.5rem, 2vw, 3.3rem);
}

.starburst-element:hover img {
    transform: rotate(-20deg) scale(1.1);
}

/* Oval Element */
.oval-element {
    right: 3%;
    top: 4%;
    width: clamp(90px, 9vw, 420px);
    height: clamp(75px, 6vw, 350px);
}

.oval-text {
    color: #a62228;
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
}

.oval-element:hover img {
    transform: rotate(-5deg) scale(1.1);
}

/* Other Pages Styles */
.page-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    padding: 2rem;
}

.page-content h1 {
    font-family: 'Coolvetica', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-content p {
    font-family: 'GT Walsheim', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.back-link {
    color: #ffffff;
    font-family: 'GT Walsheim', sans-serif;
    text-decoration: underline;
    font-size: 1rem;
}

.back-link:hover {
    color: #E8C5D8;
}

/* Responsive Design */
@media screen and (max-width: 1400px) {
    .content {
        right: 4%;
        max-width: 55vw;
    }

    .title {
        white-space: nowrap;
    }

    .description {
        max-width: clamp(300px, 28vw, 420px);
    }
}

@media screen and (max-width: 1024px) {
    .content {
        right: 3%;
        max-width: 50vw;
    }

    .title {
        white-space: nowrap;
    }

    .description {
        max-width: clamp(280px, 30vw, 400px);
    }

    .star-element {
        left: 12%;
        bottom: 20%;
    }

    .starburst-element {
        left: 30%;
        top: 10%;
    }

    .oval-element {
        right: -8%;
        top: -8%;
        width: clamp(130px, 20vw, 340px);
        height: clamp(110px, 17vw, 290px);
    }
}

@media screen and (max-width: 768px) {
    .homepage {
        background-position: 35% center;
    }

    .content {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 3rem auto 2rem;
        padding: 2rem;
        max-width: 85%;
    }

    .title {
        white-space: nowrap;
        overflow: visible;
    }

    .description {
        max-width: 100%;
    }

    .star-element {
        left: 8%;
        bottom: 15%;
        width: clamp(140px, 20vw, 200px);
        height: clamp(140px, 20vw, 200px);
    }

    .starburst-element {
        left: 25%;
        top: 8%;
        width: clamp(160px, 22vw, 220px);
        height: clamp(160px, 22vw, 220px);
    }

    .oval-element {
        right: -10%;
        top: -10%;
        width: clamp(110px, 17vw, 155px);
        height: clamp(90px, 14vw, 130px);
    }
}

@media screen and (max-width: 428px) {
    .page-content h1 {
        font-size: 2rem;
    }

    .page-content p {
        font-size: 1rem;
    }
}

/* ==================== ART PAGE STYLES ==================== */

/* Art Page Layout */
.art-page {
    min-height: 100vh;
    background-color: #f2e4ab;
    padding: 0 4rem 2rem;
}

/* Art Header */
.art-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 100;
}

.art-title {
    font-family: 'Coolvetica', sans-serif;
    font-weight: 100;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #a62228;
    text-transform: lowercase;
    margin: 0;
}

/* Art Content */
.art-content {
    display: flex;
    flex-direction: column;
    gap: clamp(8rem, 20vh, 15rem);
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Art Item Section */
.art-item {
    display: grid;
    justify-items: start;
    justify-content: center;
    width: 100%;
    grid-template-columns: minmax(0, max-content);
}

/* Art Single Image */
.art-single-image {
    max-width: 50vw;
    display: block;
}

.art-single-image img {
    max-width: 50vw;
    max-height: 70vh;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Art Item Info */
.art-item-info {
    margin-top: 0.5rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.art-item-date {
    font-family: 'Coolvetica', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #a62228;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

/* Responsive Art Page */
@media screen and (max-width: 1024px) {
    .art-page {
        padding: 0 2rem 2rem;
    }

    .art-header {
        padding: 1.5rem 2rem;
    }

    .art-content {
        gap: clamp(6rem, 18vh, 12rem);
        padding-top: 5rem;
        padding-bottom: 6rem;
    }

    .art-single-image img {
        max-width: 60vw;
    }
}

@media screen and (max-width: 768px) {
    .art-page {
        padding: 0 1rem 1.5rem;
    }

    .art-header {
        padding: 1rem 1rem;
    }

    .art-content {
        gap: clamp(5rem, 15vh, 10rem);
        padding-top: 4.5rem;
        padding-bottom: 5rem;
    }

    .art-single-image img {
        max-width: 70vw;
    }
}

@media screen and (max-width: 428px) {
    .art-page {
        padding: 0 0.5rem 1rem;
    }

    .art-header {
        padding: 0.75rem 0.5rem;
    }

    .art-content {
        gap: clamp(1.5rem, 3vh, 2.5rem);
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .art-single-image img {
        max-width: 85vw;
    }
}

/* ==================== DESIGN PAGE STYLES ==================== */

/* Design Page Layout */
.design-page {
    min-height: 100vh;
    background-color: #f2e4ab;
    padding: 0 4rem 2rem;
}

/* Design Header */
.design-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 100;
}

.design-title {
    font-family: 'Coolvetica', sans-serif;
    font-weight: 100;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #a62228;
    text-transform: lowercase;
    margin: 0;
}

/* Back Button */
.back-button {
    text-decoration: none;
    margin: 0;
    display: inline-block;
    transition: transform 0.3s ease;
}

.mini-starburst {
    width: clamp(60px, 5vw, 100px);
    height: clamp(60px, 5vw, 100px);
    display: block;
    transition: transform 0.3s ease;
}

.back-button:hover .mini-starburst {
    transform: rotate(-20deg) scale(1.1);
}

/* Design Content */
.design-content {
    display: flex;
    flex-direction: column;
    gap: clamp(8rem, 20vh, 15rem);
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Extra spacing for chicago book, lyric video, kinetic typography, and animated set */
.design-item:nth-child(6),
.design-item:nth-child(7),
.design-item:nth-child(8),
.design-item:nth-child(9) {
    margin-bottom: clamp(6rem, 15vh, 12rem);
}

/* Design Item Section */
.design-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 50vw;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    padding-bottom: 3rem;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img,
.carousel-slide video {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

.carousel-slide video {
    width: auto;
}

/* Hide controls on gif-like videos (autoplay, loop, muted) */
video[autoplay][loop][muted]::-webkit-media-controls {
    display: none !important;
}

video[autoplay][loop][muted]::-webkit-media-controls-enclosure {
    display: none !important;
}

video[autoplay][loop][muted]::-webkit-media-controls-panel {
    display: none !important;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    width: clamp(35px, 1vw, 100px);
    height: clamp(35px, 1vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: clamp(-80px, -3vw, -150px);
}

.next-btn {
    right: clamp(-80px, -3vw, -150px);
}

.arrow-icon {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    object-fit: contain;
}

.prev-btn .arrow-icon {
    transform: scaleX(-1);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.3s ease;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(166, 34, 40, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-indicator:hover {
    background-color: rgba(166, 34, 40, 0.6);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: #a62228;
}

/* Single Image/Video */
.single-image,
.single-video {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-image img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

.single-video video {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Item Info */
.item-info {
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

/* Match carousel spacing (padding-bottom 3rem + margin-top) */
.carousel ~ .item-info {
    margin-top: 0.5rem;
}

/* Match carousel indicator spacing for single images */
.single-image ~ .item-info,
.single-video ~ .item-info {
    margin-top: 3.5rem;
}

.item-date {
    font-family: 'Coolvetica', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #a62228;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.item-description {
    font-family: 'GT Walsheim', sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    color: #a62228;
}

/* Responsive Design Page */
@media screen and (max-width: 1024px) {
    .design-page {
        padding: 0 2rem 2rem;
    }

    .design-header {
        padding: 1.5rem 2rem;
    }

    .design-content {
        gap: clamp(6rem, 18vh, 12rem);
        padding-top: 5rem;
        padding-bottom: 6rem;
    }

    .design-item:nth-child(6),
    .design-item:nth-child(7),
    .design-item:nth-child(8),
    .design-item:nth-child(9) {
        margin-bottom: clamp(5rem, 12vh, 10rem);
    }

    .design-item {
        max-width: 60vw;
    }

    .prev-btn {
        left: clamp(-70px, -3vw, -130px);
    }

    .next-btn {
        right: clamp(-70px, -3vw, -130px);
    }

    .carousel-btn {
        width: clamp(170px, 3.5vw, 280px);
        height: clamp(170px, 3.5vw, 280px);
    }
}

@media screen and (max-width: 768px) {
    .design-page {
        padding: 0 1rem 1.5rem;
    }

    .design-header {
        padding: 1rem 1rem;
    }

    .design-content {
        gap: clamp(5rem, 15vh, 10rem);
        padding-top: 4.5rem;
        padding-bottom: 5rem;
    }

    .design-item:nth-child(6),
    .design-item:nth-child(7),
    .design-item:nth-child(8),
    .design-item:nth-child(9) {
        margin-bottom: clamp(4rem, 10vh, 8rem);
    }

    .design-item {
        max-width: 70vw;
    }

    .prev-btn {
        left: clamp(-60px, -2.5vw, -110px);
    }

    .next-btn {
        right: clamp(-60px, -2.5vw, -110px);
    }

    .carousel-btn {
        width: clamp(135px, 3vw, 240px);
        height: clamp(135px, 3vw, 240px);
    }
}

@media screen and (max-width: 428px) {
    .design-page {
        padding: 0 0.5rem 1rem;
    }

    .design-header {
        padding: 0.75rem 0.5rem;
    }

    .design-content {
        gap: clamp(1.5rem, 3vh, 2.5rem);
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .design-item:nth-child(6),
    .design-item:nth-child(7),
    .design-item:nth-child(8),
    .design-item:nth-child(9) {
        margin-bottom: clamp(2rem, 5vh, 4rem);
    }

    .design-item {
        max-width: 85vw;
    }

    .prev-btn {
        left: clamp(-50px, -2vw, -90px);
    }

    .next-btn {
        right: clamp(-50px, -2vw, -90px);
    }

    .carousel-btn {
        width: clamp(100px, 2.5vw, 170px);
        height: clamp(100px, 2.5vw, 170px);
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .carousel {
        padding-bottom: 2.5rem;
    }
}

/* ==================== MOBILE-SPECIFIC STYLES ==================== */

/* Tablet Homepage Fixes (768px) */
@media screen and (max-width: 1024px) {
    /* Make oval visible on tablets */
    .oval-element {
        right: 2%;
        top: 2%;
        width: clamp(80px, 12vw, 120px);
        height: clamp(55px, 8vw, 85px);
    }

    .oval-text {
        font-size: clamp(0.65rem, 1.2vw, 0.9rem);
    }

    /* Scale down text in shapes */
    .star-text,
    .starburst-text {
        font-size: clamp(1rem, 2.5vw, 1.8rem);
    }
    .carousel-btn {
        display: none !important;
    }
}

/* Mobile Homepage Fixes */
@media screen and (max-width: 428px) {
    /* Background centered, edges cut off */
    .homepage {
        min-height: 100vh;
        background-position: 55% center;
        background-size: 420%;
        position: relative;
    }

    /* Content section - positioned in lower portion */
    .content {
        position: absolute;
        bottom: 5%;
        left: 5%;
        right: 5%;
        bottom: 5%;
        transform: none;
        max-width: 90%;
        padding: 0;
        margin: 0;
    }

    .title {
        font-size: clamp(5rem, 14vw, 4rem);
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .description {
        max-width: 100%;
        margin-left: 5%;
        margin-right: 35%;
        margin-bottom: 22%;
        font-size: 0.75rem;
        line-height: 1;
        color: #a62228;

    }

    /* Star element - art link - LEFT SIDE */
    .star-element {
        position: absolute;
        left: 2%;
        bottom: auto;
        top: 33%;
        width: 180px;
        height: 180px;
        z-index: 20;
    }

    .star-text {
        font-size: 1rem;
    }

    /* Starburst element - design link - RIGHT UPPER */
    .starburst-element {
        position: absolute;
        left: auto;
        right: 40%;
        top: 12%;
        width: 180px;
        height: 180px;
        z-index: 20;
    }

    .starburst-text {
        font-size: 1rem;
    }

    /* Oval element - linktree link - TOP RIGHT CORNER */
    .oval-element {
        position: absolute;
        right: 4%;
        left: auto;
        transform: none;
        top: 3%;
        width: 70px;
        height: 45px;
        z-index: 20;
    }

    .oval-text {
        font-size: 0.85rem;
    }
}

/* Design Page Mobile Fixes */
@media screen and (max-width: 428px) {
    /* Large spacing so only one item shows at a time */
    .design-content {
        gap: 50vh;
        padding-top: 20vh;
        padding-bottom: 30vh;
    }

    /* Remove extra margin on specific items */
    .design-item:nth-child(6),
    .design-item:nth-child(7),
    .design-item:nth-child(8),
    .design-item:nth-child(9) {
        margin-bottom: 0;
    }

    /* Hide carousel arrows on mobile */
    .carousel-btn {
        display: none !important;
    }

    /* Make carousel touch-friendly */
    .carousel {
        padding-bottom: 2rem;
        touch-action: pan-y pinch-zoom;
    }

    .carousel-track-container {
        overflow: hidden;
        touch-action: pan-x;
    }

    .carousel-track {
        transition: transform 0.3s ease-out;
    }

    .carousel-slide {
        flex-shrink: 0;
        min-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Preserve aspect ratio for carousel images and videos */
    .carousel-slide img,
    .carousel-slide video {
        max-width: 65vw;
        max-height: 40vh;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* Preserve aspect ratio for single images and videos */
    .single-image img,
    .single-video video {
        max-width: 65vw;
        max-height: 40vh;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* Center design items */
    .design-item {
        max-width: 90vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    /* Carousel container needs relative positioning */
    .carousel {
        position: relative;
    }

    .single-image ~ .item-info,
    .single-video ~ .item-info {
        margin-top: 1rem;
    }

    /* Info width set by JavaScript to match content */
    .item-info {
        text-align: left;
        padding: 0;
    }

    /* Carousel item info positioned by JavaScript */
    .carousel ~ .item-info {
        position: absolute;
    }

    .item-date {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        text-align: left;
    }

    .item-description {
        font-size: 0.85rem;
        text-align: left;
    }

    /* Carousel indicators - keep absolute for dynamic positioning */
    .carousel-indicators {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Art Page Mobile Fixes */
@media screen and (max-width: 428px) {
    /* Large spacing so only one image shows at a time */
    .art-content {
        gap: 30vh;
        padding-top: 25vh;
        padding-bottom: 30vh;
    }

    /* Center art items */
    .art-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 50vh;
    }

    .art-single-image {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 90vw;
        width: 100%;
    }

    .art-single-image img {
        max-width: 65vw;
        max-height: 45vh;
        width: auto;
        height: auto;
        margin: 0 auto;
        display: block;
        object-fit: contain;
    }

    /* Info width set by JavaScript to match image */
    .art-item-info {
        text-align: left;
        margin: 0.5rem auto 0;
    }

    .art-item-date {
        text-align: left;
    }
}
