/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* HEADER & NAV */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  font-size: 1.25rem;
  color: #e5e7eb;
}

.logo-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.nav {
  display: flex;
  align-items: center;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: #e5e7eb;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.nav-links a:hover {
  background: rgba(129, 140, 248, 0.15);
  color: #c7d2fe;
  transform: translateY(-1px);
}

/* HERO */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top left, #1e293b, #020617);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-text h1 span {
  color: #a5b4fc;
}

.hero-text p {
  color: #cbd5f5;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-note {
  font-size: 0.9rem;
  color: #9ca3af;
}

.hero-note a {
  color: #a5b4fc;
}

.hero-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.8));
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

.code-preview {
  background: #020617;
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.hero-card-text {
  font-size: 0.9rem;
}

/* SECTIONS */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: #020617;
}

.section-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section-content p {
  margin-bottom: 1rem;
  color: #cbd5f5;
}

.about-list {
  margin-left: 1rem;
  margin-bottom: 1rem;
}

.about-list li {
  margin-bottom: 0.4rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.5);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.6);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.btn.secondary:hover {
  background: rgba(15, 23, 42, 0.8);
}

/* CARDS */
.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1rem;
  padding: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.small {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.8rem;
}

.project-card img {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.project-card p {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.12);
  color: #a5b4fc;
}

.projects-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* REGISTER */
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

/* FORM */
.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.required {
  color: #fb7185;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.6);
}

textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.15rem;
}

/* ERROR / SUCCESS */
.error-message {
  color: #fb7185;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.success-message {
  color: #4ade80;
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

input.invalid {
  border-color: #fb7185;
}

.form-message {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.8);
}

th {
  text-align: left;
  font-weight: 600;
  color: #e5e7eb;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.contact-btn {
  width: 100%;
  margin-top: 0.7rem;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  padding: 1rem 0;
  background: #020617;
}

.footer-content {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .register-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    position: absolute;
    right: 1rem;
    top: 3.1rem;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.97);
    padding: 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
