/* ============================================
   CSS Variables & Base Styles
   ============================================ */
:root {
    --color-bg: #f5f5f3;
    --color-bg-light: #eeeee9;
    --color-bg-card: #ffffff;
    --color-bg-dark: #1a1a1a;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-text-subtle: #999999;
    --color-accent: #2d5a45;
    --color-accent-light: #3d7a5d;
    --color-accent-dark: #1d3a2d;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --section-padding: clamp(80px, 12vh, 160px);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent horizontal overflow on mobile */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent pull-to-refresh on mobile when not at top */
    overscroll-behavior-y: contain;
    /* Better touch scrolling */
    -webkit-overflow-scrolling: touch;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
    background-color: rgba(245, 245, 243, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 24px !important;
    background-color: var(--color-accent);
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 500 !important;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background-color: var(--color-accent-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

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

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

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

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 80px 40px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.4s var(--ease-smooth);
        z-index: 1000;
        display: flex !important;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 20px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 20px;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================
   Hero Section with Fragments
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 60px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(60px);
    will-change: transform, opacity;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

/* Hero Fragments Container */
.hero-fragments {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-width: 1200px;
    height: 60vh;
    max-height: 700px;
    pointer-events: none;
}

.fragment {
    position: absolute;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    to { opacity: 1; }
}

/* ============================================
   Section Tags & Common Elements
   ============================================ */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-tag-light {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-60px);
    will-change: transform, opacity;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-signature {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-accent);
    margin-top: 30px;
}

.about-features {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
}

.feature-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-image {
    position: relative;
    opacity: 0;
    transform: translateX(60px);
    will-change: transform, opacity;
}

.about-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2;
}

.about-image-wrapper img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s var(--ease-smooth);
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-image-accent {
    position: absolute;
    top: 30px;
    left: 30px;
    right: -30px;
    bottom: -30px;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    z-index: 1;
}

/* ============================================
   Gallery Section with 3D Circular Carousel
   ============================================ */
.gallery {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #e8ebe4 0%, #d4ddd0 50%, #c5d4c0 100%);
    overflow: hidden;
    min-height: 100vh;
}

.gallery-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--color-text);
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.gallery .section-tag {
    color: var(--color-accent);
}

.gallery-3d-container {
    perspective: 1000px;
    perspective-origin: center center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.gallery-carousel {
    display: flex;
    flex-direction: column;
    gap: 60px;
    transform-style: preserve-3d;
    width: 100%;
}

.carousel-row {
    position: relative;
    height: 220px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item {
    position: absolute;
    width: 280px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    will-change: transform, opacity;
    background-color: #f0f0f0;
    opacity: 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}

.carousel-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: 80px 0;
    background-color: var(--color-bg);
    position: relative;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 30px;
}

.review-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.review-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.badge-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-logo svg {
    width: 32px;
    height: 32px;
}

.booking-score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #003580;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px 8px 8px 0;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-stars {
    color: #FBBC05;
    font-size: 1rem;
    letter-spacing: 1px;
}

.badge-rating {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.badge-info {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #f0f0ed;
    border-radius: 16px;
    padding: 32px;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
    will-change: transform, opacity;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    display: none;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 24px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-avatar {
    display: none;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ============================================
   Book Now Section
   ============================================ */
.book {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #4a6d5c 0%, #5d8a70 50%, #6b9b7d 100%);
    position: relative;
    overflow: hidden;
}

.book::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.book-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.book-content {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.book-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 20px;
    color: #ffffff;
}

.book-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.book-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 30px;
}

.book-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
}

.book-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    background: #ffffff;
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.book-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

.book-visual {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.book-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

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

.form-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(45, 90, 69, 0.1);
}

.form-group input[type="date"] {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--color-accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 90, 69, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-light);
}

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

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

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

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

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

.faq-answer-content {
    padding: 0 30px 24px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--color-bg-dark);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-link.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #ffffff;
}

.social-link.instagram:hover {
    transform: translateY(-3px);
}

.social-link.booking {
    background-color: #003580;
    color: #ffffff;
}

.social-link.booking:hover {
    background-color: #00264d;
    transform: translateY(-3px);
}

.social-link svg {
    flex-shrink: 0;
}

