/* ===================================
   CSS Variables for Dark Theme
   =================================== */

/* ===================================
   Animation Definitions
   =================================== */

@keyframes themeToggle {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

:root {
    /* Color Variables */
    --background-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --text-color: #ffffff;
    --text-color-light: #a0a0a0;
    --primary-blue: #3b82f6;
    --primary-navy: #1e40af;
    --primary-light: #93c5fd;
    --accent-orange: #f97316;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --gray-50: #1a1a1a;
    --gray-100: #2a2a2a;
    --gray-200: #3a3a3a;
    --gray-300: #4a4a4a;
    --gray-400: #6a6a6a;
    --gray-500: #8a8a8a;
    --gray-600: #a0a0a0;
    --gray-700: #b0b0b0;
    --gray-800: #c0c0c0;
    --gray-900: #f0f0f0;
    --border-color: #333333;
    --card-background: #1a1a1a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --font-mono: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', Consolas, 'Courier New', monospace;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    --header-height: 64px;
}

/* ===================================
   Gradient Button Styles
   =================================== */

.gradient-button {
    position: relative;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.gradient-button:hover {
    transform: scale(1.03);
}

.gradient-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #ff6b6b,
        #4ecdc4,
        #45b7d1,
        #96ceb4,
        #feca57,
        #ff9ff3,
        #ff6b6b
    );
    z-index: -2;
    filter: blur(10px);
    transform: rotate(0deg);
    transition: transform 1.5s ease-in-out;
}

.gradient-button:hover::before {
    transform: rotate(180deg);
}

.gradient-button::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #1a1a1a;
    border-radius: 48px;
    z-index: -1;
    filter: blur(5px);
}

.gradient-text {
    color: transparent;
    background: conic-gradient(
        from 0deg,
        #ff6b6b,
        #4ecdc4,
        #45b7d1,
        #96ceb4,
        #feca57,
        #ff9ff3,
        #ff6b6b
    );
    background-clip: text;
    -webkit-background-clip: text;
    filter: hue-rotate(0deg);
}

.gradient-button:hover .gradient-text {
    animation: hue-rotating 2s linear infinite;
}

.gradient-button:active {
    transform: scale(0.99);
}

@keyframes hue-rotating {
    to {
        filter: hue-rotate(360deg);
    }
}

/* ===================================
   Global Reset & Base Styles
   =================================== */

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

/* ===================================
   Header Navigation
   =================================== */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 导航栏排版优化 - 增加内边距，统一间距 */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* 导航链接排版优化 - 统一间距，对称布局 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.nav-links .nav-link {
    margin-right: 0;
}

/* 按钮排版优化 - 立即报名作为主按钮，尺寸更大 */
.nav-links .register-btn {
    margin: 0;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
}

