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

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

body {
    overflow-x: hidden;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 51, 64, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

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

#mobileMenu.open {
    transform: translateX(0);
}

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.service-card {
    position: relative;
}

.service-card:hover::before {
    opacity: 1;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

select:focus {
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f5f5f5;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #14b8a6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 100%;
}

/* Mobile menu link color transition */
.mobile-link {
    transition: color 0.3s ease;
}

/* Subtle gradient border for cards */
.service-card:hover {
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(20, 184, 166, 0.05);
}

/* Testimonial card hover */
#testimonials .bg-\\[#141b24\\]:hover {
    border-color: rgba(20, 184, 166, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}
