/* ===== Custom Styles for Wiebe Insurance Agency ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.08), rgba(245, 158, 11, 0.06));
    animation: float 6s ease-in-out infinite;
}

.geo-square-1 {
    top: 60%;
    left: -3%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(147, 51, 234, 0.05));
    border-radius: 24px;
    transform: rotate(45deg);
    animation: float-delayed 5s ease-in-out infinite;
}

.geo-triangle-1 {
    top: 40%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(147, 51, 234, 0.06);
    animation: rotate-slow 25s linear infinite;
}

.geo-circle-2 {
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.07), rgba(147, 51, 234, 0.04));
    animation: float 7s ease-in-out infinite 2s;
}

.geo-dots {
    top: 25%;
    left: 5%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(147, 51, 234, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.6;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #9333ea, #f59e0b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Mobile menu */
.mobile-nav-link {
    position: relative;
}

/* 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(to right, #9333ea, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Feature blocks */
.feature-block {
    position: relative;
}

.feature-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #9333ea, #f59e0b);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.feature-block:hover::after {
    width: 60%;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.15);
    line-height: 1;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(147, 51, 234, 0.08);
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
    background: rgba(147, 51, 234, 0.2);
    color: #3b0764;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #9333ea, #f59e0b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7e22ce;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-square-1 {
        width: 80px;
        height: 80px;
    }
    
    .geo-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 69px solid rgba(147, 51, 234, 0.06);
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
}

/* Print styles */
@media print {
    .geo-shape,
    .animate-float,
    .animate-float-delayed,
    .animate-rotate-slow {
        display: none;
    }
}
