/* ========================================
   Tina Lalehfar Insurance Agency
   Custom Styles
   ======================================== */

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

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

body {
    min-height: 100vh;
    overflow-x: hidden;
}

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

.shape-circle-1 {
    top: 15%;
    right: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(132, 20, 54, 0.12);
}

.shape-circle-2 {
    bottom: 20%;
    left: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 77, 133, 0.06);
}

.shape-triangle-1 {
    top: 45%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(132, 20, 54, 0.08);
    transform: rotate(15deg);
}

.shape-square-1 {
    top: 70%;
    left: 8%;
    width: 60px;
    height: 60px;
    background: rgba(255, 130, 168, 0.07);
    transform: rotate(45deg);
}

.shape-ring-1 {
    top: 30%;
    left: 3%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(132, 20, 54, 0.1);
}

/* ========================================
   Navbar
   ======================================== */
.nav-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(132, 20, 54, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 4px 30px rgba(132, 20, 54, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #841436, #ff4d85);
    transition: width 0.3s ease;
}

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

.cta-btn {
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 180, 200, 0.15);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.hero-geo-2 {
    top: 25%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: rgba(255, 130, 168, 0.1);
    border-radius: 50%;
    animation: float-medium 6s ease-in-out infinite reverse;
}

.hero-geo-3 {
    bottom: 20%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 180, 200, 0.08);
    animation: float-slow 10s ease-in-out infinite;
}

.hero-geo-4 {
    bottom: 35%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: rgba(255, 77, 133, 0.08);
    transform: rotate(45deg);
    animation: float-medium 7s ease-in-out infinite reverse;
}

.hero-geo-5 {
    top: 50%;
    left: 15%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 180, 200, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 12s ease-in-out infinite;
}

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

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Scroll indicator */
.scroll-indicator {
    animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

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

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

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

.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

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

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

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(132, 20, 54, 0.1);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .hero-geo-1 {
        width: 150px;
        height: 150px;
    }
    
    .hero-geo-2 {
        width: 60px;
        height: 60px;
    }
    
    .hero-geo-3 {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 50px;
    }
    
    .hero-geo-4 {
        width: 40px;
        height: 40px;
    }
    
    .hero-geo-5 {
        width: 100px;
        height: 100px;
    }
}

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

@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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
