/* Custom styles for Hoyt Eye Care Center */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #7B2D8B;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6a2578;
}

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

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

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-shapes .shape-circle-1 {
    animation: float 8s ease-in-out infinite;
}
.hero-shapes .shape-circle-2 {
    animation: float-reverse 10s ease-in-out infinite;
}
.hero-shapes .shape-circle-3 {
    animation: float 12s ease-in-out infinite;
}
.hero-shapes .shape-square {
    animation: float-reverse 9s ease-in-out infinite;
}

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

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7B2D8B, #F5A623);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* Frame cards */
.frame-card {
    box-shadow: 0 4px 20px rgba(123, 45, 139, 0.1);
}
.frame-card:hover {
    box-shadow: 0 12px 40px rgba(123, 45, 139, 0.2);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.4s ease, background 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Navbar */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(123, 45, 139, 0.1);
}

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

/* Mobile menu */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #F5A623;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 60%;
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F5A623;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-shapes .shape-circle-1 {
        width: 60px;
        height: 60px;
    }
    .hero-shapes .shape-circle-2 {
        width: 50px;
        height: 50px;
    }
    .hero-shapes .shape-circle-3 {
        width: 40px;
        height: 40px;
    }
    .hero-shapes .shape-triangle {
        border-left-width: 30px !important;
        border-right-width: 30px !important;
        border-bottom-width: 52px !important;
    }
}
