*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #080e1a;
    color: #e2e8f0;
}

.font-['Playfair_Display',serif] {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-['Inter',sans-serif] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

#mobile-menu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

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

#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) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero animation */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

#hero h1 {
    animation: slideUp 0.8s ease 0.15s forwards;
    opacity: 0;
    transform: translateY(30px);
}

#hero p {
    animation: slideUp 0.8s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

#hero .flex-wrap {
    animation: slideUp 0.8s ease 0.45s forwards;
    opacity: 0;
    transform: translateY(30px);
}

#hero .mt-12 {
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* Service card hover */
.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card:hover .w-14 {
    background-color: rgba(20, 184, 166, 0.2);
}

/* Testimonial card hover */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(13, 148, 136, 0.4);
    transform: translateY(-2px);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }

/* Header background */
.header-scrolled {
    background-color: rgba(8, 14, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

/* Image hover zoom */
.overflow-hidden img {
    transition: transform 0.7s ease;
}

.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 136, 0.1);
}

/* Selection color */
::selection {
    background-color: rgba(20, 184, 136, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #080e1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .service-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    #hero .flex-wrap {
        flex-direction: column;
    }

    #hero .flex-wrap a {
        width: 100%;
        text-align: center;
    }

    .mt-12 {
        flex-direction: column;
        gap: 1.5rem !important;
    }

    .mt-12 > div:first-child {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}
