/* Modern UI Framework Based on Tailwind v4 and Custom Glassmorphism */

:root {
    --primary: #3f51b5;
    --secondary: #90caf9;
    --accent: #b39ddb;
    --bg-light: #eef4fb;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --text-main: #120b2c;
    --text-muted: #5e5a71;
    --card-bg: rgba(255, 255, 255, 0.7);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Gradients */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        to right,
        rgba(60, 130, 200, 0.55) 0%,
        rgba(60, 130, 200, 0.5) 20%,
        rgba(80, 170, 190, 0.4) 28%,
        rgba(130, 200, 170, 0.42) 38%,
        rgba(160, 210, 170, 0.42) 55%,
        rgba(200, 220, 160, 0.35) 65%,
        rgba(255, 220, 170, 0.32) 75%,
        rgba(255, 213, 152, 0.3) 100%
    );
}

/* Header & Nav */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #5c6bc0);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(63, 81, 181, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(63, 81, 181, 0.4);
}

/* Hero Section */
.hero-gradient-text {
    background: linear-gradient(135deg, var(--primary), #9c27b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Language Switcher */
.lang-btn {
    opacity: 0.5;
    transition: opacity 0.3s;
    cursor: pointer;
}

.lang-btn.active {
    opacity: 1;
    font-weight: bold;
    border-bottom: 2px solid var(--primary);
}

/* Illustrations Container */
.illustration-placeholder {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(144, 202, 249, 0.2), rgba(179, 157, 219, 0.2));
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Logo Living Animation */
@keyframes logoReveal {
    0% { opacity: 0; transform: scale(0.7); filter: blur(8px); }
    60% { opacity: 1; transform: scale(1.03); filter: blur(0); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes logoBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

@keyframes logoGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.logo-alive-wrap {
    position: relative;
    display: inline-block;
}

.logo-alive-wrap::after {
    content: '';
    position: absolute;
    inset: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(144, 202, 249, 0.7) 0%, rgba(144, 202, 249, 0.4) 35%, rgba(144, 202, 249, 0.15) 60%, transparent 80%);
    z-index: -1;
    animation: logoGlow 4s ease-in-out 1.5s infinite;
    opacity: 0;
    pointer-events: none;
}

.logo-alive {
    animation: logoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               logoBreathe 4s ease-in-out 1.5s infinite;
    transition: transform 0.3s ease;
}

.logo-alive:hover {
    transform: scale(1.06);
}

/* Manifesto Cards Animation */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-slide-left {
    opacity: 0;
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.animate-slide-right {
    opacity: 0;
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

/* CTA Button Animation */
@keyframes ctaReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(63, 81, 181, 0.3); }
    50% { box-shadow: 0 6px 30px rgba(63, 81, 181, 0.5), 0 0 60px rgba(63, 81, 181, 0.15); }
}

.animate-cta {
    opacity: 0;
    animation: ctaReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               ctaPulse 3s ease-in-out 1.5s infinite;
    animation-delay: 1s, 1.5s;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.98);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

/* Contact Cards Interaction */
.glass-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.6);
}

/* Carousel */
.carousel-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 480px;
    min-height: 120px;
    display: flex;
    align-items: center;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: scale(0.75);
    pointer-events: none;
    z-index: 1;
}

.carousel-slide p {
    max-width: 440px;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 3;
    pointer-events: auto;
}

.carousel-slide.prev {
    opacity: 0.4;
    transform: scale(0.8) translateX(-110%);
    z-index: 2;
}

.carousel-slide.next {
    opacity: 0.4;
    transform: scale(0.8) translateX(110%);
    z-index: 2;
}

.carousel-slide.glass-card {
    box-shadow: 0 12px 30px rgba(63, 81, 181, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(63, 81, 181, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(144, 202, 249, 0.1));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.carousel-slide.active.glass-card {
    box-shadow: 0 16px 40px rgba(63, 81, 181, 0.2), 0 6px 12px rgba(0, 0, 0, 0.08);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(63, 81, 181, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Timeline Animations */
.timeline-line {
    height: 0%;
    transition: height 1.5s ease-out;
}

.timeline-line.grown {
    height: 100%;
}

/* Step circle pulse */
@keyframes circlePulse {
    0% { transform: scale(0.5); opacity: 0; box-shadow: 0 0 0 0 rgba(63, 81, 181, 0); }
    50% { transform: scale(1.15); box-shadow: 0 0 30px rgba(63, 81, 181, 0.3); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(63, 81, 181, 0); }
}

.step-circle {
    opacity: 0;
    transition: all 0.6s ease;
}

.step-circle.revealed {
    animation: circlePulse 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Step text slide */
.step-text {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-text-left {
    transform: translateX(-50px);
}

.step-text-right {
    transform: translateX(50px);
}

.step-text.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Compare Grid */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .compare-grid {
        grid-template-columns: 1fr 2fr 3fr;
        align-items: center;
    }

    .compare-grid > div {
        text-align: center;
    }

    .compare-grid > div p {
        text-align: center;
    }
}

/* Blog Carousel */
.blog-carousel-container {
    padding: 0 2rem;
}

.blog-carousel-prev,
.blog-carousel-next {
    display: none;
}

@media (max-width: 768px) {
    .blog-carousel-prev,
    .blog-carousel-next {
        display: flex;
    }

    .blog-carousel-slide {
        width: 100% !important;
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }
}
