/* ==========================================================================
   MAAT INTERNATIONAL C.A. - SITE UNDER CONSTRUCTION
   Design System & Modern Glassmorphic Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Colors extracted from MAAT International Logo */
  --brand-navy: #124570;
  --brand-navy-dark: #0a2944;
  --brand-navy-light: #1c5b91;
  --brand-blue-accent: #2b7cc1;
  --brand-cyan-glow: #38bdf8;
  --brand-flame-orange: #f59e0b;
  --brand-flame-glow: rgba(245, 158, 11, 0.25);

  /* Dark Theme Variables (Default) */
  --bg-dark: #07131e;
  --bg-gradient: radial-gradient(circle at 50% 20%, #102d48 0%, #07131e 70%, #030a11 100%);
  --card-bg: rgba(18, 69, 112, 0.18);
  --card-bg-hover: rgba(28, 91, 145, 0.28);
  --card-border: rgba(56, 189, 248, 0.18);
  --glass-bg: rgba(7, 19, 30, 0.65);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-accent: #7dd3fc;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --glow-color: rgba(18, 69, 112, 0.5);
  --input-bg: rgba(15, 38, 60, 0.6);
  --input-border: rgba(56, 189, 248, 0.3);
}

[data-theme="light"] {
  /* Light Theme Variables */
  --bg-dark: #f0f5fa;
  --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #e2ebf4 60%, #cbd9e8 100%);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-bg-hover: rgba(255, 255, 255, 0.98);
  --card-border: rgba(18, 69, 112, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --text-main: #0c2740;
  --text-muted: #475569;
  --text-accent: #124570;
  --shadow-color: rgba(18, 69, 112, 0.12);
  --glow-color: rgba(18, 69, 112, 0.15);
  --input-bg: #ffffff;
  --input-border: rgba(18, 69, 112, 0.3);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Grid Mesh */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.ambient-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.ambient-light-1 {
  top: 10%;
  left: 20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(18, 69, 112, 0.8) 0%, transparent 70%);
}

.ambient-light-2 {
  bottom: 20%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 91, 145, 0.5) 0%, transparent 70%);
}

/* Main Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

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

.brand-logo-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 0 20px var(--glow-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.brand-logo-wrapper:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 0 30px var(--brand-cyan-glow);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--brand-cyan-glow);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Theme Toggle Switch */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.theme-toggle-btn:hover {
  background: var(--card-bg-hover);
  border-color: var(--brand-cyan-glow);
  transform: translateY(-2px);
}

.theme-toggle-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Main Hero Section */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-cyan-glow);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-flame-orange);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--brand-flame-orange);
  animation: blinkDot 1.5s infinite alternate;
}

@keyframes blinkDot {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Center Emblem Graphic */
.emblem-display {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 10px 40px var(--shadow-color), 0 0 50px var(--glow-color);
  animation: floatEmblem 6s ease-in-out infinite;
}

@keyframes floatEmblem {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.emblem-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 900px;
  background: linear-gradient(135deg, #ffffff 30%, var(--brand-cyan-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, var(--brand-navy-dark) 30%, var(--brand-navy-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* Countdown Timer */
.countdown-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 680px;
  width: 100%;
  margin-bottom: 3rem;
}

.timer-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.25rem 0.75rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px var(--shadow-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timer-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan-glow);
}

.timer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-navy-light), var(--brand-cyan-glow));
}

.timer-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-accent);
  font-weight: 600;
}

/* Call to Action Buttons */
.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(18, 69, 112, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-navy-light) 0%, var(--brand-blue-accent) 100%);
  box-shadow: 0 6px 25px rgba(43, 124, 193, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--card-bg-hover);
  border-color: var(--brand-cyan-glow);
  transform: translateY(-2px);
}

/* Progress Tracker Section */
.progress-section {
  max-width: 700px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 3.5rem;
  backdrop-filter: blur(12px);
  text-align: left;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-percent {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-cyan-glow);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.progress-bar-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, var(--brand-navy-light), var(--brand-cyan-glow));
  border-radius: 10px;
  transition: width 1.5s ease-in-out;
  box-shadow: 0 0 12px var(--brand-cyan-glow);
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.milestone-item.done {
  color: var(--text-main);
  font-weight: 600;
}

.milestone-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.milestone-item.done .milestone-icon {
  background: var(--brand-cyan-glow);
  color: #07131e;
}

.milestone-item.active .milestone-icon {
  background: var(--brand-flame-orange);
  color: #ffffff;
  animation: pulseBadge 1.5s infinite;
}

/* Feature Pillars Grid */
.pillars-section {
  width: 100%;
  margin-bottom: 2rem;
}

.pillars-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-cyan-glow);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(18, 69, 112, 0.4);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--brand-cyan-glow);
}

.pillar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--brand-cyan-glow);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 10, 17, 0.8);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--card-border);
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
  border-color: var(--brand-cyan-glow);
}

.modal-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: var(--brand-cyan-glow);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-submit-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-dark);
  border: 1px solid var(--brand-cyan-glow);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  pointer-events: all;
  animation: slideInToast 0.3s ease forwards;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 640px) {
  .countdown-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
  }

  .emblem-display {
    width: 110px;
    height: 110px;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