.footer-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .about-container,
    .book-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-text,
    .about-image {
        transform: none;
    }
    
    .about-image-accent {
        top: 20px;
        left: 20px;
        right: -20px;
        bottom: -20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-row {
        height: 180px;
    }
    
    .carousel-item {
        width: 220px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: clamp(50px, 8vh, 80px);
    }
    
    body {
        font-size: 16px;
    }
    
    .nav {
        padding: 15px 0;
    }
    
    .nav.scrolled {
        padding: 12px 0;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 100svh; /* Use svh for mobile browsers */
        padding-top: 60px;
    }
    
    .hero-content {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-fragments {
        width: 92vw;
        height: 45vh;
        max-height: 400px;
    }
    
    .scroll-indicator {
        bottom: 30px;
    }
    
    .scroll-indicator span {
        font-size: 0.7rem;
    }
    
    /* Testimonials Mobile */
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-container {
        padding: 0 20px;
    }
    
    .testimonials-header {
        margin-bottom: 30px;
    }
    
    .testimonials-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .review-badges {
        flex-direction: column;
        gap: 12px;
    }
    
    .review-badge {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .testimonials-grid {
        gap: 16px;
    }
    
    .testimonial-card {
        padding: 24px;
        border-radius: 12px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    /* About Mobile */
    .about {
        padding: var(--section-padding) 0;
    }
    
    .about-container {
        padding: 0 20px;
        gap: 40px;
    }
    
    .about-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 20px;
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    
    .about-features {
        gap: 24px;
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .about-image-wrapper img {
        height: 300px;
    }
    
    .about-image-accent {
        top: 15px;
        left: 15px;
        right: -15px;
        bottom: -15px;
    }
    
    /* Gallery Mobile - 3D Carousel */
    .gallery {
        padding: var(--section-padding) 0;
        min-height: auto;
        overflow: hidden;
    }
    
    .gallery-header {
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .gallery-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
    
    .gallery-3d-container {
        padding: 10px 0;
        perspective: 800px;
        perspective-origin: center center;
        display: flex;
        justify-content: center;
    }
    
    .gallery-carousel {
        gap: 40px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-row {
        height: 160px;
        overflow: visible;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        left: 0;
        margin-left: 0;
    }
    
    .carousel-item {
        width: 200px;
        height: 140px;
        border-radius: 10px;
    }
    
    /* Book Section Mobile */
    .book {
        padding: var(--section-padding) 0;
    }
    
    .book-container {
        padding: 0 20px;
        gap: 40px;
    }
    
    .book-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .book-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .book-form {
        padding: 28px 24px;
        border-radius: 16px;
    }
    
    .form-header {
        margin-bottom: 24px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .form-submit {
        padding: 18px 32px;
        font-size: 1rem;
        border-radius: 12px;
        /* Larger touch target */
        min-height: 56px;
    }
    
    /* FAQ Mobile */
    .faq {
        padding: var(--section-padding) 0;
    }
    
    .faq-container {
        padding: 0 20px;
    }
    
    .faq-header {
        margin-bottom: 30px;
    }
    
    .faq-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    
    .faq-list {
        gap: 12px;
    }
    
    .faq-item {
        border-radius: 10px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 0.95rem;
        gap: 15px;
    }
    
    .faq-icon {
        font-size: 1.3rem;
        min-width: 24px;
    }
    
    .faq-answer-content {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-container {
        padding: 0 20px;
        gap: 30px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-social {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .social-link {
        justify-content: center;
        width: 100%;
        padding: 16px 24px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }
    
    .footer-nav a {
        font-size: 0.85rem;
        padding: 8px 0; /* Larger touch target */
    }
    
    .footer-bottom {
        padding: 20px 20px 0;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --section-padding: clamp(40px, 6vh, 60px);
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 14vw, 3rem);
    }
    
    .hero-fragments {
        width: 95vw;
        height: 40vh;
        max-height: 320px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .about-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .feature-number {
        font-size: 1.8rem;
    }
    
    .feature-label {
        font-size: 0.8rem;
    }
    
    .about-image-wrapper img {
        height: 250px;
    }
    
    .carousel-item {
        width: 160px;
        height: 110px;
    }
    
    .carousel-row {
        height: 130px;
    }
    
    .gallery-carousel {
        gap: 30px;
    }
    
    .book-form {
        padding: 24px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
    }
    
    .faq-question {
        padding: 18px 16px;
        font-size: 0.9rem;
    }
    
    .faq-answer-content {
        padding: 0 16px 18px;
        font-size: 0.9rem;
    }
}

/* Landscape orientation on phones */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-fragments {
        height: 60vh;
        max-height: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .testimonial-card:hover,
    .book-button:hover,
    .nav-cta:hover,
    .social-link:hover,
    .review-badge:hover {
        transform: none;
    }
    
    /* Active states for touch */
    .testimonial-card:active {
        transform: scale(0.98);
    }
    
    .book-button:active,
    .nav-cta:active,
    .form-submit:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    
    .social-link:active,
    .review-badge:active {
        transform: scale(0.97);
    }
    
    /* Disable 3D hover on gallery items for mobile */
    .carousel-item:hover img {
        transform: none;
    }
}

/* ============================================
   Animation Utility Classes
   ============================================ */
.animate-in {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.stagger-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
