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

body {
    overflow-x: hidden;
}

::selection {
    background: #c084fc;
    color: #3b0764;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #581c87 0%, #7c3aed 25%, #9333ea 50%, #6b21a8 75%, #3b0764 100%);
    position: relative;
}

/* ===== Decorative Blobs ===== */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #fbbf24;
    top: -100px;
    right: -100px;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #d8b4fe;
    bottom: -50px;
    left: -50px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #fde68a;
    top: 40%;
    right: 20%;
    animation: blobFloat 6s ease-in-out infinite;
}

.approach-blob.blob-1 {
    background: #c084fc;
}

.approach-blob.blob-2 {
    background: #fbbf24;
}

.cta-blob.blob-1 {
    background: #fbbf24;
}

.cta-blob.blob-2 {
    background: #c084fc;
}

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

/* ===== Floating Cards ===== */
.hero-floating-card {
    animation: cardFloat 4s ease-in-out infinite;
}

.card-float-1 {
    animation-delay: 0s;
}

.card-float-2 {
    animation-delay: 2s;
}

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

/* ===== Section Labels ===== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7c3aed;
    background: linear-gradient(135deg, #f3e8ff, #faf5ff);
    padding: 0.4em 1em;
    border-radius: 9999px;
    border: 1px solid #e9d5ff;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #1e1b4b;
    line-height: 1.2;
}

/* ===== Section Descriptions ===== */
.section-desc {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
}

/* ===== Hero Title ===== */
.hero-title {
    animation: heroFadeUp 0.8s ease-out both;
}

.hero-subtitle {
    animation: heroFadeUp 0.8s ease-out 0.15s both;
}

.hero-buttons {
    animation: heroFadeUp 0.8s ease-out 0.3s both;
}

.hero-stats {
    animation: heroFadeUp 0.8s ease-out 0.45s both;
}

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

/* ===== Hero Badge ===== */
.hero-badge {
    animation: heroFadeUp 0.8s ease-out both;
}

/* ===== Hero Image ===== */
.hero-image-wrapper {
    animation: heroFadeUp 1s ease-out 0.4s both;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #fbbf24;
    color: #1e1b4b;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
    background: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===== CTA Buttons ===== */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #fbbf24;
    color: #1e1b4b;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.btn-cta-primary:hover {
    background: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    animation: scrollBounce 2s ease-in-out infinite;
    text-decoration: none;
}

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

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

.service-icon {
    transition: all 0.5s ease;
}

.service-title {
    transition: all 0.5s ease;
}

.service-desc {
    transition: all 0.5s ease;
}

/* ===== Nav ===== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(124, 58, 237, 0.08);
}

.nav-scrolled .text-plum-900 {
    color: #1e1b4b !important;
}

.nav-link {
    position: relative;
}

.nav-link:hover {
    color: #7c3aed !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    animation: mobileMenuSlide 0.3s ease-out;
}

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

.mobile-link {
    transition: all 0.2s ease;
}

/* ===== Form Elements ===== */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e1b4b;
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e9d5ff;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #1e1b4b;
    background: #faf5ff;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
}

.form-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: white;
}

.form-input::placeholder {
    color: #a78bfa;
}

.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-btn:hover {
    background: linear-gradient(135deg, #6b21a8, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.form-btn .btn-loading {
    display: none;
    animation: spin 1s linear infinite;
}

.form-btn.loading .btn-loading {
    display: block;
}

.form-btn.loading .btn-icon {
    display: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Contact Info Items ===== */
.contact-info-item {
    transition: all 0.2s ease;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: all 0.3s ease;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-image-wrapper {
        display: none;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stats .text-3xl {
        font-size: 1.5rem;
    }

    .about-image-accent {
        display: none !important;
    }

    .about-experience-badge {
        display: none !important;
    }

    .approach-card {
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-image-wrapper {
        display: block;
    }
}

/* ===== 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
