/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

/* Add global mobile overflow prevention */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #33d6f8;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
        max-width: calc(100vw - 2rem);
    }
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
        line-height: 1.1;
        padding: 0 1.5rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333333;
    font-weight: 600;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    word-wrap: break-word;
    hyphens: auto;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 1rem;
        max-width: 95%;
        padding: 0 1.5rem;
    }
}

.page-subtitle {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    color: black;
    text-shadow: none;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
    }
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn-primary {
    background: #8b5cf6; /* Solid purple color from Lavender Fairy theme, removing gradient */
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-newsletter,
.btn-meet-characters {
    background: #8b5cf6; /* Solid purple color from Lavender Fairy theme */
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-newsletter:hover,
.btn-meet-characters:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* New CTA Button Styles */
.btn-watch-trailer {
    background: #eab308; /* Solid yellow/orange color from the "I" in Rainbow */
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    min-height: 36px;
    flex: 1;
    min-width: 100px;
}

.btn-watch-trailer:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.4);
}

.btn-play-audio {
    background: #d03926; /* Red color by default */
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(208, 57, 38, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 48px;
}

.btn-play-audio:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(208, 57, 38, 0.4);
}

.btn-play-audio.playing {
    background: #75e901; /* Green color when playing */
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(117, 233, 1, 0.3);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(117, 233, 1, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(117, 233, 1, 0.6);
    }
}

/* ========================================
   AUDIO STORY SECTION
   ======================================== */

.audio-story-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    margin-top: -4rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-story-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.audio-story-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.08) 8%, rgba(0, 0, 0, 0.2) 15%, rgba(0, 0, 0, 0.4) 22%, rgba(0, 0, 0, 0.65) 30%, black 40%, black 65%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.3) 88%, rgba(0, 0, 0, 0.1) 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.08) 8%, rgba(0, 0, 0, 0.2) 15%, rgba(0, 0, 0, 0.4) 22%, rgba(0, 0, 0, 0.65) 30%, black 40%, black 65%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.3) 88%, rgba(0, 0, 0, 0.1) 95%, transparent 100%);
}

.audio-story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(51, 214, 248, 0) 0%,
        rgba(51, 214, 248, 0.15) 10%,
        rgba(51, 214, 248, 0.35) 20%,
        rgba(139, 92, 246, 0.15) 35%,
        rgba(59, 130, 246, 0.1) 50%,
        rgba(139, 92, 246, 0.15) 65%,
        rgba(51, 214, 248, 0.3) 85%,
        rgba(51, 214, 248, 0.5) 100%);
    z-index: 1;
}

.audio-story-content {
    position: relative;
    z-index: 10;
}

.audio-story-inner {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    max-width: 700px;
    margin: 2rem auto 0;
    animation: floatSoft 6s ease-in-out infinite;
}

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

.audio-story-text {
    margin-bottom: 2.5rem;
}

.audio-story-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.2;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .audio-story-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 480px) {
    .audio-story-title {
        font-size: 1.6rem;
    }
}

.audio-story-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
    .audio-story-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .audio-story-subtitle {
        font-size: 0.95rem;
    }
}

.btn-play-audio-hero {
    position: relative;
    background: #d03926;
    color: white;
    font-weight: 700;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    box-shadow: 0 8px 25px rgba(208, 57, 38, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 1.1rem;
    min-height: 60px;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .btn-play-audio-hero {
        padding: 1.1rem 2.25rem;
        font-size: 1.05rem;
        min-height: 56px;
    }
}

@media (max-width: 480px) {
    .btn-play-audio-hero {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 52px;
        gap: 0.75rem;
    }
}

.btn-play-audio-hero:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(208, 57, 38, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.15);
    background: #e04530;
}

.btn-play-audio-hero.playing {
    background: #22c55e;
    animation: pulseGlow 1.5s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.15);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 0 12px 40px rgba(34, 197, 94, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.2), 0 0 20px rgba(34, 197, 94, 0.3);
    }
}

.audio-btn-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-play-audio-hero:hover .audio-btn-icon-wrapper {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(12deg) scale(1.08);
}

.btn-play-audio-hero.playing .audio-btn-icon-wrapper {
    animation: pulse 1s ease-in-out infinite;
}

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

.audio-btn-icon-wrapper i {
    width: 22px;
    height: 22px;
}

