@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body, html {
    background-color: #bfa17d;
    color: #fffefc;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin: 0px;
    padding: 0px;
}

* {
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    transition: all 0.6s cubic-bezier(0.3, 1, 0.4, 1.3);
    margin: 0;
    padding: 0;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

*::-webkit-scrollbar {
    display: none;
}

button {
    cursor: pointer;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 3rem;
    padding: 0rem 9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    z-index: 9999999;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: rgba(191, 161, 125, 0.623);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

#header-logo {
    height: 30px;
}

#header-navigation {
    display: flex;
    gap: 5px;
}

#header-navigation a {
    color: #fffefc;
    text-decoration: none;
    background-color: #fffefc00;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 5px 15px;
    border-radius: 100px;
}

#header-navigation a:hover {
    background-color: #fffefc31;
    padding: 5px 20px;
}

#section-1-hero-section {
    height: 100vh;
    padding: 3rem 2rem;
    box-sizing: border-box;
}

#hero {
    width: 100%;
    height: 100%; 
    background-image: url(/assets/splash_image.jpeg);
    background-position: center;
    background-size: cover;
    border-radius: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero-heading {
    font-weight: 800;
}

#auto_scroll {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #bfa17d;
    border: none;
    border-radius: 100px;
    padding: 25px 10px;
}

#auto_scroll:hover {
    padding: 40px 10px;
}

#move-down-icon {
    width: 50px;
    height: 50px;
}

#section-2-about-section {
    height: 100vh;
    padding: 2rem;
    overflow: hidden;
    box-sizing: border-box;
    display: flex; 
}

#about-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    width: 100%;
}

#about-details p {
    text-align: left;
    margin-bottom: 10px;
}

#about-heading {
    font-size: 3rem;
    font-weight: 800;
    text-align: left;
}

#about-subheading {
    font-weight: 800;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    opacity: 60%;
    margin-bottom: 1rem;
}

#about-button {
    width: 100%;
    border: none;
    padding: 12px;
    margin: 20px 0px;
    margin-bottom: 0px;
    font-size: 20px;
    background: #fffefc31;
    box-shadow: 0px 0px 50px #fffefc00;
    border-radius: 100px;
    color: #f7f2ec;
    font-weight: 800;
}

#about-button:hover {
    width: 100%;
    box-shadow: 0px 0px 80px #fffefc7a;
    background: #fffefc;
    color: #bfa17d;
}

#boop {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 90px;
}

#section-3-services-section {
    height: fit-content;
    margin-top: -80px;
    padding: 10rem 2rem;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible; 
}

#services-heading {
    text-align: center;
    font-size: 13vw;
    z-index: 0; 
    line-height: 100%;
}

#service-container {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    width: 100vw;
    height: 60vh; 
}

.service {
    position: absolute; 
    width: 280px; 
    height: 420px;
    background-color: #bfa17d;
    border-radius: 38px;
    border: 7px solid #fffefc;
    box-shadow: 0px 0px 50px 20px #bfa17d;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    cursor: pointer;

    transition: all 0.5 cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#service-1-training {
    background-image: url(assets/training.jpeg);
    background-position: center;
    background-size: cover;
}

#service-2-pet-sitting {
    background-image: url(assets/pet-sitting.jpeg);
    background-position: center;
    background-size: cover;
}

#service-3-walking {
    background-image: url(assets/walking.jpeg);
    background-position: center;
    background-size: cover;
}

#service-4-drop-in {
    background-image: url(assets/drop-in.jpeg);
    background-position: center;
    background-size: cover;
}

#service-5-pet-taxi {
    background-image: url(assets/pet-taxi.jpeg);
    background-position: center;
    background-size: cover;
}

#service-6-grooming {
    background-image: url(assets/grooming.jpeg);
    background-position: center;
    background-size: cover;
}

#service-7-meet-n-greet {
    background-image: url(assets/meet-n-greet.jpeg);
    background-position: center;
    background-size: cover;
}

#service-8-overnight-stay {
    background-image: url(assets/overnisht-stay.jpeg);
    background-position: center;
    background-size: cover;
}

.service:hover {
    box-shadow: 0px 0px 50px 20px #bfa17d;
}

.service-title {
    font-size: 3rem;
    text-shadow: 0px 0px 50px #0000009c;
    margin-top: 10px;
    color: #fffefc;
    line-height: 50px;
    text-align: center;
    text-wrap: nowrap;
}

