body {
    font-family: 'Apercu Pro', sans-serif;
    font-weight: 600;
    background-color: #f0f0f0;
    color: #333;
    font-size: 16px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}
html {
    scroll-behavior: smooth;
}

header {
    width: 100%;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
    place-items: center;
}

header .hero span {
    color: #FFB928;
    border: 1px solid #FFB928;
    padding: 4px 17px;
    border-radius: 10px;
}

header .hero .left-side {
    text-align: center;
    margin: 0;
    padding: 0 1rem;
}

header .hero h1 {
    font-size: 90px; /* Set font size to 90px */
    color: #FFB928; /* Adjust color for PAKHUS77 */
    font-family:  'Druk Wide Trial', sans-serif;
    -webkit-text-stroke: 1px black; /* Text border */
    text-shadow: 0 0 3px black; /* Fallback for other browsers */
}

header .hero h3 {
    font-size: 26px;
    max-width: 630px;
    color: black;
}

header .hero .hero-image {
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
}

header .hero .hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.back-button {
    position: fixed; /* Change to fixed */
    top: 20px;
    left: 20px;
    z-index: 100;
}

.back-button button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background-color: #FFB928;
    font-family: monospace;
    font-weight: bold;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.back-button button:hover {
    background-color: #555;
}

.carousel {
    padding: 150px 0;
    background: linear-gradient(97.62deg, #FFB928 5.01%, #E15A10 99.09%);
    overflow: hidden;
    position: relative;
}

.carousel-inner {
    display: flex;
    flex-direction: row;
    width: max-content; /* Ensure the inner container is wide enough */
    animation: moveCarousel 10s linear infinite;
    animation-delay: 1s;
}

.carousel-inner .item {
    flex: 0 0 auto; /* Prevent items from shrinking or growing */
    width: 400px; /* Adjust this width as needed */
    margin-right: 20px; /* Adjust the gap between items as needed */
}

.carousel-inner .item img {
    width: 100%; /* Ensure the image fills the entire width of the item */
    height: auto; /* Maintain the aspect ratio of the image */
}

@keyframes moveCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 6)); /* Adjust for the width of items and gaps */
    }
}


/* amenities cards */

.amenities {
    width: 100%;
    max-width: 1440px;
    margin: 100px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.amenities h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(40px, 5vw, 75px);
    color: #FFB928; /* Adjust color for PAKHUS77 */
    font-family:  'Druk Wide Trial', sans-serif;
    -webkit-text-stroke: 1px black; /* Text border */
    text-shadow: 0 0 3px black; /* Fallback for other browsers */
}

