/* ============================================
   Anthony V. Rocha, MD — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #d4a843;
    color: #0f1c2e;
}

/* ---- Geometric Background ---- */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.03;
    transition: opacity 0.5s ease;
}

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #1e3a5f;
}

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

.geo-square-1 {
    top: 50%;
    left: 40%;
    width: 200px;
    height: 200px;
    background: #1e3a5f;
    transform: rotate(45deg);
}

.geo-triangle {
    top: 30%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #d4a843;
    opacity: 0.02;
}

.geo-dots {
    bottom: 10%;
    right: 15%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #1e3a5f 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.06;
}

/* ---- Hero ---- */
#hero {
    position: relative;
}

.hero-img {
    will-change: transform;
    transition: transform 0.3s ease;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 28, 46, 0.88) 0%,
        rgba(30, 58, 95, 0.82) 50%,
        rgba(15, 28, 46, 0.75) 100%
    );
}

/* ---- Buttons ---- */
.btn-primary,
.btn-secondary,
.btn-gold {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary::after,
.btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: opacity 0.2s ease;
}

.btn-primary:hover::after,
.btn-gold:hover::after {
    opacity: 1;
}

/* ---- Navbar ---- */
.nav-fixed {
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 58, 95, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a843;
    transition: width 0.3s ease;
}

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

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

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d9e2ec;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(8px) translateX(-50%);
    }
    60% {
        transform: translateY(4px) translateX(-50%);
    }
}

/* ---- Service Cards ---- */
.service-card {
    perspective: 1000px;
}

.service-card > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-state="hidden"] {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal[data-state="visible"] {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* ---- Print ---- */
@media print {
    .geometric-bg,
    .scroll-indicator,
    .geo-shape {
        display: none;
    }
    
    .nav-fixed {
        position: static;
    }
}
