@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,800;0,900;1,800&display=swap');

:root {
    --color-bg: #FFFFFF;
    --color-text: #2A2A2A;
    --color-text-muted: #666666;
    
    --c-cyan: #00E5FF;
    --c-pink: #FF007F;
    --c-orange: #FF9100;
    --c-purple: #D500F9;
    
    --font-main: 'Poppins', sans-serif;
    
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body, html {
    width: 100%;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

h1, h2, h3, h4 {
    font-weight: 900;
    letter-spacing: -1px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Mouse Trail Particles */
.trail-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    animation: fadeScale 0.8s forwards;
}
@keyframes fadeScale {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* Button Explosion Particles */
.btn-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: popOut 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
@keyframes popOut {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Balloon Preloader */
#preloader { position: fixed; inset: 0; background: #fff; z-index: 99999; display: flex; justify-content: center; align-items: center; overflow: hidden; transition: opacity 0.8s; }
.balloon { position: absolute; bottom: -100px; width: 60px; height: 75px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; opacity: 0.8; animation: floatBalloon 4s ease-in infinite; }
.balloon::after { content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 2px; height: 30px; background: rgba(0,0,0,0.2); }
.balloon-1 { background: var(--c-pink); left: 10%; animation-duration: 1.2s; animation-delay: 0s; }
.balloon-2 { background: var(--c-cyan); left: 30%; animation-duration: 1.4s; animation-delay: 0.1s; }
.balloon-3 { background: var(--c-orange); left: 50%; animation-duration: 1.6s; animation-delay: 0.2s; width: 80px; height: 100px; }
.balloon-4 { background: var(--c-purple); left: 70%; animation-duration: 1.3s; animation-delay: 0.3s; }
.balloon-5 { background: var(--c-pink); left: 90%; animation-duration: 1.5s; animation-delay: 0.15s; width: 50px; height: 65px; }

@keyframes floatBalloon {
    0% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-50vh) rotate(5deg); }
    100% { transform: translateY(-110vh) rotate(-5deg); }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 30px 0;
    transition: all 0.4s var(--bounce);
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 28px; font-weight: 900; letter-spacing: -1px; display: flex; align-items: center; color: var(--color-text); }
.spin-logo { animation: spinLogo 10s linear infinite; transform-origin: center; }
@keyframes spinLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.nav ul { list-style: none; display: flex; gap: 30px; }
.nav a { font-weight: 800; color: var(--color-text); font-size: 16px; position: relative; }
.nav a:hover { color: var(--c-cyan); }

/* Playful Buttons */
.fun-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--color-text);
    color: #fff;
    border-radius: 100px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: visible; /* For particles */
}

.fun-btn::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%);
    width: 80%; height: 20px;
    background: rgba(0,0,0,0.2);
    filter: blur(10px);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.2s;
}

.btn-cyan { background: var(--c-cyan); color: #000; }
.btn-pink { background: var(--c-pink); }
.btn-orange { background: var(--c-orange); color: #000; }

.fun-btn:hover { transform: translateY(-5px) scale(1.05); }
.fun-btn:hover::after { width: 90%; opacity: 0.5; }
.fun-btn:active { transform: translateY(2px) scale(0.95); }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Floating BG Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}
.bg-shape-1 { width: 100px; height: 100px; background: var(--c-pink); top: 20%; left: 10%; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.bg-shape-2 { width: 80px; height: 80px; background: var(--c-cyan); top: 70%; right: 15%; border-radius: 50%; }
.bg-shape-3 { width: 120px; height: 120px; background: var(--c-orange); bottom: 10%; left: 20%; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); border-radius: 0; }
.bg-shape-4 { width: 60px; height: 60px; background: var(--c-purple); top: 30%; right: 25%; border-radius: 20px; transform: rotate(45deg); }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 50px;
    border: 4px solid #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.hero-title {
    font-size: 6vw;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-title span.t-pink { color: var(--c-pink); }
.hero-title span.t-cyan { color: var(--c-cyan); }
.hero-title span.t-orange { color: var(--c-orange); }

.hero-subtitle { font-size: 22px; font-weight: 600; color: var(--color-text-muted); margin-bottom: 40px; }

/* 3D Tilt Wrapper */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s;
    will-change: transform;
}
.tilt-inner {
    transform: translateZ(50px); /* Pops out text/images */
}

