/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5ff; }
::-webkit-scrollbar-thumb { background: #d8b4fe; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c084fc; }

/* ── Navbar ── */
.navbar {
    background: rgba(250, 245, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(216, 180, 254, 0.2);
    transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(123, 45, 139, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B2D8B, #D97706);
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
.mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-btn.active #menuIcon {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #7B2D8B 0%, #581c87 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 45, 139, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 45, 139, 0.4);
    background: linear-gradient(135deg, #8b3a9a 0%, #6b21a0 100%);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    color: #7B2D8B;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid rgba(123, 45, 139, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(123, 45, 139, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 45, 139, 0.1);
}

/* ── Hero ── */
.hero { position: relative; }
.hero-card-main {
    box-shadow: 0 25px 60px rgba(123, 45, 139, 0.2), 0 8px 20px rgba(0,0,0,0.1);
}
.hero-float {
    position: absolute;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}
.stat-card-1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}
.stat-card-2 {
    top: 55%;
    left: -20px;
    animation-delay: 2s;
}
.stat-card-3 {
    bottom: 5%;
    right: -20px;
    animation-delay: 4s;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(216, 180, 254, 0.3);
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── Service Cards ── */
.service-card { cursor: default; }

/* ── Gallery ── */
.gallery-item {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(123, 45, 139, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.gallery-item:hover::after { opacity: 1; }

/* ── Contact Form ── */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(216, 180, 254, 0.4);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: #3b0764;
    transition: all 0.2s ease;
    outline: none;
}
.input-field::placeholder { color: #c084fc; }
.input-field:focus {
    border-color: #7B2D8B;
    box-shadow: 0 0 0 3px rgba(123, 45, 139, 0.1);
}
.input-field:hover { border-color: #c084fc; }

/* ── Success Message ── */
.success-message {
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
/* Default state for reduced motion / no-JS */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Progressive enhancement: hide initially via JS */
.no-js .scroll-reveal { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1023px) {
    .hero-float { display: none; }
}
@media (max-width: 640px) {
    .font-serif { font-size: 2.25rem; }
    .hero { min-height: auto; padding: 6rem 0 4rem; }
}
