/* ============================================
   APEX THOUGHT - STYLES
   ============================================ */

:root {
    --bg-primary: #FDFBF7;
    --bg-secondary: #F5F0E8;
    --bg-dark: #1A1A1A;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-light: #FDFBF7;
    --accent-coral: #FF6B4A;
    --accent-blue: #2563EB;
    --accent-amber: #F59E0B;
    --accent-gradient: linear-gradient(135deg, #FF6B4A 0%, #FF8F6B 50%, #F59E0B 100%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1000;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-coral);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent-coral);
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-title em {
    font-style: italic;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   JS-RENDERED CONTAINERS — CLS prevention
   ============================================ */

#header-container {
    min-height: 72px;
}

#footer-container {
    min-height: 260px;
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: var(--text-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
}

.btn-primary:hover {
    background: var(--accent-coral);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 74, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
}

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

/* ============================================
   MOBILE MENU BUTTON
   ============================================ */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 2rem 4rem;
    position: relative;
}

.hero-decoration {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.decoration-circle {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.1) 0%, transparent 70%);
    top: -50px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
    max-width: 100vw;
}

.decoration-circle-2 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    bottom: 100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
    max-width: 100vw;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out 0.2s both;
}

#season-year {
    display: inline;
    margin: 0;
    padding: 0;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-coral);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

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

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.25rem, 7vw, 6rem);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-title em {
    font-style: italic;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.15em;
    margin-right: 0.05em;
}

/* Rotating words animation */
.rotating-words {
    display: block;
    position: relative;
    overflow: visible;
    padding-right: 0.5em;
}

.rotating-words .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
}

.rotating-words .word:first-child {
    position: relative;
}

.rotating-words .word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-words .word.exit {
    opacity: 0;
    transform: translateY(-20px);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.8s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    animation: slideUp 0.8s ease-out 1s both;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-number span {
    color: var(--accent-coral);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Floating Quote Card */
.floating-quote {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 380px;
    min-height: 320px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    animation: floatQuote 1s ease-out 1.2s both;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

@keyframes floatQuote {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.quote-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.quote-icon svg {
    width: 20px;
    height: 20px;
}

.quote-text {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
}

.author-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */

.programs {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.programs-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-coral);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.program-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.program-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.program-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.program-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-features li::before {
    content: '✓';
    color: var(--accent-coral);
    font-weight: 600;
}

/* ============================================
   WHY SECTION
   ============================================ */

.why-section {
    padding: 6rem 2rem;
    position: relative;
    overflow-x: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.why-content {
    max-width: 500px;
}

.why-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-coral);
}

.why-feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.why-feature-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.why-visual {
    position: relative;
}

.why-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.why-image {
    border-radius: 16px;
    aspect-ratio: 1;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.why-image:hover {
    transform: scale(1.05);
}


/* ============================================
   COMPETITIONS SECTION
   ============================================ */

.competitions {
    padding: 6rem 0;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}

.competitions .section-title {
    color: white;
}

.competitions-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.competitions-header p {
    color: rgba(255, 255, 255, 0.7);
}

.competitions-scroll-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    padding: 10px 0;
    margin: -10px 0;
}

.competitions-scroll-wrapper:hover .competitions-scroll-track {
    animation-play-state: paused;
}

.competitions-scroll-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 10%, transparent 90%, var(--bg-dark) 100%);
    pointer-events: none;
    z-index: 1;
}

.competitions-scroll-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll-competitions 20s linear infinite;
    width: fit-content;
}

