/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5fb;
}
::-webkit-scrollbar-thumb {
    background: #d4aed7;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b87cc0;
}

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

.navbar-scrolled .nav-logo-text {
    color: #5B2C6F;
}
.navbar-scrolled .nav-logo-sub {
    color: #9b59b6;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 1;
}

.menu-open .mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.menu-open .nav-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-open .nav-menu-btn span:nth-child(2) {
    opacity: 0;
}
.menu-open .nav-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ===== Service Cards ===== */
.service-card {
    transition: all 0.4s ease;
}
.service-card:hover {
    background: #faf5fb;
    transform: translateY(-2px);
}

/* ===== Community Cards ===== */
.community-card {
    transition: all 0.4s ease;
}
.community-card:hover {
    box-shadow: 0 20px 60px rgba(91, 44, 111, 0.1);
}

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

/* ===== Select Styling ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b59b6' 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 0 center;
    padding-right: 2rem;
}

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Print ===== */
@media print {
    nav, .cta-banner, #contact {
        display: none;
    }
}
