/* ════════════════════════════════════════════════════
   TW-THEME.CSS — AN Agencia Creativa
   Shared base styles for all pages using Tailwind v4 CDN.
   The @theme block must remain inline per-page (CDN limitation).
   This file handles: animations, components, and complex CSS.
   ════════════════════════════════════════════════════ */

/* ── Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Premium Button ── */
.btn-luxury {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-luxury:hover {
    background: #9064af;
    transform: translateY(-2px);
}

/* ── Marquee (Index page) ── */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.marquee-content {
    display: inline-flex;
    animation: marquee-scroll 20s linear infinite;
    gap: 40px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.marquee-content .outline {
    color: #9064af;
    font-weight: 300;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Hero Video (Index page) ── */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

/* ── Image Carousel (auto-sliding) ── */
.carousel-inner {
    display: flex;
    animation: carousel-slide 12s ease-in-out infinite;
}
.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
@keyframes carousel-slide {
    0%, 30% { transform: translateX(0); }
    33%, 63% { transform: translateX(-100%); }
    66%, 96% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}

/* ── Portfolio Item Overlay ── */
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay h2,
.portfolio-overlay h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.portfolio-overlay span,
.portfolio-overlay p {
    color: rgba(255,255,255,0.8);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

/* ── Contact Form (floating labels) ── */
.form-group {
    position: relative;
    margin-bottom: 30px;
}
.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding: 15px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus {
    border-bottom-color: #9064af;
}
.form-control::placeholder {
    color: transparent;
}
.form-label {
    position: absolute;
    top: 15px;
    left: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    pointer-events: none;
}
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label,
select.form-control ~ .form-label {
    top: -12px;
    font-size: 0.8rem;
    color: #9064af;
    font-weight: 600;
}
select.form-control {
    cursor: pointer;
    padding-top: 20px;
}
textarea.form-control {
    resize: none;
    min-height: 120px;
}

/* ── Success Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248,248,248,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: #fff;
    padding: 60px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    transform: translateY(30px);
    transition: transform 0.5s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* ── WhatsApp Float Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
