html {
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    background-color: #f3eee2 ; 
    margin-left: 3.889vw;
    margin-right: 3.889vw;
    margin-bottom: 4vh;
    margin-top: 11vh;
}

h1, h2, h3, h4, h5, p, .caption {
    margin: 0;
    padding: 0;
}


h1 {
    font-family: "Inter",sans-serif;
    color: #1C0706 ;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
}

h2 { 
    font-family: "Inter", sans-serif;
    color: #1C0706 ;
    font-size: clamp(1.375rem, 3.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
}

h2.r {
    color: #961309;
}

h2.w {
    color: #1C0706 ;
}

h3 {
    font-family: "Inter", sans-serif;
    color: #1C0706 ;
    font-size: clamp(1.125rem, 2.75vw, 1.475rem);
    font-weight: 600;
    line-height: 1.3;
}

h3.r {
    color: #961309;
}

h3.caption {
    color: #1C0706 ; 
    opacity: 55%;
}

h4 {
    color: #1C0706 ;
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 600;
    line-height: 1.4;
}

h4.caption {
    color: #1C0706 ; 
    opacity: 55%;
}

h4.year {
    color: #1C0706 ;
    opacity: 60%;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.75vw, 0.9375rem);
}

h4.tags {
    color: #1C0706 ;
    opacity: 70%;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.75vw, 0.875rem);
}

p a:hover, h3 a:hover, h2 a:hover, li a:hover {
  text-decoration-color: #1C0706;
  color: #961309;
}

.text-content {
    display: grid;
    padding-top: 2%; 
    gap: 8px;
}

p {
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-style: normal;
    font-weight: 400;
    color: #1A1815 ;
    line-height: 1.6;
}

li {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
}


.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 75%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}




/* Large Desktop */
@media (min-width: 1900px) {
    .hero-column {
        margin-bottom: 2vh;
        margin-top: 2vh;
        margin-bottom: 2vh;  
        display: grid;
        grid-template-columns: 1fr 1fr;        
    }
    
    .hero-column img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    .hero-header{
        display: flex;
        flex-direction: column;
        gap: 4vh;
        margin-top: 4vh;
    }
    .content {
        display: grid;
        grid-template-columns: 1fr 1fr ;
        flex-direction: column;
        margin-left: auto;
        gap: 56px; 
    }
}

/* Small desktop: 1400px - 1899px */
@media (min-width: 1400px) and (max-width: 1899px) {
    .hero-column {
        margin-bottom: 2vh;
        margin-top: 2vh;
        display: grid;
        grid-template-columns: 1fr 1fr;
        
    }
    
    .hero-column img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .content {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        padding-top: 2%;
        padding-bottom: 2%;
        gap: 56px; 
    }
    .hero-header{
        display: flex;
        flex-direction: column;
        gap: 4vh;
        margin-top: 4vh;
    }

}

/* Desktop: 1024px - 1399px */
@media (min-width: 1024px) and (max-width: 1400px) {
    .hero-column {
        margin-bottom: 2vh;
        margin-top: 2vh;
        display: grid;
        grid-template-columns: 1fr 1fr;    
    }
    

    .content {
        display: grid;
        grid-template-columns: 1fr 1fr ;
        flex-direction: column;
        margin-left: auto;
        padding-top: 2%;
        padding-bottom: 2%;
        gap: 48px; 
    }
    .hero-header{
        display: flex;
        flex-direction: column;
        gap: 4vh;
        margin-top: 4vh;
    }
}
/* Tablet */
@media (min-width: 770px) and (max-width: 1023px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 600px;
        gap: 40px;
        order: 2;
    }

    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 4px;
        padding: 18px 10px;
        float: none;
    }
        .hero-content {
        display: flex;
        flex-direction: column;
        align-items: left;
        gap: 16px;
        width: 100%;
    }
    .hero-header{
        display: flex;
        flex-direction: column;
        gap: 4vh;
        margin-top: 4vh;
    }

}
/* Mobile */
@media (max-width: 769px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-header{
        display: flex;
        flex-direction: column;
        gap: 2vh;
    }
   .hero-column {

        display: grid;
        align-items: center;
        max-width: 100%;
        width: 100%;
        margin-bottom: 2vh;
    }

    .content {
        display: grid;
        grid-template-columns: 1fr;

        width: 100%;
        padding: 20px;
        gap: 40px;
        order: 2;

    }

    h1 {
        text-align: left;
    }

    h2 {
        text-align: left;
    }

    .btn-group {
        justify-content: left;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        float: none;
    }

    .btn-group .btn {
        margin-right: 0;
        flex-shrink: 0;
        min-width: 100px;
        display: flex ;
        align-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: left;
        gap: 16px;
        width: 100%;
    }

}


