/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: rgba(245, 158, 11, 0.2);
    color: #3b0764;
}

/* ===== Hero Animations ===== */
.hero-tag {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-sub {
    animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-btn {
    animation: slideUp 0.8s ease-out 0.8s both;
}

.hero-image-wrapper {
    animation: fadeIn 1s ease-out 0.5s both;
}

.hero-float {
    animation: floatIn 0.8s ease-out 1s both;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ===== Service Cards ===== */
.service-card {
    transition: background-color 0.5s ease;
}

.service-icon {
    color: #F59E0B;
    transition: color 0.5s ease;
}

.service-card:hover .service-icon {
    color: #F59E0B;
}

/* ===== Gallery ===== */
.gallery-img-wrapper {
    transition: transform 0.3s ease;
}

.gallery-img-wrapper:hover img {
    transform: scale(1.05);
}

/* ===== Section Reveals ===== */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background-color: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08);
}

#navbar.scrolled .menu-line {
    background-color: #3b0764;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

    html {
        scroll-behavior: auto;
    }

    .hero-tag,
    .hero-title,
    .hero-sub,
    .hero-btn,
    .hero-image-wrapper,
    .hero-float {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .gallery-img-wrapper:hover img {
        transform: none;
    }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 3px;
}

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

/* ===== Select Dropdown Fix ===== */
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='%239333ea' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
