/* ============================================
   Leinbach Repair - 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 {
    position: relative;
}

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

.shape-circle-1 {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 67, 101, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shape-circle-2 {
    position: absolute;
    bottom: 20%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 128, 160, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shape-triangle {
    position: absolute;
    top: 45%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(110, 28, 51, 0.04);
    transform: rotate(15deg);
    pointer-events: none;
}

.shape-dots {
    position: absolute;
    top: 30%;
    left: 3%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(251, 67, 101, 0.1) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
}

.shape-rect {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 128, 160, 0.15);
    border-radius: 16px;
    transform: rotate(45deg);
    pointer-events: none;
}

/* ============================================
   Navbar
   ============================================ */
.nav {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(110, 28, 51, 0.08);
}

.nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(110, 28, 51, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #db4365;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.hero-image {
    position: relative;
}

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

/* ============================================
   Feature Items
   ============================================ */
.feature-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

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

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

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 3.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        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; }
}

/* Default visible state for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    border-color: #db4365 !important;
    box-shadow: 0 0 0 4px rgba(219, 67, 101, 0.1) !important;
}

/* ============================================
   Utility & Overrides
   ============================================ */
::selection {
    background: rgba(219, 67, 101, 0.2);
    color: #3d0a16;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(110, 28, 51, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 28, 51, 0.4);
}
