/* ============================================
   Loving Hearts — Custom Styles
   Charcoal + Coral | Vibrant Modern
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 107, 90, 0.3);
    color: #fff;
}

/* ---------- Geometric Background Shapes ---------- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #ff6b5a;
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #ff8a78;
    bottom: 10%;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #ffb4a8;
    top: 50%;
    right: 5%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square-1 {
    width: 150px;
    height: 150px;
    background: #ff6b5a;
    top: 40%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #ff8a78;
    top: 70%;
    right: 10%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(3deg); }
    66% { transform: translateY(20px) rotate(-2deg); }
}

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

/* ---------- Hero Blobs ---------- */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blob-float 8s ease-in-out infinite;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff6b5a 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff8a78 0%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -3s;
}

.hero-blob-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #ffb4a8 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* ---------- Geo Pattern ---------- */
.geo-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 107, 90, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 138, 120, 0.1) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

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

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

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

/* ---------- Why Cards ---------- */
.why-card {
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b5a, #ff8a78);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.why-card:hover::after {
    transform: scaleX(1);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

/* ---------- Navbar Transition ---------- */
.nav-scrolled {
    background: rgba(13, 13, 18, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 90, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .menu-line {
    background: #fff !important;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ---------- Custom Select ---------- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2388889a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select option {
    background: #1a1a23;
    color: #ececf0;
}

/* ---------- Form Input Focus ---------- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #0d0d12;
}

::-webkit-scrollbar-thumb {
    background: #383842;
    border-radius: 4px;
}

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

/* ---------- 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;
    }
    
    .geo-shape,
    .hero-blob {
        animation: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-3 {
        display: none;
    }
    
    .geo-square-1 {
        width: 80px;
        height: 80px;
    }
    
    .geo-triangle-1 {
        display: none;
    }
    
    .hero-blob-1 {
        width: 300px;
        height: 300px;
    }
    
    .hero-blob-2 {
        width: 250px;
        height: 250px;
    }
    
    .hero-blob-3 {
        width: 150px;
        height: 150px;
    }
}