.service button {
    background-color: #fffefc;
    border: none;
    width: 100%;
    font-size: 20px;
    padding: 15px;
    border-radius: 900px;
    font-weight: bold;
    color: #bfa17d;
}

#swipe-hint {
    display: none;
}

#section-4-app-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    align-items: center;
    gap: 2rem;
    height: 100vh;
    padding: 2rem;
    margin-top: 200px;
    box-sizing: border-box;
}

#app-media {
    position: relative; 
    height: 100%;
    width: 100%;
}

#app-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem; 
}

#walkies-app-icon {
    width: 150px;
    height: 150px;
    border-radius: 40px;
    position: absolute;
    box-shadow: 0px 0px 50px 20px #bfa17d;
    top: 20px;
    left: 190px;
    z-index: 3;
}

#walkies-app-1, #walkies-app-2 {
    height: 500px;
    position: absolute;
}

#walkies-app-1 {
    top: 70px;
    left: 50px;
    transform: rotate(-6deg); 
    z-index: 2;
}

#walkies-app-2 {
    top: 110px;
    left: 190px;
    transform: rotate(6deg); 
    z-index: 1;
    opacity: 60%;
}

.horizontal-align {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.horizontal-align button {
    background-color: #fffefc;
    border: none;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    gap: 20px;
    padding: 10px 25px;
    border-radius: 900px;
    font-weight: bold;
    color: #bfa17d;
}

.smallIcon {
    width: 45px;
    height: 45px;
}

#section-5-testimonial-section {
    height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

#testimonial-left-quote-icon {
    position: absolute;
    left: 0px;
    width: 500px;
    height: 500px;
    opacity: 10%;
}

#testimonial-right-quote-icon {
    position: absolute;
    right: 0px;
    width: 500px;
    height: 500px;
    opacity: 10%;
}

/* ==========================================================================
   TESTIMONIAL SLIDER STYLES
   ========================================================================== */

   #section-5-testimonial-section {
    justify-content: center;
    align-items: center;
    display: flex;
}

#testimonial-slider-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

#testimonial-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    cursor: grab;
    border-radius: 50px !important;
}

.testimonial-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    background-color: #ffffff00;
    max-height: 70vh;
    padding: 3rem 2rem;
    text-align: left;
    overflow: visible;
    user-select: none;
}

.testimonial-slide p {
    margin: 0;
}

#testimonial-content {
    font-size: 1.5rem; /* Adjusted for better fit */
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
    display: flex;
    align-items: start;
    justify-content: center;
}

#testimonial-author {
    width: 100%;
    font-size: 1rem;
    text-align: left;
    opacity: 0.7;
    font-style: italic;
}

#testimonial-dots {
    display: flex;
    justify-content: center;
    scale: 0.6;
    align-items: center;
    margin-top: 1.5rem;
}

.dot {
    min-width: 12px;
    min-height: 12px;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 254, 252, 0.3);
    border-radius: 500px;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Important for the progress bar */
    transition: all 0.3s ease;
}

.dot.active {
    background-color: rgba(255, 254, 252, 0.6);
    min-width: 50px;
}

.dot .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%; /* Initially no progress */
    background-color: #fffefc;
    border-radius: 50px;
}

/* ... at the end of the testimonial slider styles ... */

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 254, 252, 0.2);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-nav-btn:hover {
    background-color: rgba(255, 254, 252, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-btn svg {
    width: 28px;
    height: 28px;
    fill: #fffefc;
}

#prev-testimonial {
    left: 50px;
}

#next-testimonial {
    right: 50px;
}

#contact {
    height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
    height: fit-content;
}

#contact-container {
    display: flex;
    gap: 2rem;
}

#contact-container div {
    width: 100%;
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: start;
    align-items: stretch;
    margin-bottom: 0px;
}

#contact-heading {
    font-size: 3rem;
    font-weight: 800;
}

#contact-subheading {
    font-weight: 800;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    opacity: 60%;
    margin-bottom: 1rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    margin-left: 30px;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
}

#name, #email, #message, #send {
    background: #fffefc41;
    color: #fffefc;
    font-weight: 700;
    font-size: 17px;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    outline: none;
    margin-bottom: 20px;
}

#send {
    width: 90%;
    align-self: center;
}

#send:hover {
    width: 100%;
}

