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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.3em;
    color: #000;
    overflow-x: hidden;
    /* soft warm/pale background like the reference image */
    background: linear-gradient(180deg, #f7edea 0%, #efe2de 50%, #efe2de 100%);
    box-sizing: border-box;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* ================= NAVBAR RESPONSIVE ================= */
.main-nav {
    width: 100%;
    overflow-x: hidden;
}

.main-nav nav {
    flex-shrink: 0;
}

.main-nav .nav-link {
    white-space: nowrap;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    letter-spacing: 0.25em;
}

.main-nav .nav-pill {
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.main-nav .nav-pill:hover {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

/* Mobile Menu Styles */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobileMenu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

.mobile-nav-link {
    display: block;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    padding-left: 0.5rem;
}

/* Hamburger Icon Animation */
#mobileMenuToggle span {
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Prevent logo overlap on medium screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-nav nav {
        gap: 1rem;
    }
    
    .main-nav .font-display {
        font-size: 1.125rem;
        letter-spacing: 0.15em;
    }
    
    .main-nav .nav-link {
        font-size: 0.75rem;
        gap: 1rem;
    }
    
    .main-nav .nav-pill {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .main-nav nav {
        gap: 1.5rem;
    }
    
    .main-nav .font-display {
        font-size: 1.25rem;
    }
    
    .main-nav .nav-link {
        font-size: 0.75rem;
    }
}

/* Ensure perfect centering on all desktop sizes */
@media (min-width: 768px) {
    .main-nav > div {
        position: relative;
    }
    
    .main-nav .font-display {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    .main-nav nav:first-of-type {
        justify-content: flex-start;
    }
    
    .main-nav nav:last-of-type {
        justify-content: flex-end;
    }
}

/* ================= TOGGLE MENU ================= */
.menu-link {
    font-family: 'Inter', 'Playfair Display', Helvetica, Arial, sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    line-height: 3.125rem;
    letter-spacing: 0.5em;
    text-align: center;
    color: #fff;
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.menu-link:hover {
    opacity: 0.7;
}

@media (max-width: 767px) {
    .menu-link {
        letter-spacing: 0.32em;
        line-height: 2.6rem;
    }
}

@media (max-width: 480px) {
    .menu-link {
        letter-spacing: 0.24em;
        font-size: 0.95rem;
    }
}

@media (max-width: 375px) {
    .menu-link {
        letter-spacing: 0.18em;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-content {
    position: relative;
    z-index: 2;
    color: #6f4f45;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* SangBleu Font Class */
.sangbleu {
    font-family: 'Inter', 'Playfair Display', Helvetica, Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.3em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sticky Section */
.sticky-section {
    position: sticky;
    top: 0;
    min-height: 100vh;
    z-index: 10;
}

/* Instagram Feed Cards */
.feed-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

.feed-card-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-card:hover .feed-card-image {
    transform: scale(1.05);
}

/* Enhanced transitions for media items */
.media-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.media-item:hover {
    opacity: 0.95;
}

/* Smooth carousel button transitions */
.project-carousel-btn {
    transition: all 0.3s ease;
}

.project-carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Brochure Modal */
.book-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.book-modal.active {
    display: flex;
}

.book-container {
    perspective: 2000px;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    position: relative;
}

.book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.page {
    position: absolute;
    width: 50%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    backface-visibility: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

.page-left {
    left: 0;
    transform-origin: right center;
    border-radius: 0 8px 8px 0;
}

.page-right {
    right: 0;
    transform-origin: left center;
    border-radius: 8px 0 0 8px;
}

.page.flipped {
    transform: rotateY(-180deg);
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 10;
}

.page.flipping {
    transform: rotateY(-180deg);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 1s ease;
}

.page:not(.flipped) {
    z-index: 1;
}

.page-content {
    padding: 3rem;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Navigation Buttons */
.book-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.book-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.book-nav.prev {
    left: 20px;
}

.book-nav.next {
    right: 20px;
}

/* Brochure Poster */
.brochure-poster {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brochure-poster:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Two Column Section: Video & E-book */
.two-column-section {
    background: #000;
    min-height: 60vh;
}

.video-column {
    background: #1a1a1a;
}

.video-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ebook-column {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
}

.who-are-we-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sticky Consultation Button */
.sticky-consultation-btn {
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.book-consultation-btn {
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
}

.book-consultation-btn:hover {
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.6);
}

.read-more-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Who Are We Carousel */
.carousel-container {
    position: relative;
    margin: 0 auto;
}

.carousel-track {
    overflow: hidden;
    border-radius: 1rem;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex-shrink: 0;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Why Choose Us Section */
.why-choose-us-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why-choose-cta {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Project Carousel Styles */
.project-carousel-container {
    position: relative;
    margin-bottom: 1rem;
}

.project-carousel-track {
    overflow: hidden;
    border-radius: 0.5rem;
}

.project-carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.project-carousel-slide {
    flex-shrink: 0;
    min-width: 100%;
}

.project-carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.project-carousel-btn:active {
    transform: scale(0.95);
}

.project-cta-btn {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}


/* ================= SITE FRAME / BEVEL (wraps header + hero) ================= */
/* Site frame removed - no borders or padding wrapper */

/* Responsive */
@media (max-width: 1439px) {
}

@media (max-width: 1023px) {
    .video-column {
        padding: 1.5rem;
    }
    
    .carousel-slide img {
        height: 60vh;
    }
}

@media (max-width: 767px) {
    .sticky-section {
        position: relative;
    }

    .book-modal {
        padding: 0.5rem;
    }

    .book-container {
        width: 100%;
        height: 85vh;
        max-height: 85vh;
        padding: 0;
    }

    .page {
        width: 100%;
        border-radius: 8px;
    }

    .page-left {
        left: 0;
        right: 0;
        border-radius: 8px;
        z-index: 2;
    }

    .page-right {
        left: 0;
        right: 0;
        border-radius: 8px;
        z-index: 1;
    }

    .page.flipped {
        z-index: 3;
    }

    .page-content {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .page-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
    }

    .page-content p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .page-content ul {
        font-size: 0.875rem;
    }

    .page-content img {
        height: 120px !important;
        margin-top: 0.5rem;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .book-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .book-nav.prev {
        left: 10px;
    }

    .book-nav.next {
        right: 10px;
    }
    
    /* Video Section Mobile */
    .video-column {
        padding: 1rem;
    }
    
    .video-container {
        margin-bottom: 1rem;
    }
    
    .play-button {
        width: 56px;
        height: 56px;
    }
    
    .play-button svg {
        width: 24px;
        height: 24px;
    }
    
    /* Carousel Mobile */
    .carousel-container {
        margin: 0 -0.5rem;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-slide {
        padding: 0 0.5rem;
    }
    
    .carousel-slide img {
        height: 50vh;
    }
    
    /* Feed Cards Mobile */
    .feed-card {
        margin-bottom: 1.5rem;
    }
    
    .feed-card .relative {
        height: 50vh;
    }
    
    /* Brochure Mobile */
    .brochure-poster {
        margin-top: 1rem;
    }
    
    /* Sticky Button Mobile */
    .sticky-consultation-btn {
        padding: 0.75rem;
    }
    
    .book-consultation-btn {
        width: calc(100% - 2rem);
        max-width: 100%;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    /* Menu Mobile */
    .menu-link {
        font-size: 0.9rem;
        line-height: 2.5rem;
        letter-spacing: 0.3em;
    }
    
    /* Who Are We & Why Choose Us Mobile */
    .who-are-we-section,
    .why-choose-us-section {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Grid spacing mobile */
    .grid.grid-cols-12 {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-column {
        padding: 0.75rem;
    }
    
    .play-button {
        width: 48px;
        height: 48px;
    }
    
    .play-button svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-slide img {
        height: 40vh;
    }
    
    .feed-card .relative {
        height: 40vh;
    }
    
    .book-consultation-btn {
        font-size: 0.75rem;
        padding: 0.625rem 0.875rem;
    }
    
    .menu-link {
        font-size: 0.85rem;
        line-height: 2.25rem;
    }

    /* Book Modal Mobile - Small Screens */
    .book-modal {
        padding: 0.25rem;
    }

    .book-container {
        width: 100%;
        height: 90vh;
        max-height: 90vh;
        padding: 0;
    }

    .page-content {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .page-content h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem;
    }

    .page-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .page-content ul {
        font-size: 0.8rem;
        padding-left: 1rem;
    }

    .page-content img {
        height: 100px !important;
    }

    .close-btn {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .book-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .book-nav.prev {
        left: 8px;
    }

    .book-nav.next {
        right: 8px;
    }
}

@media (max-width: 375px) {
    .carousel-slide img {
        height: 35vh;
    }
    
    .feed-card .relative {
        height: 35vh;
    }
    
    .menu-link {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    /* Book Modal Mobile - Extra Small Screens */
    .book-modal {
        padding: 0.25rem;
    }

    .book-container {
        width: 100%;
        height: 95vh;
        max-height: 95vh;
        padding: 0;
    }

    .page-content {
        padding: 0.75rem;
        font-size: 0.75rem;
    }

    .page-content h2 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }

    .page-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .page-content ul {
        font-size: 0.75rem;
        padding-left: 0.75rem;
    }

    .page-content img {
        height: 80px !important;
    }

    .close-btn {
        top: 5px;
        right: 5px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .book-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .book-nav.prev {
        left: 5px;
    }

    .book-nav.next {
        right: 5px;
    }
}
