/* ===== CUSTOM STYLES FOR ELLIE NAILS AND SPA ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVIGATION ===== */
.nav-link {
    position: relative;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 252, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(100, 30, 30, 0.08);
}

nav.scrolled .nav-link {
    color: #742424;
}

nav.scrolled .font-display {
    color: #360e0e;
}

nav.scrolled .text-burgundy-500 {
    color: #a83636;
}

/* ===== HERO ANIMATIONS ===== */
.hero-badge {
    animation: fadeSlideDown 0.8s ease-out forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeSlideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeSlideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeSlideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: fadeSlideUp 0.8s ease-out 0.9s forwards;
    opacity: 0;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #ff7494;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #f9d0d0;
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fce7e7;
    top: 30%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: #ffadba;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: spin 12s linear infinite;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: #f3a8a8;
    bottom: 25%;
    right: 25%;
    transform: rotate(30deg);
    animation: spin 8s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #ff7494;
    top: 60%;
    left: 8%;
    animation: float 9s ease-in-out infinite;
    opacity: 0.06;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #f9d0d0;
    top: 15%;
    left: 25%;
    transform: rotate(-20deg);
    animation: float 5s ease-in-out infinite reverse;
    opacity: 0.06;
}

.dot-pattern {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a83636, #ff4d76);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 54, 54, 0.3), rgba(255, 77, 118, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: #ffadba;
    opacity: 0.3;
    line-height: 1;
    pointer-events: none;
}

/* ===== REVEAL ANIMATIONS (below fold only) ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    translate: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-square-2,
    .geo-triangle-1,
    .geo-triangle-2 {
        display: none;
    }
}
