/* Base styles & resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar */
.nav-text {
    transition: color 0.3s;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5A623;
    transition: width 0.3s;
    border-radius: 1px;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

nav.scrolled .nav-text {
    color: #7B2D8E;
}

nav.scrolled .nav-link {
    color: #7B2D8E;
}

nav.scrolled #mobile-menu-btn {
    background: #F5EEF8;
}

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

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

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.animate-float-delayed2 {
    animation: float-delayed2 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7B2D8E, #F5A623);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 3px 3px 0 0;
}

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

/* Area cards */
.area-card {
    position: relative;
    overflow: hidden;
}

.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 21px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.area-card:hover::after {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: #F5EEF8;
    line-height: 1;
    z-index: 0;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s 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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Mobile menu */
.mobile-link {
    border-bottom: 1px solid #F5EEF8;
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-link:hover {
    color: #F5A623;
    padding-left: 8px;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #BA7DC8 !important;
    box-shadow: 0 0 0 4px rgba(186, 125, 200, 0.15) !important;
}

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

::-webkit-scrollbar-track {
    background: #F5EEF8;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    .floating-card:nth-child(3) {
        display: none;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    .testimonial-card::before {
        font-size: 50px;
        top: 12px;
        right: 16px;
    }
}

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

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
