/*
Theme Name: Made by Casso
Author: Antigravity
Description: A high-fashion, minimalist luxury WordPress theme inspired by Chrome Hearts.
Version: 1.0
Text Domain: madebycasso
*/

/* Dynamic fonts and colors are loaded via wp_head in functions.php */

:root {
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-hover: #888888;
    --menu-bg: #000000;
    --accent: #d90429; /* Red accent if needed */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden; /* Prevent scrolling on landing page */
}

/* ========================================
   BACKGROUND MEDIA
   ======================================== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Optional dark overlay to make text pop */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* Adjust opacity for darker/lighter bg */
    z-index: -1;
}

/* ========================================
   MAIN CONTENT & LOGO
   ======================================== */
.main-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to background */
}

.logo-container {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto; /* Re-enable clicks for the logo */
}

.logo-container.top-center {
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.logo-container.top-left {
    top: 2rem;
    left: 6rem; /* Offset from Fleur toggle */
}

.logo-container.top-right {
    top: 2rem;
    right: 2rem;
}

.brand-logo {
    max-width: 300px;
    height: auto;
    display: block;
    /* drop-shadow traces the actual shape of the PNG, not its bounding box */
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.5));
    transition: filter 0.45s ease;
}

/* Logo glow wrapper — NO box-shadow here (that creates the rectangle) */
.logo-glow-wrap {
    display: inline-block;
    position: relative;
    cursor: default;
    /* pass the drop-shadow effect up through the wrapper */
    transition: filter 0.45s ease;
}

/* On hover: multiple layered drop-shadows trace the exact pixel shape */
.logo-glow-wrap:hover .brand-logo,
.logo-glow-wrap:hover .custom-logo,
.logo-glow-wrap:hover img {
    filter:
        drop-shadow(0 0  6px rgba(217, 4, 41, 1))
        drop-shadow(0 0 14px rgba(217, 4, 41, 0.85))
        drop-shadow(0 0 28px rgba(217, 4, 41, 0.6))
        drop-shadow(0 0 50px rgba(217, 4, 41, 0.35));
}

/* Logo hover tooltip */
.logo-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(217, 4, 41, 0.92);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 200;
    box-shadow: 0 4px 14px rgba(217, 4, 41, 0.5);
}

.logo-glow-wrap:hover .logo-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.brand-text-fallback {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-main);
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* ========================================
   NAVIGATION & FLEUR-DE-LIS TOGGLE
   ======================================== */
.fleur-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 45px;
    height: 45px;
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.fleur-toggle:hover {
    transform: scale(1.1);
}

.fleur-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fleur-fallback {
    font-size: 40px;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Slide Menu — glassmorphism, see-through */
.slide-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden off-screen by default */
    width: 350px;
    max-width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.35); /* Semi-transparent */
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    z-index: 50; /* Below toggle, above content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 5px 0 40px rgba(0,0,0,0.4);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.slide-menu.open {
    left: 0; /* Slide in */
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-links li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.slide-menu.open .nav-links li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays for links */
.slide-menu.open .nav-links li:nth-child(1) { transition-delay: 0.2s; }
.slide-menu.open .nav-links li:nth-child(2) { transition-delay: 0.3s; }
.slide-menu.open .nav-links li:nth-child(3) { transition-delay: 0.4s; }
.slide-menu.open .nav-links li:nth-child(4) { transition-delay: 0.5s; }
.slide-menu.open .nav-links li:nth-child(5) { transition-delay: 0.6s; }

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* ========================================
   TOP BANNER
   ======================================== */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: var(--accent);
    color: var(--text-main);
    z-index: 200;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    overflow: hidden;
}

.banner-track {
    position: relative;
    height: 1.2rem;
}

.banner-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.top-banner.transition-fade .banner-text.active {
    opacity: 1;
}

.top-banner.transition-slide .banner-text {
    transform: translateY(100%);
}
.top-banner.transition-slide .banner-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   HERO / CAROUSEL
   ======================================== */
.hero-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-width: 1200px;
    height: 60vh;
    z-index: 5;
    pointer-events: auto;
}

.hero-video-container {
    width: 100%;
    height: 100%;
}

.hero-video-container video,
.hero-carousel,
.carousel-slide,
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.hero-carousel {
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 1s ease-in-out;
}

/* Carousel Transitions */
.hero-carousel.transition-fade .carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-carousel.transition-dissolve .carousel-slide {
    filter: blur(10px);
}
.hero-carousel.transition-dissolve .carousel-slide.active {
    opacity: 1;
    filter: blur(0);
    z-index: 2;
}

.hero-carousel.transition-spin .carousel-slide {
    transform: rotate(180deg) scale(0.5);
}
.hero-carousel.transition-spin .carousel-slide.active {
    opacity: 1;
    transform: rotate(0) scale(1);
    z-index: 2;
}

.hero-carousel.transition-slide .carousel-slide {
    transform: translateX(100%);
}
.hero-carousel.transition-slide .carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}
.hero-carousel.transition-slide .carousel-slide.last-active {
    transform: translateX(-100%);
    opacity: 1;
    z-index: 1;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-section {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 600px;
    background: rgba(0,0,0,0.8);
    padding: 2rem;
    border-radius: 10px;
    z-index: 10;
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-contact-form input,
.custom-contact-form textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-main);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.custom-contact-form button {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.custom-contact-form button:hover {
    background: #a0031d;
}

/* ========================================
   MOUSE TRAIL
   ======================================== */
#mouse-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}
