/* Custom styles for Geneva's Design */

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

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Hero animations */
.hero-badge {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

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

@keyframes slowZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1.15);
    }
}

.animate-slow-zoom {
    animation: slowZoom 20s ease-in-out infinite alternate;
}

/* Section animations */
.section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.1s;
}

.section-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.2s;
}

.section-label.visible,
.section-title.visible,
.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card animations */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery item animations */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease-out;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* Testimonial card animations */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease-out;
}

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

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

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

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #f1f5f9;
}
