@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Quicksand:wght@300;400;500;600;700&family=Satisfy&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #4a2040;
}

/* ===== CUSTOM CURSOR ===== */
@media (hover: hover) and (pointer: fine) {
    * { cursor: none !important; }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background: #ff6b9d;
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 99999;
        will-change: transform;
    }

    .cursor-heart {
        width: 30px;
        height: 30px;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 99998;
        transition: transform 0.15s ease-out;
        opacity: 0.6;
        will-change: transform;
    }

    .cursor-heart::before,
    .cursor-heart::after {
        content: '';
        position: absolute;
        width: 15px;
        height: 24px;
        background: #ff6b9d;
        border-radius: 15px 15px 0 0;
    }

    .cursor-heart::before {
        left: 15px;
        transform: rotate(-45deg);
        transform-origin: 0 100%;
    }

    .cursor-heart::after {
        left: 0;
        transform: rotate(45deg);
        transform-origin: 100% 100%;
    }
}

/* ===== PAGE TRANSITION ===== */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.page-transition .petal {
    position: absolute;
    width: 100%;
    height: 25%;
    background: #ff6b9d;
    transform: scaleY(0);
}

.page-transition .petal:nth-child(1) { top: 0; transform-origin: top; }
.page-transition .petal:nth-child(2) { top: 25%; transform-origin: bottom; }
.page-transition .petal:nth-child(3) { top: 50%; transform-origin: top; }
.page-transition .petal:nth-child(4) { top: 75%; transform-origin: bottom; }

/* ===== COMMON BUTTON ===== */
.btn-magic {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ff6b9d 0%, #c9a0dc 50%, #ff6b9d 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    animation: shimmerBtn 3s ease infinite;
}

.btn-magic:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6);
}

.btn-magic:active {
    transform: scale(0.97);
}

.btn-magic::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6b9d, #ffd700, #c9a0dc, #ff6b9d);
    background-size: 300% 300%;
    z-index: -1;
    animation: shimmerBorder 4s ease infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-magic:hover::after {
    opacity: 1;
}

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

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

/* ===== FLOATING HEARTS ===== */
.hearts-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hearts-bg .h {
    position: absolute;
    bottom: -60px;
    opacity: 0;
    animation: riseHeart var(--d, 8s) var(--delay, 0s) infinite ease-in;
    font-size: var(--size, 24px);
}

@keyframes riseHeart {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.5);
    }
    10% { opacity: 0.7; }
    90% { opacity: 0.3; }
    100% {
        opacity: 0;
        transform: translateY(-110vh) translateX(var(--drift, 30px)) rotate(var(--rot, 360deg)) scale(1);
    }
}

/* ===== SPARKLE CANVAS ===== */
.sparkle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    color: #ff6b9d;
    text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: 'Satisfy', cursive;
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #c9a0dc;
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff5f7; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b9d, #c9a0dc);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #ff6b9d; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn-magic {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title { margin-bottom: 0.5rem; }
    .section-subtitle { margin-bottom: 2rem; }
}