.audio-btn-text {
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.audio-btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease-out;
    pointer-events: none;
}

.btn-play-audio-hero:hover .audio-btn-shine {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .audio-story-section {
        padding: 5rem 0;
        min-height: 45vh;
    }
    
    .audio-story-inner {
        padding: 2.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .audio-story-section {
        padding: 4rem 0;
        min-height: 40vh;
    }
    
    .audio-story-inner {
        padding: 2rem 1rem;
        border-radius: 20px;
    }
    
    .audio-story-text {
        margin-bottom: 1.75rem;
    }
}

.audio-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
}

.btn-meet-characters {
    background: #8b5cf6; /* Solid purple color from Lavender Fairy theme */
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    min-height: 36px;
    flex: 1;
    min-width: 100px;
}

.btn-meet-characters:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.nav-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    pointer-events: none;
    /* Allow clicks to pass through transparent areas */
    -webkit-backdrop-filter: none;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1rem 1rem 2rem;
    pointer-events: auto;
    /* Re-enable clicks for nav content */
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
    pointer-events: auto;
    /* Ensure nav links are clickable */
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    background: transparent;
}

.nav-link:hover {
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #84cc16, #65a30d);
    transition: width 0.3s ease;
}

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

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.globe-icon {
    font-size: 1rem;
}

.flag-indicators {
    display: flex;
    gap: 0.25rem;
}

.flag {
    font-size: 0.75rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.flag.active {
    opacity: 1;
}

/* Navigation Stay Updated Button */
.nav-links .btn-red {
    background: linear-gradient(135deg, #dc3b4d 0%, #c8334a 100%);
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: none;
    box-shadow: 0 4px 15px rgba(220, 59, 77, 0.3);
}

.nav-links .btn-red:hover {
    background: linear-gradient(135deg, #c8334a 0%, #b02e42 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 59, 77, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.75rem;
    border-radius: 9999px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    /* Ensure toggle remains fixed regardless of inline style mutations */
    position: fixed !important;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    width: 20px;
    height: 2px;
    background-color: #374151;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 4rem;
    right: 1rem;
    z-index: 40;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: calc(100vw - 2rem);
    width: 320px;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.mobile-lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease;
}

.mobile-lang-toggle:hover {
    background: #f3f4f6;
}

.mobile-nav-link {
    font-weight: 500;
    color: #374151;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f9fafb;
    color: #22c55e;
}

/* Mobile menu close button (top-right inside panel) */
.mobile-menu-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
}

/* ========================================
   HERO SECTION
   ======================================== */

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

/* Full Background Styling */
.hero-background-full {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-height: 100vh;
    /* Seamless blending with audio story section - extended fade out at bottom */
    mask-image: linear-gradient(to bottom, black 0%, black 60%, rgba(0, 0, 0, 0.9) 75%, rgba(0, 0, 0, 0.7) 85%, rgba(0, 0, 0, 0.4) 92%, rgba(0, 0, 0, 0.15) 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, rgba(0, 0, 0, 0.9) 75%, rgba(0, 0, 0, 0.7) 85%, rgba(0, 0, 0, 0.4) 92%, rgba(0, 0, 0, 0.15) 96%, transparent 100%);
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* Single Responsive Hero Layout */
.hero-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding-top: 4rem;
    gap: 3rem;
    position: relative;
    width: 100%;
}

@media (max-width: 640px) {
    .hero-mobile {
        padding-top: 2rem;
    }
}

/* Desktop adjustments for the single layout */
@media (min-width: 1024px) {
    .hero-mobile {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
        align-items: center;
        padding-top: 1rem;
    }
}

/* Left Content Styling */
.hero-left-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 750px;
}

@media (max-width: 640px) {
    .hero-left-content {
        gap: 0.5rem;
    }
}

/* Hero Typography */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 0.8;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 4rem;
        line-height: 0.9;
        text-align: center;
        align-items: center;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5.5rem;
    }
}

