/* ============================================
   Peluquería MOGA — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: #0f172a;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* ============================================
   Geometric Decorative Shapes
   ============================================ */
.geometric-shapes {
    z-index: 0;
}

.shape-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.08);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(20, 184, 166, 0.04);
    top: 35%;
    left: 5%;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 10%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    animation: float 18s ease-in-out infinite;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    background: rgba(20, 184, 166, 0.03);
    border: 1px solid rgba(20, 184, 166, 0.06);
    animation: float 22s ease-in-out infinite reverse;
}

.shape-5 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 20%;
    background: rgba(20, 184, 166, 0.05);
    transform: rotate(45deg);
    animation: float 12s ease-in-out infinite;
}

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

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

#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #5eead4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    z-index: 40;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2dd4bf;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 80%;
}

/* Hamburger Animation */
#menu-btn {
    perspective: 100px;
}

.menu-line {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#menu-icon-1 {
    top: 35%;
}

#menu-line-2 {
    top: 50%;
    transform: translate(-50%, -50%);
}

#menu-line-3 {
    bottom: 35%;
}

#menu-btn.active #menu-icon-1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#menu-btn.active #menu-line-2 {
    opacity: 0;
}

#menu-btn.active #menu-line-3 {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ============================================
   Hero Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.animate-slide-up-delay-3 {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-item:hover::after {
    border-color: rgba(45, 212, 191, 0.4);
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-3 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 640px) {
    .font-heading {
        font-size: 2rem;
    }
}
