:root {
  --bg: #0b0f19;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #3b82f6;
  --border: #1f2937;
}

::selection {
  background:#222;
}

a:visited {
  color:inherit;
}

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

html, body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;

}

body {
  font-family: "Google Sans Code", monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;

  display: flex;
  flex-direction: column;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, nav {
  font-family: "Outfit", sans-serif;
  padding-bottom:20px;
}

button {
    font-family: "Outfit", sans-serif;
}

h1 {
  font-size: clamp(3rem, 6vw, 8rem);
  line-height: 1.1;
}

p {
  font-size: clamp(1.1rem, 5vw, 1.2rem);
  line-height: 1.1;
}

/* BACKGROUND */
.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden; 
}

.flowfield {
  width: 100%;
  height: 100%;
  display: block;

  filter: blur(40px);

}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 32px;
  }

}

@media (min-width: 1200px) {
  .container {
    padding: 60px;
    min-height:90vh;
    min-height:90svh;  
  }

  form.contact-form {
    width: 500px;
}
}


main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;

  display: flex;
  flex-direction: column;

  flex: 1;
}

/* SECTIONS */
section {
  width: 100%;

  min-height: 50vh;
  min-height: 50svh; /* ✅ mobile: shorter */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 40px 16px;
}


/* spacing between elements */
section > * + * {
  margin-top: 20px;
}

/* HERO */
.hero {
  min-height: 90vh;
  min-height: 90svh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 40px 16px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 8rem);
  line-height: 1.1;
padding-bottom:30px;
}

.hero p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(1.4rem, 6vw, 1.8rem);
}

/* NAVBAR */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11,15,25,0.7);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
}

nav a:hover {
  color: var(--text);
}

@media (min-width: 768px) {
  nav {
    justify-content: flex-start;
    padding: 15px 30px;
    gap: 20px;
  }
}

/* BUTTONS */
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  margin: 6px;
  font-size: 14px;
  transition: 0.2s;
}

.primary {
  background: var(--accent);
  color: white;
}

.primary:hover {
  transform: translateY(-2px);
}

.secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.secondary:hover {
  background: #111827;
}

/* ABOUT */
.about {
  max-width: 800px;
  padding: 60px 20px;
}

.lead {
  font-size: clamp(1.4rem, 6vw, 1.6rem);
  font-weight: 500;
}

/* STATS */
.stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px auto;
  text-align: center;
}

.stats h3 {
  font-size: 24px;
}

.stats p {
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 768px) {
  .stats {
    flex-direction: row;
    justify-content: space-between;
  }

  .stats div {
    flex: 1;
  }
}

/* CARDS */
.card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .card-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card p {
  color: var(--muted);
}

/* CONTACT */

form.contact-form {
    margin: auto;
    width: 300px;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--text);
}

.contact-form button {
  background: var(--accent);
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* FOOTER (FINAL FIX) */
footer {
  margin-top: auto; /* ✅ sticks to bottom */
  text-align: center;
  padding: 30px 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE POLISH */
@media (max-width: 480px) {
  .btn {
    width: 100%;
    text-align: center;
  }

  nav {
    gap: 8px;
  }
}