/* ============================================
   VARIABLES — TEMA CLARO (default)
   ============================================ */
:root {
  --c1: #fe6d13;
  --c2: #2bb2e9;
  --c3: #74b848;
  --c4: #218c8b;
  --c5: #d68130;
  --c6: #b7bf14;
  --c7: #1a3a4a;

  --page-bg-a:    #f0f7fa;
  --page-bg-b:    #e8f5f0;
  --page-bg-c:    #f5f7e8;

  --glass-bg:     rgba(255,255,255,0.55);
  --glass-border: rgba(33,140,139,0.2);
  --glass-hover:  rgba(255,255,255,0.8);

  --text-main:    #0d2a35;
  --text-muted:   #3a6070;

  --blob-a: rgba(43,178,233,0.10);
  --blob-b: rgba(33,140,139,0.10);

  --header-bg:    rgba(240,247,250,0.75);
  --footer-bg:    rgba(230,244,248,0.9);
  --alt-bg:       rgba(232,245,240,0.6);

  --hero-gradient: radial-gradient(ellipse at 50% 60%, rgba(254,109,19,0.06) 0%, transparent 65%);
  --logo-from: var(--c2);
  --logo-to:   var(--c4);
}

/* ============================================
   VARIABLES — TEMA OSCURO
   ============================================ */
[data-theme="dark"] {
  --page-bg-a:    #0d1a2a;
  --page-bg-b:    #0a2233;
  --page-bg-c:    #0d2420;

  --glass-bg:     rgba(255,255,255,0.07);
  --glass-border: rgba(198,222,222,0.25);
  --glass-hover:  rgba(255,255,255,0.13);

  --text-main:    #e8f4f4;
  --text-muted:   rgba(198,222,222,0.7);
  --c7:           #c6dede;

  --blob-a: rgba(43,178,233,0.12);
  --blob-b: rgba(33,140,139,0.13);

  --header-bg:    rgba(13,26,42,0.7);
  --footer-bg:    rgba(13,26,42,0.85);
  --alt-bg:       rgba(13,26,42,0.55);
}

/* ============================================
   RESET & BASE
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--page-bg-a) 0%, var(--page-bg-b) 40%, var(--page-bg-c) 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* ANIMATED BG BLOBS */
body::before {
  content: '';
  position: fixed; top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blob-a) 0%, transparent 70%);
  border-radius: 50%;
  animation: blobmove 12s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; bottom: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--blob-b) 0%, transparent 70%);
  border-radius: 50%;
  animation: blobmove2 15s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes blobmove  { 0%{transform:translate(0,0)}   100%{transform:translate(80px,60px)}  }
@keyframes blobmove2 { 0%{transform:translate(0,0)}   100%{transform:translate(-60px,-80px)} }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, border-color 0.4s;
}
.logo {
  font-size: 1.3rem; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--c2), var(--c4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo img {
    width: 8rem;
}
.nav ul { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; letter-spacing: 0.5px; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transition: width 0.3s;
}
.nav a:hover { color: var(--c3); }
.nav a:hover::after { width: 100%; }

/* THEME TOGGLE BUTTON */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.theme-toggle:hover {
  background: var(--glass-hover);
  color: var(--c4);
  border-color: var(--c4);
}
.theme-toggle .icon { font-size: 1rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; z-index: 1;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-gradient);
}
.hero-content { position: relative; max-width: 780px; }
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  background: linear-gradient(135deg, var(--c4) 0%, var(--c2) 50%, var(--c1) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}
[data-theme="dark"] .hero-content h1 {
  background: linear-gradient(135deg, #fff 0%, var(--c7) 40%, var(--c2) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.8; max-width: 600px; margin: 0 auto 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--c1), var(--c5));
  color: #fff; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; letter-spacing: 0.5px;
  box-shadow: 0 4px 24px rgba(254,109,19,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(254,109,19,0.45);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  position: relative; z-index: 1;
  padding: 5rem 2.5rem;
  max-width: 1200px; margin: 0 auto;
}
.section.alt {
  background: var(--alt-bg);
  backdrop-filter: blur(10px);
  max-width: 100%;
  transition: background 0.4s;
}
.section.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--c2), var(--c4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section p { color: var(--text-muted); line-height: 1.8; }
.section-desc { margin-bottom: 2.5rem; font-size: 1rem; }

/* ============================================
   CARDS
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c2), var(--c4), var(--c3));
}
.card:hover {
  transform: translateY(-6px);
  background: var(--glass-hover);
  box-shadow: 0 12px 40px rgba(43,178,233,0.12);
}
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--c7); }
.card p  { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================
   MISSION / VISION
   ============================================ */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.purpose-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 1.6rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.purpose-card:hover {
  transform: translateY(-5px);
  background: var(--glass-hover);
  box-shadow: 0 14px 40px rgba(33,140,139,0.14);
}

.purpose-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(43,178,233,0.18), rgba(33,140,139,0.25));
  color: var(--c4);
}