.welcome-text {
    color: white;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    font-size: 1em;
    display: block;
    margin-bottom: -0.1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add extra spacing below "WITAJ W" in Polish */
[data-lang="pl"] .welcome-text {
    margin-bottom: 0.5rem;
}

.to-the-line {
    display: flex;
    gap: 0.3em;
    margin-bottom: -0.1rem;
}

.to-text,
.the-text {
    color: white;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    font-size: 1em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide the English article "THE" in Polish and reduce spacing */
[data-lang="pl"] .the-text {
    display: none;
}
[data-lang="pl"] .to-the-line { gap: 0.15em; }

.welcome-line {
    color: white;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    font-size: 1em;
    display: block;
    margin-bottom: -0.1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rainbow-text,
.rainbow-line {
    font-size: 1em;
    display: block;
    margin-bottom: -0.1rem;
    letter-spacing: -0.09em;
}

/* Polish specific letter spacing - tighter for TĘCZOWYM */
[data-lang="pl"] .rainbow-text,
[data-lang="pl"] .rainbow-line {
    letter-spacing: -0.12em;
}

@media (max-width: 640px) {
    [data-lang="pl"] .rainbow-text,
    [data-lang="pl"] .rainbow-line {
        letter-spacing: -0.12em;
        white-space: nowrap;
    }
}

.kingdom-text,
.kingdom-word {
    color: #263578;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    display: block;
    margin-top: -0.1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Polish: add more spacing before KRÓLESTWIE (all devices) */
[data-lang="pl"] .kingdom-text,
[data-lang="pl"] .kingdom-word {
    margin-top: 1.2rem;
}

.letter {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    filter: brightness(1.15) saturate(1.4);
}

/* Rainbow letter colors from HeroSection.tsx */
.letter-r {
    color: #d03926;
}

.letter-a {
    color: #e2993b;
}

.letter-i {
    color: #eab308;
}

.letter-n {
    color: #e5ed51;
}

.letter-b {
    color: #75e901;
}

.letter-o {
    color: #415bd4;
}

.letter-w {
    color: #263578;
}

/* Polish rainbow letter colors */
.letter-t {
    color: #d03926;
}

.letter-e {
    color: #e2993b;
}

.letter-c {
    color: #eab308;
}

.letter-z {
    color: #e5ed51;
}

.letter-o2 {
    color: #75e901;
}

.letter-w2 {
    color: #415bd4;
}

.letter-y {
    color: #2b3898;
}

.letter-m {
    color: #263578;
}

/* Desktop Typography */
.hero-title-desktop {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 0.8;
    text-transform: uppercase;
    margin-bottom: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1280px) {
    .hero-title-desktop {
        font-size: 4.5rem;
    }
}

/* Character Positioning - Responsive */
.hero-characters-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inline characters block placed under the title (mobile only) */
.hero-characters-inline {
    display: none;
}

.characters-image-inline {
    width: 100%;
    height: auto;
    max-width: 480px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.35));
}

/* Mobile Character Positioning */
@media (max-width: 1023px) {
    .hero-mobile {
        position: relative;
        padding-right: 58%;
        padding-left: 1rem;
    }

    .hero-characters-mobile {
        position: absolute;
        right: 0;
        top: 45%;
        transform: translateY(-50%);
        width: 56%;
        max-width: 480px;
        z-index: 5;
    }

    .hero-left-content {
        width: 100%;
        max-width: 500px;
    }
}

/* Small mobile optimizations: clean stacked layout with image on top */
@media (max-width: 640px) {
    .hero-mobile {
        padding-right: 0;
        padding-left: 0;
        align-items: center;
        padding-top: 2rem;
        gap: 1.5rem;
    }

    /* Show inline image below the title, hide the floating one */
    .hero-characters-inline { display: block; }
    .hero-characters-mobile { display: none; }

    .hero-characters-mobile {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        order: 1;
    }

    .hero-left-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
        order: 0;
    }

    .hero-title {
        font-size: 4rem;
        line-height: 1;
        text-align: center;
        align-items: center;
    }

    .hero-subtitle {
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .social-platforms {
        justify-content: center;
    }
}

/* Desktop Character Positioning */
@media (min-width: 1024px) {
    .hero-characters-mobile {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        height: 100%;
    }

    .hero-left-content {
        max-width: 700px;
        padding-left: 0;
    }
}

/* Character Images */
.characters-image-mobile {
    width: 100%;
    height: auto;
    max-width: 720px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

/* Floating animation keyframes */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
        filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.35)) drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2)) drop-shadow(0 6px 15px rgba(0, 0, 0, 0.15));
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.15)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.1));
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
        filter: drop-shadow(0 17px 33px rgba(0, 0, 0, 0.38)) drop-shadow(0 9px 22px rgba(0, 0, 0, 0.22)) drop-shadow(0 5px 13px rgba(0, 0, 0, 0.18));
    }
    100% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    }
}

