/* ===================================
   Avante Beauty — Custom Styles
   =================================== */

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

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

body {
    min-height: 100vh;
}

/* ===================================
   Geometric Hero Shapes
   =================================== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #9fbd82, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #c7dab3, transparent 70%);
    bottom: -50px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #e3ecd6, transparent 70%);
    top: 40%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.12;
}

.geo-triangle-1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #c7dab3;
    top: 15%;
    left: 8%;
    animation: spin 20s linear infinite;
    transform-origin: center;
}

.geo-square {
    position: absolute;
    opacity: 0.1;
    border-radius: 12px;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: #e3ecd6;
    top: 25%;
    right: 10%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.geo-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
}

.geo-dot-1 {
    width: 12px;
    height: 12px;
    background: #e3ecd6;
    top: 20%;
    right: 20%;
    animation: pulse 3s ease-in-out infinite;
}

.geo-dot-2 {
    width: 8px;
    height: 8px;
    background: #c7dab3;
    bottom: 30%;
    left: 15%;
    animation: pulse 4s ease-in-out infinite 1s;
}

.geo-dot-3 {
    width: 16px;
    height: 16px;
    background: #9fbd82;
    top: 60%;
    right: 15%;
    animation: pulse 3.5s ease-in-out infinite 0.5s;
}

.geo-dot-4 {
    width: 10px;
    height: 10px;
    background: #e3ecd6;
    bottom: 20%;
    right: 30%;
    animation: pulse 4.5s ease-in-out infinite 2s;
}

.geo-stripes {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.015) 40px,
        rgba(255, 255, 255, 0.015) 80px
    );
}

/* ===================================
   Animations
   =================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

/* ===================================
   Scroll Reveal
   =================================== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-reveal="left"] {
    transform: translateX(-30px);
}

.reveal[data-reveal="left"].revealed {
    transform: translateX(0);
}

.reveal[data-reveal="right"] {
    transform: translateX(30px);
}

.reveal[data-reveal="right"].revealed {
    transform: translateX(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal[data-reveal],
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
    }
    
    .geo-circle,
    .geo-triangle,
    .geo-dot {
        animation: none;
    }
}

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

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

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

/* ===================================
   Navbar Scrolled State
   =================================== */
.nav-scrolled {
    background: rgba(250, 250, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled #navbar .font-display {
    color: #1f3616 !important;
}

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

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

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

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

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.testimonial-card:hover::before {
    border-color: #c7dab3;
}

/* ===================================
   Form Focus States
   =================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

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

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

.menu-active .menu-line:nth-child(2) {
    opacity: 0;
}

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