/* Custom Styles for Intrigue Salon */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #080e1a;
    color: #f8fafc;
}

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

.shape-circle-1 {
    top: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(45, 212, 191, 0.08);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 15%;
    left: -8%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(45, 212, 191, 0.06);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-triangle {
    top: 60%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 212, 191, 0.05);
    animation: rotate-slow 25s linear infinite;
}

.shape-square {
    top: 30%;
    left: 5%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(45, 212, 191, 0.07);
    animation: rotate-slow 20s linear infinite reverse;
}

.shape-ring {
    bottom: 30%;
    right: 20%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(45, 212, 191, 0.06);
    border-radius: 50%;
    animation: float-slow 18s ease-in-out infinite;
}

/* Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes blob {
    0%, 100% { transform: scale(1) translate(0, 0); }
    25% { transform: scale(1.2) translate(10px, -10px); }
    50% { transform: scale(0.8) translate(-5px, 15px); }
    75% { transform: scale(1.1) translate(8px, 5px); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-blob {
    animation: blob 6s ease-in-out infinite;
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Reveal on Scroll */
.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.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
#navbar.scrolled {
    background: rgba(8, 14, 26, 0.9);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Menu Button Animation */
.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
    margin-left: 0;
}

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

::-webkit-scrollbar-track {
    background: #080e1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Selection */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #f0fdfa;
}

/* Form Styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2dd4bf !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* Smooth image loading */
img {
    loading: lazy;
}
