/* ==========================================================================
   Mutlu Çocuklar Anaokulu — Çocuksu, Sıcak, Modern Tasarım
   ========================================================================== */

:root {
    --primary: #FF6B9D;
    --primary-dark: #E84F84;
    --primary-soft: #FFE3EE;
    --secondary: #7B61FF;
    --secondary-dark: #5D44E0;
    --secondary-soft: #EAE3FF;
    --accent: #FFB84D;
    --accent-dark: #F09D2C;
    --accent-soft: #FFF1DA;
    --success: #06D6A0;
    --success-soft: #D6F7EC;
    --info: #4ECDC4;
    --info-soft: #DCF5F2;
    --coral: #FF8A65;
    --coral-soft: #FFE0D5;
    --sky: #5BC0EB;

    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #7B61FF 100%);
    --gradient-warm: linear-gradient(135deg, #FFB84D 0%, #FF6B9D 100%);
    --gradient-cool: linear-gradient(135deg, #7B61FF 0%, #4ECDC4 100%);
    --gradient-fresh: linear-gradient(135deg, #06D6A0 0%, #4ECDC4 100%);
    --gradient-sunset: linear-gradient(135deg, #FFB84D 0%, #FF6B9D 50%, #7B61FF 100%);
    --gradient-soft: linear-gradient(135deg, #FFF5F8 0%, #F5F0FF 100%);
    --gradient-hero: linear-gradient(180deg, #FFF5F8 0%, #FFFFFF 60%, #F5F0FF 100%);

    --bg-light: #FAFAFE;
    --bg-cream: #FFF9F4;
    --bg-white: #FFFFFF;
    --text-dark: #1F1B3D;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border: #F0EBF8;

    --shadow-xs: 0 1px 3px rgba(123, 97, 255, 0.06);
    --shadow-sm: 0 4px 12px rgba(123, 97, 255, 0.08);
    --shadow-md: 0 12px 32px rgba(123, 97, 255, 0.12);
    --shadow-lg: 0 24px 60px rgba(123, 97, 255, 0.18);
    --shadow-glow: 0 12px 40px rgba(255, 107, 157, 0.3);
    --shadow-glow-purple: 0 12px 40px rgba(123, 97, 255, 0.3);

    --radius-xs: 8px;
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 48px;

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bouncy: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-warm {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: white;
    border: 2px dashed var(--primary);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-tag::before { content: '✨'; font-size: 1rem; }

.section-title { font-size: clamp(1.85rem, 4vw, 2.85rem); margin-bottom: 16px; font-weight: 800; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 60px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition-bouncy);
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FF8FB6 0%, #9580FF 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 50px rgba(255, 107, 157, 0.45); }
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

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

.btn-whatsapp { background: #25D366; color: white; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4); }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 32px; }

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }

.logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-glow);
    transform: rotate(-5deg);
    transition: var(--transition-bouncy);
}

.logo:hover .logo-icon { transform: rotate(5deg) scale(1.1); }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.logo-text span {
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.logo-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }
.nav-links { display: flex; list-style: none; gap: 4px; align-items: center; }

.nav-links a {
    padding: 10px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-links a.active { color: white; background: var(--gradient-primary); box-shadow: var(--shadow-glow); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text-dark); border-radius: 12px; }

/* Hero */
.hero { position: relative; padding: 60px 0 100px; background: var(--gradient-hero); overflow: hidden; }

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-decor { position: absolute; pointer-events: none; animation: float 6s ease-in-out infinite; z-index: 1; }

.hero-decor-1 { top: 12%; left: 4%; font-size: 2.5rem; animation-delay: 0s; }
.hero-decor-2 { top: 22%; right: 8%; font-size: 2rem; animation-delay: 0.5s; }
.hero-decor-3 { bottom: 30%; left: 6%; font-size: 2.5rem; animation-delay: 1s; }
.hero-decor-4 { top: 60%; left: 3%; font-size: 1.8rem; animation-delay: 1.5s; }
.hero-decor-5 { bottom: 15%; right: 4%; font-size: 2.2rem; animation-delay: 2s; }
.hero-decor-6 { top: 8%; right: 30%; font-size: 1.6rem; animation-delay: 2.5s; }

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

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

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-content { animation: fadeInUp 0.8s ease-out; }

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: white;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--secondary-soft);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(6, 214, 160, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(6, 214, 160, 0); }
}

.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1.05; margin-bottom: 24px; font-weight: 800; }

.hero h1 .wavy-underline { position: relative; display: inline-block; }
.hero h1 .wavy-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6 Q 12.5 0, 25 6 T 50 6 T 75 6 T 100 6' stroke='%23FFB84D' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 60px 12px;
}

.hero-description { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 36px; max-width: 540px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 540px; }

.stat-card {
    text-align: center;
    padding: 20px 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
}

.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Quicksand', sans-serif;
    line-height: 1;
}

.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; margin-top: 6px; }

