/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-orange: #F27429;
    --primary-blue: #0066B2;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --gradient-1: linear-gradient(135deg, var(--primary-orange), #ff9a56);
    --gradient-2: linear-gradient(135deg, var(--primary-blue), #3399dd);
    --gradient-hero: linear-gradient(135deg, rgba(242, 116, 41, 0.9), rgba(0, 102, 178, 0.9));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-image: 
    /* linear-gradient(22deg, rgba(233, 233, 167, 1) 0%, rgba(235, 103, 0, 1) 22%, rgba(240, 90, 36, 1) 42%, rgba(240, 90, 36, 1) 62%, rgba(51, 14, 0, 1) 92%), */
    url(./images/parttern2.jpg);
    backdrop-filter: blur(1px);
    background-blend-mode: screen;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(22deg, rgba(255, 255, 255, 1) 18%, rgba(255, 173, 110, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* ===================================
   Navigation Bar (Mobile First)
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 50px;
    width: auto;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-md);
    padding: 20px;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.nav-menu.active {
    left: 0;
}

.nav-menu li a {
    display: block;
    padding: 12px 16px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary-orange);
}

.nav-cta {
    background: var(--gradient-1);
    color: var(--gradient-bg) !important;
    font-weight: 600;
    text-align: center;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Hero Section (Mobile First)
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: transparent; */
    background-image:
        linear-gradient(
            22deg,
            rgba(233, 233, 167, 0.75) 0%,
            rgba(235, 103, 0, 0.75) 22%,
            rgba(240, 90, 36, 0.75) 42%,
            rgba(240, 90, 36, 0.75) 62%,
            rgba(51, 14, 0, 0.75) 92%
        ),
        url(./images/judge-1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(22deg, rgba(233, 233, 167, 1) 0%, rgba(235, 103, 0, 1) 22%, rgba(240, 90, 36, 1) 42%, rgba(240, 90, 36, 1) 62%, rgba(51, 14, 0, 1) 92%);
    background-attachment: fixed;
    opacity: 0.6;
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.trophy {
    font-size: 2.5rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(26deg, rgba(255, 255, 255, 1) 18%, rgba(255, 173, 110, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: none;
    line-height: 1.1;
    letter-spacing: 2px;
}

.challenge-text {
    display: inline;
}

.year-highlight {
    color: #ffd89b;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    /* text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3); */
    letter-spacing: 1px;
}

.hero-tagline-box {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 40px;
    border-radius: 50px;
    margin-bottom: 25px;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.hero-description {
    font-size: 1rem;
    color: white;
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: black;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.info-icon {
    font-size: 1.5rem;
}

/* ===================================
   CTA Buttons
   =================================== */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.cta-primary {
    background: linear-gradient(135deg, #000000 0%, #4a0000 25%, #ff4500 60%, #ffa500 85%, #ffeb99 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 69, 0, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 69, 0, 0.6);
}

.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 69, 0, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 165, 0, 0.8); }
}

/* ===================================
   Fade In Left Animation
   =================================== */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out;
    animation-fill-mode: both;
}

.fade-in-left:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in-left:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in-left:nth-child(3) {
    animation-delay: 0.6s;
}

.fade-in-left:nth-child(4) {
    animation-delay: 0.8s;
}

.fade-in-left:nth-child(5) {
    animation-delay: 1s;
}

.fade-in-left:nth-child(6) {
    animation-delay: 1.2s;
}

/* ===================================
   Scroll Indicator
   =================================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gradient-bg);
    font-size: 0.875rem;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===================================
   Benefits Section
   =================================== */
/* .benefits {
    background: 
        linear-gradient(22deg, rgba(233, 233, 167, 1) 0%, rgba(235, 103, 0, 1) 22%, rgba(240, 90, 36, 1) 42%, rgba(240, 90, 36, 1) 62%, rgba(51, 14, 0, 1) 92%),
        url(./images/pattern.jpg);
    background-size: cover, auto;
    background-position: center, center;
    background-repeat: no-repeat, repeat;
    background-blend-mode: normal, screen;
} */

.benefits-grid {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F05A24;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Challenge Details Section
   =================================== */
.challenge-details {
    background: transparent;
}

.challenge-content {
    max-width: 900px;
    margin: 0 auto;
}

.team-info {
    background: var(--light-bg);
    padding: 30px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.team-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.competition-parts h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
}

.part-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px 25px;
    margin-bottom: 25px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.part-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 6px 20px rgba(242, 116, 41, 0.15);
    transform: translateY(-4px);
}

.part-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.part-number {
    background: var(--gradient-1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(242, 116, 41, 0.3);
    flex-shrink: 0;
}

.part-header h4 {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.part-weight {
    background: var(--primary-orange);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 102, 178, 0.25);
}

.part-content p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-dark);
}

.part-content p strong {
    color: #F05A24;
    font-weight: 700;
}

/* ===================================
   Timeline Section
   =================================== */
.timeline-section {
    background: transparent;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, white 0%, white 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-orange);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.timeline-item.highlight .timeline-marker {
    width: 28px;
    height: 28px;
    left: -28px;
    top: 6px;
    background: linear-gradient(135deg, var(--primary-orange), #ff9a56);
    border: 5px solid white;
    box-shadow: 0 4px 12px rgba(242, 116, 41, 0.4);
}

@keyframes pulse-marker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timeline-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.timeline-content:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(4px);
}

.timeline-date {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.timeline-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.timeline-format {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-item.highlight .timeline-content {
    background: linear-gradient(135deg, #000000 0%, #4a0000 25%, #ff4500 60%, #ffa500 85%, #ffeb99 100%);
    color: white;
    border-left: 4px solid var(--primary-orange);
}

.timeline-item.highlight .timeline-date,
.timeline-item.highlight h4 {
    color: white;
}

.timeline-item.highlight .timeline-format {
    color: rgba(255, 255, 255, 0.95);
}

/* ===================================
   Judges Section
   =================================== */
.judges {
    background: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: white;
    margin-top: -30px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.judges-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.judges-carousel-wrapper {
    position: relative;
}

/* Dot Pagination - Hidden on mobile/tablet */
.carousel-dots {
    display: none;
}

.judge-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Desktop: Carousel with dots */
@media (min-width: 1024px) {
    .judges-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 20px;
        padding: 20px 0 40px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .judges-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .judge-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 300px;
        scroll-snap-align: start;
    }
    
    /* Show dot pagination on desktop */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 30px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }
    
    .dot:hover {
        background: rgba(255, 255, 255, 0.6);
        transform: scale(1.2);
    }
    
    .dot.active {
        background: var(--primary-orange);
        border-color: white;
        transform: scale(1.3);
    }
}

/* Tablet: Grid 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .judges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: Grid 1 column */
@media (max-width: 767px) {
    .judges-grid {
        grid-template-columns: 1fr;
    }
}

.judge-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.judge-image {
    width: 100%;
    height: 370px;
    overflow: hidden;
    background: var(--light-bg);
    position: relative;
}

.judge-image::before {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.3;
    z-index: 0;
}

.judge-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
    /* background-size: cover; */
    display: block;
    background: white;
}

.judge-image img[src*=".jpg"],
.judge-image img[src*=".png"],
.judge-image img[src*=".webp"] {
    display: block;
}

.judge-image img:not([src]),
.judge-image img[src=""],
.judge-image img[alt]:not([src*="/"]) {
    display: none;
}

.judge-card:hover .judge-image img {
    transform: scale(1.05);
}

.judge-info {
    padding: 25px 20px;
    text-align: center;
}

.judge-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 8px;
    line-height: 1.5rem;
}

.judge-title {
    font-size: 14px;
    font-weight: 600;
    color: black;
    margin-bottom: 12px;
}

.judge-bio {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   Prizes Section
   =================================== */
.prizes {
    background: transparent;
}

.prize-total {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #000000 0%, #4a0000 25%, #ff4500 60%, #ffa500 85%, #ffeb99 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    color: white;
}

.prize-total h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.prize-amount {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.prize-note {
    font-size: 1rem;
    opacity: 0.9;
}

.prizes-grid {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.prize-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 3px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.prize-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.prize-badge {
    font-size: 3rem;
    margin-bottom: 15px;
}

.prize-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.prize-money {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.prize-extra {
    color: var(--text-light);
    font-size: 0.95rem;
}

.prize-gold {
    border-color: #ffd700;
}

.prize-silver {
    border-color: #c0c0c0;
}

.prize-bronze {
    border-color: #cd7f32;
}

.prize-special {
    border-color: var(--primary-blue);
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    background: transparent;
}

.gallery-grid {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/3;
    background: var(--gradient-2);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* Placeholder chỉ hiện khi ảnh chưa load hoặc lỗi */
.gallery-item img[src=""]:before,
.gallery-item:has(img[alt]):not(:has(img[src*=".jpg"][complete])):before {
    content: '📷';
}

.gallery-item img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    display: block;
}

.gallery-item img[src*=".jpg"],
.gallery-item img[src*=".png"],
.gallery-item img[src*=".webp"] {
    opacity: 1;
}

.gallery-item img:not([src]),
.gallery-item img[src=""] {
    opacity: 0;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    display: none;
}

/* ===================================
   Registration Section
   =================================== */
.registration {
    background: transparent;
}

.registration-deadline {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
}

.registration-content {
    max-width: 900px;
    margin: 0 auto;
}

.registration-form {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-orange);
}

.required {
    color: var(--primary-orange);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(242, 116, 41, 0.1);
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(242, 116, 41, 0.1);
}

/* Field Error Styles */
.field-error {
    display: none;
    margin-top: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 3px solid #dc3545;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #721c24;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.08);
    font-weight: 500;
}

.error-input {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.05) !important;
}

.error-input:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.registration-form button {
    width: 100%;
    margin-top: 10px;
}

.registration-notice {
    margin-top: 30px;
}

.notice-box {
    background: #fff3cd;
    border-left: 5px solid var(--primary-orange);
    padding: 25px 20px;
    border-radius: 12px;
}

.notice-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.notice-box p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.address-info {
    background: var(--gradient-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.address-info p {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: transparent;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section a {
    color: white;
    text-decoration: underline;
}

.footer-section a:hover {
    color: #ffeb99;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: var(--gradient-bg);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Tablet Styles (768px and up)
   =================================== */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .hero-info {
        flex-direction: row;
        justify-content: center;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .judges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .prizes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline {
        padding-left: 40px;
    }
}

/* ===================================
   Desktop Styles (1024px and up)
   =================================== */
@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        background: white !important;
        box-shadow: none;
        padding: 0;
        width: auto;
        left: auto;
        top: auto;
    }

    .nav-menu li a {
        padding: 8px 16px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .benefit-card:nth-child(4),
    .benefit-card:nth-child(5) {
        grid-column: span 1;
    }

    .judges-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .prizes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .registration-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
        align-items: start;
    }
}

/* ===================================
   Large Desktop (1440px and up)
   =================================== */
@media (min-width: 1440px) {
    .section {
        /* padding: 100px 0; */
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    .scroll-indicator,
    .back-to-top {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ===================================
   Animations & Utilities
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}
@media (max-width: 500px) {
    .hero-tagline-box {
        font-size: 12px;
    }
    .judge-image {
    width: 100%;
    height: 370px;
    overflow: hidden;
    background: var(--light-bg);
    position: relative;
    }
}