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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #e8d4ee;
    color: #5a306e;
}

/* === Navbar === */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B4397, #F5A623);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* === Hero Blobs === */
@media (prefers-reduced-motion: no-preference) {
    .hero-blob {
        animation: blobFloat 8s ease-in-out infinite;
    }

    .blob-1 {
        animation-delay: 0s;
    }

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

    .blob-3 {
        animation-delay: -4s;
        animation-duration: 9s;
    }

    .blob-4 {
        animation-delay: -1s;
        animation-duration: 7s;
    }

    @keyframes blobFloat {
        0%, 100% {
            transform: translate(0, 0) scale(1);
        }
        25% {
            transform: translate(20px, -30px) scale(1.05);
        }
        50% {
            transform: translate(-15px, 20px) scale(0.95);
        }
        75% {
            transform: translate(10px, 15px) scale(1.02);
        }
    }
}

/* === Floating Elements === */
@media (prefers-reduced-motion: no-preference) {
    .floating-element {
        animation: floatElement 6s ease-in-out infinite;
    }

    .float-1 { animation-delay: 0s; }
    .float-2 { animation-delay: -1.5s; animation-duration: 7s; }
    .float-3 { animation-delay: -3s; animation-duration: 5.5s; }
    .float-4 { animation-delay: -2s; animation-duration: 6.5s; }

    @keyframes floatElement {
        0%, 100% {
            transform: translateY(0) rotate(0deg);
        }
        50% {
            transform: translateY(-20px) rotate(3deg);
        }
    }
}

/* === Mobile Menu === */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    padding-left: 12px;
    color: #7B4397;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #7B4397;
    transition: width 0.2s ease;
    border-radius: 1px;
}

.mobile-nav-link:hover::before {
    width: 8px;
}

/* === Card Hover Effects === */
.scroll-reveal.group {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.scroll-reveal.group:hover {
    transform: translateY(-6px);
}

/* === Form Focus Styles === */
input:focus,
textarea:focus {
    background-color: white;
}

/* === Button Ripple === */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* === Smooth anchor offset for fixed nav === */
section[id] {
    scroll-margin-top: 80px;
}

/* === Responsive tweaks === */
@media (max-width: 640px) {
    .scroll-reveal.group:hover {
        transform: none;
    }

    #about img {
        height: 350px !important;
    }
}

/* === Print styles === */
@media print {
    nav, #contact-form, .hero-blob, .floating-element {
        display: none;
    }

    body {
        color: #000;
        background: white;
    }
}