.hero-visual { position: relative; height: 580px; animation: fadeInUp 0.8s ease-out 0.2s both; }

.hero-image {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 6px solid white;
}

.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-image-1 { top: 0; right: 0; width: 65%; height: 60%; z-index: 2; animation: float-slow 7s ease-in-out infinite; }
.hero-image-2 { top: 35%; left: 0; width: 50%; height: 45%; z-index: 3; animation: float-slow 8s ease-in-out infinite reverse; }
.hero-image-3 { bottom: 0; right: 12%; width: 45%; height: 38%; z-index: 2; animation: float-slow 6s ease-in-out infinite; }
.hero-image-4 { top: 10%; left: 12%; width: 32%; height: 28%; z-index: 4; animation: float-slow 9s ease-in-out infinite reverse; }

.hero-blob {
    position: absolute;
    width: 90%;
    height: 90%;
    background: var(--gradient-warm);
    border-radius: 50% 30% 60% 40% / 40% 60% 30% 50%;
    top: 5%;
    left: 5%;
    z-index: 1;
    opacity: 0.2;
    animation: morph 10s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes morph {
    0%, 100% { border-radius: 50% 30% 60% 40% / 40% 60% 30% 50%; }
    50% { border-radius: 30% 60% 40% 50% / 60% 40% 50% 30%; }
}

/* Sections */
.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--bg-cream); position: relative; }

.section-alt::before,
.section-alt::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.4;
}

.section-alt::before { top: 10%; left: -150px; background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%); }
.section-alt::after { bottom: 10%; right: -150px; background: radial-gradient(circle, var(--secondary-soft) 0%, transparent 70%); }
.section > .container { position: relative; z-index: 2; }

/* Classes */
.classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }

.class-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.class-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.class-image { position: relative; height: 200px; overflow: hidden; }
.class-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.class-card:hover .class-image img { transform: scale(1.1); }

.class-age-badge {
    position: absolute;
    bottom: -16px;
    left: 24px;
    background: white;
    padding: 10px 18px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    z-index: 3;
}

.class-body { padding: 32px 24px 28px; }
.class-title { font-size: 1.35rem; margin-bottom: 6px; }
.class-subtitle { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.class-description { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.6; }
.class-features { list-style: none; }

.class-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.class-features li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2306D6A0'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Branches — icon-wrap KALDIRILDI */
.branches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

.branch-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.branch-card:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: var(--shadow-lg); }

.branch-image { position: relative; height: 200px; overflow: hidden; }
.branch-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.branch-card:hover .branch-image img { transform: scale(1.1); }

.branch-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}

.branch-body { padding: 24px; }
.branch-subtitle { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.branch-title { font-size: 1.4rem; margin-bottom: 10px; }
.branch-description { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:nth-child(3n+1) { transform: rotate(-1deg); }
.gallery-item:nth-child(3n+2) { transform: rotate(1deg); }
.gallery-item:nth-child(3n+3) { transform: rotate(-0.5deg); }

.gallery-item:hover { transform: scale(1.04) rotate(0deg); box-shadow: var(--shadow-lg); z-index: 2; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 27, 61, 0.85), transparent 50%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.testimonial-card {
    background: white;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--border);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 28px;
    font-size: 5rem;
    font-family: Georgia, serif;
    line-height: 1;
    color: var(--primary-soft);
    font-weight: 700;
}

.testimonial-card:hover { transform: translateY(-6px); border-color: var(--primary-soft); box-shadow: var(--shadow-md); }

.testimonial-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { color: var(--text-dark); font-size: 1rem; line-height: 1.7; margin-bottom: 24px; position: relative; z-index: 1; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 2px dashed var(--border);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.testimonial-name { font-weight: 700; font-size: 0.98rem; }
.testimonial-date { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* Videos */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

.video-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.video-thumbnail { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; background: var(--text-dark); }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.video-thumbnail:hover img { transform: scale(1.05); }

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    background: rgba(255, 107, 157, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.5);
    transition: var(--transition-bouncy);
    z-index: 2;
}

.video-play-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.3);
    z-index: -1;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.video-thumbnail:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.15); background: var(--primary); }
.video-play-btn svg { width: 28px; height: 28px; color: white; margin-left: 4px; }

