/* Modern CSS for Free Science Foundation - 2025 Consulting Design */

/* Google Fonts for multi-script support (Ethiopic, Arabic, Devanagari, etc.) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&family=Noto+Sans+Ethiopic:wght@400;600;700&family=Noto+Sans+Arabic:wght@400;600;700&family=Noto+Sans+Devanagari:wght@400;600;700&family=Noto+Sans+Bengali:wght@400;600;700&family=Noto+Sans+Tamil:wght@400;600;700&family=Noto+Sans+Thai:wght@400;600;700&family=Noto+Sans+Myanmar:wght@400;600;700&family=Noto+Sans+Khmer:wght@400;600;700&display=swap');

/* ==========================================================================
   COLOR SCHEME - Extracted from navbar-bg.png
   Nature & Science inspired palette
   ========================================================================== */

/* CSS Variables - Natural Science Design System */
:root {
  /* ===== PRIMARY COLORS (Sky Blue Tones) ===== */
  --color-primary: #3498db;           /* Main sky blue */
  --color-primary-light: #5dade2;     /* Light sky blue */
  --color-primary-lighter: #85c1e9;   /* Pale sky blue */
  --color-primary-dark: #2980b9;      /* Deep sky blue */
  --color-primary-darker: #1a5276;    /* Dark sky blue */
  
  /* ===== SECONDARY COLORS (Nature Greens) ===== */
  --color-secondary: #27ae60;         /* Grass green */
  --color-secondary-light: #58d68d;   /* Light grass */
  --color-secondary-lighter: #abebc6; /* Pale green */
  --color-secondary-dark: #1e8449;    /* Deep green */
  --color-secondary-darker: #145a32;  /* Forest green */
  
  /* ===== ACCENT COLORS (Teal/Cyan - Molecules) ===== */
  --color-accent: #17a2b8;            /* Teal */
  --color-accent-light: #48d1cc;      /* Light teal */
  --color-accent-lighter: #76d7c4;    /* Aquamarine */
  --color-accent-dark: #138d75;       /* Deep teal */
  
  /* ===== HIGHLIGHT COLORS (Sunlight/Yellow-Green) ===== */
  --color-highlight: #f1c40f;         /* Sunlight gold */
  --color-highlight-light: #f9e79f;   /* Pale gold */
  --color-highlight-green: #c5e1a5;   /* Yellow-green glow */
  
  /* ===== NEUTRAL COLORS (City Silhouette/Sky) ===== */
  --color-neutral-50: #f8fbfc;        /* Lightest */
  --color-neutral-100: #ecf5f8;       /* Very light */
  --color-neutral-200: #d4e6ed;       /* Light */
  --color-neutral-300: #b0c4ce;       /* Medium light */
  --color-neutral-400: #90a4ae;       /* City silhouette */
  --color-neutral-500: #78909c;       /* Medium */
  --color-neutral-600: #607d8b;       /* Medium dark */
  --color-neutral-700: #455a64;       /* Dark */
  --color-neutral-800: #37474f;       /* Very dark */
  --color-neutral-900: #263238;       /* Darkest */
  
  /* ===== SEMANTIC COLORS ===== */
  --color-success: #27ae60;           /* Green */
  --color-warning: #f39c12;           /* Orange */
  --color-error: #e74c3c;             /* Red */
  --color-info: #3498db;              /* Blue */
  
  /* ===== TEXT COLORS ===== */
  --color-text: #263238;              /* Primary text */
  --color-text-muted: #607d8b;        /* Secondary text */
  --color-text-light: #90a4ae;        /* Tertiary text */
  --color-text-inverse: #ffffff;      /* White text */
  
  /* ===== SURFACE COLORS ===== */
  --color-surface: #ffffff;
  --color-surface-elevated: rgba(255, 255, 255, 0.92);
  --color-surface-glass: rgba(255, 255, 255, 0.85);
  
  /* ===== BORDER COLORS ===== */
  --color-border: rgba(38, 50, 56, 0.12);
  --color-border-light: rgba(38, 50, 56, 0.08);
  --color-border-focus: rgba(52, 152, 219, 0.5);
  
  /* ===== GRADIENT PRESETS ===== */
  --gradient-sky: linear-gradient(180deg, #85c1e9 0%, #aed6f1 50%, #d4e6ed 100%);
  --gradient-grass: linear-gradient(180deg, #abebc6 0%, #82e0aa 50%, #58d68d 100%);
  --gradient-sunrise: linear-gradient(135deg, #f9e79f 0%, #f1c40f 50%, #f39c12 100%);
  --gradient-nature: linear-gradient(180deg, #85c1e9 0%, #aed6f1 30%, #d4e6ed 50%, #c5e1a5 70%, #abebc6 100%);
  --gradient-primary: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  --gradient-secondary: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  --gradient-accent: linear-gradient(135deg, #17a2b8 0%, #48d1cc 100%);
  
  /* ===== SHADOWS ===== */
  --shadow-sm: 0 4px 12px rgba(38, 50, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(38, 50, 56, 0.12);
  --shadow-lg: 0 16px 40px rgba(38, 50, 56, 0.14);
  --shadow-xl: 0 24px 50px rgba(38, 50, 56, 0.18);
  --shadow-glow-primary: 0 4px 20px rgba(52, 152, 219, 0.25);
  --shadow-glow-secondary: 0 4px 20px rgba(39, 174, 96, 0.25);
  --shadow-glow-accent: 0 4px 20px rgba(23, 162, 184, 0.25);
  
  /* ===== BORDER RADIUS ===== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* ===== SPACING ===== */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: 
    radial-gradient(1200px 700px at 15% -10%, rgba(52, 152, 219, 0.12), transparent 60%),
    radial-gradient(900px 650px at 85% 10%, rgba(39, 174, 96, 0.10), transparent 55%),
    radial-gradient(600px 400px at 50% 100%, rgba(197, 225, 165, 0.15), transparent 50%),
    var(--color-neutral-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header and Navigation - Modern Glassmorphism */
.site-header {
  background: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.75)),
    url('images/navbar-bg.png');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand .site-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform var(--transition-base);
  background: white;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-brand .brand-link:hover .site-logo {
  transform: scale(1.08);
}

.nav-brand .site-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .nav-brand .site-logo {
    width: 38px;
    height: 38px;
  }
  
  .nav-brand .site-title {
    font-size: 1.2rem;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-base), transform var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text);
  transform: translateY(-1px);
}

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

.nav-link.active {
  color: var(--color-text);
}

/* Hero Section - Modern Consulting Style */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(800px 500px at 20% 20%, rgba(37, 99, 235, 0.12), transparent 50%),
    radial-gradient(600px 400px at 80% 80%, rgba(124, 58, 237, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero Banner Image */
.hero-banner {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-banner-image {
  max-width: 100%;
  width: 800px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero-banner-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

@media (max-width: 768px) {
  .hero-banner-image {
    width: 100%;
    border-radius: var(--radius-lg);
  }
  
  .hero-banner {
    margin-bottom: 1.5rem;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto 3rem;
  line-height: 1.75;
  font-weight: 400;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-text-inverse);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow-primary);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

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

.cta-button:hover::before {
  left: 100%;
}

.cta-button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Mission Section - Modern Card Layout */
.mission {
  padding: 6rem 0;
  background: transparent;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  margin: 1.5rem auto 0;
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-text {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 400;
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.action-link:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}

.action-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Discord and YouTube Button Styling - Modern */
.discord-btn {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #ffffff;
  border-color: #5865F2;
}

.discord-btn:hover {
  background: linear-gradient(135deg, #4752C4, #3a45a3);
  border-color: #4752C4;
  color: #ffffff;
}

.youtube-btn {
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: #ffffff;
  border-color: #FF0000;
}

.youtube-btn:hover {
  background: linear-gradient(135deg, #CC0000, #990000);
  border-color: #CC0000;
}

.linkedin-btn {
  background: linear-gradient(135deg, #0077B5, #005885);
  color: #ffffff;
  border-color: #0077B5;
}

.linkedin-btn:hover {
  background: linear-gradient(135deg, #005885, #00466a);
  border-color: #005885;
}

/* Submission Guide Section - Modern Cards */
.submission-guide {
  padding: 6rem 0;
  background: transparent;
}

.submission-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.submission-text {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 4rem;
  font-weight: 400;
}

.submission-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.roles-grid {
  grid-template-columns: repeat(4, 1fr);
  min-width: 0;
}

.roles-grid .step {
  min-width: 0;
}

.step {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: left;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.26);
}

.step:hover::before {
  transform: scaleX(1);
}

.step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.step-description {
  color: rgba(55, 65, 81, 0.85);
  line-height: 1.55;
  font-size: 0.95rem;
}

.step-bullets {
  text-align: left;
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.step-bullets li {
  color: rgba(55, 65, 81, 0.85);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.step-bullets strong {
  color: var(--color-text);
}

.submission-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.cta-text {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--color-text);
  margin-bottom: 2rem;
  font-weight: 600;
}

.volunteer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

/* GitHub Guide Section */
.github-guide {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

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

.github-text {
  font-size: 1.2rem;
  color: #2c3e50;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.github-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.github-example {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.example-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
}

.code-block {
  background-color: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}

.code-block code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
}

/* Footer - Modern Dark Style */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1.5rem;
  text-align: center;
}

.license-text,
.repository-link {
  color: #bdc3c7;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Mobile Responsive Design - Modern Breakpoints */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 0 4rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .mission-actions {
    flex-direction: column;
  }
  
  .action-link {
    width: 100%;
    max-width: 300px;
  }
  
  .submission-steps {
    grid-template-columns: 1fr;
  }
  
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .volunteer-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .mission,
  .submission-guide {
    padding: 4rem 0;
  }
  
  .step {
    padding: 2rem;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .roles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* iPhone 12/13/14 Mini - 390x844 */
@media (max-width: 390px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* iPhone 12/13/14 Standard - 390x844 */
@media (max-width: 430px) {
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .action-link {
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

/* iPhone 12/13/14 Pro Max - 428x926 */
@media (max-width: 428px) {
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Samsung Galaxy S21/S22/S23 - 384x854 */
@media (max-width: 384px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-actions {
    flex-direction: column;
  }
}

/* Samsung Galaxy S21/S22/S23+ - 480x960 */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Samsung Galaxy S21/S22/S23 Ultra - 498x960 */
@media (max-width: 500px) {
  .hero-title {
    font-size: 2.6rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-section {
    text-align: center;
  }
}

/* Google Pixel 6/7 - 412x915 */
@media (max-width: 412px) {
  .hero-title {
    font-size: 2.3rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-actions {
    flex-direction: column;
  }
}

/* Google Pixel 6/7 Pro - 512x915 */
@media (max-width: 512px) {
  .hero-title {
    font-size: 2.7rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* General Small Phones (Android/iOS) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .value-card {
    padding: 1.5rem;
  }
  
  .mission-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .action-link {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
}

/* Foldable Phones (Unfolded) */
@media (min-width: 768px) and (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Wide Screens and High-Resolution Displays */

/* Wide Screens (1920x1080 and above) */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 1.2rem;
    max-width: 800px;
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .value-card {
    padding: 3rem 2rem;
  }
  
  .mission-content {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .mission-text {
    font-size: 1.3rem;
    line-height: 1.8;
  }
  
  .mission-actions {
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* 4K Displays (3840x2160) */
@media (min-width: 3840px) {
  .container {
    max-width: 2400px;
  }
  
  .hero-title {
    font-size: 5rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.6rem;
    max-width: 1200px;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
  
  .value-card {
    padding: 4rem 3rem;
  }
  
  .value-title {
    font-size: 2rem;
  }
  
  .value-description {
    font-size: 1.3rem;
  }
  
  .mission-text {
    font-size: 1.8rem;
    line-height: 1.8;
  }
  
  .mission-actions {
    gap: 3rem;
  }
  
  .action-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
  
  .footer-heading {
    font-size: 1.5rem;
  }
  
  .footer-links a {
    font-size: 1.1rem;
  }
}

/* 5K Displays (5120x2880) */
@media (min-width: 5120px) {
  .container {
    max-width: 3200px;
  }
  
  .hero-title {
    font-size: 6rem;
  }
  
  .hero-subtitle {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 2rem;
    max-width: 1600px;
  }
  
  .section-title {
    font-size: 4.5rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem;
  }
  
  .value-card {
    padding: 5rem 4rem;
  }
  
  .value-title {
    font-size: 2.5rem;
  }
  
  .value-description {
    font-size: 1.6rem;
  }
  
  .mission-text {
    font-size: 2.2rem;
    line-height: 1.8;
  }
  
  .mission-actions {
    gap: 4rem;
  }
  
  .action-link {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem;
  }
  
  .footer-heading {
    font-size: 2rem;
  }
  
  .footer-links a {
    font-size: 1.4rem;
  }
}

/* Ultra-Wide Monitors (3440x1440, 2560x1080) */
@media (min-width: 2560px) and (max-height: 1440px) {
  .container {
    max-width: 1800px;
  }
  
  .hero {
    padding: 8rem 0;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* Super Ultra-Wide (5120x1440) */
@media (min-width: 4800px) and (max-height: 1600px) {
  .container {
    max-width: 3000px;
  }
  
  .hero-title {
    font-size: 5rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
  }
}

/* Accessibility and Focus Styles */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Team Grid Section */
.team-grid-section {
  padding: 4rem 0;
  background: transparent;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member-card {
  text-align: center;
  transition: transform var(--transition-base);
}

.team-member-card:hover {
  transform: translateY(-4px);
}

.team-member-photo {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
  border: 3px solid var(--color-border);
  padding: 4px;
}

.team-member-card:hover .team-member-photo {
  box-shadow: var(--shadow-md);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 2rem;
  border-radius: 50%;
  border: 2px dashed var(--color-primary);
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-info {
  padding: 0.5rem 0;
}

.team-member-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.team-member-role {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.team-member-title-group {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.team-member-profession {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.team-member-contribution {
  font-size: 0.8rem;
  color: rgba(55, 65, 81, 0.7);
  line-height: 1.5;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.team-member-bio {
  font-size: 0.85rem;
  color: rgba(55, 65, 81, 0.75);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive Team Grid */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .team-grid-section {
    padding: 3rem 0;
  }
}

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

/* Print Styles */
@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    background: #fff;
  }
}

/* Focus Management */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #2c3e50;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Nav Controls (Language + Theme Toggle) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.language-btn:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.current-lang {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

/* Custom scrollbar for language dropdown */
.language-dropdown::-webkit-scrollbar {
  width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.language-dropdown::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-400);
}

.language-selector.open .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lang-option:hover {
  background: var(--color-surface-elevated);
  color: var(--color-primary);
}

.lang-option.active {
  background: rgba(52, 152, 219, 0.1);
  color: var(--color-primary);
  font-weight: 600;
}

/* Dark mode language selector */
[data-theme="dark"] .language-btn {
  border-color: rgba(144, 164, 174, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .language-btn:hover {
  background: rgba(38, 50, 56, 0.5);
  border-color: #85c1e9;
  color: #85c1e9;
}

[data-theme="dark"] .language-dropdown {
  background: #263238;
  border-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .language-dropdown::-webkit-scrollbar-thumb {
  background: rgba(144, 164, 174, 0.3);
}

[data-theme="dark"] .language-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(144, 164, 174, 0.5);
}

[data-theme="dark"] .lang-option {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .lang-option:hover {
  background: rgba(93, 173, 226, 0.15);
  color: #85c1e9;
}

[data-theme="dark"] .lang-option.active {
  background: rgba(93, 173, 226, 0.2);
  color: #85c1e9;
}

/* Light mode language selector */
[data-theme="light"] .language-btn {
  border-color: rgba(38, 50, 56, 0.12);
  color: #263238;
}

[data-theme="light"] .language-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: #3498db;
  color: #3498db;
}

[data-theme="light"] .language-dropdown {
  background: #ffffff;
  border-color: rgba(38, 50, 56, 0.12);
}

[data-theme="light"] .lang-option {
  color: #263238;
}

[data-theme="light"] .lang-option:hover {
  background: rgba(52, 152, 219, 0.08);
  color: #3498db;
}

[data-theme="light"] .lang-option.active {
  background: rgba(52, 152, 219, 0.12);
  color: #3498db;
}

/* Theme Toggle Switch */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-switch input:checked + .theme-slider {
  background: linear-gradient(135deg, #3498db, #17a2b8);
  border-color: rgba(52, 152, 219, 0.3);
}

.theme-switch input:checked + .theme-slider::before {
  transform: translateX(24px);
  background: linear-gradient(135deg, #1a252f, #263238);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 8px rgba(52, 152, 219, 0.3);
}

.theme-switch input:focus + .theme-slider {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.theme-switch:hover .theme-slider {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Light Mode Styles - Explicit for when user toggles to light on dark system */
[data-theme="light"] {
  --color-text: #1f2937;
  --color-text-muted: #5b6573;
  --color-text-light: #64748b;
  --color-surface: #ffffff;
  --color-surface-elevated: rgba(255, 255, 255, 0.82);
  --color-border: rgba(15, 23, 42, 0.12);
  --color-border-light: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] body {
  background: 
    radial-gradient(1200px 700px at 15% -10%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(900px 650px at 85% 10%, rgba(124, 58, 237, 0.12), transparent 55%),
    #ffffff;
}

[data-theme="light"] .site-header {
  background: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78)),
    url('images/navbar-bg.png');
  background-size: cover;
  background-position: center;
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .nav-brand .site-title {
  background: linear-gradient(135deg, #3498db, #27ae60);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .nav-link {
  color: #5b6573;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #1f2937;
}

[data-theme="light"] .theme-slider {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .theme-slider::before {
  transform: translateX(0);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #263238 0%, #3498db 50%, #27ae60 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .hero-subtitle {
  color: #5b6573;
}

[data-theme="light"] .hero-description {
  color: #5b6573;
}

[data-theme="light"] .section-title {
  color: #1f2937;
}

[data-theme="light"] .mission-text,
[data-theme="light"] .submission-text {
  color: #5b6573;
}

[data-theme="light"] .step {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .step-title {
  color: #1f2937;
}

[data-theme="light"] .step-description {
  color: #5b6573;
}

[data-theme="light"] .step-bullets li {
  color: #5b6573;
}

[data-theme="light"] .step-bullets strong {
  color: #1f2937;
}

[data-theme="light"] .action-link {
  background: rgba(255, 255, 255, 0.82);
  color: #1f2937;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .action-link:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #3498db;
  color: #3498db;
}

[data-theme="light"] .cta-button {
  background: linear-gradient(135deg, #3498db 0%, #17a2b8 100%);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

[data-theme="light"] .submission-cta {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--color-border);
}

[data-theme="light"] .cta-text {
  color: var(--color-text);
}

[data-theme="light"] .team-grid-section {
  background: transparent;
}

[data-theme="light"] .team-member-photo {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.12), rgba(39, 174, 96, 0.10));
  border-color: var(--color-border);
}

[data-theme="light"] .photo-placeholder {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(39, 174, 96, 0.06));
  border-color: #3498db;
}

[data-theme="light"] .team-member-name {
  color: #1f2937;
}

[data-theme="light"] .team-member-role {
  color: #5b6573;
}

[data-theme="light"] .team-member-title-group {
  color: #1e8449;
}

[data-theme="light"] .team-member-profession {
  color: #5b6573;
}

[data-theme="light"] .team-member-contribution {
  color: #64748b;
  border-top-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .team-member-bio {
  color: #64748b;
}

[data-theme="light"] .code-block {
  background-color: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .code-block pre {
  color: #1f2937;
}

[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, #f8fbfc 0%, #ecf5f8 100%);
  border-top-color: rgba(38, 50, 56, 0.1);
  color: #263238;
}

[data-theme="light"] .site-footer h3,
[data-theme="light"] .site-footer h4,
[data-theme="light"] .footer-section h3,
[data-theme="light"] .footer-section h4,
[data-theme="light"] .footer-heading {
  color: #1a252f;
  font-weight: 700;
}

[data-theme="light"] .site-footer p,
[data-theme="light"] .footer-section p,
[data-theme="light"] .footer-bottom,
[data-theme="light"] .footer-bottom p {
  color: #455a64;
}

[data-theme="light"] .footer-link,
[data-theme="light"] .footer-links a,
[data-theme="light"] .site-footer a {
  color: #607d8b;
}

[data-theme="light"] .footer-link:hover,
[data-theme="light"] .footer-links a:hover,
[data-theme="light"] .site-footer a:hover {
  color: #3498db;
}

/* Dark Mode Styles */
[data-theme="dark"] {
  --color-text: rgba(255, 255, 255, 0.92);
  --color-text-muted: rgba(176, 196, 206, 0.8);
  --color-text-light: rgba(176, 196, 206, 0.6);
  --color-surface: #1a252f;
  --color-surface-elevated: rgba(38, 50, 56, 0.72);
  --color-border: rgba(144, 164, 174, 0.18);
  --color-border-light: rgba(144, 164, 174, 0.12);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] body {
  background: 
    radial-gradient(1200px 700px at 15% -10%, rgba(93, 173, 226, 0.18), transparent 60%),
    radial-gradient(900px 650px at 85% 10%, rgba(88, 214, 141, 0.14), transparent 55%),
    radial-gradient(600px 400px at 50% 100%, rgba(118, 215, 196, 0.10), transparent 50%),
    #1a252f;
}

[data-theme="dark"] .site-header {
  background: 
    linear-gradient(180deg, rgba(26, 37, 47, 0.90), rgba(26, 37, 47, 0.80)),
    url('images/navbar-bg.png');
  background-size: cover;
  background-position: center;
  border-bottom-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .nav-brand .site-logo {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-brand .site-title {
  background: linear-gradient(135deg, #85c1e9, #76d7c4);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .nav-link {
  color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .theme-slider {
  background: linear-gradient(135deg, #5dade2, #48d1cc);
  border-color: rgba(93, 173, 226, 0.3);
}

[data-theme="dark"] .theme-slider::before {
  transform: translateX(24px);
  background: linear-gradient(135deg, #1a252f, #263238);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 8px rgba(93, 173, 226, 0.3);
}

[data-theme="dark"] .hero-banner-image {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero-banner-image:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-title {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, #85c1e9 50%, #76d7c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .hero-subtitle {
  color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .hero-description {
  color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .section-title {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .mission-text,
[data-theme="dark"] .submission-text {
  color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .step {
  background: rgba(38, 50, 56, 0.78);
  border-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .step-title {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .step-description {
  color: rgba(226, 232, 240, 0.78);
}

[data-theme="dark"] .step-bullets li {
  color: rgba(226, 232, 240, 0.78);
}

[data-theme="dark"] .step-bullets strong {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .action-link {
  background: rgba(38, 50, 56, 0.72);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .action-link:hover {
  background: rgba(38, 50, 56, 0.85);
  border-color: #85c1e9;
  color: #85c1e9;
}

[data-theme="dark"] .cta-button {
  background: linear-gradient(135deg, #5dade2 0%, #48d1cc 100%);
  box-shadow: 0 4px 20px rgba(93, 173, 226, 0.3);
}

[data-theme="dark"] .submission-cta {
  background: rgba(38, 50, 56, 0.78);
  border-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .cta-text {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .team-grid-section {
  background: transparent;
}

[data-theme="dark"] .team-member-photo {
  background: linear-gradient(135deg, rgba(93, 173, 226, 0.22), rgba(88, 214, 141, 0.18));
  border-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .photo-placeholder {
  background: linear-gradient(135deg, rgba(93, 173, 226, 0.16), rgba(88, 214, 141, 0.12));
  border-color: #85c1e9;
}

[data-theme="dark"] .team-member-name {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .team-member-role {
  color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .team-member-title-group {
  color: #58d68d;
}

[data-theme="dark"] .team-member-profession {
  color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .team-member-contribution {
  color: rgba(226, 232, 240, 0.6);
  border-top-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .team-member-bio {
  color: rgba(226, 232, 240, 0.65);
}

[data-theme="dark"] .code-block {
  background-color: rgba(38, 50, 56, 0.72);
  border-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .code-block pre {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, #1a252f 0%, #263238 100%);
  border-top-color: rgba(144, 164, 174, 0.12);
}

/* Responsive theme toggle */
@media (max-width: 768px) {
  .theme-toggle-wrapper {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   TRANSLATION HELP MODAL
   ========================================================================== */

.translation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.translation-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.translation-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}

.translation-modal-overlay.active .translation-modal {
  transform: translateY(0) scale(1);
}

.translation-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-neutral-100);
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.translation-modal-close:hover {
  background: var(--color-neutral-200);
  color: var(--color-text);
}

.translation-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.translation-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.75rem;
  font-family: "Noto Sans", "Noto Sans Ethiopic", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Thai", "Noto Sans Myanmar", "Noto Sans Khmer", "Noto Sans Lao", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.translation-modal-message {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
  font-family: "Noto Sans", "Noto Sans Ethiopic", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Thai", "Noto Sans Myanmar", "Noto Sans Khmer", "Noto Sans Lao", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.translation-modal-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.translation-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.translation-link.discord {
  background: #5865F2;
  color: white;
}

.translation-link.discord:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.translation-link.linkedin {
  background: #0A66C2;
  color: white;
}

.translation-link.linkedin:hover {
  background: #004182;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
}

/* Dark mode translation modal */
[data-theme="dark"] .translation-modal {
  background: #1a252f;
  border: 1px solid rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .translation-modal-close {
  background: rgba(144, 164, 174, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .translation-modal-close:hover {
  background: rgba(144, 164, 174, 0.25);
  color: white;
}

[data-theme="dark"] .translation-modal-title {
  color: white;
}

[data-theme="dark"] .translation-modal-message {
  color: rgba(226, 232, 240, 0.75);
}

/* ==========================================================================
   LEGAL DISCLAIMER MODAL
   ========================================================================== */

.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.disclaimer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.disclaimer-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.disclaimer-overlay.active .disclaimer-modal {
  transform: translateY(0) scale(1);
}

.disclaimer-header {
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.disclaimer-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.06)"/></svg>');
  opacity: 0.5;
}

.disclaimer-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

.disclaimer-content {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.disclaimer-content h3 {
  color: var(--color-primary-dark);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.disclaimer-content h3::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.disclaimer-content h3:first-child {
  margin-top: 0;
}

.disclaimer-content p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.disclaimer-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.disclaimer-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.disclaimer-content strong {
  color: var(--color-text);
}

.disclaimer-footer {
  padding: 1.25rem 2rem;
  background: linear-gradient(180deg, var(--color-neutral-50) 0%, var(--color-neutral-100) 100%);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.disclaimer-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.disclaimer-checkbox:hover {
  border-color: var(--color-secondary);
  background: rgba(39, 174, 96, 0.03);
}

.disclaimer-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-secondary);
  cursor: pointer;
  flex-shrink: 0;
}

.disclaimer-checkbox label {
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}

.disclaimer-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.disclaimer-btn {
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.disclaimer-btn-accept {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-glow-secondary);
}

.disclaimer-btn-accept:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.disclaimer-btn-accept:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.disclaimer-btn-decline {
  background: transparent;
  color: var(--color-text-muted);
  border: 2px solid var(--color-border);
}

.disclaimer-btn-decline:hover {
  background: var(--color-neutral-200);
  color: var(--color-text);
}

/* Dark mode disclaimer styles */
[data-theme="dark"] .disclaimer-modal {
  background: #1a252f;
  border: 1px solid rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .disclaimer-header {
  background: linear-gradient(135deg, #1a5276 0%, #145a32 100%);
}

[data-theme="dark"] .disclaimer-content h3 {
  color: #85c1e9;
  border-bottom-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .disclaimer-content h3::before {
  background: #58d68d;
}

[data-theme="dark"] .disclaimer-content p,
[data-theme="dark"] .disclaimer-content li {
  color: rgba(226, 232, 240, 0.75);
}

[data-theme="dark"] .disclaimer-content strong {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .disclaimer-footer {
  background: linear-gradient(180deg, rgba(38, 50, 56, 0.5) 0%, rgba(26, 37, 47, 0.8) 100%);
  border-top-color: rgba(144, 164, 174, 0.18);
}

[data-theme="dark"] .disclaimer-checkbox {
  background: rgba(38, 50, 56, 0.5);
  border-color: rgba(144, 164, 174, 0.2);
}

[data-theme="dark"] .disclaimer-checkbox:hover {
  border-color: #58d68d;
  background: rgba(88, 214, 141, 0.05);
}

[data-theme="dark"] .disclaimer-checkbox label {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .disclaimer-btn-decline {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(144, 164, 174, 0.3);
}

[data-theme="dark"] .disclaimer-btn-decline:hover {
  background: rgba(144, 164, 174, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive modal */
@media (max-width: 600px) {
  .disclaimer-modal {
    max-height: 90vh;
  }
  
  .disclaimer-header {
    padding: 1.25rem 1.5rem;
  }
  
  .disclaimer-header h2 {
    font-size: 1.25rem;
  }
  
  .disclaimer-content {
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .disclaimer-content h3 {
    font-size: 1rem;
  }
  
  .disclaimer-footer {
    padding: 1rem 1.5rem;
  }
  
  .disclaimer-actions {
    flex-direction: column;
  }
  
  .disclaimer-btn {
    width: 100%;
    text-align: center;
  }
}
