/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:      #0b0f1a;
  --surface: #131929;
  --surface2:#1a2235;
  --accent:  #4fc4cf;
  --accent2: #c678dd;
  --text:    #e8eaf6;
  --muted:   #8892b0;
  --border:  rgba(79, 196, 207, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  height: 62px;
  background: rgba(11, 15, 26, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.3px;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 7rem 2rem 5.5rem;
  background: linear-gradient(160deg, #131929 0%, #0b0f1a 60%);
}

/* decorative dot-grid */
.hero-deco {
  position: absolute;
  right: 5%;
  top: 10%;
  width: 300px;
  height: 300px;
  opacity: 0.04;
  background:
    repeating-linear-gradient(0deg,  var(--accent) 0, var(--accent) 1px, transparent 0, transparent 38px),
    repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 1px, transparent 0, transparent 38px);
  pointer-events: none;
}

.hero-tag {
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before,
.hero-tag::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

/* ── BUTTONS ── */
.buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.72rem 1.5rem;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s;
  border: none;
  text-decoration: none;
  background: var(--accent);
  color: #0b0f1a;
}

.btn:hover { background: #3ab3be; transform: translateY(-2px); color: #0b0f1a; }

.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(79, 196, 207, 0.35);
}

.btn.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  transform: translateY(-2px);
}

/* ── SECTIONS ── */
.section {
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 3rem;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text { font-size: 1rem; color: var(--muted); }
.about-text p { margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.2rem;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: rgba(79, 196, 207, 0.4); }

.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
}

/* ── CARDS (shared) ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* Skills — 4 columns */
#skills .cards {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.card:hover { transform: translateY(-4px); border-color: rgba(79,196,207,0.35); }

/* top accent line on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.card:hover::before { transform: scaleX(1); }

/* ── SKILL CARDS ── */
.skill-icon { font-size: 1.6rem; margin-bottom: 0.8rem; }
.skill-name { font-weight: 500; color: #fff; font-size: 0.95rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.8rem; }

.tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(79, 196, 207, 0.1);
  color: var(--accent);
  border: 1px solid rgba(79, 196, 207, 0.2);
}

.tag.purple {
  background: rgba(198, 120, 221, 0.1);
  color: var(--accent2);
  border-color: rgba(198, 120, 221, 0.2);
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 0;
  width: 1px;
  background: var(--border);
}

.tl-item { position: relative; padding-bottom: 3rem; }
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -2.36rem;
  top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 196, 207, 0.15);
}

.tl-period {
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.tl-company {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.tl-role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.tl-desc { color: var(--muted); font-size: 0.93rem; }

.tl-highlight {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(79, 196, 207, 0.07);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(79, 196, 207, 0.18);
}

/* ── PROJECT CARDS ── */
.proj-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.2rem;
}

.proj-card:hover { border-color: rgba(198, 120, 221, 0.4); }
.proj-card:hover::before {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.proj-icon {
  font-size: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(198, 120, 221, 0.1);
  border: 1px solid rgba(198, 120, 221, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.proj-title {
  font-weight: 500;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.proj-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ── CONTACT ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.contact-intro {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-sub { color: var(--muted); font-size: 0.93rem; }

.contact-links { display: flex; flex-direction: column; gap: 0.8rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.88rem;
  padding: 0.65rem 1.1rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  white-space: nowrap;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  nav { padding: 0 1.2rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.75rem; }

  .hero { padding: 5rem 1.5rem 4rem; }
  .hero-deco { display: none; }

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

  .contact-card {
    grid-template-columns: 1fr;
  }

  .cards { grid-template-columns: 1fr 1fr; }
  #skills .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .nav-logo { font-size: 0.95rem; }
  .nav-links { gap: 0.8rem; }
  .hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  #skills .cards { grid-template-columns: 1fr 1fr; }
}

/* proj-cards responsive */
@media (max-width: 720px) {
  .proj-cards { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .proj-cards { grid-template-columns: 1fr !important; }
}
