/* Ateliér Seri - Main Styles */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: Arial, sans-serif;
}

/* Desktop - Natural proportions with break bars (1024px and above) */
@media (min-width: 1024px) {
    .desktop-section {
        width: 100%;
        display: block;
        margin: 0;
        padding: 0;
        position: relative;
        border-bottom: 10px solid #FFF3C2;
    }

    .desktop-section:last-child {
        border-bottom: none;
    }

    .desktop-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        object-position: center;
        margin: 0;
        padding: 0;
    }

    .desktop-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        pointer-events: none;
    }

    .desktop-overlay > * {
        pointer-events: auto;
    }
}

/* Mobile and Tablet - 1023px and below */
@media (max-width: 1023px) {
    .mobile-section {
        height: 100vh;
        width: 100vw;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-attachment: scroll !important;
        background-repeat: no-repeat !important;
        overflow: hidden;
        position: relative;
    }

    /* Mobile/Tablet carousel styles */
    .mobile-carousel {
        position: relative;
        width: 100%;
        height: 550px;
        perspective: 1000px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        overflow: visible;
        padding: 0 20px;
    }

    .carousel-wrapper {
        position: relative;
        width: 300px;
        height: 500px;
        transform-style: preserve-3d;
        transition: transform 0.6s ease-out;
        margin: 0 auto;
    }

    .slide-card {
        position: absolute;
        width: 280px;
        height: 480px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 20px;
        padding: 0;
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        transition: all 0.6s ease-out;
        cursor: pointer;
        border: 2px solid rgba(71, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        overflow: hidden;
    }

    .slide-card.active {
        transform: translate(-50%, -50%) translateZ(50px) scale(1.05);
        box-shadow: 0 25px 60px rgba(0,0,0,0.3);
        border-color: rgba(71, 0, 0, 0.3);
        z-index: 10;
    }

    .slide-card.prev {
        transform: translate(-50%, -50%) translateX(-80px) translateZ(-50px) rotateY(30deg) scale(0.85);
        opacity: 0.7;
        z-index: 5;
    }

    .slide-card.next {
        transform: translate(-50%, -50%) translateX(80px) translateZ(-50px) rotateY(-30deg) scale(0.85);
        opacity: 0.7;
        z-index: 5;
    }

    .slide-placeholder {
        width: 100%;
        height: 200px;
        background: linear-gradient(135deg, #f8f4e6, #e8dcc0);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 0.8rem;
        border: none;
        transition: all 0.3s ease;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }

    .slide-card.active .slide-placeholder {
        background: linear-gradient(135deg, #fff3c2, #f0e6a8);
    }

    .slide-title {
        font-size: 1.1rem;
        margin: 12px 15px 8px;
        text-align: center;
        transition: all 0.3s ease;
        line-height: 1.2;
        flex-shrink: 0;
    }

    .slide-description {
        font-size: 0.85rem;
        text-align: center;
        transition: all 0.3s ease;
        line-height: 1.3;
        padding: 0 15px;
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .slide-card.active .slide-title,
    .slide-card.active .slide-description {
        color: #470000;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
}

/* Tablet-specific font sizes (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-section .font-pinyon {
        font-size: 2.5rem !important;
    }

    .mobile-section .font-charm.text-lg {
        font-size: 1.375rem !important;
    }

    .mobile-section .font-charm.text-base {
        font-size: 1.125rem !important;
    }

    .mobile-section .fab,
    .mobile-section .fas {
        font-size: 2.25rem !important;
    }

    .mobile-section .w-48 {
        width: 14rem !important;
    }

    .mobile-section .gap-3 {
        gap: 1rem !important;
    }

    .mobile-section .gap-6 {
        gap: 2rem !important;
    }
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 2rem;
    color: #470000;
    text-decoration: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-icon {
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.navbar-icon:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.navbar-icon i {
    font-size: 18px;
    color: #470000;
}

.hamburger {
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #470000;
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

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

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

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    padding-top: 20px;
}

.sidebar.active {
    left: 0;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: block;
    padding: 15px 25px;
    color: #470000;
    text-decoration: none;
    font-family: 'Cantata One', serif;
    font-size: 1.3rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-link:hover {
    background: #f8f4e6;
    border-left: 3px solid #470000;
    padding-left: 35px;
}

.dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8f8f8;
}

.dropdown.active {
    max-height: 200px;
}

.dropdown-item {
    display: block;
    padding: 10px 50px;
    color: #470000;
    text-decoration: none;
    font-family: 'Cantata One', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #e8e8e8;
    color: #470000;
}

.dropdown-arrow {
    float: right;
    transition: transform 0.3s ease;
    margin-top: 5px;
    color: #470000;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .navbar {
        height: 50px;
        padding: 0 15px;
    }

    .navbar-title {
        font-size: 1.6rem;
    }

    .navbar-icon {
        width: 30px;
        height: 30px;
    }

    .navbar-icon i {
        font-size: 16px;
    }

    .hamburger {
        width: 30px;
        height: 30px;
    }

    .hamburger span {
        width: 18px;
    }

    .sidebar {
        top: 50px;
        height: calc(100vh - 50px);
        left: -200px;
        width: 200px;
    }

    .menu-link {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* Loading Animation */
.desktop-section, .mobile-section {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.desktop-section:nth-of-type(1), .mobile-section:nth-of-type(1) { animation-delay: 0.1s; }
.desktop-section:nth-of-type(2), .mobile-section:nth-of-type(2) { animation-delay: 0.2s; }
.desktop-section:nth-of-type(3), .mobile-section:nth-of-type(3) { animation-delay: 0.3s; }
.desktop-section:nth-of-type(4), .mobile-section:nth-of-type(4) { animation-delay: 0.4s; }
.desktop-section:nth-of-type(5), .mobile-section:nth-of-type(5) { animation-delay: 0.5s; }

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

/* User Dropdown Menu */
.user-dropdown-wrapper {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #470000;
    text-decoration: none;
    font-family: 'Cantata One', serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: #f8f4e6;
    padding-left: 25px;
}

.user-dropdown-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 14px;
    color: #470000;
}

.user-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
}
