﻿:root {
  color-scheme: dark;
  --bg: #07131f;
  --bg-soft: #0e2032;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f8ff;
  --muted: #adc0d3;
  --accent: #ffcf5c;
  --accent-2: #66d3ff;
  --accent-3: #7c9dff;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(102, 211, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 157, 255, 0.16), transparent 24%),
    linear-gradient(135deg, var(--bg), #132842 68%);
  line-height: 1.7;
  overflow-x: hidden;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
}

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

.hero {
  padding: 1.8rem 0 1.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}

.eyebrow {
  display: none;
}

.hero h1,
.section-heading h2,
.contact-shell h2 {
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.hero-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #ffdf8d);
  color: #07111f;
}

.button.secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card,
.info-card,
.feature-card,
.project-card,
.contact-shell,
.spotlight-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: riseIn 0.8s ease both;
}

.hero-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.avatar {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 1rem;
  max-width: 420px;
}

.avatar img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.avatar-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  margin-bottom: 1rem;
}

.hero-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.stats div {
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
}

.stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: 1.5rem 0;
}

.section-heading {
  margin-bottom: 0.8rem;
}

.hero-grid,
.about-grid,
.card-grid,
.project-grid,
.contact-shell,
.spotlight-grid {
  gap: 1rem;
}

.hero {
  padding: 1.5rem 0 1rem;
}

.home-spotlight {
  padding-top: 0;
}

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

.spotlight-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.spotlight-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

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

.spotlight-card ul {
  padding-left: 1.1rem;
  margin: 0;
}

.accent-card {
  background: linear-gradient(135deg, rgba(245, 201, 105, 0.14), rgba(109, 205, 246, 0.16));
}

.terminal-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: #02070d;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: #111c2b;
}

.terminal-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff6b6b;
}

.terminal-bar span:nth-child(2) {
  background: #ffd166;
}

.terminal-bar span:nth-child(3) {
  background: #4ecb71;
}

.terminal-body {
  padding: 1.1rem 1.2rem;
  font-family: 'Courier New', Courier, monospace;
  color: #7ef7a7;
}

.terminal-body p {
  margin: 0.3rem 0;
}

.small-terminal {
  background: rgba(2,7,13,0.55);
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  color: #bfeec6;
  margin-bottom: 1rem;
}

.terminal-body .prompt {
  color: var(--accent-2);
  font-weight: 700;
  margin-right: 0.4rem;
}

.terminal-body .cmd {
  color: #fff;
  opacity: 0.95;
}

.terminal-body .result {
  color: var(--muted);
  margin-left: 1.2rem;
}

.terminal-body .cursor {
  display: inline-block;
  width: 0.25rem;
  height: 1rem;
  margin-left: 0.45rem;
  vertical-align: middle;
  background: #ff4d4d;
  border-radius: 0.12rem;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.alt-section {
  background: rgba(255, 255, 255, 0.025);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
}

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

.about-grid,
.card-grid,
.project-grid {
  display: grid;
  gap: 1.2rem;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.feature-card,
.project-card {
  padding: 1.4rem;
  border-radius: 1.2rem;
}

.info-card h3,
.feature-card h3,
.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.info-card p,
.feature-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.tag-list li {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(109, 205, 246, 0.14);
  color: var(--accent-2);
  font-size: 0.82rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: 1.6rem;
  padding: 1.6rem;
  border-radius: 1.4rem;
}

.contact-intro p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group label {
  font-weight: 600;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #8da0b7;
}

.field-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--accent);
  font-size: 0.95rem;
}

.site-footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-links a {
  color: var(--muted);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.02);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  padding: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.social-links a svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.social-links a.instagram {
  color: #fff;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-links a.whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-links a.facebook {
  color: #fff;
  background: linear-gradient(135deg, #1877f2, #0b5ed7);
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.footer-content div {
  display: flex;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .footer-content {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-content > p,
  .footer-content > div {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 180px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .card-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
  }

  .hero-card {
    order: 1;
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .about-grid,
  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    padding: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content div {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.2rem, 1120px);
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .hero-card,
  .info-card,
  .feature-card,
  .project-card,
  .spotlight-card,
  .contact-shell {
    padding: 1rem;
    border-radius: 1rem;
  }

  .avatar img {
    height: 240px;
  }

  .section {
    padding: 3rem 0;
  }

  .social-links {
    gap: 0.45rem;
  }

  .social-links a {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 640px) {
  .nav-bar,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .hero {
    padding-top: 3rem;
  }
}
