/* --- CSS Reset and Variables --- */
:root {
    --primary: #DD73EE;
    /* Brand Pink/Purple */
    --primary-light: #F2A9F9;
    --primary-dark: #C652D8;
    --secondary: #FFF0F5;
    /* Lavender blush, soft background */
    --background: #FEFEFE;
    /* Brand White */
    --text-main: #333333;
    --text-light: #666666;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(221, 115, 238, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--heading-font);
    color: var(--text-main);
}

.title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle,
.section-subtitle {
    font-family: var(--body-font);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.description,
.section-text,
.section-description {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.center {
    text-align: center;
}

.glass {
    background: rgba(254, 254, 254, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(254, 254, 254, 0.5);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.glass-dark {
    background: linear-gradient(135deg, #f8e9ff 0%, #d79bff 100%);
    color: white;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 6px 15px rgba(221, 115, 238, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(221, 115, 238, 0.4);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* --- Header & Nav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 8rem;
    /* header offset */
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeUp 1s ease-out 0.3s forwards;
    will-change: transform, opacity;
}

.hero-content .subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpStagger 0.8s ease-out 0.5s forwards;
}

.hero-content .title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpStagger 0.8s ease-out 0.7s forwards;
}

.hero-content .description {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpStagger 0.8s ease-out 0.9s forwards;
}

.hero-content .hero-btns {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpStagger 0.8s ease-out 1.1s forwards;
}

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

@keyframes fadeUpStagger {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    animation: imageZoomIn 1s ease-out 0.6s forwards;
    will-change: transform, opacity;
}

@keyframes imageZoomIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    padding: 1rem;
    transform: rotate(2deg);
    transition: var(--transition-smooth);
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(221, 115, 238, 0.2);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-md);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--background);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
    opacity: 0;
}

.badge-1 {
    animation: float 4s ease-in-out infinite, badgeFadeIn 0.8s ease-out 1.2s forwards;
}

.badge-2 {
    animation: float 4s ease-in-out infinite, badgeFadeIn 0.8s ease-out 1.4s forwards;
    animation-delay: 2s, 1.4s;
}

@keyframes badgeFadeIn {
    to {
        opacity: 1;
    }
}

.floating-badge i {
    color: var(--primary);
    font-size: 1.25rem;
}

.badge-1 {
    top: 10%;
    left: -10%;
}

.badge-2 {
    bottom: 15%;
    right: -5%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-shape svg {
    display: block;
    width: 100%;
    height: 150px;
}

/* --- About Section --- */
.about {
    padding: 6rem 0;
    background-color: var(--background);
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Scroll animations for about section */
.about-images,
.about-content {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.about-images.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-content.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.about-content .section-subtitle,
.about-content .section-title,
.about-content .section-text {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.about-content.animate-in .section-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.about-content.animate-in .section-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.about-content.animate-in .section-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.about-images {
    position: relative;
    height: 500px;
}

.about-img-1,
.about-img-2 {
    position: absolute;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-img-1 {
    width: 70%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.about-img-2 {
    width: 60%;
    height: 70%;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 10px solid var(--background);
}

.about-img-1:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px rgba(221, 115, 238, 0.2);
}

.about-img-2:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px rgba(221, 115, 238, 0.2);
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    font-size: 1.125rem;
}

.about-features i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* --- Services Section --- */
.services {
    padding: 6rem 0;
    background-color: var(--secondary);
}

/* Section header animations */
.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.section-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-header .section-subtitle {
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.section-header.animate-in .section-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.section-header .section-title {
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.section-header.animate-in .section-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.section-header .section-description {
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.section-header.animate-in .section-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 240px));
    gap: 1.5rem;
    margin-top: 4rem;
    justify-content: center;
}

.service-card {
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: rgba(254, 254, 254, 0.95);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    border: 1px solid rgba(221, 115, 238, 0.08);
    box-shadow: 0 8px 16px rgba(221, 115, 238, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
    animation-play-state: paused;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(221, 115, 238, 0.2);
    box-shadow: 0 20px 40px rgba(221, 115, 238, 0.18), 0 8px 16px rgba(0, 0, 0, 0.08);
    background-color: rgba(254, 254, 254, 1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary) 0%, #FFF5FA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(221, 115, 238, 0.12);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(221, 115, 238, 0.3);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-top: auto;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 6rem 0;
    background-color: var(--background);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--secondary);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(40px);
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:nth-child(1).animate-in {
    transition-delay: 0.1s;
}

.testimonial-card:nth-child(2).animate-in {
    transition-delay: 0.2s;
}

.testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(221, 115, 238, 0.15);
    transform: translateY(-8px) scale(1.01);
    background-color: rgba(255, 240, 245, 0.9);
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.testimonial-card h4 {
    color: var(--primary);
    font-family: var(--body-font);
}

/* --- CTA Section --- */
.cta {
    padding: 6rem 0;
    background-color: var(--background);
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: var(--transition-smooth);
}

.cta-container.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: #3A2A3F;
}

.cta-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #6B6570;
    opacity: 1;
}

.cta-btn {
    background: linear-gradient(135deg, #D978E8, #B96AD9);
    color: white;
    box-shadow: 0 6px 20px rgba(217, 136, 232, 0.3);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #C86BFF, #A85BCB);
    box-shadow: 0 10px 24px rgba(200, 107, 255, 0.4);
    color: white;
    transform: translateY(-3px);
}

/* --- Footer --- */
.footer {
    background-color: #1A181C;
    /* Dark theme footer */
    color: #FFFFFF;
    padding: 5rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: #999999;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: white;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #999999;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #999999;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
    font-size: 0.875rem;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .header {
        padding: 1rem 0;
    }

    .hero-container,
    .about-container,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .badge-1 {
        left: 0;
    }

    .badge-2 {
        right: 0;
    }

    .about-images {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(200px, 240px));
        justify-content: center;
    }

    .cta-container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: rgba(254, 254, 254, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
        /* Above nav menu */
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .testimonial-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .service-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .container {
        padding: 0 1rem;
    }

    .cta-container {
        padding: 2rem 1.25rem;
        max-width: 100%;
        border-radius: 30px;
    }

    .cta {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .cta-btn i {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .footer-container {
        gap: 2rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-image {
        max-width: 100%;
    }

    .floating-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .floating-badge i {
        font-size: 1rem;
    }

    .about-features li {
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }

    .nav-btn {
        display: none;
    }
}

/* --- Reduced Motion Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-content,
    .hero-image,
    .floating-badge,
    .service-card,
    .testimonial-card,
    .about-images,
    .about-content {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Performance Optimizations --- */
.hero-content,
.hero-image,
.service-card,
.testimonial-card,
.about-images,
.cta-container {
    will-change: auto;
}

.hero-content:hover,
.hero-image:hover,
.service-card:hover,
.testimonial-card:hover {
    will-change: transform, opacity;
}