/* =====================
   CSS VARIABLES
===================== */
:root {
  /* Colors */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --accent: #06b6d4;
  --dark: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --light: #f8fafc;
  --light-100: #f1f5f9;
  --white: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =====================
   GLOBAL STYLES
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-system);
  background-color: #f6f8fb;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,0.04), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(6,182,212,0.04), transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================
   HEADER / NAV
===================== */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: var(--text-primary);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* backdrop-filter: blur(10px); */
  /* background: rgba(255, 255, 255, 0.95); */
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu {
  display: flex;
  gap: 8px;
}

.menu a {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.menu a:hover {
  color: var(--primary);
  background: var(--light);
}

.menu a.active {
  color: var(--primary);
  background: var(--light);
}

.menu a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* =====================
   HERO SECTION
===================== */
.hero {
  /* background: linear-gradient(135deg, var(--dark) 0%, var(--dark-800) 50%, var(--dark-700) 100%); */
  background-image: url('../images/banner.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 100px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;

  /* Dim */
  background: rgba(15, 23, 42, 0.55);

  /* Blur ONLY background */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn.outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn.outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* =====================
   SECTIONS
===================== */
.section {
  padding: 80px 0;
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.6),
    rgba(255,255,255,0)
  );
  pointer-events: none;
}
.section.light {
  background: #f1f5f9;
}

.section h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* =====================
   CARDS
===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
   background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fdfefe 100%
  );
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

/* =====================
   NEWS LIST
===================== */
.news-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.news-list li {
  background: var(--white);
  padding: 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.news-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.news-list h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.news-list p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* =====================
   TWO COLUMN SECTION
===================== */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.box:hover {
  box-shadow: var(--shadow-lg);
}

.box h2 {
  font-size: 24px;
  margin-bottom: 16px;
  text-align: left;
  transform: none;
  left: 0;
}

.box h2::after {
  display: none;
}

.box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.job-list {
  list-style: none;
  margin: 20px 0;
}

.job-list li {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.2s ease;
}

.job-list li:hover {
  background: var(--light-100);
  transform: translateX(4px);
}

/* =====================
   FOOTER
===================== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 32px 0;
  font-size: 14px;
  border-top: 1px solid var(--dark-800);
}

.footer p {
  margin: 0;
}

/* =====================
   UTILITIES
===================== */
.center {
  text-align: center;
  margin-top: 40px;
}

/* =====================
   MOBILE MENU
===================== */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: var(--light);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    gap: 4px;
  }

  .menu a {
    padding: 12px 16px;
    text-align: left;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .box {
    padding: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* =====================
   PERFORMANCE OPTIMIZATIONS
===================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Improved text selection */
::selection {
  background: var(--primary-light);
  color: var(--white);
}