/* ============================================
   DR. RAFIK KHAIMOV — CUSTOM STYLES
   ============================================ */

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

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

body {
    position: relative;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(112, 26, 117, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #701a75;
    transition: all 0.2s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    transition: all 0.2s ease;
}

/* ============================================
   BACKGROUND GEOMETRIC SHAPES
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #701a75;
    top: -200px;
    right: -200px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #f59e0b;
    bottom: 10%;
    left: -150px;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: #701a75;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    border-radius: 20px;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #f59e0b;
    top: 60%;
    left: 8%;
    opacity: 0.03;
}

.shape-dots {
    background-image: radial-gradient(circle, #701a75 1px, transparent 1px);
    background-size: 30px 30px;
    width: 300px;
    height: 300px;
    top: 30%;
    right: 10%;
    opacity: 0.06;
}

/* ============================================
   HERO GEOMETRIC SHAPES
   ============================================ */
.geo-hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-geo-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(251, 191, 36, 0.15);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-geo-2 {
    width: 200px;
    height: 200px;
    background: rgba(251, 191, 36, 0.08);
    border-radius: 30px;
    bottom: 15%;
    left: 5%;
    transform: rotate(30deg);
}

.shape-geo-3 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    top: 20%;
    left: 10%;
    transform: rotate(15deg);
}

.shape-geo-4 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(251, 191, 36, 0.1);
    bottom: 25%;
    right: 10%;
}

.shape-geo-5 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: 40%;
    right: 25%;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #701a75, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ============================================
   ABOUT SECTION GEOMETRICS
   ============================================ */
.about-geo {
    position: absolute;
    pointer-events: none;
}

.shape-geo-about-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(251, 191, 36, 0.12);
    border-radius: 50%;
    top: -50px;
    left: -100px;
}

.shape-geo-about-2 {
    width: 150px;
    height: 150px;
    background: rgba(251, 191, 36, 0.06);
    border-radius: 25px;
    bottom: 10%;
    right: 5%;
    transform: rotate(20deg);
}

.shape-geo-about-3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    top: 30%;
    right: 15%;
    transform: rotate(45deg);
}

/* ============================================
   INSURANCE SECTION GEOMETRICS
   ============================================ */
.insurance-geo {
    position: absolute;
    pointer-events: none;
}

.shape-geo-ins-1 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #701a75;
    top: -80px;
    right: -80px;
    opacity: 0.04;
}

.shape-geo-ins-2 {
    width: 120px;
    height: 120px;
    background: #f59e0b;
    bottom: -40px;
    left: 10%;
    opacity: 0.06;
    border-radius: 20px;
    transform: rotate(30deg);
}

/* ============================================
   CTA SECTION GEOMETRICS
   ============================================ */
.cta-geo {
    position: absolute;
    pointer-events: none;
}

.shape-geo-cta-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(112, 26, 117, 0.1);
    top: -100px;
    left: -100px;
}

.shape-geo-cta-2 {
    width: 180px;
    height: 180px;
    border-radius: 30px;
    background: rgba(112, 26, 117, 0.08);
    bottom: -50px;
    right: 5%;
    transform: rotate(25deg);
}

/* ============================================
   FOOTER GEOMETRICS
   ============================================ */
.footer-geo {
    position: absolute;
    pointer-events: none;
}

.shape-geo-footer-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.04);
    bottom: -200px;
    right: -100px;
}

/* ============================================
   SCROLL REVEAL (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s 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; }
}

/* ============================================
   FORM STYLES
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23701a75' stroke-width='2' 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 12px center;
    padding-right: 40px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@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;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-square-1 {
        width: 100px;
        height: 100px;
    }
}
