/* ============================================
   Ft McCoy Pharmacy — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* --- Fixed Background Geometric Shapes --- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

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

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

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #0d9488;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #0d9488;
    top: 60%;
    left: 3%;
    transform: rotate(-15deg);
}

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

.hero-geo-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(94, 234, 212, 0.1);
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.hero-geo-2 {
    width: 150px;
    height: 150px;
    background: rgba(94, 234, 212, 0.08);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-geo-3 {
    width: 80px;
    height: 80px;
    background: rgba(94, 234, 212, 0.06);
    top: 30%;
    right: 35%;
    transform: rotate(45deg);
    animation: float 10s ease-in-out infinite;
}

.hero-geo-4 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(94, 234, 212, 0.05);
    bottom: 30%;
    right: 10%;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* --- Navbar --- */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    color: #0d9488;
    padding-left: 8px;
}

/* --- Button hover effects --- */
a {
    text-decoration: none;
}

/* --- 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, #0d9488, #2dd4bf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* --- Form Styles --- */
input:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-geo-1 {
        width: 200px;
        height: 200px;
    }

    .hero-geo-2 {
        width: 100px;
        height: 100px;
    }

    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }

    .geo-square-1 {
        width: 100px;
        height: 100px;
    }

    .geo-triangle-1 {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 100px;
    }
}
