/* Custom styles for Studio M Salon */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

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

.geo-rect {
    position: absolute;
    pointer-events: none;
}

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

/* Hero section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* Navbar */
.navbar {
    backdrop-filter: blur(20px);
    background: rgba(253, 246, 238, 0.95);
}

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

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Scroll reveal animations */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Service cards */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(61, 43, 31, 0.15);
}

.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
}

.service-icon {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Buttons */
.btn-primary {
    background: #D94F20;
    color: white;
    padding: 16px 40px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #D94F20;
}

.btn-primary:hover {
    background: #C43E16;
    border-color: #C43E16;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(217, 79, 32, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #3D2B1F;
    padding: 16px 40px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #3D2B1F;
}

.btn-secondary:hover {
    background: #3D2B1F;
    color: #FDF6EE;
    transform: translateY(-2px);
}

/* Form inputs */
.form-input {
    background: white;
    border: 2px solid #F5EDE3;
    border-radius: 12px;
    padding: 16px 20px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    color: #3D2B1F;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: #D94F20;
    box-shadow: 0 0 0 4px rgba(217, 79, 32, 0.1);
}

.form-input::placeholder {
    color: #8B6F5E;
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.4s ease;
}

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

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: #FDF6EE;
}

::-webkit-scrollbar-thumb {
    background: #D94F20;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C43E16;
}

/* Pattern dots */
.pattern-dots {
    background-image: radial-gradient(circle, #D94F20 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.15;
}

/* Mobile hamburger */
.hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #3D2B1F;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero-grid {
        min-height: auto;
    }
    
    .hero-grid > div:first-child {
        padding: 80px 20px 60px;
    }
    
    .hero-grid > div:first-child h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-grid > div:first-child h1 span {
        font-size: 1.5rem !important;
    }
}
