@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital@1&display=swap');

:root {
  --primary: #1a5c2a;
  --primary-dark: #0f3d1a;
  --primary-light: #2d7a40;
  --accent: #8b6914;
  --bg: #fafaf7;
  --bg-dark: #1a1a16;
  --text: #1c1c18;
  --text-muted: #5a5a52;
  --border: #e0ddd6;
  --card-bg: #ffffff;
  --success: #22863a;
  --nav-height: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text); }
.text-italic { font-family: 'Playfair Display', serif; font-style: italic; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; font-weight: 600; border-radius: 6px; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: #fff; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); z-index: 1000; transition: all 0.3s ease; display: flex; align-items: center; padding: 0 2rem; background: transparent; }
.navbar.scrolled { background-color: var(--bg); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.nav-logo svg { width: 32px; height: 32px; fill: var(--primary); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 25px; height: 3px; background-color: var(--text); margin: 5px 0; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; width: 100%; background: var(--bg); flex-direction: column; padding: 2rem; box-shadow: 0 10px 15px rgba(0,0,0,0.1); gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
}

/* Sections */
.section { padding: 6rem 2rem; }
.section-dark { background-color: var(--bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.container { max-width: 1200px; margin: 0 auto; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 0 2rem; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 26, 22, 0.7); z-index: -1; }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(3rem, 5vw, 5rem); margin-bottom: 1.5rem; color: #fff; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }
.hero-stats { display: flex; gap: 2rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat-item { text-align: center; }
.hero-stat-item strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary-light); }

/* Grid */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; color: var(--primary); }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 92, 42, 0.1); }

/* Footer */
.footer { background-color: var(--bg-dark); color: #fff; padding: 4rem 2rem 2rem; }
.footer a { color: var(--text-muted); transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* Social Icons */
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

.social-links.social-links-light a {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
}
.social-links.social-links-light a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.social-links.social-links-sm a { width: 32px; height: 32px; font-size: 0.7rem; }

/* Stack Section (AWS / NVIDIA) */
.stack-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 2rem; }
.stack-card h3 { color: #fff; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.stack-card p { color: rgba(255,255,255,0.8); margin: 0; }
.stack-card .stack-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--primary-light); color: #fff; font-size: 0.7rem; font-weight: 800; flex-shrink: 0;
}

/* ── Contact / Request-Demo page ─────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  /* Stack columns: info panel first, form card below */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* First/Last Name side-by-side stays until very narrow */
  .name-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  /* On very small phones, stack First/Last Name too */
  .name-grid {
    grid-template-columns: 1fr;
  }

  /* Tighten form card padding */
  .contact-layout > div:last-child {
    padding: 1.5rem !important;
  }

  /* Tighten section top padding so content isn't buried under navbar */
  .contact-layout {
    gap: 1.5rem;
  }
}
