/* ========================================
   Gary Ihasz — AKP Health Insurance
   Vibrant Modern Design System
   Burgundy + Blush Color Palette
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 203, 164, 0.3) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle--2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-square {
    position: absolute;
    pointer-events: none;
    border-radius: 24px;
}

.geo-square--1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 203, 164, 0.2);
    transform: rotate(45deg);
    top: 30%;
    left: 5%;
    animation: spin-slow 20s linear infinite;
}

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

.geo-triangle--1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(128, 0, 32, 0.06);
    top: 60%;
    right: 8%;
    animation: float 6s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(128, 0, 32, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 150px;
    height: 150px;
    top: 45%;
    right: 3%;
}

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

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

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

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

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Animation Utility Classes --- */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* --- 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, #800020, #FFCBA4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* --- Mobile Menu --- */
.mobile-menu-link {
    transition: all 0.3s ease;
}

/* --- Navbar scroll state --- */
.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(128, 0, 32, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5a0017;
}

/* --- Selection --- */
::selection {
    background: rgba(128, 0, 32, 0.15);
    color: #800020;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
    
    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-square--1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle--1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 50px solid rgba(128, 0, 32, 0.06);
    }
}
