/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg:       #0f172a;
  --clr-surface:  #1e293b;
  --clr-accent:   #38bdf8;
  --clr-accent2:  #818cf8;
  --clr-text:     #e2e8f0;
  --clr-muted:    #94a3b8;
  --radius:       12px;
  --max-w:        1100px;
  --gap:          2rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Layout helpers ───────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 2 * 1.5rem);
  margin-inline: auto;
}

.section {
  padding-block: 5rem;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0e2840 100%);
  padding-block: 5rem 4rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.hero-inner {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--clr-accent);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
  flex-shrink: 0;
}

.hero-text .company {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-text .tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--clr-muted);
}

/* ── SKILLS ───────────────────────────────────────────── */
.skills-section {
  background-color: var(--clr-bg);
}

.skills-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--clr-text);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap);
}

.skill-card {
  background: var(--clr-surface);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
}

.skill-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--clr-accent);
}

.skill-card p {
  color: var(--clr-muted);
  font-size: 0.95rem;
}

/* ── ABOUT ────────────────────────────────────────────── */
.about-section {
  background: var(--clr-surface);
  border-block: 1px solid rgba(56, 189, 248, 0.1);
}

.about-inner {
  max-width: 720px;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
  color: var(--clr-text);
}

.about-text p {
  color: var(--clr-muted);
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ── CONTACT ──────────────────────────────────────────── */
.contact-section {
  background: var(--clr-bg);
}

.contact-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  color: var(--clr-text);
}

.contact-section address {
  font-style: normal;
  background: var(--clr-surface);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: inline-block;
  line-height: 1.9;
}

.contact-section address p {
  color: var(--clr-muted);
}

.contact-section address a {
  font-weight: 600;
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--clr-surface);
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  text-align: center;
  padding-block: 1.5rem;
  color: var(--clr-muted);
  font-size: 0.9rem;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }

  .contact-section address {
    padding: 1.5rem;
  }
}