.video-body { padding: 24px; }
.video-card-title { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.video-card-meta { font-size: 0.88rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.video-card-meta::before { content: '👨‍👩‍👧'; }

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(31, 27, 61, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease-out;
}

.video-modal.is-open { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.video-modal-inner { width: 100%; max-width: 960px; position: relative; }

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.video-modal-close:hover { transform: rotate(90deg); color: var(--primary); }

.video-modal-iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    border: 0;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

/* Certificates */
.certificates-section {
    position: relative;
    background: linear-gradient(135deg, #1F1B3D 0%, #2D2454 100%);
    overflow: hidden;
    padding: 100px 0;
    color: white;
}

.certificates-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 157, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(123, 97, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(255, 184, 77, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.certificates-section .section-header h2,
.certificates-section .section-header h2 * { color: white; }
.certificates-section .section-subtitle { color: rgba(255, 255, 255, 0.7); }

.certificates-section .section-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 184, 77, 0.5);
    color: var(--accent);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 2;
}

.cert-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-warm);
    z-index: 2;
}

.cert-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

.cert-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-cream);
    cursor: zoom-in;
    position: relative;
}

.cert-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.cert-card:hover .cert-image img { transform: scale(1.05); }

.cert-image::after {
    content: '🔍';
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cert-card:hover .cert-image::after { opacity: 1; transform: translateY(0); }

.cert-body { padding: 24px; }

.cert-issuer {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cert-title { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 8px; }
.cert-subtitle { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }
.cert-description { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

.cert-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 32px;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.cert-lightbox.is-open { display: flex; }

.cert-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
}

.cert-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cert-lightbox-close:hover { transform: rotate(90deg); color: var(--primary); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
}

.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.blog-image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.blog-card:hover .blog-image img { transform: scale(1.08); }

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.blog-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }
.blog-title { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; }
.blog-summary { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin-bottom: 16px; }

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.blog-card:hover .blog-link { gap: 12px; }

/* CTA */
.cta-section { padding: 80px 0; position: relative; }

.cta-card {
    background: var(--gradient-sunset);
    border-radius: var(--radius-xl);
    padding: 70px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-card > * { position: relative; z-index: 2; }
.cta-card h2 { color: white; font-size: clamp(1.85rem, 4vw, 2.5rem); margin-bottom: 12px; }
.cta-card p { font-size: 1.1rem; margin-bottom: 32px; opacity: 0.95; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-primary { background: white; color: var(--primary); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.cta-section .btn-primary:hover { background: var(--text-dark); color: white; }

.cta-section .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.cta-section .btn-secondary:hover { background: white; color: var(--primary); }

/* Footer */
.footer {
    background: linear-gradient(180deg, #1F1B3D 0%, #15122E 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }

.footer-brand .logo-icon { width: 60px; height: 60px; font-size: 2rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.65); line-height: 1.7; margin: 20px 0; max-width: 360px; }
.footer-social { display: flex; gap: 12px; }

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

.footer-social a:hover { background: var(--gradient-primary); transform: translateY(-3px) scale(1.1); box-shadow: var(--shadow-glow); }

.footer h4 { color: white; font-size: 1.05rem; margin-bottom: 24px; position: relative; padding-bottom: 12px; }

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--gradient-warm);
    border-radius: 2px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.65); font-size: 0.93rem; transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 6px; }

.footer-contact { display: flex; flex-direction: column; gap: 14px; color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; }
.footer-contact div { display: flex; align-items: flex-start; gap: 12px; }

.footer-contact .icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 107, 157, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 16px;
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 100;
    color: white;
    transition: var(--transition);
    animation: pulse-wa 2.5s ease-in-out infinite;
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover { transform: scale(1.1); }

/* Page Header */
.page-header { background: var(--gradient-hero); padding: 60px 0; position: relative; overflow: hidden; }

.page-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-content { text-align: center; position: relative; z-index: 2; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb span { color: var(--text-muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1;
}

.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.92rem; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.98rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success { background: var(--success-soft); color: #047857; border-left: 4px solid var(--success); }
.alert-error { background: #FEE2E2; color: #991B1B; border-left: 4px solid #EF4444; }

/* Responsive */
@media (max-width: 992px) {
    .hero-grid,
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 480px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 280px;
        background: white;
        flex-direction: column;
        padding: 80px 24px 24px;
        align-items: stretch;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-links.active { right: 0; }
    .nav-links a { padding: 14px 18px; font-size: 1rem; }
    .mobile-toggle { display: flex; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .section { padding: 64px 0; }
    h1 { font-size: 2.25rem; }
    .hero { padding: 40px 0 60px; }
    .hero-visual { height: 360px; }
    .hero-buttons,
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn,
    .cta-buttons .btn { justify-content: center; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-card { padding: 14px 8px; }
    .stat-value { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .cta-card { padding: 48px 24px; }
    .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
