:root {
  --bg-dark: #0a0d14;
  --primary: #7c7cff;
  --accent: #00f0ff;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

section {
  position: relative;
  z-index: 2;
  padding: 110px 8%;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 30px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

p {
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 5;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 13, 20, 0.65);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* MOBILE & TABLET LAYOUT */
@media (max-width: 900px) {
  header {
    padding: 12px 5%;
  }

  .logo img {
    height: 48px;
    max-width: 70vw;
    /* prevent logo from overflowing */
  }

  section {
    padding: 90px 6%;
  }

  .hero {
    padding-top: 110px;
  }
}

/* Small phones */
@media (max-width: 600px) {
  header {
    justify-content: center;
  }

  .logo {
    justify-content: center;
  }

  .logo img {
    height: 70px;
    max-width: 80vw;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* hide desktop nav on mobile – already present, keep it */
@media (max-width: 768px) {
  nav {
    display: none;
  }
}

nav a {
  margin-left: 30px;
  color: var(--text-muted);
  transition: color .3s ease;
  font-weight: 500;
}

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

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #000;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(124, 124, 255, .35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 60px rgba(0, 240, 255, .45);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
}

.hero span {
  color: var(--accent);
}

/* CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  padding: 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .4s ease, box-shadow .4s ease, background .4s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .45);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 5px;
  color: var(--accent);
}

/* FOOTER */
footer {
  padding: 80px 8%;
  border-top: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  background: #05060a;
  position: relative;
  z-index: 2;
}

footer .footer-col {
  flex: 1;
  min-width: 200px;
}

footer h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 12px;
}

footer a {
  color: var(--text-muted);
  transition: color .3s ease;
}

footer a:hover {
  color: var(--accent);
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* FORM STYLES */
.contact-form {
  max-width: 600px;
  margin-top: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 160px;
}

.legal-content h1 {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 50px;
  margin-bottom: 20px;
}

.legal-content p {
  margin-bottom: 20px;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 10px;
}

/* CONTACT PAGE */
.contact-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
}

.contact-info,
.contact-form-wrapper {
  flex: 1;
  min-width: 300px;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .contact-info,
  .contact-form-wrapper {
    min-width: 100%;
  }
}