:root {
    --primary-gradient: linear-gradient(135deg, #4F46E5, #9333EA, #F43F5E);
    --secondary-gradient: linear-gradient(135deg, #7C3AED, #EC4899);
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --bg-color: #faf5f9;
    --card-bg: rgba(255, 255, 255, 0.85);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

.section-spacing {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(58, 24, 92, 0.96), rgba(76, 29, 120, 0.95), rgba(107, 33, 168, 0.93));
    box-shadow: 0 14px 35px rgba(36, 12, 62, 0.38), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    color: #9333ea;
    -webkit-text-fill-color: initial;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: rgba(248, 250, 252, 0.9);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

header .mobile-menu-btn {
    color: #f8fafc;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 5rem 4rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    color: var(--text-light);
    max-width: 900px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fdf2f8;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Floral Decors */
.floral-decor {
    position: absolute;
    width: 400px;
    height: 400px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="white" opacity="0.08"><path d="M50 0 C40 20 20 40 0 50 C20 60 40 80 50 100 C60 80 80 60 100 50 C80 40 60 20 50 0 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.top-left {
    top: -100px;
    left: -100px;
    transform: rotate(45deg);
}

.bottom-right {
    bottom: -100px;
    right: -100px;
    transform: rotate(225deg);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #25D366; /* WhatsApp color */
    color: white;
    padding: 1.2rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
    background: #20bd5a;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, #f7f0ff 0%, #fdf3fa 55%, #f7f0ff 100%);
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147,51,234,0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.services::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(244,63,94,0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #64748b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    isolation: isolate;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -35% -45%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.65), rgba(255,255,255,0) 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-16px) scale(1.03);
    box-shadow: 0 30px 55px rgba(79, 70, 229, 0.18), 0 12px 24px rgba(244, 63, 94, 0.14);
    background: rgba(255, 255, 255, 1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(244, 63, 94, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.5s ease, background 0.5s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(244, 63, 94, 0.2));
}

.service-card i {
    font-size: 2.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.service-card:hover i {
    transform: translateZ(18px) scale(1.08);
    filter: drop-shadow(0 10px 18px rgba(124, 58, 237, 0.25));
}

.service-card.is-visible {
    animation: cardFloat 4.2s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.service-card.is-visible:hover {
    animation-play-state: paused;
}

/* Contact Section */
.contact {
    background: var(--secondary-gradient);
    display: flex;
    justify-content: center;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 5rem 4rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    color: white;
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.glass-panel h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.glass-panel p {
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 3.5rem;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.3rem;
    background: rgba(0,0,0,0.15);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.info-item:hover {
    background: rgba(0,0,0,0.25);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
}

.info-item.whatsapp i {
    color: #25D366;
}
.info-item.whatsapp:hover i {
    color: #128c7e;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2.5rem;
    font-size: 0.95rem;
}

/* Animations JS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .glass-panel { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
    nav ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, rgba(58, 24, 92, 0.98), rgba(76, 29, 120, 0.96));
        padding: 20px;
        box-shadow: 0 14px 26px rgba(23, 8, 40, 0.45);
        text-align: center;
        gap: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
    nav ul.mobile-active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.2rem; letter-spacing: 2px; }
    .hero-content { padding: 3rem 2rem; }
    .section-title h2 { font-size: 2.4rem; }
    .glass-panel h2 { font-size: 2.4rem; }
    .info-item { font-size: 1.1rem; padding: 1rem 1.5rem; }
}