.purpose-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.purpose-card h3 {
  color: var(--c7);
  margin-bottom: 0.6rem;
  font-size: 1.12rem;
}

.purpose-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================
   APPS
   ============================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.app-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 0px; text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 200px;
  overflow: hidden;
  position: relative;
  padding: 0px;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(116,184,72,0.15);
}

.go-overlay {
  position: absolute;   
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  color: white;
  display: flex;              
  align-items: center;
  justify-content: center;
  font-size: x-large;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 24px;       
}
.go-overlay:hover {
    opacity: 1;
}
.go-overlay i {
    color: yellow;
}
.app-icon {
  width: 100%; height: 100%; border-radius: 18px;
  background: linear-gradient(135deg, var(--c3), var(--c4));
  box-shadow: 0 4px 20px rgba(116,184,72,0.25);
}
.app-icon img{
    width: 100%;
    min-height: 100%;
}
.app-card:hover>h3{
    opacity: 0;
    transition: 0.2s;
}
.app-card h3 { font-size: 1rem; font-weight: 700; color: var(--c7); margin-top: -40px; }
.app-card p  { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.app-btn {
  display: inline-block; padding: 0.5rem 1.4rem; border-radius: 50px;
  background: rgba(116,184,72,0.12); border: 1px solid rgba(116,184,72,0.35);
  color: var(--c3); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.app-btn:hover { background: var(--c3); color: #fff; }

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(254,109,19,0.10);
}
.project-img {
  height: 160px;
  background: linear-gradient(135deg, rgba(254,109,19,0.15) 0%, rgba(43,178,233,0.15) 100%);
  position: relative;
}
.project-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(240,247,250,0.7));
}
[data-theme="dark"] .project-img::after {
  background: linear-gradient(to bottom, transparent 40%, rgba(13,26,42,0.85));
}
.project-content { padding: 1.4rem 1.5rem; }
.project-content h3 { font-size: 1rem; font-weight: 700; color: var(--c7); margin-bottom: 0.5rem; }
.project-content p  { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.project-content ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-content li {
  font-size: 0.75rem; padding: 3px 10px; border-radius: 50px;
  background: rgba(43,178,233,0.1); border: 1px solid rgba(43,178,233,0.3);
  color: var(--c2); font-weight: 500;
}

/* ============================================
   SEEDBEDS
   ============================================ */
.seedbeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.seedbed-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  padding-bottom: 1.5rem;
}
.seedbed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(33,140,139,0.13);
}
.seedbed-img {
  height: 120px;
  background: linear-gradient(135deg, rgba(33,140,139,0.25) 0%, rgba(116,184,72,0.15) 100%);
  margin-bottom: 1.2rem;
}
.seedbed-card h3 { font-size: 1rem; font-weight: 700; color: var(--c7); margin: 0 1.5rem 0.5rem; }
.seedbed-card p  { font-size: 0.88rem; color: var(--text-muted); margin: 0 1.5rem 0.8rem; line-height: 1.7; }
.seedbed-card ul { list-style: none; margin: 0 1.5rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.seedbed-card li {
  font-size: 0.82rem; color: var(--c3); padding-left: 1rem;
  position: relative;
}
.seedbed-card li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c3);
}
.seedbed-btn {
  display: inline-block; margin-left: 1.5rem;
  padding: 0.5rem 1.4rem; border-radius: 50px;
  background: rgba(33,140,139,0.1); border: 1px solid rgba(33,140,139,0.35);
  color: var(--c4); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.seedbed-btn:hover { background: var(--c4); color: #fff; }

/* ============================================
   OBJECTIVES LIST
   ============================================ */
.list-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 2rem 2.5rem; margin-top: 2rem;
}
.list-container ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.list-container li {
  display: flex; align-items: flex-start; gap: 1rem;
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.6;
}
.list-container li::before {
  content: ''; display: block; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative; z-index: 1;
  background: var(--footer-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2.5rem 2rem;
  transition: background 0.4s;
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer h4 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem;
  color: var(--c2); letter-spacing: 0.5px;
}
.footer p    { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; }
.footer ul   { list-style: none; }
.footer ul li {
  font-size: 0.88rem; color: var(--text-muted);
  padding: 0.3rem 0; cursor: pointer; transition: color 0.2s;
}
.footer ul li:hover { color: var(--c2); }
.copy {
  text-align: center; font-size: 0.8rem; color: var(--text-muted);
  opacity: 0.5;
  border-top: 1px solid var(--glass-border); padding-top: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 700px) {
  .header   { padding: 0.8rem 1.2rem; flex-wrap: wrap; gap: 0.5rem; }
  .nav ul   { gap: 1rem; }
  .section  { padding: 3rem 1.2rem; }
  .hero     { min-height: 80vh; }
  .mission-vision-grid { grid-template-columns: 1fr; }
}
