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

:root {
    /* Playful Premium Color Palette */
    --primary: #4C97FF;
    /* Friendly Scratch Blue */
    --secondary: #FFAB19;
    /* Warm Sunny Orange */
    --accent-green: #5CB712;
    /* Fresh Lime Green */
    --accent-purple: #855CD6;
    /* Bright Magic Purple */
    --accent-pink: #FF6680;
    /* Sweet Bubblegum Pink */

    /* Layout Colors */
    --bg-gradient: linear-gradient(135deg, #F0F6FF 0%, #FFEFE6 50%, #F8EFFF 100%);
    --bg-light: #F4F8FD;
    --text-main: #2C3E50;
    /* Soft Dark Navy */
    --text-muted: #5D6D7E;
    --card-bg: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    background-image: none !important;
    background: var(--bg-gradient) !important;
    overflow-x: hidden;
    color: var(--text-main);
}

input,
button,
select,
textarea {
    color: inherit;
    font-family: inherit;
}

/* Redesigned Floating Pill Navbar */
nav.navbar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 2.5px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 40px !important;
    margin: 1rem auto !important;
    padding: 0.5rem 1rem !important;
    width: 90%;
    max-width: 1200px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 12px 30px rgba(76, 151, 255, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1030;
}

nav.navbar:hover {
    box-shadow: 0 16px 40px rgba(76, 151, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Playful Circular Brand/Home Button */
nav.navbar .navbar-brand {
    background: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(76, 151, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0 !important;
}

nav.navbar .navbar-brand svg {
    fill: #FFFFFF !important;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

nav.navbar .navbar-brand:hover {
    transform: scale(1.12) rotate(-8deg);
    background: var(--secondary);
    box-shadow: 0 8px 18px rgba(255, 171, 25, 0.35);
}

/* Playful & Colored Nav Links */
nav.navbar .nav-link {
    color: var(--text-main) !important;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.55rem 1.2rem !important;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

/* Hover/Active states mapped to palette categories */
/* 1. Basic Website (Blue) */
nav.navbar .navbar-nav li:nth-child(1) .nav-link:hover,
nav.navbar .navbar-nav li:nth-child(1) .nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(76, 151, 255, 0.1);
    transform: translateY(-2px);
}

/* 2. Scratch (Orange) */
nav.navbar .navbar-nav li:nth-child(2) .nav-link:hover,
nav.navbar .navbar-nav li:nth-child(2) .nav-link.active {
    color: var(--secondary) !important;
    background-color: rgba(255, 171, 25, 0.1);
    transform: translateY(-2px);
}

/* 3. Quiz (Purple) */
nav.navbar .navbar-nav li:nth-child(3) .nav-link:hover,
nav.navbar .navbar-nav li:nth-child(3) .nav-link.active {
    color: var(--accent-purple) !important;
    background-color: rgba(133, 92, 214, 0.1);
    transform: translateY(-2px);
}

/* 4. Basic Scratch (Green) */
nav.navbar .navbar-nav li:nth-child(4) .nav-link:hover,
nav.navbar .navbar-nav li:nth-child(4) .nav-link.active {
    color: var(--accent-green) !important;
    background-color: rgba(92, 183, 18, 0.1);
    transform: translateY(-2px);
}

/* Child-friendly Rounded Dropdown Menu */
nav.navbar .dropdown-menu {
    border: 3px solid rgba(133, 92, 214, 0.1);
    border-radius: 24px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    padding: 0.5rem !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    margin-top: 0.5rem !important;
}

nav.navbar .dropdown-item {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main) !important;
    border-radius: 16px !important;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.2s ease;
}

nav.navbar .dropdown-item:hover {
    background-color: rgba(133, 92, 214, 0.08);
    color: var(--accent-purple) !important;
    transform: translateX(3px);
}

/* Custom Toggler for Playful Vibe */
nav.navbar .navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 15px;
    transition: background-color 0.2s ease;
}

nav.navbar .navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

nav.navbar .navbar-toggler:focus {
    box-shadow: none;
}

nav.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Redesigned Hero Section */
.header-section {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-gradient);
    padding-top: 5.5rem;
    padding-bottom: 1.2rem;
    overflow: hidden;
}

/* Background blob decorations */
.header-section::after {
    content: "";
    position: absolute;
    width: 45rem;
    height: 45rem;
    background: radial-gradient(circle, rgba(76, 151, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    top: -12rem;
    right: -10rem;
    z-index: 1;
    pointer-events: none;
}

.header-section::before {
    content: "";
    position: absolute;
    width: 40rem;
    height: 40rem;
    background: radial-gradient(circle, rgba(255, 171, 25, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -10rem;
    left: -10rem;
    z-index: 1;
    pointer-events: none;
}

.header-content {
    z-index: 2;
}

.learning {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Logo Sizing & Layout (Golden Ratio proportional to 40px title) */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.618rem;
    /* Golden Ratio Gap */
    margin-bottom: 1.5rem;
}

.header-logo {
    height: 65px;
    /* Golden Ratio Height: Title 40px (fs-1) * 1.618 ≈ 65px */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.06));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo:hover {
    transform: scale(1.12) rotate(2deg);
}

.logo-separator {
    width: 2px;
    height: 40px;
    /* Golden Ratio Divider: Logo 65px / 1.618 ≈ 40px */
    background-color: rgba(44, 62, 80, 0.15);
    border-radius: 2px;
}

/* Feature Cards Grid (Replacing Circles) */
.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(76, 151, 255, 0.15);
}

.feature-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 4px solid #FFFFFF;
}

/* Specific Card Stylings */
.feat-blue {
    border-color: rgba(76, 151, 255, 0.2);
}

.feat-blue:hover {
    border-color: var(--primary);
}

.feat-blue .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--primary), #8CC0FF);
}

.feat-orange {
    border-color: rgba(255, 171, 25, 0.2);
}

.feat-orange:hover {
    border-color: var(--secondary);
}

.feat-orange .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary), #FFD58A);
}

