/* style.css */

/* ========== 01. CSS Variables ========== */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-alt: #1f2630;
  --primary: #3b82f6;
  --secondary: #00c48c;
  --text: #e6e8eb;
  --muted: #9aa1ac;
  --radius: 14px;
  --content-width: 1200px;
  --nav-height: 80px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, .35);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  padding-top: var(--nav-height);
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ===== Layout Helpers ===== */
.container {
  width: 90%;
  max-width: var(--content-width);
  margin: 0 auto;
}
.container.narrow {
  max-width: 760px;
}
.container.center {
  text-align: center;
}
.section {
  padding: 96px 0;
}
.cards-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cards-grid.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ===== Navigation ===== */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.logo-link svg {
  width: 40px;
  height: 40px;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a {
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .25s;
}
.nav-links a:hover::after {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 0 20px;
  background: linear-gradient(135deg, #0c1b4d 0%, #112245 60%, #181e30 100%);
}
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 16px;
}
.hero-content h1 {
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
}
.hero-content p {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: .2s transform, .2s box-shadow;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
}
.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform .25s;
  min-height: 220px;
  text-align: center;
}
.card:hover {
  transform: translateY(-6px);
}
.card .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .icon svg {
  width: 100%;
  height: 100%;
}
.card h3 {
  font-size: 1.25rem;
  margin: 12px 0;
}
.card p {
  color: var(--muted);
  margin: 0;
}

/* ===== Section Headings ===== */
.about h2, .services h2, .why h2, .license h2, .contact h2 {
  margin-bottom: 40px;
}
.about p {
  font-size: 1.05rem;
  color: var(--muted);
}
.license .btn-secondary {
  margin-top: 24px;
}

/* ===== Contact Form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface-alt);
  color: var(--text);
  border: 2px solid var(--surface-alt);
  border-radius: var(--radius);
  resize: vertical;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== Footer ===== */
.footer {
  background: #000;
  padding: 48px 0;
  text-align: center;
}
.footer p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

/* ===== Scroll Offset ===== */
#home, #about, #services, #why, #license, #contact {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1023px) {
  .hero-content { padding: 0 16px; }
}
@media (max-width: 767px) {
  .hero-content { padding: 0 12px; }
}
