/* ===== Custom Styles for Ayesha Pharmacy Inc. ===== */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Geometric Background Shapes ===== */
.geometric-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
}

.shape-circle-1 {
    width: 420px;
    height: 420px;
    background: #047857;
    border-radius: 50%;
    top: -100px;
    right: -80px;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-square-1 {
    width: 180px;
    height: 180px;
    background: #059669;
    border-radius: 32px;
    bottom: 15%;
    left: -40px;
    transform: rotate(15deg);
    animation: float-medium 6s ease-in-out infinite;
}

.shape-circle-2 {
    width: 120px;
    height: 120px;
    background: #10b981;
    border-radius: 50%;
    top: 40%;
    right: 38%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #047857;
    top: 20%;
    left: 5%;
    opacity: 0.06;
    transform: rotate(-20deg);
    animation: float-medium 7s ease-in-out infinite;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #047857 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 60%;
    right: 5%;
    opacity: 0.1;
}

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

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotation, 0deg)); }
}

.shape-square-1 {
    --rotation: 15deg;
}

.shape-triangle-1 {
    --rotation: -20deg;
}

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

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

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

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

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Mobile Menu ===== */
.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #047857;
    padding-left: 8px;
}

/* ===== Form Focus Styles ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* ===== Button Ripple Effect ===== */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-square-1 {
        width: 100px;
        height: 100px;
    }
    
    .shape-circle-2 {
        width: 70px;
        height: 70px;
    }
    
    .shape-triangle-1 {
        border-left-width: 50px;
        border-right-width: 50px;
        border-bottom-width: 87px;
    }
}

/* ===== Selection Color ===== */
::selection {
    background: #047857;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}
