/* ===== Base & Typography ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(140, 62, 147, 0.15);
    color: #4e2252;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #2b112c 0%, #4e2252 25%, #732f78 50%, #8c3e93 75%, #a655b0 100%);
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(140, 62, 147, 0.08);
}

#navbar.scrolled .nav-link {
    color: #4e2252;
}

#navbar.scrolled a {
    color: #4e2252;
}

#navbar.scrolled .menu-line {
    background: #4e2252;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fcd34d;
}

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

.mobile-link {
    color: #4e2252;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.mobile-link:hover {
    color: #8c3e93;
}

/* ===== Section Labels ===== */
.section-label {
    letter-spacing: 0.2em;
}

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(78, 34, 82, 0.08);
}

/* ===== Scroll Reveal ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ===== Hero Animations ===== */
.hero-subtitle {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-headline {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.hero-tagline {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

.hero-ctas {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

.hero-scroll {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
}

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

/* ===== CTA Buttons ===== */
.cta-btn-primary {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.3);
}

.cta-btn-secondary {
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-btn-secondary:hover {
    transform: translateY(-2px);
}

/* ===== Custom Select ===== */
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='%238c3e93' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== Smooth Image Loading ===== */
img {
    opacity: 1;
}

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

/* ===== Mobile Menu Animation ===== */
.menu-line {
    background: white;
}

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

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.75rem;
    }
}
