/* ==========================================================================
   ViviWeb2 - Design System & Custom Styles
   ========================================================================== */

:root {
    --bg-body: #FAFAFA;
    --text-main: #111111;
    --accent-color: #B45309;
    --accent-light: #FDE68A;
    --surface: #FFFFFF;
    --font-display: 'Playfair Display', serif;
    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Manrope', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.serif {
    font-family: var(--font-serif);
}

.display {
    font-family: var(--font-display);
}

.sans {
    font-family: var(--font-sans);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.img-reveal {
    position: relative;
    overflow: hidden;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.active {
    clip-path: inset(0 0 0 0);
}

/* Luxury Pill Button */
.btn-luxury {
    background-color: var(--text-main);
    color: #fff;
    padding: 16px 40px;
    letter-spacing: 0.1em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    border: 1px solid var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    color: black;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-luxury:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-luxury:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Brands Marquee Carousel */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    align-items: center;
}

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

/* Modern Input & Select Styles */
input,
select,
textarea {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 1.5rem 0 !important;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    width: 100%;
    transition: all 0.4s ease;
    color: var(--text-main);
    border-radius: 0 !important;
    font-weight: 300;
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.25 !important;
    cursor: not-allowed !important;
    filter: grayscale(1);
    border-bottom-style: dotted !important;
    pointer-events: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-bottom-color: var(--text-main) !important;
    padding-left: 12px !important;
}

input.error,
select.error,
textarea.error {
    border-bottom-color: #ef4444 !important;
}

.field-valid {
    border-bottom-color: #22c55e !important;
}

.hidden-field {
    position: absolute !important;
    left: -9999px !important;
}

/* Language Switcher Buttons */
.lang-link {
    background: transparent;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 11px;
    opacity: 0.4;
    transition: all 0.3s ease;
    font-weight: 600;
    color: inherit;
    font-family: var(--font-sans);
}

.lang-link.active {
    opacity: 1;
    color: var(--accent-color);
    border-bottom: 1.5px solid var(--accent-color);
}

.lang-link:hover {
    opacity: 0.9;
}

/* Floating WhatsApp Button */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.1) rotate(10deg);
}

#formSuccess {
    display: none;
}

#formSuccess.active {
    display: flex;
    animation: fadeIn 1s ease forwards;
}

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

/* Mobile Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-main);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(4.5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-4.5px);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--text-main);
    transition: color 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, color 0.3s;
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu a:hover {
    color: var(--accent-color);
}

/* Portfolio Image Carousel */
.img-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.img-carousel .carousel-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.img-carousel .carousel-slides img {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.img-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    color: #111;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s, transform 0.2s;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.img-carousel:hover .carousel-arrow {
    opacity: 1;
}

.img-carousel .carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.img-carousel .carousel-arrow.prev {
    left: 12px;
}

.img-carousel .carousel-arrow.next {
    right: 12px;
}

/* Mobile Dots Indicator for Carousels */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background: #FFFFFF;
    width: 20px;
    border-radius: 4px;
}

/* About Section Overlay */
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45%;
    height: 20%;
    background: linear-gradient(to top right, rgba(255, 255, 255, 0.92) 20%, transparent 80%);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .img-carousel .carousel-arrow {
        opacity: 1;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .img-carousel .carousel-arrow.prev {
        left: 8px;
    }

    .img-carousel .carousel-arrow.next {
        right: 8px;
    }
}

/* Testimonials / Reviews Section */
.star-rating {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.star-rating .star {
    font-size: 2rem;
    color: #d1d5db;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #F59E0B;
    transform: scale(1.15);
}

.star-display {
    color: #F59E0B;
    letter-spacing: 2px;
}

.reviews-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 1rem 0;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 320px;
    max-width: 400px;
    scroll-snap-align: start;
    flex-shrink: 0;
    border-radius: 4px;
}

.reviews-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reviews-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: var(--text-main);
}

.reviews-nav button:hover {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}