#name:hover, #email:hover, #message:hover, #send:hover {
    background: #fffefc;
    color: #bfa17d;
    padding: 12px 28px;
}

#message::placeholder, #name::placeholder, #email::placeholder {
    color: #bfa17db6;
}

#name:hover::placeholder, #email:hover::placeholder, #message:hover::placeholder {
    color: #bfa17db6;
}

/* --- Collapsible & Deletable Previous Messages Styling --- */

/* The main container for each message item */
.previous-message-item {
    position: relative;
    background-color: #f7f2ec12;
    border-radius: 30px;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    overflow: hidden;
}

/* The wrapper for the text content that will be animated */
.message-content-wrapper {
    max-height: 24px;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.2, 1, 0.4, 1);
    user-select: none;
}

/* This is the key for the expanded state */
.previous-message-item.expanded .message-content-wrapper {
    /* max-height will be set by JavaScript to fit the content */
}

/* This preserves line breaks and formatting from the textarea */
.message-content-wrapper p {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
}

/* The new 'x' delete button */
.delete-btn {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background-color: rgba(191, 161, 125, 0.5);
    color: #fffefc;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

/* The button becomes visible on hover of the message item */
.previous-message-item:hover .delete-btn {
    opacity: 1;
    transform: scale(1);
}

.delete-btn:hover {
    background-color: #bfa17d;
    transform: scale(1.1) rotate(90deg);
}

/* Make the overall scrollable container taller */
#message-history {
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #8c735a;
    font-style: italic;
    padding-right: 5px;
}

#message-history p {
    text-align: center;
    color: #f7f2ec84;
}

.message-content-wrapper {
    justify-content: flex-start;
    overflow-y: scroll;
}

footer {
    height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

#footer-center-container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    justify-content: center;
    position: relative;
    flex-direction: column;
}

#footer-logo {
    width: 180px;
    margin-bottom: 15px;
}

#social-icons-container {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

.social-icon {
    width: 25px;
    height: 25px;
    opacity: 20%;
}

.social-icon:hover {
    opacity: 60%;
}

#extra-info {
    font-weight: 400;
    font-size: 10px;
    color: #fffefcb4;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
}

#extra-info a {
    color: #fffefcb4;
    text-decoration: underline;
}

#balance {display: none;}

#extra-info a:hover {
    color: #fffefc;
}

#footer-navigation {
    font-weight: 400;
    font-size: 10px;
    text-align: right;
    position: absolute;
    display: flex;
    color: #fffefcb4;
    flex-direction: column;
    bottom: 2rem;
    right: 2rem;
}

#footer-navigation a {
    color: #fffefcb4;
    text-decoration: underline;
}

#footer-navigation a:hover {
    color: #fffefc;
}

/* ==========================================================================
   1. SETUP FOR RESPONSIVE BEHAVIOR
   ========================================================================== */

/* Add this to your body to prevent scrolling when the mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Base styles for the new hamburger menu (hidden on desktop) */
#hamburger-button {
    background: transparent;
    justify-content: center;
    align-items: center;
    display: none; /* Hidden by default, shown in media query */
    position: relative;
    width: 30px;
    height: 22px;
    border: none;
    cursor: pointer;
    z-index: 10001; /* Ensures it's above the header blur */
}

#balance {
    touch-action: none;
    width: 30px;
    height: 30px;
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #fffefc;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 9px; }
.hamburger-line:nth-child(3) { top: 18px; }

/* Hamburger to 'X' animation */
#hamburger-button.active .hamburger-line:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
#hamburger-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
#hamburger-button.active .hamburger-line:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Base styles for the mobile navigation panel */
#mobile-navigation {
    position: fixed;
    top: 0;
    opacity: 0%;
    right: 0;
    left: 0;
    pointer-events: none;
    touch-action: none;
    width: 100vw;
    height: 100vh;
    background-color: #0000001a;
    backdrop-filter: blur(15px);
    z-index: 10000;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#mobile-navigation.active {
    opacity: 100%;
    right: 0;
    left: 0;
    pointer-events: all;
    touch-action: auto;
}

#mobile-navigation a {
    color: #fffefc;
    text-decoration: none;
    font-weight: 700;
    opacity: 0;
    font-size: 4rem;
    text-align: right;
    width: 100%;
    transform: translateY(-40px);
    transition: all 0.6s 
    cubic-bezier(0.51, 0.02, 0.09, 1.21);    
}