/* 登录按钮排版优化 - 次要按钮，尺寸略小 */
.nav-links .login-btn {
    margin: 0;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.register-btn {
    composes: gradient-button;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.login-btn {
    composes: gradient-button;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.login-btn::after {
    background: var(--background-color);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    min-width: 36px;
    text-align: center;
}

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

.performance-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    min-width: 36px;
    text-align: center;
}

.performance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.performance-btn.high-mode {
    border-color: #10b981;
    color: #10b981;
}

.performance-btn.low-mode {
    border-color: #f59e0b;
    color: #f59e0b;
}

.theme-switch {
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.theme-switch__container {
    display: block;
}

.view-mode-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.view-mode-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

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

/* ===================================
   Responsive Navigation
   =================================== */

@media (max-width: 1024px) {
    .nav-container {
        padding: 12px 16px;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .register-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .lang-btn,
    .theme-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 8px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .register-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .login-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .lang-btn,
    .theme-btn {
        padding: 4px 8px;
        min-width: 32px;
    }
}

/* ===================================
   Hero Section
   =================================== */

/* 主视觉区排版优化 - 增加上下留白，让核心信息更聚焦 */
.hero-section {
    margin-top: var(--header-height);
    padding: 100px 40px 120px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    min-height: 600px;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
}

/* 主视觉区排版优化 - 放大标题，增加间距，强化层级 */
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-color-light);
    margin-bottom: 56px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    padding: 0 20px;
}

/* 主视觉区CTA按钮 - 增加上下间距 */
.hero-cta {
    composes: gradient-button;
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    z-index: 100;
    letter-spacing: 0.02em;
}

.qrcode-section {
    margin-top: 40px;
    text-align: center;
}

.qrcode-section p {
    margin-bottom: 16px;
    color: var(--text-color-light);
    font-size: 1rem;
}

.qrcode {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
}

.qrcode:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Main Content
   =================================== */

/* 主内容区排版优化 - 统一间距规范 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px;
}

/* 全局排版规范 - 统一间距和行高 */
.main-content h1 {
    margin-bottom: 48px;
    line-height: 1.3;
}

.main-content h2 {
    margin-bottom: 24px;
    line-height: 1.4;
}

.main-content h3 {
    margin-bottom: 16px;
    line-height: 1.4;
}

.main-content p {
    line-height: 1.7;
    margin-bottom: 16px;
}

/* 卡片间距规范 */
.intro-section {
    margin-bottom: 48px;
}

.intro-card {
    margin-bottom: 32px;
}

/* ===================================
   Card Styles
   =================================== */

.card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.card-description {
    color: var(--text-color-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ===================================
   Button Styles
   =================================== */

.btn,
.btn-primary,
.btn-secondary,
.btn-accent {
    position: relative;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-accent:hover {
    transform: scale(1.03);
}

.btn::before,
.btn-primary::before,
.btn-secondary::before,
.btn-accent::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #ff6b6b,
        #4ecdc4,
        #45b7d1,
        #96ceb4,
        #feca57,
        #ff9ff3,
        #ff6b6b
    );
    z-index: -2;
    filter: blur(10px);
    transform: rotate(0deg);
    transition: transform 1.5s ease-in-out;
}

.btn:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-accent:hover::before {
    transform: rotate(180deg);
}

.btn::after,
.btn-primary::after,
.btn-secondary::after,
.btn-accent::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: #1a1a1a;
    border-radius: 47px;
    z-index: -1;
    filter: blur(5px);
}

.btn-secondary::after {
    background: #2a2a2a;
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-accent:active {
    transform: scale(0.99);
}

/* ===================================
   Tabs Styles
   =================================== */

.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tab {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tab:hover {
    background: var(--gray-100);
}

.tab.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* ===================================
   Form Styles
   =================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--gray-100);
    color: var(--text-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
    background: var(--gray-100);
    color: var(--text-color);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ===================================
   Footer Styles
   =================================== */

.footer {
    margin-top: 80px;
    padding: 48px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(51, 51, 51, 0.8);
    text-align: center;
    color: var(--text-color-light);
    font-size: 14px;
    border-radius: 20px 20px 0 0;
}

.footer a {
    color: var(--text-color-light);
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer a:hover {
    color: var(--primary-blue);
}

.footer i {
    font-style: italic;
}

.footer b {
    font-weight: 600;
    color: var(--text-color-light);
}

footer {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: var(--text-color-light);
    font-size: 13px;
    border-top: 1px solid rgba(51, 51, 51, 0.8);
}

footer a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--primary-blue);
}

footer p {
    margin: 8px 0;
}

/* ===================================
   Markdown Content Styles
   =================================== */

.markdown {
    color: var(--text-color-light);
}

.markdown h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1.25rem;
}

.markdown ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.markdown li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.markdown blockquote {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 24px 28px;
    margin: 24px 0;
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.markdown blockquote:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.markdown blockquote h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
}

.markdown blockquote ul {
    margin-bottom: 0;
}

.markdown blockquote li {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.1em;
    padding: 8px 0;
}

.markdown code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
    color: var(--accent-red);
}

.markdown pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
}

.markdown pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .card,
    .task {
        padding: 16px;
    }

    .tabs {
        gap: 6px;
    }

    .tab {
        padding: 8px 16px;
        font-size: 14px;
    }

    
    .nav-container {
        padding: 12px 16px;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 14px;
    }

    .register-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    
    .hero-section {
        margin-top: 60px;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding: 24px 16px;
    }
}

/* ===================================
   Animations & Transitions
   =================================== */

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

.fade-in {
    animation: fadeIn 0.3s ease;
}


html {
    scroll-behavior: smooth;
}


::selection {
    background: var(--primary-blue);
    color: white;
}

::-moz-selection {
    background: var(--primary-blue);
    color: white;
}

/* ===================================
   Competition Introduction Styles
   =================================== */

.intro-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 60px;
}

.intro-card {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 50px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;

    
    display: grid;
    grid-template-columns: 1.8fr 0.5fr;
    gap: 40px;
    align-items: start;
    min-height: auto;
}

.intro-card:nth-child(even) {
    grid-template-columns: 0.5fr 1.8fr;
}

.intro-card:nth-child(even) .card-content {
    order: 2;
}

.intro-card:nth-child(even) .card-icon-large {
    order: 1;
}

.intro-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-content {
    text-align: left;
}