.characters-image-mobile:hover {
    transform: translateY(-8px) scale(1.02);
    animation-play-state: paused;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4)) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

@media (min-width: 1024px) {
    .characters-image-mobile {
        max-width: 500px;
        width: 100%;
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.125rem;
    color: white;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    line-height: 1.5;
    max-width: 400px;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 640px) {
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
}

.hero-subtitle-desktop {
    font-size: 1.25rem;
    color: white;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 2rem;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 1280px) {
    .hero-subtitle-desktop {
        font-size: 1.5rem;
    }
}

/* Social Platform Buttons */
.social-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .social-platforms {
        margin-bottom: 0.125rem;
    }
}

.desktop-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    min-height: 36px;
    flex: 1;
    min-width: 100px;
}

.social-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

.social-btn.tiktok {
    background: #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #e4405f 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.social-btn.youtube {
    background: #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.social-btn.facebook {
    background: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

/* CTA Buttons */
.cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
    margin-top: 0.5rem;
}

/* Desktop: tighten spacing between the two button rows significantly */
@media (min-width: 1024px) {
    .hero-left-content { gap: 0.75rem; }
    .social-platforms { margin-bottom: 0.25rem; }
    .cta-buttons { margin-top: 0.2rem; }
}

@media (max-width: 640px) {
    .cta-buttons {
        margin-top: 0.125rem;
    }
}

.desktop-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.btn-icon {
    font-size: 1rem;
}

/* ========================================
   ALL SECTIONS BACKGROUND
   ======================================== */

.video-section,
.characters-section,
.education-section,
.newsletter-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    margin-top: -4rem;
}

/* Tighten section vertical spacing on small mobile to finish sooner */
@media (max-width: 640px) {
    .characters-section,
    .education-section {
        padding: 3.5rem 0;
    }
}

.video-background,
.characters-background,
.education-background,
.newsletter-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1.0;
}

.video-content,
.characters-content,
.education-content,
.newsletter-content {
    position: relative;
    z-index: 10;
}

/* Section background blending - COPYING the perfect education-to-newsletter technique */

/* Video and Characters sections - Copy the PERFECT education blending style */
.video-background .section-bg,
.characters-background .section-bg {
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 8%, rgba(0, 0, 0, 0.6) 18%, black 30%, black 70%, rgba(0, 0, 0, 0.8) 88%, rgba(0, 0, 0, 0.3) 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 8%, rgba(0, 0, 0, 0.6) 18%, black 30%, black 70%, rgba(0, 0, 0, 0.8) 88%, rgba(0, 0, 0, 0.3) 96%, transparent 100%);
}

/* Education section - ORIGINAL PERFECT blending (DO NOT TOUCH - this is the reference!) */
.education-background .section-bg {
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 8%, rgba(0, 0, 0, 0.6) 18%, black 30%, black 70%, rgba(0, 0, 0, 0.8) 88%, rgba(0, 0, 0, 0.3) 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 8%, rgba(0, 0, 0, 0.6) 18%, black 30%, black 70%, rgba(0, 0, 0, 0.8) 88%, rgba(0, 0, 0, 0.3) 96%, transparent 100%);
}

/* ========================================
   VIDEO SECTION
   ======================================== */

/* Top gradients for seamless section blending */
.video-top-gradient,
.characters-top-gradient,
.education-top-gradient,
.newsletter-top-gradient {
    position: absolute;
    top: 0;
    z-index: 5;
    height: 120px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.01) 20%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.08) 70%, rgba(255, 255, 255, 0.15) 90%, rgba(255, 255, 255, 0.3) 100%);
}

.video-content {
    text-align: center;
}

