/* ===== Custom Styles for Lotus Esthetics Skincare ===== */

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

body {
    overflow-x: hidden;
}

/* ===== Geometric Background Decorations ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    top: 10%;
    left: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    bottom: 20%;
    right: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle--1 {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(20, 184, 166, 0.06);
    top: 30%;
    right: 5%;
    transform: rotate(15deg);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(20, 184, 166, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 8%;
    animation: float-medium 18s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.05);
    border-radius: 12px;
    bottom: 30%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-slow 16s ease-in-out infinite reverse;
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

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

/* ===== Navigation ===== */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
    color: #0f172a;
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #334155;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(20, 184, 166, 0.08);
    color: #0d9488;
}

/* ===== 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, #14b8a6, #0d9488);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    transition: color 0.3s ease;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .geo-circle,
    .geo-triangle,
    .geo-dots,
    .geo-square {
        animation: none;
    }
    
    .service-card::before {
        transform: scaleX(1);
    }
    
    .gallery-item img {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle--2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-triangle--1 {
        display: none;
    }
    
    .geo-dots {
        display: none;
    }
    
    .geo-square {
        display: none;
    }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
    background: rgba(20, 184, 166, 0.2);
    color: #0f172a;
}