.cards-container {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cards .card {
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* Change to column to stack elements vertically */
    width: 100%;
    max-width: 360px;
    height: 430px;
    margin-bottom: 2rem;
    position: relative; /* Ensure positioning context for child elements */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cards .card .rectangle {
    background: linear-gradient(97.62deg, #FFB928 5.01%, #E15A10 99.09%);
    border-radius: 0 0 10px 10px ;
    z-index: 100;
    width: 100%; 
    height: 160px; 
    padding: 1.5rem;
    box-sizing: border-box;
    position: absolute; 
    bottom: 0; 
    display: flex; 
    flex-direction: column;
    gap: 5px;
    align-items: center; 
    justify-content: center; 
}

.cards .card .add {
    position: absolute;
    bottom: 10px;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cards .card .less{
    position: absolute;
    bottom: 10px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cards .card .rectangle .description.hoop,
.cards .card .rectangle .description.ball,
.cards .card .rectangle .description.workout {
    opacity: 0;
    text-align: center;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.5;
    padding: 0 1rem;
    color: white;
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smoother transition */
}

.cards .card .rectangle .description.active,
.cards .card .rectangle .description.hoop.active,
.cards .card .rectangle .description.ball.active,
.cards .card .rectangle .description.workout.active {
    opacity: 1;
}

.cards .card .add.active {
    opacity: 0;
}

.cards .card .less.active {
    opacity: 1;
}

@media (hover: hover) {
    /* Only apply hover effects on devices that support hover */
    .cards .card:hover .rectangle .description {
        opacity: 1;
    }

    .cards .card:hover .add {
        opacity: 0;
    }

    .cards .card:hover .less {
        opacity: 1;
    }
}

.cards .card .rectangle .description.workout a {
    text-decoration: none;
    color: white;
}

.cards .card:hover .rectangle .description {
    opacity: 1;
}

.cards .card:hover .add {
    opacity: 0;
}

.cards .card:hover .less {
    opacity: 1;
}

.cards .card .rectangle h4 {
    margin: 0; 
    font-family: 'Apercu Pro', sans-serif;
    font-size: clamp(24px, 2vw, 28px);
    margin-bottom: 1rem;
    color: white; 
    font-family: monospace; 
    font-weight: bold; 
}

.cards .card.hoop {
    background-image: url(/assets/pakhus77_card.png);
    background-size: cover; /* Ensure the background image covers the entire element */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the background image from repeating */
    z-index: 100;
}

.cards .card.ball {
    background-image: url(/assets/pakhus77_card_ball.png);
    background-size: cover; /* Ensure the background image covers the entire element */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the background image from repeating */
    z-index: 100;
}

.cards .card.workout {
    background-image: url(/assets/pakhus77_card_workout.png);
    background-size: cover; /* Ensure the background image covers the entire element */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the background image from repeating */
    z-index: 100;
}

.additionals .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

.additionals .container .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    place-items: center;
    place-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.additionals .container .cards .location {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    justify-self: center;
}

.location iframe {
    width: 100%;
    height: 450px;
    display: block;
}

.additionals .container .cards .weather {
    width: 100%;
    max-width: 600px;
    justify-self: center;
}

@media screen and (max-width: 1024px) {
    .additionals .container .cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.location iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
}

.feedback-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    background: linear-gradient(97.62deg, #FFB928 5.01%, #E15A10 99.09%);
    height: auto;
    min-height: 850px;
    width: 100%;
    padding: 2rem;
}

.feedback-container .content h1 {
    font-size: 108px;
    font-family:  'Druk Wide Trial', sans-serif;
    color: white;
    margin-top:0 ;
}
.feedback-container .content h1 span {
    font-size: 108px;
    font-family: 'Druk Wide Trial', sans-serif;
    background: linear-gradient(90deg, #FFFFFF 0%, #FF8C00 139.58%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feedback-container .content h3 {
    text-align: center;
    color: white;
}

.feedback-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

.feedback-card {
    margin: 10px;
    background-color: #fff;
    width: 100%;
    max-width: 430px;
    height: auto;
    min-height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);

}

.person {
    display: flex;
    margin: 20px;
}

.feedback-card .icon {
    width: 60px;
    height: 60px;
    
    
}
.feedback-card .card-info {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    margin-left: 15px;
}

.feedback-card .card-info .name {
    font-size: 18px;
    font-weight: bold;
}

.feedback-card .card-info .date {
    font-size: 14px;
    color: gray;
}

.feedback-card p {
    width: 300px;
    margin-left: 50px;
    
}

/* footer */

footer {
    background-color: #2b2b2b;
    color: #ffffff;
    padding: 50px 20px;
    font-family: 'Apercu Pro', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    width: 120px; /* Adjust size as needed */
}

.contact-info {
    flex: 1;
    text-align: center;
}

.contact-info h2 {
    font-family: 'Druk Wide Trial', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-details p,
.address p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.8;
}

.social-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    margin: 0 5px;
    opacity: 0.8;
}

social-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.back-to-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-icon img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    margin-bottom: 10px;
}

.back-to-top p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Typography */
@media screen and (max-width: 1440px) {
    header .hero h1 {
        font-size: clamp(40px, 6vw, 90px);
    }

    header .hero h3 {
        font-size: clamp(16px, 2vw, 26px);
    }

    .amenities h1 {
        font-size: clamp(40px, 5vw, 75px);
    }

    .feedback-container .content h1,
    .feedback-container .content h1 span {
        font-size: clamp(40px, 7vw, 108px);
    }
}

/* Tablet Breakpoint */
@media screen and (min-width: 768px) {
    header .hero {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        padding: 4rem 2rem;
        align-items: center;
    }

    header .hero .left-side {
        text-align: left;
        max-width: 630px;
        justify-self: end;
    }

    header .hero .hero-image {
        justify-self: start;
    }

    .cards {
        flex-direction: row;
    }

    .feedback-cards {
        flex-direction: row;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    header .hero {
        gap: 6rem;
        padding: 6rem 2rem;
    }

    header .hero h1 {
        font-size: 90px;
    }

    header .hero h3 {
        font-size: 26px;
    }
}

/* Large Desktop */
@media screen and (min-width: 1440px) {
    header .hero {
        gap: 8rem;
    }
}

/* Mobile Breakpoint */
@media screen and (max-width: 767px) {
    header .hero {
        padding: 1rem;
        text-align: center;
    }

    header .hero .left-side {
        margin-left: 0;
        text-align: center;
    }

    .cards .card {
        margin: 0 auto;
    }

    .feedback-card p {
        width: auto;
        margin: 1rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Small Mobile Breakpoint */
@media screen and (max-width: 480px) {

    
    .carousel-inner .item {
        width: 280px;
    }

    .back-button button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cards .card {
        height: 380px;
    }

    .cards .card .rectangle {
        height: 140px;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        min-width: 100%;
        grid-auto-flow: row;
        gap: 1rem;
        background: linear-gradient(96.85deg, rgba(255, 185, 40, 0.9) 6.09%, rgba(255, 57, 180, 0.9) 37.92%, rgba(95, 196, 236, 0.9) 65.58%);
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    nav.active .nav-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nav-links a {
        white-space: nowrap;
        padding: 12px 24px;
        display: block;
        font-size: 16px;
        text-align: center;
    }

    /* Improved animation */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
}

/* Navbar */
nav {
    position: fixed; /* Change to fixed */
    top: 20px; /* Adjust top position */
    right: 20px; /* Adjust right position */
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 16px 35px;
    background: linear-gradient(96.85deg, rgba(255, 185, 40, 0.64) 6.09%, rgba(255, 57, 180, 0.64) 37.92%, rgba(95, 196, 236, 0.64) 65.58%);
    border-radius: 50px; /* Optional: Add border-radius for rounded corners */
    z-index: 1000; /* Ensure the navbar is always on top */
}

.nav-links {
    display: grid;
    grid-auto-flow: column;
    gap: 2rem;
    justify-content: end;
}

nav a {
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-left: 20px; /* Add margin between links */
}

/* Hamburger Menu Improvements */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 12px;  /* Increased padding for better touch target */
    scale: 1;       /* Remove scale transformation */
    margin-right: -8px; /* Adjust position */
}

.bar {
    display: block;
    width: 24px;    /* Increased width */
    height: 2px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

a {
    text-decoration: none;
}


/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Device-specific breakpoints */
@supports (-webkit-touch-callout: none) {
    /* iOS-specific fixes */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }
}

/* Common device sizes */
/* iPhone SE */
@media screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
    header .hero {
        padding: 1rem;
    }
}

/* iPhone X, XS, 11 Pro */
@media screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    header .hero {
        padding: 2rem 1rem;
    }
}

/* iPhone 12, 12 Pro */
@media screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) {
    header .hero {
        padding: 2rem 1rem;
    }
}

/* iPad */
@media screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) {
    header .hero {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Handle orientation changes */
@media screen and (orientation: landscape) and (max-height: 500px) {
    header .hero {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Better responsive handling */
@media screen and (max-width: 768px) {
    body {
        min-height: -webkit-fill-available;
    }

    .cards .card {
        min-height: 380px;
        height: auto;
    }
}