.video-placeholder {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

/* ========================================
   CHARACTERS SECTION
   ======================================== */

/* Characters section now uses the unified section styling above - no overrides needed for seamless blending */

.characters-content {
    position: relative;
    z-index: 10;
    padding: 0 0 3rem;
}

.characters-content .section-title {
    color: white;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.characters-content .section-subtitle {
    color: #333333;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
}

/* Add bordered container for section headers */
.section-header-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section-header-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Characters Grid - Compact 3-column with centered second row */
.characters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    align-items: start;
}

/* First row: 3 characters in natural positions */
.character-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.character-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.character-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

/* Second row: 2 characters spanning across middle columns for centering */
.character-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: center;
    margin-right: 1rem;
}

.character-card:nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: center;
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }

    .character-card:nth-child(1),
    .character-card:nth-child(2),
    .character-card:nth-child(3),
    .character-card:nth-child(4),
    .character-card:nth-child(5) {
        grid-column: span 1;
        grid-row: auto;
        margin: 0;
        justify-self: center;
    }
}

/* Further tighten Characters section spacing on small mobile */
@media (max-width: 640px) {
    .characters-grid {
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }
    .characters-content {
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 350px;
    }
}

/* Character Cards */
.character-card {
    width: 100%;
    max-width: 380px;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    outline: none;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    user-select: none;
}

.character-card:focus,
.character-card:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.character-card:nth-child(1) {
    animation-delay: 0s;
}

.character-card:nth-child(2) {
    animation-delay: 0.06s;
}

.character-card:nth-child(3) {
    animation-delay: 0.12s;
}

.character-card:nth-child(4) {
    animation-delay: 0.18s;
}

.character-card:nth-child(5) {
    animation-delay: 0.24s;
}

/* Character Portrait Frame */
.character-portrait {
    position: relative;
    margin: 0 auto 1.25rem;
    width: 340px;
    height: 340px;
}

.character-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.25s ease;
}

.character-card:hover .character-frame {
    transform: scale(1.02);
}

/* Rainbow character frame - red accent with enhanced border */
.character-card:nth-child(1) .character-frame {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px #dc3b4d22, inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid #dc3b4d;
}

/* Lily character frame - orange accent with enhanced border */
.character-card:nth-child(2) .character-frame {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px #f9731622, inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid #f97316;
}

/* Lavender character frame - purple accent with enhanced border */
.character-card:nth-child(3) .character-frame {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px #8b5cf622, inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid #8b5cf6;
}

/* Robin character frame - green accent with enhanced border */
.character-card:nth-child(4) .character-frame {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px #7FE67A22, inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid #7FE67A;
}

/* Andrew character frame - purple accent with enhanced border */
.character-card:nth-child(5) .character-frame {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(81, 18, 128, 0.133), inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid rgba(81, 18, 128, 1);
}

/* Glossy highlight */
.character-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    top: 0;
    height: 38%;
    border-radius: 1.5rem 1.5rem 0 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 2;
}

/* Character Image */
.character-image {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 95%;
    height: 95%;
    object-fit: contain;
    transform: translate(-50%, -54%);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
    pointer-events: none;
    transition: transform 0.2s ease;
}

.character-card:active .character-image {
    transform: translate(-50%, -54%) scale(1.02);
}

/* Character Name Badge */
.character-name-badge {
    display: flex;
    justify-content: center;
    margin: 0.25rem 0 1rem;
}