.card-content h2 {
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.card-content h3 {
    color: var(--primary-light);
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-color-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-content ul {
    list-style: none;
    padding: 0;
}

.card-content ul li {
    color: var(--text-color-light);
    font-size: 1.05rem;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.card-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
    font-size: 1.2rem;
}


.event-item {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid rgba(255, 153, 51, 0.2);
}

.event-item:first-of-type {
    margin-top: 32px;
}

.event-item h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-blue);
}


.card-icon-large {
    width: 120px;
    height: 120px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    border-radius: 50%;
    position: relative;
    box-shadow: var(--shadow-md);
}

.card-icon-large i {
    font-size: 60px;
    color: white;
    z-index: 1;
    position: relative;
}

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

@keyframes iconGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-card:hover::before {
    opacity: 1;
}

.intro-card h2 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    position: relative;
}

.intro-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.intro-card h3 {
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 16px;
}

.intro-card p {
    color: var(--text-color-light);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.intro-card ul {
    list-style: none;
    padding: 0;
}

.intro-card ul li {
    color: var(--text-color-light);
    font-size: 1.05rem;
    line-height: 1.9;
    padding: 14px 0 14px 40px;
    position: relative;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.intro-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-card ul li:hover {
    padding-left: 44px;
    color: var(--text-color);
}

.intro-card ul li:hover:before {
    opacity: 1;
}

/* ===================================
   Smooth Scroll Behavior
   =================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ===================================
   Loading State Animations
   =================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===================================
   Accessibility Improvements
   =================================== */

*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .top-nav,
    .hero-cta,
    .register-btn,
    .theme-btn,
    .lang-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .intro-card {
        page-break-inside: avoid;
    }
}

/* ===================================
   Reward Carousel Section
   =================================== */

.reward-section {
    display: block !important;
    padding: 60px 5px !important;
    min-height: auto !important;
}

.reward-header {
    text-align: center;
    margin-bottom: 60px;
}

.reward-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.reward-subtitle {
    color: #cccccc;
    font-size: 1.5rem;
    font-weight: 300;
}

.reward-carousel-container {
    position: relative;
    overflow-x: visible;
    overflow-y: hidden;
    padding: 20px 0;
}

.reward-carousel {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 0 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.reward-card {
    flex: 0 1 calc(33.33% - 20px);
    min-width: 260px;
    max-width: 320px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1) 0%, rgba(106, 159, 214, 0.05) 100%);
    border: 2px solid rgba(74, 111, 165, 0.3);
    border-radius: 16px;
    padding: 35px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.reward-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 111, 165, 0.6);
    box-shadow: var(--shadow-lg);
}

.reward-card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.reward-card:hover .reward-card-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 153, 51, 0.5);
}

.reward-card-icon i {
    font-size: 40px;
    color: white;
}

.reward-card h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reward-card ul li {
    color: #ffffff;
    font-size: 1.1rem;
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.reward-card ul li:hover {
    transform: translateX(5px);
    color: #ffaa55;
}

.reward-card ul li i {
    display: none;
}


@media (max-width: 768px) {
    .reward-section {
        padding: 60px 30px !important;
    }

    .reward-header h2 {
        font-size: 3rem;
    }

    .reward-subtitle {
        font-size: 1.2rem;
    }

    .reward-card {
        flex: 0 0 320px;
        padding: 30px 20px;
    }

    .reward-card h3 {
        font-size: 1.4rem;
    }

    .reward-card ul li {
        font-size: 1rem;
    }
}

/* ===================================
   Events Section (Horizontal Cards)
   =================================== */

.events-section {
    display: block !important;
    padding: 50px 5px !important;
    min-height: auto !important;
    max-width: 100%;
}

.events-header {
    text-align: center;
    margin-bottom: 40px;
}

.events-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.events-header p {
    color: #cccccc;
    font-size: 1.3rem;
}

.events-carousel-container {
    position: relative;
    overflow-x: visible;
    overflow-y: hidden;
    padding: 20px 0;
}

.events-carousel {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 0 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.event-card {
    flex: 0 1 calc(33.33% - 20px);
    min-width: 280px;
    max-width: 350px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.08) 0%, rgba(106, 159, 214, 0.04) 100%);
    border: 2px solid rgba(74, 111, 165, 0.25);
    border-radius: 16px;
    padding: 30px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.event-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 111, 165, 0.5);
    box-shadow: var(--shadow-lg);
}

.event-card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.event-card:hover .event-card-icon {
    transform: rotate(360deg) scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.4);
}

.event-card-icon i {
    font-size: 35px;
    color: white;
}

.event-card h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.event-card p {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.event-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-card ul li {
    color: #ffffff;
    font-size: 1rem;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.3s ease;
}

.event-card ul li:hover {
    transform: translateX(4px);
    color: #ffaa55;
}

.event-card ul li i {
    display: none;
}