/* Mobile Type*/
@media (max-width: 600px) {
    h1 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }

    h2 {
        font-size: clamp(1.125rem, 4vw, 1.25rem);
    }

    h3 {
        font-size: clamp(0.9375rem, 3.5vw, 1rem);
    }

    h4 {
        font-size: clamp(0.8125rem, 3vw, 0.875rem);
    }

    p, li {
        font-size: clamp(0.8125rem, 3vw, 0.875rem);
    }
}

/* Extra Small Typography: up to 375px */
@media (max-width: 375px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    p, li {
        font-size: 0.8125rem;
    }
}


.hero-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: left;
        width: 100%;
    }
.text-content-2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 2%; 
    gap: 4px;
}




.nav {
    position: fixed;
    top: 0; 
    left: 0;
    right: 0; 
    z-index: 1000; 
    margin-left: 3.889vw;
    margin-right: 3.889vw;
    margin-top: 2.5vh;
}

.btn {
  display: grid;
  min-width: 116px;
  padding: 18px 16px;
  background-color: #f3eee2;
  border: 1px solid #340404;

  justify-content: center;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: background 0.7s ease, border-color 0.3s ease, color 0.3s ease; /* Added color transition */
}

/* draw outline layer */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #340404;
  border-radius: 16px;
  box-sizing: border-box;
  clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  transition: clip-path 0.3s linear;
}

/* hover animation */
.btn:hover::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.btn:hover {
  border-color: #360410;
  background: #961309;
}
.btn:hover h4 {
  color: #f3eee2;
}

.btn h4 {
  transition: color 0.3s ease;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap; 
    float: left;

}
/* Underline left*/
    .underline-slide {
        color: #667eea;
        text-decoration: none;
        cursor: pointer;
        position: relative;
        display: inline-block;
        }
        
    .underline-slide::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background-color: #667eea;
        transition: width 0.3s ease;
        }
        
        .underline-slide:hover::after {
            width: 100%;
        }


/* Footer Styles */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 2vh;
}

.footer-wrapper a {
    color: #360410 !important;
    text-decoration: none;
}

.footer-wrapper a:hover {
    color: #86170E !important;
}


/* Make images responsive */
.content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-button {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.image-button:hover {
    opacity: 0.8;
}

.image-button img {
    display: block;
    max-width: 100%;
}

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 1vh;
    background-color: #f3eee2;
    z-index: 99;
}


.contact{
    display: grid;
    margin-bottom: 4vh;
    gap: 4px;

}




/*stars*/
        .projects {
            position: relative;
        }

        .projects > div {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 10;
        }

        .projects::before,
        .projects::after {
            content: "★";
            color: #ffffff;
            position: absolute;
            font-size: 20px;
            opacity: 0;
            pointer-events: none;
            display: none;
            z-index: 10;
        }

        .projects::before {
            top: 25%;
            left: 20%;
        }

        .projects::after {
            bottom: 20%;
            right: 30%;
        }

        .star {
            position: absolute;
            color: #ffffff;
            opacity: 0;
            pointer-events: none;
            display: none;
            z-index: 10;
        }

        .star-1 { top: 0%; right: 25%; font-size: 24px; }
        .star-2 { bottom: 35%; left: 25%; font-size: 24px; }
        .star-3 { top: 0%; left: 32%; font-size: 24px; }
        .star-4 { top: 5%; right: 030%; font-size: 24px; }
        .projects:hover::before,
        .projects:hover::after,
        .projects:hover .star {
            display: block;
        }

        .projects:hover::before {
            animation: shimmer 1.5s infinite;
        }

        .projects:hover::after {
            animation: shimmer 1.5s infinite 0.5s;
        }

        .projects:hover .star-1 { animation: shimmer 1.5s infinite 0.2s; }
        .projects:hover .star-2 { animation: shimmer 1.5s infinite 0.4s; }
        .projects:hover .star-3 { animation: shimmer 1.5s infinite 0.6s; }
        .projects:hover .star-4 { animation: shimmer 1.5s infinite 0.6s; }


        @keyframes shimmer {
            0%, 100% {
                opacity: 0;
                transform: scale(0.3) rotate(0deg);
            }
            50% {
                opacity: 1;
                transform: scale(1) rotate(90deg);
            }
        }

/* Play Page Content */
    .content-play {
        display: grid;
        grid-template-columns: auto auto ;
        margin-left: 2.917vw;
        margin-right: 2.917vw;

        gap: 56px; 
    }

    .header-play {
        display: grid;
        padding-top: 20vh; 
        margin-left: 2.917vw;
        margin-right: 2.917vw;  
        margin-bottom: 4vh;
        gap: 4px;
    }