.feat-purple {
    border-color: rgba(133, 92, 214, 0.2);
}

.feat-purple:hover {
    border-color: var(--accent-purple);
}

.feat-purple .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--accent-purple), #BCA1F3);
}

.feature-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Gentle Floating Animations */
@keyframes float1 {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes float2 {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-1.5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes float3 {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.anim-float-1 {
    animation: float1 6s ease-in-out infinite;
}

.anim-float-2 {
    animation: float2 7s ease-in-out infinite 0.5s;
}

.anim-float-3 {
    animation: float3 8s ease-in-out infinite 1s;
}

/* Motion/Developer Section */
#motion {
    background-color: var(--bg-light);
    padding: 6rem 0;
    position: relative;
    z-index: 5;
}

/* Beautiful curved divider transition instead of simple wave overlapping */
.wave-divider {
    width: 100%;
    height: 120px;
    background-color: transparent;
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 4;
    pointer-events: none;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 120px;
}

.wave-divider svg path {
    fill: #FFFFFF;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 8px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 10px;
    margin: 0.8rem auto 0 auto;
}

/* Redesigned Premium Developer Cards */
.dev-card-wrapper {
    height: 100%;
    padding: 1rem;
}

.dev-card {
    background: #FFFFFF;
    border-radius: 36px;
    border: 3px solid rgba(76, 151, 255, 0.12);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dev-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(133, 92, 214, 0.12);
    border-color: var(--accent-purple);
}

.avatar-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--bg-light);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.avatar-wrapper::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 3px dashed var(--secondary);
    animation: rotateDashed 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateDashed {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.dev-badge {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(133, 92, 214, 0.2);
}

.dev-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.dev-id {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.dev-univ {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Footer Section */
footer {
    background-color: var(--text-main);
    color: #FFFFFF;
    padding: 3rem 0;
    border-top: 4px solid var(--primary);
}

footer p,
footer p * {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem;
    margin: 0;
}

footer svg {
    fill: var(--secondary);
    vertical-align: middle;
    margin-right: 5px;
}

/* Full Screen Loader */
.loader {
    background: var(--bg-gradient);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.80s, visibility 0.80s;
}

.loader--hidden {
    opacity: 0;
    visibility: hidden;
}

.loader::after {
    content: "";
    width: 70px;
    height: 70px;
    border: 10px solid rgba(76, 151, 255, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loading 0.75s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* ==========================================================================
   BASIC SCRATCH REDESIGN CARD GRID STYLES (Clean & Independent)
   ========================================================================== */

.scratch-logo-bg {
    width: 110px;
    height: 110px;
    background-color: white;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 171, 25, 0.25);
    border: 4px solid var(--secondary);
}

.scratch-logo-bg img {
    width: 70px;
    height: auto;
}

.scratch-title {
    background: linear-gradient(135deg, var(--secondary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.max-width-600 {
    max-width: 600px;
}

/* Beautiful child-friendly Scratch Card styling */
.scratch-card {
    background: white;
    border-radius: 32px;
    border: 3px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.scratch-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.scratch-card-header {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.05);
}

.scratch-card-header img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.scratch-card:hover .scratch-card-header img {
    transform: scale(1.15) rotate(3deg);
}

.scratch-card-body {
    padding: 2rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.scratch-card-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.scratch-card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Color Coding Borders & Headers for Scratch Cards */
.card-motion {
    border-color: rgba(76, 151, 255, 0.15);
}

.card-motion .scratch-card-header {
    background: rgba(76, 151, 255, 0.06);
}

.card-motion .scratch-card-body h4 {
    color: var(--primary);
}

.card-motion:hover {
    border-color: var(--primary);
}

.card-looks {
    border-color: rgba(133, 92, 214, 0.15);
}

.card-looks .scratch-card-header {
    background: rgba(133, 92, 214, 0.06);
}

.card-looks .scratch-card-body h4 {
    color: var(--accent-purple);
}

.card-looks:hover {
    border-color: var(--accent-purple);
}

.card-sound {
    border-color: rgba(255, 102, 128, 0.15);
}

.card-sound .scratch-card-header {
    background: rgba(255, 102, 128, 0.06);
}

.card-sound .scratch-card-body h4 {
    color: var(--accent-pink);
}

.card-sound:hover {
    border-color: var(--accent-pink);
}

.card-events {
    border-color: rgba(255, 171, 25, 0.15);
}

.card-events .scratch-card-header {
    background: rgba(255, 171, 25, 0.06);
}

.card-events .scratch-card-body h4 {
    color: var(--secondary);
}

.card-events:hover {
    border-color: var(--secondary);
}

.card-control {
    border-color: rgba(255, 176, 0, 0.15);
}

.card-control .scratch-card-header {
    background: rgba(255, 176, 0, 0.06);
}

.card-control .scratch-card-body h4 {
    color: #FFB000;
}

.card-control:hover {
    border-color: #FFB000;
}

.card-sensing {
    border-color: rgba(44, 165, 226, 0.15);
}

.card-sensing .scratch-card-header {
    background: rgba(44, 165, 226, 0.06);
}

.card-sensing .scratch-card-body h4 {
    color: #2CA5E2;
}

.card-sensing:hover {
    border-color: #2CA5E2;
}

.card-operators {
    border-color: rgba(92, 183, 18, 0.15);
}

.card-operators .scratch-card-header {
    background: rgba(92, 183, 18, 0.06);
}

.card-operators .scratch-card-body h4 {
    color: var(--accent-green);
}

.card-operators:hover {
    border-color: var(--accent-green);
}

.card-variables {
    border-color: rgba(255, 140, 26, 0.15);
}

.card-variables .scratch-card-header {
    background: rgba(255, 140, 26, 0.06);
}

.card-variables .scratch-card-body h4 {
    color: #FF8C1A;
}

.card-variables:hover {
    border-color: #FF8C1A;
}

.card-myblocks {
    border-color: rgba(255, 102, 128, 0.15);
}

.card-myblocks .scratch-card-header {
    background: rgba(255, 102, 128, 0.06);
}

.card-myblocks .scratch-card-body h4 {
    color: #FF6680;
}

.card-myblocks:hover {
    border-color: #FF6680;
}

/* Learn Buttons */
.scratch-learn-btn {
    background-color: var(--bg-light);
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid rgba(76, 151, 255, 0.15);
    text-decoration: none;
}

.scratch-card:hover .scratch-learn-btn {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(76, 151, 255, 0.25);
}

/* Example Project Iframe Wrapper */
.scratch-iframe-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 36px;
    border: 5px solid var(--primary);
    box-shadow: 0 15px 35px rgba(76, 151, 255, 0.12);
    display: inline-block;
    transition: transform 0.3s ease;
}

.scratch-iframe-wrapper:hover {
    transform: scale(1.02);
}

.scratch-iframe-wrapper iframe {
    border-radius: 24px;
    display: block;
    max-width: 100%;
}

/* Browse Button */
.scratch-browse-btn {
    background: linear-gradient(135deg, var(--secondary), #FFD58A) !important;
    color: white !important;
    font-family: 'Fredoka', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 0.8rem 2.5rem !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(255, 171, 25, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-block !important;
    text-decoration: none;
}

.scratch-browse-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 171, 25, 0.45) !important;
}

@media screen and (max-width: 980px) {
    .scratch-iframe-wrapper {
        width: 100% !important;
        padding: 0.5rem;
    }

    .scratch-iframe-wrapper iframe {
        width: 100% !important;
        height: 280px !important;
    }
}

/* ==========================================================================
   LANDING PAGE CENTERING & CTAS (No-logos Redesign)
   ========================================================================== */

.hero-illustration-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.hero-illustration-bg {
    width: 120px;
    height: 120px;
    background: #FFFFFF;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(76, 151, 255, 0.18);
    border: 4px solid var(--primary);
    position: relative;
    transition: transform 0.3s ease;
}

.hero-illustration-bg:hover {
    transform: scale(1.08) rotate(5deg);
}

.hero-illustration-bg::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 38px;
    border: 3px dashed var(--secondary);
    animation: rotateDashed 25s linear infinite;
    pointer-events: none;
}

.hero-rocket-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1;
}

.welcome-badge {
    background: rgba(133, 92, 214, 0.08);
    color: var(--accent-purple) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.55rem 1.6rem;
    border-radius: 50px;
    display: inline-block;
    border: 2px solid rgba(133, 92, 214, 0.15);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--secondary), #FFD58A) !important;
    color: white !important;
    font-family: 'Fredoka', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 0.8rem 2.2rem !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 22px rgba(255, 171, 25, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(255, 171, 25, 0.45) !important;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.85) !important;
    color: var(--primary) !important;
    font-family: 'Fredoka', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 0.8rem 2.2rem !important;
    border-radius: 50px !important;
    border: 3px solid rgba(76, 151, 255, 0.2) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(76, 151, 255, 0.15) !important;
}

@media screen and (max-width: 768px) {
    .header-section {
        height: auto;
        min-height: 100vh;
        padding-top: 7rem;
        padding-bottom: 5rem;
    }
}

/* Language Switcher Pill */
.lang-switch-wrapper {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 3px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    width: fit-content;
}

.lang-btn {
    border: none !important;
    background: transparent !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: 20px !important;
    color: var(--text-muted) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
}

.lang-btn:hover {
    color: var(--text-main) !important;
}

.lang-btn.active {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 8px rgba(76, 151, 255, 0.3) !important;
}

.lang-divider {
    color: rgba(44, 62, 80, 0.15) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin: 0 2px !important;
    user-select: none !important;
}

/* ==========================================================================
   GOOGLE TRANSLATE CUSTOMIZATION & CLEANUP
   ========================================================================== */

/* Hide Google Translate top banner (old & modern widget classes) */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner,
[class*="VIpgJd-"],
iframe[class*="VIpgJd-"] {
    display: none !important;
    visibility: hidden !important;
}

/* Prevent html and body from being pushed down by the Google Translate banner */
html,
body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
}

/* Hide Google Translate tooltips and hover highlights */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}