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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #A8E6CF;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7DD4B5;
}

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

/* Mobile menu */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}
#mobile-menu.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Hero animations */
.hero-title {
    animation: slideUp 0.8s ease forwards;
}
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
}
.hero-desc {
    animation: slideUp 0.8s ease 0.2s forwards;
}
.hero-cta {
    animation: slideUp 0.8s ease 0.3s forwards;
}
.hero-image {
    animation: scaleIn 1s ease 0.4s forwards;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating card animation */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #A8E6CF, #52C19A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* Section labels */
.section-label {
    letter-spacing: 0.3em;
}

/* Section headings */
.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Section descriptions */
.section-desc {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Reason cards */
.reason-card {
    position: relative;
}
.reason-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #A8E6CF;
    transition: width 0.3s ease;
}
.reason-card:hover::after {
    width: 60px;
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.5s ease;
}

/* About image */
.about-image {
    position: relative;
}
.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.3), transparent);
}

/* Contact form */
#contact-form input,
#contact-form select,
#contact-form textarea {
    transition: all 0.3s ease;
}
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(168, 230, 207, 0.2);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .section-heading {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }
}