.competitions-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-competitions {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.competition-card {
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: var(--text-light);
    text-decoration: none;
}

.competition-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.competition-flag {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.competition-name {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.competition-location {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.competition-year {
    display: inline-block;
    background: var(--accent-gradient);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    padding: 6rem 0;
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.testimonials-scroll-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    padding: 10px 0;
    margin: -10px 0;
}

.testimonials-scroll-wrapper:hover .testimonials-scroll-track {
    animation-play-state: paused;
}

.testimonials-scroll-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 10%, transparent 90%, var(--bg-primary) 100%);
    pointer-events: none;
    z-index: 1;
}

.testimonials-scroll-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll-testimonials 20s linear infinite;
    width: fit-content;
}

.testimonials-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 400px;
    max-width: 400px;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.testimonial-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .logo-img {
    filter: brightness(1.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-coral);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-coral);
    transform: translateY(-3px);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOBILE RESPONSIVE - TABLET LANDSCAPE
   ============================================ */

@media (max-width: 1200px) {
    .floating-quote {
        display: none;
    }
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-visual {
        order: -1;
    }

    .why-image-grid {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ============================================
   TABLET RESPONSIVE - 900px
   ============================================ */

@media (max-width: 900px) {
    .cta-card {
        padding: 3rem 2rem;
    }

    .hero-decoration {
        width: 400px;
        height: 400px;
    }

    .hero-decoration.decoration-circle-2 {
        width: 280px;
        height: 280px;
    }

    .testimonial-card {
        min-width: 350px;
        max-width: 350px;
    }

    .logo-img {
        height: 36px;
    }

    .programs-grid {
        gap: 1.5rem;
    }
}

/* ============================================
   TABLET RESPONSIVE - 600px
   ============================================ */

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .programs-grid {
        gap: 1.25rem;
    }

    .testimonial-card {
        min-width: 340px;
        max-width: 340px;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .competitions-scroll-track {
        gap: 1rem;
    }

    .competition-card {
        min-width: 240px;
    }
}

/* ============================================
   MOBILE RESPONSIVE - TABLET PORTRAIT
   ============================================ */

@media (max-width: 768px) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    nav {
        padding: 0.875rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 32px;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        padding-top: calc(5rem + env(safe-area-inset-top));
        gap: 0.5rem;
        z-index: 99;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateX(0);
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.25rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-links .btn-primary {
        margin-top: 1rem;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
        position: relative;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        z-index: 101;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-btn span {
        width: 22px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 5rem 1rem 3rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        min-height: calc(var(--vh, 1vh) * 100);
        min-height: 100svh;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .decoration-circle {
        width: 300px;
        height: 300px;
        right: -150px;
        top: -50px;
    }

    .decoration-circle-2 {
        width: 200px;
        height: 200px;
        left: -100px;
    }

    .programs,
    .why-section,
    .cta-section {
        padding: 3.5rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .competitions,
    .testimonials {
        padding: 3.5rem 0;
    }

    .section-label {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .programs-header {
        margin-bottom: 2.5rem;
    }

    .programs-header p {
        font-size: 0.9rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .program-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .program-card:hover {
        transform: none;
        box-shadow: none;
    }

    .program-card:active {
        transform: scale(0.98);
    }

    .program-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .program-title {
        font-size: 1.25rem;
    }

    .program-desc {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .program-features li {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }

    .why-content {
        max-width: 100%;
    }

    .why-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .why-features {
        gap: 1.25rem;
    }

    .why-feature-icon {
        width: 44px;
        height: 44px;
    }

    .why-feature-text h4 {
        font-size: 0.95rem;
    }

    .why-feature-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .why-image-grid {
        gap: 0.75rem;
        max-width: 100%;
    }

    .why-image {
        border-radius: 12px;
    }


    .competitions {
        overflow: hidden;
    }

    .competitions-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .competitions-header p {
        font-size: 0.9rem;
    }

    .competitions-scroll-wrapper {
        padding: 0.5rem 0 1.5rem;
    }

    .competitions-scroll-track {
        gap: 1rem;
    }

    .competition-card {
        min-width: 240px;
        padding: 1.5rem;
        border-radius: 16px;
        flex-shrink: 0;
    }

    .competition-card:hover {
        transform: none;
    }

    .competition-card:active {
        transform: scale(0.98);
    }

    .competition-flag {
        font-size: 2rem;
    }

    .competition-name {
        font-size: 1.1rem;
    }

    .competition-location {
        font-size: 0.85rem;
    }

    .testimonials-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        border-radius: 16px;
        min-width: 320px;
        max-width: 320px;
    }

    .testimonial-card:hover {
        transform: none;
    }

    .testimonial-quote {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .testimonial-avatar {
        width: 44px;
        height: 44px;
    }

    .testimonial-info h4 {
        font-size: 0.9rem;
    }

    .cta-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    footer {
        padding: 2rem 1.25rem 1.25rem;
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem 1rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer-brand .logo {
        flex-shrink: 0;
    }

    .footer-brand p {
        max-width: 100%;
        margin: 0;
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .footer-links {
        text-align: left;
    }

    .footer-links h4 {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .footer-links ul {
        gap: 0.4rem;
        align-items: flex-start;
    }

    .footer-links a {
        font-size: 0.78rem;
        min-height: unset;
        padding: 0.2rem 0;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 1rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .social-links a:hover {
        transform: none;
    }

    .social-links a:active {
        transform: scale(0.95);
        background: var(--accent-coral);
    }
}

/* ============================================
   MOBILE RESPONSIVE - SMALL PHONES
   ============================================ */

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        min-height: 52px;
        font-size: 0.95rem;
    }

    .hero-stats {
        justify-content: space-between;
    }

    .stat-item {
        flex: 1;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .competition-card {
        min-width: 220px;
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
        padding: 1.25rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE - VERY SMALL PHONES
   ============================================ */

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .stat-item {
        flex: none;
        text-align: left;
    }

    .logo-text {
        display: none;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .program-card:hover,
    .testimonial-card:hover,
    .competition-card:hover,
    .why-image:hover,
    .social-links a:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    .program-card:active,
    .testimonial-card:active,
    .competition-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn-primary:active {
        transform: scale(0.98);
        background: var(--accent-coral);
    }

    .btn-secondary:active {
        transform: scale(0.98);
        background: var(--text-primary);
        color: white;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION ON MOBILE
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .hero-stats {
        margin-top: 2rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    nav,
    .hero-decoration,
    .mobile-menu-btn {
        display: none !important;
    }

    body::before {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 2rem;
    }
}