#mobile-navigation.active a {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   2. MEDIA QUERIES FOR ALL DEVICES
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. FOR MOVIE THEATER & SUPER ULTRA-WIDE SCREENS (2000px and up)
   -------------------------------------------------------------------------- */
@media (min-width: 2000px) {
    html {
        font-size: 20px; /* Increase base font size for readability */
    }
    header {
        padding: 0rem 15rem; /* More horizontal padding */
    }

    #service-container {
        margin-top: -20px !important;
    }

    #hero {
        border-radius: 120px;
    }
    .service {
        width: 320px;
        height: 480px;
    }
}

@media (max-width: 2000px) {
    #service-container {
        margin-top: 50px !important;
    }
}



/* --------------------------------------------------------------------------
   B. FOR STANDARD DESKTOPS AND LAPTOPS (Max-width: 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    header {
        padding: 0rem 4rem;
    }
    #section-2-about-section, #section-4-app-section, #contact, footer {
        padding: 20px; /* More manageable padding */
        height: auto; /* Allow height to be determined by content */
        min-height: 100vh;
    }
    #services-heading {
        padding: 0px 20px;
        text-align: center;
        font-size: 18vw;
    }
    #service-container {
        transform: scale(0.9); /* Slightly scale down service cards */
    }
}


/* --------------------------------------------------------------------------
   C. FOR TABLETS (Max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    header {
        padding: 0rem 2rem;
        padding-top: 20px;
    }

    #balance {
        display: block;
    }
    
    section.section {
        padding: 4rem 2rem;
        height: auto; /* Critical for stacking content */
        min-height: initial; /* Unset min-height for tablets */
    }

    #section-1-hero-section {
        min-height: 100vh; /* Keep hero section full height */
        padding: 60px 20px 20px 20px;
    }
    
    #hero {
        border-radius: 60px;
    }

    /* Stack two-column layouts */
    #section-2-about-section, #contact-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    #section-2-about-section {
        flex-direction: column-reverse;
        gap: 0px;
        margin: 60px 20px 20px 20px;
        padding: 0px;
        background: #fffefc33;
        border-radius: 50px;
    }
    
    #section-4-app-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 20px;
        text-align: center;
    }

    /* Re-center buttons */
    #about-details a, .horizontal-align {
        justify-content: center;
    }

    #boop {
        width: 100%;
        object-fit: cover;
        margin: 0 auto;
        border-radius: 50px 50px 0px 0px;

        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 95%);
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 95%);
        mask-repeat: no-repeat;
        mask-size: 100% 100%;
    }

    /* Simplify app section media */
    #app-media {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        min-height: 400px;
        max-width: 500px;
        margin: auto;
    }

    #app-details {
        margin-top: 400px;
        z-index: 999;
        background-color: #8c735a78;
        backdrop-filter: blur(15px);
        border-radius: 50px;
        border-top: 1px solid #ffffff;
        padding: 40px 30px;
        padding-bottom: 20px;
        box-shadow: 0px -10px 60px 20px #bfa17d;
    }
    #walkies-app-1 {
        transform: rotate(0deg);
        width: 100%;
        height: fit-content;
        overflow: visible !important;
        object-fit: cover;
        left: unset;

        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
        mask-repeat: no-repeat;
        mask-size: 100% 100%;
    }
    #walkies-app-2 { 
        display: none;
    }
    #walkies-app-icon {
        transform: rotate(0deg);
        width: 40%;
        margin-top: -60px;
        height: fit-content;
        object-fit: cover;
        left: unset;
    }

    #services-heading {
        font-size: 20vw;
    }

    footer {
        height: 100vh;
    }
}


