/* ============================================
   Metropolitan Ankle & Foot Center
   Custom Styles
============================================ */

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: #d1fae5;
    color: #064e3b;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    border-radius: 50%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 80px;
    height: 80px;
    background: #10b981;
    opacity: 0.06;
    top: 25%;
    right: 5%;
    border-radius: 16px;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(16, 185, 129, 0.08);
    top: 40%;
    left: 3%;
    animation: float-slow 7s ease-in-out infinite;
}

.shape-dot-cluster {
    top: 60%;
    right: 8%;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.shape-dot-cluster::before,
.shape-dot-cluster::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #fbbf24;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-dot-cluster::before {
    animation: pulse-dot 2s ease-in-out infinite;
}

.shape-dot-cluster::after {
    width: 6px;
    height: 6px;
    background: #10b981;
    animation: pulse-dot 2s ease-in-out infinite 0.5s;
}

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

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

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* ---------- 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, #10b981, #fbbf24);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- Back to Top ---------- */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

#back-to-top.hide {
    opacity: 0;
    pointer-events: none;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

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

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

/* ---------- Form ---------- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' 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 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-square-1 {
        width: 40px;
        height: 40px;
    }
}
