/* ============================================
   Kippax J B DMD — Custom Styles
   Terracotta + Sand | Vibrant Geometric
   ============================================ */

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

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ---- Geometric Background Shapes (subtle, behind content) ---- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

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

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: #ffd054;
    border-radius: 50%;
    bottom: 20%;
    left: -150px;
}

.geo-rect-1 {
    width: 300px;
    height: 300px;
    background: #e0572e;
    top: 50%;
    right: -100px;
    transform: rotate(45deg);
    border-radius: 40px;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    background: #ffd054;
    border-radius: 50%;
    top: 60%;
    left: 10%;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 150px 260px 150px;
    border-color: transparent transparent #e0572e transparent;
    top: 75%;
    right: 5%;
    opacity: 0.04;
}

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

.hero-geo-circle-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -150px;
    right: -100px;
}

.hero-geo-circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 208, 84, 0.12);
    border-radius: 50%;
    bottom: -80px;
    left: 10%;
}

.hero-geo-square {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.06);
    top: 25%;
    right: 5%;
    transform: rotate(30deg);
    border-radius: 20px;
}

.hero-geo-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(rgba(255,255,255,0.3) 2px, transparent 2px);
    background-size: 12px 12px;
    top: 40%;
    right: 2%;
    opacity: 0.6;
}

/* ---- About Section Geometric Shapes ---- */
.about-geo {
    position: absolute;
    pointer-events: none;
}

.about-geo-circle-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.about-geo-circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(255, 208, 84, 0.1);
    border-radius: 50%;
    bottom: -50px;
    right: 10%;
}

.about-geo-square {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    top: 30%;
    right: 3%;
    transform: rotate(25deg);
    border-radius: 16px;
}

/* ---- Patient Section Geometric Shapes ---- */
.patient-geo {
    position: absolute;
    pointer-events: none;
}

.patient-geo-circle-1 {
    width: 350px;
    height: 350px;
    background: #e0572e;
    border-radius: 50%;
    top: -100px;
    right: -80px;
    opacity: 0.04;
}

.patient-geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #ffd054;
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    opacity: 0.06;
}

/* ---- Contact Section Geometric Shapes ---- */
.contact-geo {
    position: absolute;
    pointer-events: none;
}

.contact-geo-circle-1 {
    width: 300px;
    height: 300px;
    background: #e0572e;
    border-radius: 50%;
    bottom: -80px;
    right: 5%;
    opacity: 0.04;
}

.contact-geo-circle-2 {
    width: 180px;
    height: 180px;
    background: #ffd054;
    border-radius: 50%;
    top: 10%;
    left: 3%;
    opacity: 0.05;
}

/* ---- Footer Geometric Shapes ---- */
.footer-geo {
    position: absolute;
    pointer-events: none;
}

.footer-geo-circle-1 {
    width: 400px;
    height: 400px;
    background: #e0572e;
    border-radius: 50%;
    top: -200px;
    left: -100px;
    opacity: 0.05;
}

.footer-geo-circle-2 {
    width: 250px;
    height: 250px;
    background: #ffd054;
    border-radius: 50%;
    bottom: -80px;
    right: 5%;
    opacity: 0.04;
}

/* ---- Navigation ---- */
.nav-scrolled {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(74, 66, 56, 0.08);
}

.nav-link {
    position: relative;
}

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

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

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

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

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

/* ---- Button Hover Effects ---- */
a, button {
    transition: all 0.2s ease;
}

/* ---- Selection Color ---- */
::selection {
    background: #e0572e;
    color: white;
}

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

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

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

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

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e0572e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .geo-circle-1,
    .geo-circle-2,
    .geo-rect-1,
    .geo-circle-3,
    .geo-triangle {
        display: none;
    }
}
