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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', system-ui, sans-serif;
    color: #4a044e;
    background: #fdf4ff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* === Custom Properties === */
:root {
    --plum-950: #2d0a31;
    --plum-900: #4a044e;
    --plum-800: #6b0f6e;
    --plum-700: #831843;
    --plum-600: #a21caf;
    --plum-500: #c026d3;
    --plum-100: #fae8ff;
    --plum-50: #fdf4ff;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-50: #fffbeb;
}

/* === Navigation === */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(253, 244, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(74, 4, 78, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-fixed.scrolled .nav-logo-text {
    color: #4a044e;
}

.nav-link {
    position: relative;
}

.nav-fixed:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.nav-fixed:not(.scrolled) .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.nav-fixed.scrolled .nav-link {
    color: #4a044e;
}

.nav-fixed.scrolled .nav-link:hover {
    background: #fae8ff;
}

/* Mobile menu */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.open {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    display: block;
}

.nav-fixed:not(.scrolled) .mobile-nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.nav-fixed:not(.scrolled) .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-fixed.scrolled .mobile-nav-link {
    color: #4a044e;
}

/* === Hero === */
.hero-section {
    position: relative;
}

.hero-blob {
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    animation-delay: -3s;
    animation-duration: 10s;
}

.blob-3 {
    animation-delay: -5s;
    animation-duration: 12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* === Buttons === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

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

/* === Cards === */
.card-service {
    perspective: 1000px;
}

/* === Form Inputs === */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #f0abfc;
    border-radius: 0.75rem;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 1rem;
    color: #4a044e;
    background: #fdf4ff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-field::placeholder {
    color: #c026d3;
    opacity: 0.4;
}

.input-field:focus {
    border-color: #a21caf;
    box-shadow: 0 0 0 4px rgba(162, 28, 175, 0.1);
    background: #fff;
}

.input-field:hover {
    border-color: #e879f9;
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a21caf' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.649l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #a21caf, #d946ef);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #831843, #a21caf);
}

/* === Selection === */
::selection {
    background: #f0abfc;
    color: #4a044e;
}

/* === Focus visible === */
:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* === Print === */
@media print {
    .nav-fixed, .hero-blob, .hero-pattern, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
