/* ============================================
   TR3S Salon — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Floating Decorative Shapes
   ============================================ */
.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.04;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    border: 3px solid #7B2D3B;
    border-radius: 50%;
    top: 15%;
    right: -50px;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: #7B2D3B;
    border-radius: 50%;
    bottom: 20%;
    left: -30px;
    animation-delay: -5s;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: #F5D0C8;
    top: 40%;
    left: 5%;
    transform: rotate(45deg);
    animation-delay: -10s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #7B2D3B;
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.shape-ring {
    width: 200px;
    height: 200px;
    border: 3px solid #F5D0C8;
    border-radius: 50%;
    bottom: 10%;
    right: 20%;
    animation-delay: -3s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(2deg); }
}

/* ============================================
   Hero Geometric Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    animation: geoFloat 15s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    border-color: rgba(245, 208, 184, 0.15);
    animation: geoFloat 12s ease-in-out infinite reverse;
}

.geo-square {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    animation: geoFloat 18s ease-in-out infinite;
    animation-delay: -5s;
}

.geo-diamond {
    background: rgba(245, 208, 184, 0.05);
    border: 1px solid rgba(245, 208, 184, 0.1);
}

.geo-diamond-1 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    right: 8%;
    transform: rotate(45deg);
    animation: geoFloat 14s ease-in-out infinite;
    animation-delay: -8s;
}

.geo-stripes {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 15%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.02) 20px
    );
    animation: geoFloat 20s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

/* Hero Photos */
.hero-photo {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-photo-1 {
    width: 280px;
    height: 350px;
    top: 15%;
    right: 5%;
    transform: rotate(3deg);
    z-index: 2;
    animation: heroPhotoFloat 8s ease-in-out infinite;
}

.hero-photo-2 {
    width: 220px;
    height: 280px;
    bottom: 15%;
    left: 3%;
    transform: rotate(-5deg);
    z-index: 2;
    animation: heroPhotoFloat 10s ease-in-out infinite reverse;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes heroPhotoFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rotate, 3deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotate, 3deg)); }
}

.hero-photo-1 { --rotate: 3deg; }
.hero-photo-2 { --rotate: -5deg; }

@keyframes heroPhotoFloat {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes heroPhotoFloatReverse {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(15px) rotate(-5deg); }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .nav-link {
    color: #5c1f2b;
}

#navbar.scrolled .font-display {
    color: #5c1f2b;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menu-toggle[aria-expanded="true"] #bar1 {
    transform: translateY(6px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] #bar2 {
    opacity: 0;
}

#menu-toggle[aria-expanded="true"] #bar3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    opacity: 1;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(123, 45, 59, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 0.5rem;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-photo-1 {
        width: 160px;
        height: 200px;
        top: 10%;
        right: 2%;
    }

    .hero-photo-2 {
        width: 130px;
        height: 170px;
        bottom: 10%;
        left: 2%;
    }

    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }

    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }

    .geo-square-1 {
        width: 60px;
        height: 60px;
    }

    .geo-diamond-1 {
        width: 40px;
        height: 40px;
    }

    .geo-stripes {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 640px) {
    .floating-shapes .shape {
        opacity: 0.02;
    }
}

/* ============================================
   Utility
   ============================================ */
::selection {
    background: #F5D0C8;
    color: #5c1f2b;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF8F5;
}

::-webkit-scrollbar-thumb {
    background: #F5D0C8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c72044;
}
