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

:root {
    --primary-color: #a855f7;
    --primary-dark: #9333ea;
    --bg-dark: #000000;
    --bg-white: #FFFFFF;
    --text-white: #FFFFFF;
    --text-dark: #000000;
    --text-gray: #999999;
    --text-light: #4b5563;
    --border-color: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Sticky Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: transparent;
    border-bottom: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-white);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.header.scrolled .logo-text {
    color: var(--text-white);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.header.scrolled .nav-menu a {
    color: var(--text-white);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

.header.scrolled .nav-toggle span {
    background: var(--text-white);
}

/* Hero Section */
.hero {
    min-height: min(100vh, 900px);
    background-color: var(--bg-dark);
    color: var(--text-white);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 4rem;
    z-index: 1;
    overflow: hidden; /* Changed from visible to contain background */
    
    /* Initialize variables for mouse tracking */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Grid Background Effect for Hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        black 0%, 
        transparent 70%
    );
    -webkit-mask-image: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        black 0%, 
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
    position: relative; /* Ensure z-index works */
    z-index: 1; /* Keep content above background */
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1rem;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-white);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 3rem;
    text-transform: uppercase;
    max-width: 1000px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1rem;
}

.btn-arrow {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-location {
    font-size: 1.25rem;
    color: var(--text-white);
    max-width: 900px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 2rem;
    text-align: center;
}

.hero-location-static {
    display: block;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.hero-location-typing {
    display: block;
    font-weight: 600;
}

.hero-location #typed-location {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.hostel-services {
    padding: 6rem 0;
    background: #050505;
    position: relative;
    overflow: hidden;
    /* Initialize variables for mouse tracking */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Grid Background Effect */
.hostel-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        black 0%, 
        transparent 70%
    );
    -webkit-mask-image: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        black 0%, 
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* Optional: A faint base grid that is always visible (very dim) */
.hostel-services::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.hostel-services-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.hostel-services-header p {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.hostel-services-header h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
}

.hostel-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.hostel-service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hostel-service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hostel-service-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio (3/4 = 75%) */
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.hostel-service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.hostel-service-card:hover .hostel-service-image img {
    transform: scale(1.08);
}

.hostel-service-content {
    padding: 1.75rem;
}

.hostel-service-content h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.hostel-service-content p {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 0.98rem;
}

.hostel-services-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.btn-view-amenities {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-view-amenities:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.btn-amenities-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-view-amenities:hover .btn-amenities-arrow {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu a {
        color: var(--text-dark);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding-top: 70px;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
        padding-bottom: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        padding: 0 1.5rem;
        margin-top: 0;
    }

    .hero-badges {
        margin-bottom: 2rem;
        margin-top: 0;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .badge {
        padding: 0.375rem 0.75rem;
        flex: 0 1 auto;
    }

    .badge-icon {
        font-size: 0.75rem;
    }

    .badge-text {
        font-size: 0.625rem;
        line-height: 1.2;
    }

    .hero-title {
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        margin-bottom: 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-location {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-location-static {
        margin-bottom: 0.08rem;
    }

    .hero-location #typed-location {
        font-size: 1.1rem;
    }

    .hostel-services {
        padding: 3rem 0;
    }

    /* Horizontal Carousel for Mobile */
    .hostel-services-grid {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 0 1rem;
        padding-bottom: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hostel-services-grid::-webkit-scrollbar {
        display: none;
    }

    .hostel-service-card {
        flex: 0 0 280px;
        min-width: 280px;
        flex-direction: column;
        scroll-snap-align: start;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03); /* Match dark theme */
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hostel-service-image {
        width: 100%;
        height: 0;
        padding-bottom: 75%; /* 4:3 aspect ratio */
        position: relative;
        overflow: hidden;
    }

    .hostel-service-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hostel-service-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
        background: transparent; /* Remove specific bg */
    }

    .hostel-service-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        color: #ffffff; /* White text */
        display: block;
    }

    .hostel-service-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #9ca3af; /* Light gray text */
        display: block;
    }

    .hostel-services-cta {
        margin-top: 2rem;
    }

    .btn-view-amenities {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .hero-container {
        margin-top: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badges {
        margin-bottom: 1rem;
        margin-top: 0;
        gap: 0.375rem;
        flex-direction: row;
        justify-content: center;
    }

    .badge {
        padding: 0.25rem 0.5rem;
        flex: 0 1 auto;
        min-width: auto;
    }

    .badge-icon {
        font-size: 0.65rem;
    }

    .badge-text {
        font-size: 0.55rem;
        white-space: nowrap;
    }

    .hero-location {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-location-static {
        margin-bottom: 0.05rem;
    }

    .hero-location #typed-location {
        font-size: 1.05rem;
    }

    .hostel-services {
        padding: 1.25rem 0;
    }

    /* Smaller carousel cards on small screens */
    .hostel-services-grid {
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .hostel-service-card {
        flex: 0 0 240px;
        min-width: 240px;
    }

    .hostel-services-cta {
        margin-top: 1.5rem;
    }

    .btn-view-amenities {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .hostel-service-image {
        width: 100%;
        height: 0;
        padding-bottom: 75%; /* 4:3 aspect ratio */
        position: relative;
    }

    .hostel-service-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hostel-service-content {
        width: 100%;
        padding: 0.875rem;
        text-align: left;
        background: transparent;
    }
    
    .hostel-service-content h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        color: #ffffff;
    }

    .hostel-service-content p {
        font-size: 0.8rem;
        line-height: 1.4;
        color: #9ca3af;
    }
}

/* ========================================
   Portfolio Section - 3D Infinite Carousel
   ======================================== */

.portfolio {
    background: #0a0a0f;
    padding: 5rem 0 0;
    overflow: hidden;
    position: relative;
}

/* Portfolio Background Elements */
.portfolio-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.portfolio-orb {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 450px;
    border-radius: 50%;
    background: linear-gradient(100deg, #9333ea 0%, #a855f7 35%, #ffffff 50%, #c084fc 65%, #a855f7 100%);
    filter: blur(60px);
    opacity: 0.5;
    z-index: 0;
    animation: pulsePlanetPortfolio 8s ease-in-out infinite alternate;
}

@keyframes pulsePlanetPortfolio {
    0% { transform: translateX(-50%) scale(1); opacity: 0.4; }
    100% { transform: translateX(-50%) scale(1.05); opacity: 0.5; }
}

.portfolio-header {
    text-align: center;
    padding: 0 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.portfolio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.label-square {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    display: inline-block;
}

.label-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
}

.portfolio-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.portfolio-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.75rem;
    background: transparent;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid #facc15;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 1px #facc15;
}

.btn-portfolio:hover {
    background: #facc15;
    color: #000000;
    border-color: #facc15;
    box-shadow: 0 0 0 1px #facc15, 0 4px 8px rgba(250, 204, 21, 0.3);
    transform: translateY(-2px);
}

.btn-portfolio-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-portfolio:hover .btn-portfolio-arrow {
    transform: translateX(4px);
}

/* Carousel Wrapper */
.portfolio-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 4rem 0 2rem;
    perspective: 1000px;
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
}

.portfolio-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    transform: rotateX(8deg);
    transform-origin: center bottom;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    animation: scrollCarousel 40s linear infinite;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
    background: #fff;
}

.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.25));
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-item:hover::before {
    opacity: 1;
}

.carousel-item:hover {
    transform: scale(1.08) translateY(-12px) rotateX(-5deg);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.15);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3D Curve Effect - Bottom fade and shadow */
.carousel-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #0a0a0f 0%, rgba(10, 10, 15, 0.8) 40%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

/* Drag Indicator */
.drag-indicator {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    z-index: 10;
}

.drag-arrows {
    color: var(--primary-color);
    font-weight: 900;
    animation: pulseArrows 1.5s ease-in-out infinite;
}

@keyframes pulseArrows {
    0%, 100% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 0.6;
        transform: translateX(3px);
    }
}