.character-name-badge span {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

/* Character-specific badge colors from React component */
.character-name-badge.rainbow span {
    background: linear-gradient(135deg, #dc3b4d, #dc3b4dcc);
    box-shadow: 0 8px 18px #dc3b4d55;
}

.character-name-badge.lily span {
    background: linear-gradient(135deg, #f97316, #f97316cc);
    box-shadow: 0 8px 18px #f9731655;
}

.character-name-badge.lavender span {
    background: linear-gradient(135deg, #8b5cf6, #8b5cf6cc);
    box-shadow: 0 8px 18px #8b5cf655;
}

.character-name-badge.robin span {
    background: linear-gradient(135deg, #7FE67A, #7FE67Acc);
    box-shadow: 0 8px 18px #7FE67A55;
}

.character-name-badge.andrew span {
    background: linear-gradient(135deg, rgba(81, 18, 128, 1), rgba(81, 18, 128, 0.8));
    box-shadow: 0 8px 18px rgba(81, 18, 128, 0.333);
}

/* Character Quote Speech Bubble */
.character-quote {
    position: relative;
    width: 100%;
    margin-bottom: 0.75rem;
}

.character-quote p {
    max-width: 340px;
    margin: 0 auto;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Default white frame border */
    border: 3px solid #e5e7eb;
    transition: all 0.25s ease;
}

/* Character-specific borders for quote containers matching picture frames */
.character-card:nth-child(1) .character-quote p {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px #dc3b4d22, inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid #dc3b4d;
}

.character-card:nth-child(2) .character-quote p {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px #f9731622, inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid #f97316;
}

.character-card:nth-child(3) .character-quote p {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px #8b5cf622, inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid #8b5cf6;
}

.character-card:nth-child(4) .character-quote p {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px #7FE67A22, inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid #7FE67A;
}

.character-card:nth-child(5) .character-quote p {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(81, 18, 128, 0.133), inset 0 6px 12px rgba(0, 0, 0, 0.03);
    border: 3px solid rgba(81, 18, 128, 1);
}

/* Speech bubble tail - REMOVED FOR CLEAN DESIGN */
.character-quote::after {
    display: none !important;
}

/* Character Traits */
.character-traits {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.25rem;
    margin-top: 0.75rem;
    width: 340px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.trait-badge {
    padding: 0.4rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    color: #374151;
    flex: 1;
    min-width: 0;
    text-align: center;
    
    /* Smaller border */
    border: 2px solid #e5e7eb;
    transition: all 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Character-specific trait badge borders and colors */
.character-card:nth-child(1) .trait-badge {
    border: 2px solid #dc3b4d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px #dc3b4d22;
    color: #dc3b4d;
}

.character-card:nth-child(2) .trait-badge {
    border: 2px solid #f97316;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px #f9731622;
    color: #f97316;
}

.character-card:nth-child(3) .trait-badge {
    border: 2px solid #8b5cf6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px #8b5cf622;
    color: #8b5cf6;
}

.character-card:nth-child(4) .trait-badge {
    border: 2px solid #7FE67A;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px #7FE67A22;
    color: #7FE67A;
}

.character-card:nth-child(5) .trait-badge {
    border: 2px solid rgba(81, 18, 128, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(81, 18, 128, 0.133);
    color: rgba(81, 18, 128, 1);
}

.characters-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   EDUCATION SECTION
   ======================================== */

/* ========================================
   EDUCATION SECTION
   ======================================== */

.education-content {
    padding: 0 1rem 12rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .education-content {
        padding: 0 1rem 5rem;
    }
    
    /* Make education section subtitle match the max-width of education cards below */
    .education-content .section-subtitle {
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    /* Make education section subtitle match the max-width of education cards below */
    .education-content .section-subtitle {
        max-width: 320px;
    }
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 340px);
    gap: 2rem;
    justify-content: center;
    margin-top: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile layout: single column, prevent horizontal overflow */
@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
        max-width: 640px;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .education-content {
        padding-bottom: 3.5rem;
    }
}

@media (min-width: 768px) {
    .education-grid {
        grid-template-columns: repeat(3, 340px);
        gap: 2.5rem;
    }
}

/* Education Cards - Button Style */
.education-card {
    width: 340px;
    max-width: 340px;
    min-width: 340px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: fadeInUp 0.8s ease-out forwards;
}

@media (max-width: 768px) {
    .education-card {
        width: 100%;
        max-width: 450px;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .education-card {
        max-width: 320px;
    }
}

.education-card:nth-child(1) {
    animation-delay: 0s;
}

.education-card:nth-child(2) {
    animation-delay: 0.15s;
}

.education-card:nth-child(3) {
    animation-delay: 0.3s;
}

.education-card-inner {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    min-height: 280px;
    filter: brightness(1.15) saturate(1.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Dynamic background gradient based on data-color */
.education-card[data-color="#dc3b4d"] .education-card-inner {
    background: linear-gradient(135deg, #dc3b4d, #b73240);
}

.education-card[data-color="#f97316"] .education-card-inner {
    background: linear-gradient(135deg, #f97316, #e6670f);
}

.education-card[data-color="#8b5cf6"] .education-card-inner {
    background: linear-gradient(135deg, #8b5cf6, #7c4df0);
}

/* Hover effects */
.education-card:hover .education-card-inner {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Shine effect */
.education-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease-out;
    pointer-events: none;
}

.education-card:hover .education-shine {
    transform: translateX(100%);
}

/* Content wrapper */
.education-content-wrapper {
    position: relative;
    padding: 2rem 2.5rem;
    text-align: center;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

@media (min-width: 1024px) {
    .education-content-wrapper {
        padding: 2.5rem;
    }
}

/* Icon container */
.education-icon-container {
    position: relative;
    margin-bottom: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.education-icon-box {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .education-icon-box {
        width: 6rem;
        height: 6rem;
    }
}

.education-icon {
    width: 2rem;
    height: 2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (min-width: 1024px) {
    .education-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Text content */
.education-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.education-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
    .education-title {
        font-size: 1.875rem;
    }
}

.education-card:hover .education-title {
    transform: scale(1.05);
}

.education-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .education-description {
        font-size: 1.125rem;
    }
}

/* Animated background pattern */
.education-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    animation: patternPulse 4s ease-in-out infinite;
}

.education-card:nth-child(1) .education-bg-pattern {
    animation-delay: 0s;
}

.education-card:nth-child(2) .education-bg-pattern {
    animation-delay: 0.5s;
}

.education-card:nth-child(3) .education-bg-pattern {
    animation-delay: 1s;
}

@keyframes patternPulse {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* Background Container */
.newsletter-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Background Image */
.newsletter-background .section-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1.0;
}

.newsletter-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .newsletter-content {
        padding: 2rem;
    }
}

/* Newsletter Section */
.newsletter-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .newsletter-wrapper {
        padding: 0;
    }
}

.newsletter-text-content {
    margin-bottom: 3rem;
}

.newsletter-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

@media (max-width: 480px) {
    .newsletter-title {
        font-size: 1.75rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
}

@media (min-width: 768px) {
    .newsletter-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .newsletter-title {
        font-size: 3.5rem;
    }
}

.newsletter-subtitle {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
    hyphens: auto;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .newsletter-subtitle {
        font-size: 0.9rem;
        max-width: 95%;
        padding: 0 1.5rem;
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .newsletter-subtitle {
        font-size: 1.125rem;
        max-width: 700px;
        padding: 0;
    }
}

/* Newsletter Form Container */
.newsletter-form-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    max-width: calc(100vw - 2rem);
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .newsletter-form-container {
        padding: 2rem 1.5rem;
        max-width: 600px;
    }
}

@media (min-width: 768px) {
    .newsletter-form-container {
        padding: 2.5rem 3rem;
        max-width: 650px;
    }
}

.newsletter-form-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.35);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.newsletter-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 640px) {
    .newsletter-form-fields {
        flex-direction: row;
        gap: 1rem;
    }
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    color: #6b7280;
    font-weight: 500;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .newsletter-input {
        padding: 1.25rem 1.5rem;
        font-size: 1.05rem;
    }
}

@media (min-width: 640px) {
    .newsletter-input {
        width: auto;
        min-width: 300px;
        padding: 1.5rem 1.75rem;
        font-size: 1.1rem;
    }
}

.newsletter-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.newsletter-btn {
    background: linear-gradient(135deg, #dc3b4d 0%, #c8334a 50%, #b02e42 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(220, 59, 77, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .newsletter-btn {
        padding: 1.25rem 2rem;
        font-size: 1rem;
        min-width: 180px;
        width: auto;
    }
}

@media (min-width: 640px) {
    .newsletter-btn {
        padding: 1.5rem 2.5rem;
        font-size: 1.1rem;
        min-width: 200px;
    }
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #c8334a 0%, #b02e42 50%, #9c2938 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 59, 77, 0.5);
}

.newsletter-btn:active {
    transform: translateY(-1px);
}

.newsletter-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.newsletter-privacy i {
    color: #22c55e;
    width: 1.25rem;
    height: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Meet Our Team Section */
.meet-team-section {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .meet-team-section {
        max-width: 1024px;
        padding: 0;
    }
}

/* Add extra spacing above Meet Our Team on small mobile */
@media (max-width: 640px) {
    .meet-team-section {
        margin-top: 4rem;
    }
}

.meet-team-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .meet-team-title {
        font-size: 3rem;
    }
}

.meet-team-subtitle {
    font-size: 1rem;
    color: #333333;
    font-weight: 600;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
    hyphens: auto;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .meet-team-subtitle {
        font-size: 0.95rem;
        max-width: 95%;
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .meet-team-subtitle {
        font-size: 1.25rem;
        max-width: 600px;
        padding: 0;
    }
}

.meet-team-cta {
    margin-top: 2rem;
    text-align: center;
}

.meet-team-cta .btn-meet-characters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   FOOTER - REDESIGNED
   ======================================== */

.footer {
    position: relative;
    padding: 4rem 0 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, #33d6f8 0%, #2dd4bf 50%, #06b6d4 100%);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="4"/></g></g></svg>') repeat;
    z-index: 1;
}

.footer-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer-content-simple {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-main-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .footer-brand-section {
        align-items: center;
    }
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-container {
    position: relative;
    width: 3rem;
    height: 3rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.footer-logo-container:hover {
    transform: scale(1.05);
}

.footer-logo-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: white;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 3px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.footer-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    z-index: 1;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.footer-brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.footer-description-simple {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    max-width: 300px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

.footer-links-section {
    display: flex;
    flex-direction: column;
}

.footer-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-links-simple {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 8px;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.footer-link:hover::before {
    transform: translateY(-50%) scaleX(1);
}

.footer-contact-section {
    display: flex;
    flex-direction: column;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Mobile centering for footer sections */
@media (max-width: 768px) {
    .footer-links-section,
    .footer-contact-section {
        align-items: center;
        text-align: center;
    }

    .footer-links-simple {
        align-items: center;
    }

    .footer-contact-info {
        align-items: center;
        width: 100%;
    }

    .footer-contact-item {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

.footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    margin: 0;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Flexbox utilities for footer */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

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

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 1023px) {
    .hero-desktop {
        display: none !important;
    }
}

/* ========================================
   ANIMATIONS & ACCESSIBILITY
   ======================================== */

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

    to {
        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;
    }
}
/* 
========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    margin-top: -4rem;
}

.newsletter-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.newsletter-background .section-bg {
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0.15) 6%, rgba(0, 0, 0, 0.3) 10%, rgba(0, 0, 0, 0.5) 15%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.85) 25%, black 30%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0.15) 6%, rgba(0, 0, 0, 0.3) 10%, rgba(0, 0, 0, 0.5) 15%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.85) 25%, black 30%, black 100%);
}

.newsletter-content {
    position: relative;
    z-index: 10;
    padding: 4rem 0 3rem;
}

.newsletter-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text-content {
    margin-bottom: 3rem;
}

.newsletter-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

@media (max-width: 480px) {
    .newsletter-title {
        font-size: 1.75rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
}

@media (min-width: 768px) {
    .newsletter-title {
        font-size: 3.5rem;
    }
}

.newsletter-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333333;
    font-weight: 600;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    word-wrap: break-word;
    hyphens: auto;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .newsletter-subtitle {
        font-size: 0.9rem;
        max-width: 95%;
        padding: 0 1.5rem;
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .newsletter-subtitle {
        font-size: 1.25rem;
        max-width: 600px;
        padding: 0;
    }
}

.newsletter-form-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    margin: 0 auto;
    max-width: calc(100vw - 2rem);
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .newsletter-form-container {
        padding: 2rem 1.5rem;
        max-width: 600px;
    }
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.newsletter-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .newsletter-form-fields {
        flex-direction: row;
        gap: 0.5rem;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.newsletter-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    background: white;
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

.newsletter-btn {
    background: linear-gradient(135deg, #dc3b4d 0%, #c8334a 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 59, 77, 0.3);
    font-size: 1rem;
    min-width: 140px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .newsletter-btn {
        width: auto;
    }
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 59, 77, 0.4);
}

.newsletter-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #333333;
    font-size: 0.875rem;
    font-weight: 500;
}

.newsletter-privacy i {
    color: #22c55e;
    width: 16px;
    height: 16px;
}

/* Mobile: tighten newsletter section and move content up */
@media (max-width: 640px) {
    .newsletter-section {
        min-height: auto;
        padding: 2.5rem 0 !important; /* override inline important */
        padding-bottom: 4rem !important; /* end sooner while keeping blend */
        margin-bottom: -1rem !important;
    }

    .newsletter-content {
        padding: 1.25rem 0 1rem;
    }

    .newsletter-wrapper {
        margin-bottom: 1.5rem;
    }

    .newsletter-text-content {
        margin-bottom: 1.25rem;
    }
}