/* ===== Custom Properties ===== */
:root {
    --plum-50: #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #6b21a8;
    --plum-900: #581c87;
    --plum-950: #3b0764;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
}

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

body {
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.font-lora {
    font-family: 'Lora', serif;
}

.font-nunito {
    font-family: 'Nunito', sans-serif;
}

/* ===== Tailwind Custom Colors ===== */
@layer utilities {
    .bg-plum-50 { background-color: var(--plum-50); }
    .bg-plum-100 { background-color: var(--plum-100); }
    .bg-plum-200 { background-color: var(--plum-200); }
    .bg-plum-300 { background-color: var(--plum-300); }
    .bg-plum-400 { background-color: var(--plum-400); }
    .bg-plum-500 { background-color: var(--plum-500); }
    .bg-plum-600 { background-color: var(--plum-600); }
    .bg-plum-700 { background-color: var(--plum-700); }
    .bg-plum-800 { background-color: var(--plum-800); }
    .bg-plum-900 { background-color: var(--plum-900); }
    .bg-plum-950 { background-color: var(--plum-950); }
    .text-plum-700 { color: var(--plum-700); }
    .text-plum-800 { color: var(--plum-800); }
    .text-plum-900 { color: var(--plum-900); }
    .text-plum-950 { color: var(--plum-950); }
    .border-plum-200 { border-color: var(--plum-200); }
    .border-plum-500 { border-color: var(--plum-500); }
    .ring-plum-200 { --tw-ring-color: var(--plum-200); }
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #581c87 0%, #7e22ce 25%, #a855f7 50%, #d97706 75%, #fbbf24 100%);
    animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Decorative Circles ===== */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}

.deco-1 {
    width: 300px;
    height: 300px;
    background: #fbbf24;
    top: 10%;
    left: -5%;
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 200px;
    height: 200px;
    background: #e9d5ff;
    top: 60%;
    right: -3%;
    animation: float 6s ease-in-out infinite reverse;
}

.deco-3 {
    width: 150px;
    height: 150px;
    background: #fcd34d;
    bottom: 15%;
    left: 15%;
    animation: float 10s ease-in-out infinite;
}

.deco-4 {
    width: 100px;
    height: 100px;
    background: #f3e8ff;
    top: 20%;
    right: 15%;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

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

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

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(88, 28, 135, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    max-height: 0;
    transition: max-height 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

.mobile-link {
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #d97706;
    padding-left: 8px;
}

/* ===== Button Hover Effects ===== */
a.bg-amber-400:hover {
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.4);
}

/* ===== Image Hover ===== */
.rounded-2xl img,
.rounded-3xl img,
.group img {
    will-change: transform;
}

/* ===== Focus Styles ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

/* ===== Selection ===== */
::selection {
    background: #e9d5ff;
    color: #581c87;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}