/* Sections */
.section { padding: 120px 0; }
.section-bg { background-color: #F8F9FA; border-radius: 80px; margin: 0 20px; padding: 120px 0; }
.section-title { font-size: 48px; text-align: center; margin-bottom: 60px; }

/* About */
.about-container { display: flex; gap: 60px; align-items: center; }
.about-text { flex: 1; }
.about-text h2 { text-align: left; }
.about-text p { font-size: 18px; font-weight: 600; color: var(--color-text-muted); margin-bottom: 20px; }
.about-image { flex: 1; border-radius: 40px; overflow: hidden; border: 8px solid #fff; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.about-image img { width: 100%; display: block; border-radius: 30px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.service-card { 
    background: #fff; padding: 50px 30px; border-radius: 40px; text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 4px solid transparent;
}
.service-card:hover { border-color: var(--c-cyan); }
.service-icon { font-size: 50px; color: var(--c-purple); margin-bottom: 20px; }
.service-title { font-size: 24px; margin-bottom: 15px; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.portfolio-item { 
    height: 400px; border-radius: 40px; overflow: hidden; position: relative; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.large-item { grid-column: span 2; height: 500px; }
.portfolio-image { width: 100%; height: 100%; background-size: cover; background-position: center; }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: #fff; font-size: 32px; background: var(--c-pink); padding: 10px 30px; border-radius: 100px; transform: scale(0.5); transition: transform 0.3s var(--bounce); }
.portfolio-item:hover .portfolio-overlay h3 { transform: scale(1); }

/* Gallery */
.gallery-slider-container { position: relative; overflow: hidden; border-radius: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 8px solid #fff; }
.gallery-track { display: flex; transition: transform 0.5s var(--bounce); }
.gallery-slide { min-width: 100%; height: 500px; padding: 0 20px; box-sizing: border-box; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; background: rgba(0,0,0,0.02); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: none; width: 60px; height: 60px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 10px 20px rgba(0,0,0,0.1); color: var(--c-pink); z-index: 10; transition: transform 0.2s; }
.slider-btn:hover { transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* References Marquee */
.references-marquee { padding: 80px 0; background: #fff; overflow: hidden; border-top: 1px solid rgba(0,0,0,0.05); }
.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.marquee-content { display: inline-flex; animation: scrollMarquee 20s linear infinite; gap: 60px; padding: 0 30px; align-items: center; }
.reference-item img { height: 60px; max-width: 150px; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: filter 0.3s; }
.reference-item:hover img { filter: grayscale(0%) opacity(1); }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Contact */
.contact-container { display: flex; gap: 60px; }
.contact-info { flex: 1; }
.contact-info h2 { text-align: left; margin-bottom: 20px; }
.contact-form-wrapper { flex: 1; background: #fff; padding: 50px; border-radius: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.input-group { margin-bottom: 25px; }
.input-group input, .input-group textarea { width: 100%; padding: 20px; background: #F4F6F8; border: none; border-radius: 20px; font-family: var(--font-main); font-size: 16px; font-weight: 600; transition: background 0.3s, box-shadow 0.3s; }
.input-group input:focus, .input-group textarea:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px var(--c-cyan); }

/* Footer */
.footer { padding: 80px 0 40px; text-align: center; background: #fff; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-brand h2 { font-size: 40px; color: var(--color-text); margin-bottom: 10px; letter-spacing: -2px; }
.footer-brand p { font-size: 18px; color: var(--color-text-muted); margin-bottom: 40px; font-weight: 600; }
.footer-links p { font-size: 14px; color: var(--color-text-muted); font-weight: 600; }
.zalviora-link { color: var(--c-pink); text-decoration: none; font-weight: 800; transition: color 0.3s; }
.zalviora-link:hover { color: var(--c-cyan); }

/* Floating Social Buttons */
.floating-social {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}
.f-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    text-decoration: none;
}
.f-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    color: #fff;
}
.whatsapp-btn {
    background: #25D366;
}
.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title { font-size: 14vw; }
    .hero-subtitle { font-size: 18px; }
    .hero-content { padding: 40px 20px; border-radius: 30px; border-width: 2px; margin-top: 50px;}
    .about-container, .contact-container { flex-direction: column; gap: 40px;}
    .portfolio-grid { grid-template-columns: 1fr; }
    .large-item { grid-column: span 1; height: 350px; }
    .header .nav { 
        display: block; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: rgba(255, 255, 255, 0.95); 
        backdrop-filter: blur(10px);
        padding: 0 20px; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
        border-radius: 0 0 30px 30px;
        z-index: 99;
        transform-origin: top;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, visibility 0.4s, padding 0.4s ease;
        transform: scaleY(0);
        opacity: 0;
        visibility: hidden;
    }
    .header .nav.active { 
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
        padding: 20px;
    }
    .header .nav ul { flex-direction: column; align-items: center; gap: 20px; }
    .header { flex-wrap: wrap; }
    .section-bg { margin: 0 15px; padding: 60px 0; border-radius: 40px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 32px; margin-bottom: 40px; }
    .gallery-slide { height: 300px; }
    .bg-shape-1 { top: 10%; width: 60px; height: 60px; }
    .bg-shape-2 { top: 80%; width: 50px; height: 50px; }
    .bg-shape-3 { bottom: 5%; width: 70px; height: 70px; left: 10%;}
    .bg-shape-4 { top: 20%; right: 10%; width: 40px; height: 40px; }
    .mobile-menu-btn { display: flex; flex-direction: column; gap: 6px; cursor: pointer; z-index: 100; position: relative; }
    .mobile-menu-btn span { width: 30px; height: 3px; background: var(--color-text); border-radius: 3px; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); transform-origin: left center; }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg); width: 32px; }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; width: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg); width: 32px; }
    .header-logo-text .logo-title { font-size: 18px !important; letter-spacing: -1px !important; }
    .header-logo-text .logo-sub { font-size: 7px !important; letter-spacing: 2px !important; margin-left: 1px !important; }
    .spin-logo { width: 24px; height: 24px; }
    .preloader-logo-wrap span:first-child { font-size: 28px !important; }
    .preloader-logo-wrap span:last-child { font-size: 10px !important; letter-spacing: 3px !important; margin-left: 3px !important; }
    .floating-social { bottom: 20px; left: 20px; gap: 10px; }
    .f-btn { width: 50px; height: 50px; }
    .f-btn svg { width: 24px; height: 24px; }
}
