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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #d6bfdc;
    color: #2a1629;
}

/* ===== Custom Properties ===== */
:root {
    --plum-600: #6b3a6e;
    --plum-700: #562d58;
    --amber-400: #F5A623;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Navbar ===== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(107, 58, 110, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #6b3a6e;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--amber-400);
    border-radius: 1px;
    transition: all 0.3s var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    animation: slideDown 0.3s var(--transition-smooth);
}

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

/* ===== Hero ===== */
.hero-section {
    background: linear-gradient(135deg, #f5f0f7 0%, #ebe0f0 50%, #fff8e1 100%);
    position: relative;
}

.hero-badge {
    animation: fadeInUp 0.6s var(--transition-smooth) both;
}

.hero-section h1 {
    animation: fadeInUp 0.6s var(--transition-smooth) 0.1s both;
}

.hero-section p {
    animation: fadeInUp 0.6s var(--transition-smooth) 0.2s both;
}

.hero-section .flex.flex-wrap {
    animation: fadeInUp 0.6s var(--transition-smooth) 0.3s both;
}

.hero-section .mt-10 {
    animation: fadeInUp 0.6s var(--transition-smooth) 0.4s both;
}

.hero-float-card {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--plum-600);
    color: white;
    font-weight: 600;
    border-radius: 1rem;
    padding: 1rem 2rem;
    transition: all 0.3s var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--plum-700);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #6b3a6e;
    font-weight: 600;
    border-radius: 1rem;
    padding: 1rem 2rem;
    transition: all 0.3s var(--transition-smooth);
    border: 1.5px solid #d6bfdc;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #f5f0f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 58, 110, 0.12);
}

/* ===== Tags ===== */
.tag-plum {
    display: inline-block;
    background: #ebe0f0;
    color: #6b3a6e;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag-amber {
    display: inline-block;
    background: rgba(245, 166, 35, 0.2);
    color: #e6951a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    border: 1.5px solid transparent;
    transition: border-color 0.3s var(--transition-smooth);
    pointer-events: none;
}

/* ===== Why Us Cards ===== */
.why-card {
    position: relative;
}

.why-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    transition: border-color 0.3s var(--transition-smooth);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 6rem;
    color: #ebe0f0;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

/* ===== Input Fields ===== */
.input-field {
    border: 1.5px solid #ebe0f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #2a1629;
    background: #f5f0f7;
    transition: all 0.3s var(--transition-smooth);
    outline: none;
    font-family: inherit;
    width: 100%;
}

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

.input-field:focus {
    border-color: #6b3a6e;
    background: white;
    box-shadow: 0 0 0 4px rgba(107, 58, 110, 0.1);
}

.input-field::placeholder {
    color: #ba94c0;
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s var(--transition-smooth);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 1rem;
    }

    .hero-float-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }

    .hero-img-main img {
        height: 320px;
    }
}

@media (max-width: 640px) {
    .font-serif.text-5xl {
        font-size: 2.75rem;
    }

    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}
