/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --fg: hsl(222, 47%, 11%);
  --primary: hsl(217, 91%, 60%);
  --primary-fg: #ffffff;
  --muted-bg: hsl(210, 40%, 98%);
  --muted-fg: hsl(215, 16%, 47%);
  --border: hsl(220, 13%, 91%);
  --card-bg: #ffffff;
  --shadow-card: 0 0 0 1px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.05), 0 12px 24px rgba(0,0,0,0.02);
  --shadow-cta: 0 8px 30px -4px hsl(217 91% 60% / 0.35);
  --radius: 1rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 { letter-spacing: -0.04em; text-wrap: balance; }
p { text-wrap: pretty; }
a { text-decoration: none; color: inherit; }

/* ===== Layout ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }
.center-text { text-align: center; }
.section { padding: 6rem 0; }
.bg-muted { background: var(--muted-bg); }
.bg-dark { background: var(--fg); }
.border-top { border-top: 1px solid var(--border); }

/* ===== Navigation ===== */
.navbar {
  position: fixed; width: 100%; z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  height: 5rem; display: flex; align-items: center; justify-content: space-between;
}
.logo-text {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--fg);
}
@media (min-width: 640px) { .logo-text { font-size: 1.5rem; } }
.nav-right { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .nav-right { gap: 2rem; } }
.lang-toggle {
  background: none; border: none; font-size: 0.875rem; font-weight: 500;
  color: var(--muted-fg); cursor: pointer; transition: color 0.2s;
}
.lang-toggle:hover { color: var(--primary); }
.nav-cta {
  display: none; background: var(--fg); color: var(--bg);
  padding: 0.625rem 1.25rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 600; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }


.lang-toggle:hover { color: var(--primary); }
.nav-cta1 {
  display: none; background: var(--fg); color: var(--bg);
  padding: 0.625rem 1.25rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 600; transition: opacity 0.2s;
}
.nav-cta1:hover { opacity: 0.9; }
@media (min-width: 640px) { .nav-cta1 { display: inline-flex; } }

/* ===== Hero ===== */
.hero { padding: 10rem 1.5rem 6rem; text-align: center; }
.hero-inner { max-width: 64rem; margin: 0 auto; }
.badge {
  display: inline-block; padding: 0.375rem 1rem; border-radius: 9999px;
  background: hsl(217 91% 60% / 0.1); color: var(--primary);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 2.25rem; font-weight: 700; line-height: 1.1;
  margin-bottom: 2rem; color: var(--fg);
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }
.hero-sub {
  font-size: 1.125rem; color: var(--muted-fg);
  max-width: 40rem; margin: 0 auto 2.5rem;
}
@media (min-width: 640px) { .hero-sub { font-size: 1.25rem; } }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--primary-fg);
  padding: 1rem 2rem; border-radius: 0.75rem;
  font-weight: 700; font-size: 1.125rem;
  box-shadow: var(--shadow-cta); transition: all 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.95); }

/* ===== Section Labels ===== */
.section-label {
  font-size: 0.875rem; font-weight: 700; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 3rem;
}
.section-label.center { text-align: center; }

/* ===== About ===== */
.about-lead {
  font-size: 1.5rem; font-weight: 700; color: var(--fg);
  margin-bottom: 1.5rem; line-height: 1.35;
}
@media (min-width: 640px) { .about-lead { font-size: 1.875rem; } }
.about-body { font-size: 1.125rem; color: var(--muted-fg); }
.section-label + .about-lead { margin-top: -2rem; }
.section-label { margin-bottom: 1rem; }
.section-label.center { margin-bottom: 3rem; }

/* ===== Grid ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ===== Glass Card ===== */
.glass-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 2rem;
  transition: box-shadow 0.3s;
}
.glass-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.glass-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.glass-card p { font-size: 0.875rem; color: var(--muted-fg); }

.icon { font-size: 1.5rem; margin-bottom: 1rem; }
.icon-red { color: #ef4444; }
.icon-amber { color: #f59e0b; }
.icon-orange { color: #f97316; }
.icon-blue { color: var(--primary); }
.icon-rose { color: #f43f5e; }

.icon-box {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: hsl(217 91% 60% / 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}

/* ===== Tech Stack ===== */
.tech-sub { color: var(--muted-fg); max-width: 36rem; margin: 0 auto 3rem; }
.tech-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
@media (min-width: 640px) { .tech-stack { gap: 4rem; } }
.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  opacity: 0.6; transition: opacity 0.2s;
}
.tech-item:hover { opacity: 1; }
.tech-icon { font-size: 2rem; }
.tech-item span:last-child {
  font-size: 0.75rem; font-weight: 700; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ===== Check Grid ===== */
.check-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
.check-item {
  padding: 1rem; font-weight: 500; color: var(--fg); font-size: 1rem;
}

/* ===== CTA / Contact ===== */
.cta-title {
  font-size: 1.875rem; font-weight: 700; color: var(--bg);
  text-align: center; margin-bottom: 3rem; line-height: 1.2;
}
@media (min-width: 640px) { .cta-title { font-size: 3rem; } }

.contact-form {
  max-width: 32rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.75rem; color: var(--bg);
  font-family: inherit; font-size: 1rem;
  outline: none; transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: none; }

.btn-submit {
  width: 100%; padding: 1rem; border: none; border-radius: 0.75rem;
  background: var(--primary); color: var(--primary-fg);
  font-size: 1.125rem; font-weight: 700; font-family: inherit;
  cursor: pointer; box-shadow: var(--shadow-cta); transition: all 0.2s;
}
.btn-submit:hover { filter: brightness(1.1); }
.btn-submit:active { transform: scale(0.95); }

.form-feedback {
  text-align: center; margin-top: 1rem; font-size: 0.875rem; color: #4ade80;
  min-height: 1.25rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--fg); border-top: 1px solid rgba(255,255,255,0.1); padding: 3rem 1.5rem;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-left { text-align: center; }
@media (min-width: 768px) { .footer-left { text-align: left; } }
.footer-rights { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.footer-ip { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.15em; color: rgba(255,255,255,0.5); transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,1); }

/* ===== Animations ===== */
.animate-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}