/* 3D Perspective Transform for Items - Top fade */
.portfolio-carousel-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, 
        #0a0a0f 0%, 
        rgba(10, 10, 15, 0.5) 50%,
        transparent 100%
    );
    z-index: 4;
    pointer-events: none;
}

/* Curved shadow at bottom - creates the floor effect */
.portfolio-carousel-wrapper::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 120px;
    background: radial-gradient(ellipse 100% 40% at center, rgba(0,0,0,0.18) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   Portfolio Responsive Styles
   ======================================== */

@media (max-width: 1024px) {
    .carousel-item {
        width: 280px;
        height: 190px;
    }
    
    .portfolio-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    
    .portfolio-carousel {
        transform: rotateX(6deg);
    }
}

@media (max-width: 768px) {
    .portfolio {
        padding: 3rem 0 0;
    }
    
    .portfolio-orb {
        width: 500px;
        height: 250px;
        border-radius: 50%;
        bottom: -75px;
        filter: blur(50px);
    }
    
    .portfolio-header {
        margin-bottom: 2rem;
    }
    
    .portfolio-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .portfolio-cta {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .btn-portfolio {
        padding: 0.875rem 1.25rem;
        font-size: 0.7rem;
    }
    
    .carousel-item {
        width: 220px;
        height: 160px;
    }
    
    .carousel-track {
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .drag-indicator {
        display: none;
    }
    
    .portfolio-carousel-wrapper {
        padding: 2rem 0 1rem;
    }
    
    .portfolio-carousel {
        transform: rotateX(5deg);
    }
}

@media (max-width: 480px) {
    .portfolio {
        padding: 2.5rem 0 0;
    }
    
    .portfolio-orb {
        width: 360px;
        height: 180px;
        border-radius: 50%;
        bottom: -50px;
        filter: blur(40px);
    }
    
    .portfolio-header {
        padding: 0 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .portfolio-label {
        margin-bottom: 1rem;
    }
    
    .label-square {
        width: 8px;
        height: 8px;
    }
    
    .label-text {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }
    
    .portfolio-title {
        font-size: 1.65rem;
        line-height: 1.15;
    }
    
    .portfolio-cta {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .btn-portfolio {
        width: auto;
        max-width: none;
        justify-content: center;
        padding: 0.7rem 0.9rem;
        font-size: 0.65rem;
        gap: 0.5rem;
    }
    
    .btn-portfolio-arrow {
        font-size: 1rem;
    }
    
    .carousel-item {
        width: 180px;
        height: 130px;
        border-radius: 8px;
    }
    
    .carousel-track {
        gap: 0.85rem;
        animation-duration: 28s;
        padding: 1rem 0;
    }
    
    .portfolio-carousel-wrapper {
        padding: 1.5rem 0 1rem;
    }
    
    .portfolio-carousel {
        transform: rotateX(4deg);
    }
    
    .portfolio-carousel-wrapper::before {
        height: 60px;
    }
    
    .portfolio-carousel-wrapper::after {
        bottom: 20px;
        height: 80px;
        width: 90%;
    }
    
    .carousel-curve {
        height: 80px;
    }
}

/* ========================================
   Reviews Section - Glassmorphism
   ======================================== */

.reviews-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: #0a0a0f;
}

.reviews-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Starry background */
.stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 200px 50px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 250px 150px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 300px 90px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 350px 200px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 400px 60px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 450px 180px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 500px 100px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 550px 220px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 600px 40px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 650px 160px, rgba(255,255,255,0.5), transparent);
    background-size: 700px 300px;
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Gradient orbs */
.planet-orb {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 450px;
    border-radius: 50%;
    /* Violet theme gradient */
    background: linear-gradient(100deg, #9333ea 0%, #a855f7 35%, #ffffff 50%, #c084fc 65%, #a855f7 100%);
    filter: blur(60px);
    opacity: 0.5;
    box-shadow: 0 10px 80px rgba(168, 85, 247, 0.15);
    z-index: 0;
    animation: pulsePlanet 8s ease-in-out infinite alternate;
}

@keyframes pulsePlanet {
    0% { transform: translateX(-50%) scale(1); opacity: 0.4; }
    100% { transform: translateX(-50%) scale(1.05); opacity: 0.5; }
}

.reviews-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0; /* Added padding-top to push content down slightly if needed */
}

.reviews-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.reviews-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.reviews-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    font-style: normal;
}

.gradient-text-reviews {
    background: linear-gradient(90deg, #a855f7 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Carousel wrapper */
.reviews-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollReviews 45s linear infinite;
    width: max-content;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Glassmorphism Card */
.review-card {
    flex-shrink: 0;
    width: 360px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 107, 107, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.author-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.verified-badge {
    width: 16px;
    height: 16px;
    color: #1da1f2;
    background: #1da1f2;
    border-radius: 50%;
    padding: 2px;
}

.verified-badge path {
    fill: white;
}

.author-handle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-hashtag {
    font-size: 0.85rem;
    font-weight: 600;
    color: #74b9ff;
    transition: color 0.3s ease;
}

.review-card:hover .review-hashtag {
    color: #ff6b6b;
}

.review-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Reviews Section Responsive
   ======================================== */

/* Mobile Reviews Wrapper (Hidden on Desktop) */
.mobile-reviews-carousel-wrapper {
    display: none;
}

@media (max-width: 1024px) {
    .planet-orb {
        width: 700px;
        height: 350px;
        border-radius: 50%;
        top: -100px;
        filter: blur(50px);
    }
    
    .review-card {
        width: 320px;
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 4rem 0;
    }
    
    .reviews-header {
        margin-bottom: 2.5rem;
    }
    
    .reviews-title {
        font-size: 2rem;
    }
    
    .planet-orb {
        width: 500px;
        height: 250px;
        border-radius: 50%;
        top: -75px;
        filter: blur(50px);
    }
    
    /* Hide Desktop Carousel */
    .reviews-carousel-wrapper {
        display: none;
    }

    /* Show Mobile Carousel */
    .mobile-reviews-carousel-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        overflow: hidden;
        mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
        padding: 1rem 0;
    }

    .mobile-reviews-track {
        display: flex;
        gap: 1rem;
        width: max-content;
        will-change: transform;
    }

    /* Animation Keyframes */
    @keyframes scrollLeftMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    @keyframes scrollRightMobile {
        0% { transform: translateX(-50%); }
        100% { transform: translateX(0); }
    }

    /* Track Animations */
    .track-left-to-right {
        animation: scrollRightMobile 30s linear infinite; /* Slow movement */
    }

    .track-right-to-left {
        animation: scrollLeftMobile 30s linear infinite; /* Slow movement */
    }
    
    .review-card {
        width: 280px; /* Fixed width for smooth scrolling */
        padding: 1.125rem;
        flex-shrink: 0;
    }
    
    .review-avatar {
        width: 42px;
        height: 42px;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 3rem 0;
    }
    
    .reviews-container {
        padding: 0 1rem;
    }
    
    .reviews-header {
        margin-bottom: 2rem;
    }
    
    .reviews-label {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
    }
    
    .reviews-title {
        font-size: 1.75rem;
    }
    
    .planet-orb {
        width: 360px;
        height: 180px;
        border-radius: 50%;
        top: -50px;
        filter: blur(40px);
    }
    
    .reviews-carousel-wrapper {
        mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    }
    
    .review-card {
        width: 280px;
        padding: 1rem;
        border-radius: 16px;
    }
    
    .reviews-track {
        gap: 0.875rem;
        animation-duration: 30s;
    }
    
    .review-header {
        gap: 0.75rem;
        margin-bottom: 0.875rem;
    }
    
    .review-avatar {
        width: 38px;
        height: 38px;
    }
    
    .author-name {
        font-size: 0.85rem;
    }
    
    .verified-badge {
        width: 14px;
        height: 14px;
    }
    
    .author-handle {
        font-size: 0.75rem;
    }
    
    .review-text {
        font-size: 0.85rem;
        line-height: 1.55;
        margin-bottom: 1rem;
    }
    
    .review-footer {
        padding-top: 0.875rem;
    }
    
    .review-hashtag {
        font-size: 0.8rem;
    }
    
    .review-date {
        font-size: 0.7rem;
    }
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
    background: var(--bg-dark);
    padding: 6rem 2rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 3.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #4ade80 0%, #22d3ee 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s ease;
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #4ade80;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: var(--bg-dark);
    padding: 5rem 2rem 6rem;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.25rem;
    background: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
    color: var(--bg-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.25);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.35);
}

/* ========================================
   FAQ & CTA Responsive Styles
   ======================================== */

@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 1.5rem;
    }
    
    .faq-title {
        margin-bottom: 2.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 3.5rem 1.5rem 4.5rem;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 3rem 1rem;
    }
    
    .faq-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .faq-list {
        gap: 0.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .faq-icon {
        font-size: 1.25rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 2.5rem 1rem 3.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.75rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.85rem;
    }
}



/* ========================================
   Footer Section - 50/50 Split Layout
   ======================================== */

.site-footer {
    background-color: #050505;
    color: #ffffff;
    padding: 2rem 2rem 1rem;
    position: relative;
    overflow: visible;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Top Section: 50% Text | 50% Nav & Contact --- */
.footer-top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 2rem;
}

.footer-cta-text {
    flex: 0 0 50%; /* Strict 50% width */
    max-width: 50%;
    padding-right: 2rem; /* Spacing from right side */
}

.footer-sub-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-cta-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.footer-cta-text .text-gray {
    color: #6b7280;
}

/* Right Wrapper for Nav and Contact */
.footer-right-wrapper {
    flex: 0 0 50%; /* Strict 50% width */
    max-width: 50%;
    display: flex;
    justify-content: space-between; /* Spread Nav and Contact */
    padding-left: 2rem; /* Spacing from left side */
}

.footer-nav-column,
.footer-contact-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.contact-label {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

/* --- Bottom Section: 50% Logo | 50% Map --- */
.footer-bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-large {
    flex: 0 0 50%; /* Strict 50% width */
    max-width: 50%;
    display: flex;
    align-items: flex-end; /* Align bottom */
}

.brand-text-large {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
    white-space: nowrap;
}

.footer-map {
    flex: 0 0 50%; /* Strict 50% width */
    max-width: 50%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    filter: grayscale(100%) invert(90%);
    transition: filter 0.3s ease;
}

.footer-map:hover {
    filter: grayscale(0%) invert(0%);
}

/* Legal Section */
.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal p {
    color: #6b7280;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .footer-top-section {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-cta-text,
    .footer-right-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .footer-right-wrapper {
        justify-content: flex-start;
        gap: 4rem;
    }
    
    .footer-bottom-section {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .footer-brand-large,
    .footer-map {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-map {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 4rem 1.5rem 1.5rem;
    }

    .footer-right-wrapper {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .brand-text-large {
        white-space: normal;
        line-height: 0.9;
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}


/* ========================================
   Rolling Text Animation
   ======================================== */

.hero-location-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1.5rem;
    text-align: center;
}

.hero-location-static {
    color: rgba(255, 255, 255, 0.6);
}

.rolling-text-mask {
    height: 1.8em; /* Increased to show descenders (y, g, p, etc.) */
    overflow: hidden;
    position: relative;
    display: inline-block;
    text-align: left;
}

.rolling-text-list {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: scrollUp 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.rolling-text-list li {
    height: 1.8em; /* Match mask height - shows descenders */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.3em;
    white-space: nowrap;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    16% { transform: translateY(0); }
    20% { transform: translateY(-16.66%); }
    36% { transform: translateY(-16.66%); }
    40% { transform: translateY(-33.33%); }
    56% { transform: translateY(-33.33%); }
    60% { transform: translateY(-50%); }
    76% { transform: translateY(-50%); }
    80% { transform: translateY(-66.66%); }
    96% { transform: translateY(-66.66%); }
    100% { transform: translateY(-83.33%); }
}

/* Mobile Adjustment */
@media (max-width: 480px) {
    .hero-location-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 1rem;
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    .rolling-text-mask {
        width: 100%;
        text-align: center;
    }
    
    .rolling-text-list {
        width: 100%;
    }
    
    .rolling-text-list li {
        justify-content: center;
        width: 100%;
    }
}

/* ========================================
   Unblur Reveal Animation
   ======================================== */

.reveal-on-scroll {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.reveal-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* Stagger delays for grid items */
.hostel-services-grid .hostel-service-card:nth-child(1) { transition-delay: 0.1s; }
.hostel-services-grid .hostel-service-card:nth-child(2) { transition-delay: 0.2s; }
.hostel-services-grid .hostel-service-card:nth-child(3) { transition-delay: 0.3s; }
.hostel-services-grid .hostel-service-card:nth-child(4) { transition-delay: 0.1s; }
.hostel-services-grid .hostel-service-card:nth-child(5) { transition-delay: 0.2s; }
.hostel-services-grid .hostel-service-card:nth-child(6) { transition-delay: 0.3s; }

/* Ensure header also reveals */
.hostel-services-header.reveal-on-scroll {
    transition-delay: 0s;
}


/* ========================================
   WhatsApp Floating Button
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
}

/* Skip Link */
.skip-link:focus {
    top: 0 !important;
}

/* Print Stylesheet */
@media print {
    body { background: #fff !important; color: #000 !important; font-size: 12pt; }
    .header, .nav-toggle, .whatsapp-float, .skip-link, .stats-section, footer, .blog-post-cta, .faq-cta-box { display: none !important; }
    a { color: #000 !important; text-decoration: underline; }
    .hero, .contact-hero, .faq-page-hero, .pricing-hero { background: #fff !important; color: #000 !important; -webkit-text-fill-color: #000 !important; padding: 1rem 0 !important; min-height: auto !important; }
    h1, h2, h3, h4, h5, h6 { color: #000 !important; -webkit-text-fill-color: #000 !important; background: none !important; }
    .pricing-card, .info-card, .faq-page-item { break-inside: avoid; border: 1px solid #ccc !important; background: #fff !important; margin-bottom: 1rem; }
    * { box-shadow: none !important; text-shadow: none !important; }
}