/* --------------------------------------------------------------------------
   D. FOR SMARTPHONES (Max-width: 768px) - The Magic Happens Here
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* --- ACTIVATE HAMBURGER MENU --- */
    #header-navigation {
        display: none; /* Hide the desktop nav */
    }
    #hamburger-button {
        display: flex; /* Show the hamburger */
        align-items: center;
        justify-content: center;
    }

    /* --- HERO SECTION --- */
    #hero {
        border-radius: 50px;
    }
    #hero-logo {
        transform: scale(0.5);
    }
    #hero-heading {
        font-size: 1.8rem;
        padding: 0 1rem;
        text-align: center;
    }
    #auto_scroll {
        padding: 15px 5px;
        width: 80px;
        height: 150px;
    }
    #auto_scroll:active {
        padding: 30px 5px;
    }
    #move-down-icon {
        width: 45px;
        height: 45px;
    }
    /* --- ABOUT SECTION --- */
    #about-heading { 
        font-size: 3rem;
        text-align: left;
    }
    #about-subheading {
        font-size: 1.2rem;
        text-align: left;
        display: flex;
        justify-content: start;
        align-items: center;
    }
    #about-details p {
        text-align: justify;
    }

    /* --- SERVICES STACKED CARDS --- */
    #section-3-services-section {
        margin-top: -190px;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden; /* Important to contain the cards */
        display: flex; /* Use flexbox for alignment */
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #services-heading {
        font-size: 18vw;
        z-index: 0; /* Ensure heading is above the cards */
    }

    /* Container for the stacked cards */
    #service-container {
        /* right: -35%; */
        position: relative;
        width: 100%;
        height: 450px; 
        margin-top: 2rem; 
        transform: scale(1);
    }

    #service-container a {
        text-decoration: none;
        color: #fffefc;
    }

    /* Add the swipe hint */
    #service-container::after {
        content: 'SWIPE TO EXPLORE →';
        position: absolute;
        display: none;
        bottom: -10px; /* Position below the card stack */
        left: -50%;
        transform: translateX(-50%);
        color: #fffefc;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 700;
        z-index: 100;
        animation: pulse 2s infinite;
        opacity: 0.8;
    }

    #swipe-hint {
        margin-top: 200px;
        background-color: #fffefc33;
        padding: 0px 20px;
        border-radius: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        backdrop-filter: blur(15px);
        z-index: 99999;
    }

    #swipe-right-icon {
        transform: rotate(-90deg);
    }

    #swipe-left-icon {
        transform: rotate(90deg);
    }

    /* Paste this entire block to replace the old .service rule inside your media query */
    .service {
        position: absolute;
        /* New centering method */
        left: 50% !important;
        
        width: 320px; /* Use a fixed width */
        height: 520px;
        cursor: pointer;
        will-change: transform, opacity;
        box-shadow: 0px 0px 50px 10px rgb(191 161 125);     
    }

    /* --- APP SECTION --- */
    #section-4-app-section {
        margin-top: 200px;
    }
    #app-media {
        min-height: initial;
        max-width: 500px;
        margin: auto;
    }
    #app-details h2 {
        font-size: 2rem;
        text-align: left;
        margin: 0px;
    }
    #app-details h3 {
        padding: 0px;
    }
    #app-details p {
        text-align: left;
    }
    .horizontal-align {
        flex-direction: column;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    /* --- TESTIMONIALS --- */
    #section-5-testimonial-section {
        margin-top: 0; 
    }
    #testimonial-dots {
        scale: 0.6;
    }
    #testimonial-left-quote-icon, #testimonial-right-quote-icon {
        display: none; 
    }

    /* --- CONTACT FORM --- */
    #contact-heading {
        font-size: 3rem; 
        text-align: left;
    }
    #contact-subheading { 
        font-weight: 800;
        display: flex;
        font-size: 2.3rem;
        text-align: left;
        opacity: 60%;
    }
    .contact-text-content p {
        text-align: left;
    }

    .testimonial-nav-btn {
        display: none;
    }

    /* --- FOOTER --- */
    #footer-center-container {
        justify-content: center; /* Move logo and icons to bottom */
        padding-bottom: 2rem;
    }
    #extra-info {
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        padding: 0 1rem;
    }

}

@media (max-width: 924px) {
    #testimonial-left-quote-icon {
        scale: 0.7;
    }

    #testimonial-right-quote-icon {
        scale: 0.7;
    }
}

/* --------------------------------------------------------------------------
   E. FOR VERY SMALL SMARTPHONES & SMARTWATCHES (Max-width: 400px)
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
    html {
        font-size: 14px; /* Further reduce base font size */
    }
    
    section.section {
        padding: 3rem 1rem; /* Minimal padding */
    }

    #hero {
        border-radius: 20px;
    }
    #hero-logo {
        transform: scale(0.4);
    }
    #hero-heading {
        font-size: 1.7rem;
    }
    .service {
        flex: 0 0 85%; /* Make cards a bit bigger on tiny screens */
        width: 85%;
        box-shadow: 0px 0px 30px #bfa17d;
    }
    #about-heading, #contact-heading {
        font-size: 2rem;
    }
}