/* ===== Custom Styles for Annie Thomas MD ===== */

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

/* ===== Geometric Animations ===== */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 183, 96, 0.6) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 200, 184, 0.5) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 251, 245, 0.4) 0%, transparent 70%);
    top: 40%;
    right: 15%;
    animation: float 10s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 251, 245, 0.2);
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
    animation: spin 20s linear infinite;
}

.square-1 {
    width: 80px;
    height: 80px;
    background: rgba(255, 251, 245, 0.15);
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin 15s linear infinite reverse;
}

.ring-1 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 251, 245, 0.2);
    border-radius: 50%;
    top: 30%;
    left: 15%;
    animation: pulse-ring 4s ease-in-out infinite;
}

/* Dot pattern */
.dot-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

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

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

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), 
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* Hidden state for scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* For browsers that support prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
    .geo-shape,
    .dot-pattern,
    .animate-bounce {
        animation: none;
    }
}

/* ===== Navbar Styles ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 249, 242, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 1px 20px rgba(192, 90, 67, 0.08);
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* ===== Button & Link Focus States ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C05A43;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(192, 90, 67, 0.2);
    color: #5C271D;
}

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

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

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

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

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .geo-shape {
        opacity: 0.08;
    }
    
    .circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .circle-2 {
        width: 150px;
        height: 150px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .geo-shape,
    .dot-pattern,
    .animate-bounce {
        display: none;
    }
    
    #navbar {
        position: static;
        background: white !important;
    }
}
