/* ============================================================
   Libre Agora — AI/ML Data Science Consulting
   Theme: Money Green + 24k Gold
   ============================================================ */

:root {
  --green-dark:   #0f3d22;
  --green-mid:    #1a5c38;
  --green-light:  #2a7d4f;
  --green-accent: #3aaa6a;
  --gold:         #d4af37;
  --gold-light:   #f0d060;
  --gold-dark:    #a88520;
  --text-light:   #f4f9f6;
  --text-muted:   #b0c4ba;
  --bg-dark:      #0a2416;
  --bg-card:      rgba(26, 92, 56, 0.35);
  --border-gold:  rgba(212, 175, 55, 0.4);
  --shadow:       0 8px 32px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  opacity: 0;
  animation: pageFadeIn 1.2s ease forwards;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

img { max-width: 100%; display: block; }
a  { color: var(--gold); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold-light); }

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.gold-text  { color: var(--gold); }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1.2rem 0 2rem;
  border-radius: 2px;
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.35s, box-shadow 0.35s;
}
#navbar.scrolled {
  background: rgba(10, 36, 22, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span { color: var(--text-light); font-weight: 400; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(42, 125, 79, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    var(--bg-dark);
  padding: 8rem 0 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--gold-light) 60%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.5);
  color: var(--green-dark);
}
.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 2px solid var(--border-gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: floatCard 5s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.metric-list { list-style: none; }
.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.metric-item:last-child { border-bottom: none; }
.metric-label { font-size: 0.85rem; color: var(--text-muted); }
.metric-value { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.metric-bar-wrap { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 0.3rem; }
.metric-bar { height: 4px; background: linear-gradient(90deg, var(--green-accent), var(--gold)); border-radius: 2px; }

/* ── SERVICES ── */
#services {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 61, 34, 0.4) 100%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(42, 125, 79, 0.35);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--gold);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── ABOUT ── */
#about {
  padding: 6rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

.about-visual {
  position: relative;
}
.about-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 50%, rgba(212,175,55,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.skill-tag {
  padding: 0.35rem 0.9rem;
  background: rgba(42, 125, 79, 0.3);
  border: 1px solid rgba(42, 125, 79, 0.5);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--green-accent);
  font-weight: 600;
}

/* ── CONTACT ── */
#contact {
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(15,61,34,0.3) 0%, var(--bg-dark) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-info h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--gold); }
.contact-info p  { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.contact-detail .icon {
  width: 36px;
  height: 36px;
  background: rgba(212,175,55,0.12);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(10, 36, 22, 0.8);
  border: 1px solid rgba(42, 125, 79, 0.5);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,175,55,0.45);
}
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  text-align: center;
}
.form-success {
  display: none;
  background: rgba(42, 125, 79, 0.2);
  border: 1px solid var(--green-accent);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  color: var(--green-accent);
  font-weight: 600;
  margin-top: 1rem;
}
.form-error {
  display: none;
  background: rgba(180, 50, 50, 0.2);
  border: 1px solid rgba(220, 80, 80, 0.5);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  color: #ff8080;
  font-weight: 600;
  margin-top: 1rem;
}

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  border-top: 1px solid rgba(212,175,55,0.2);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--text-muted); font-weight: 400; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
}
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: rgba(176, 196, 186, 0.5); }

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { display: none; }
  .about-visual { display: none; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 36, 22, 0.98);
    padding: 1.5rem;
    gap: 1.2rem;
    border-top: 1px solid var(--border-gold);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
