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

:root {
  --bg: #f4f6f8;
  --bg-dark: #06090f;
  --surface: #ffffff;
  --surface-dark: #0d1520;
  --accent: #1e6fee;
  --accent-light: #3b82f6;
  --accent-dark: #1558d6;
  --accent-glow: rgba(30,111,238, 0.14);
  --text: #1a2332;
  --text-muted: #4a5568;
  --text-light: #718096;
  --border: #e8ecf0;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 35, 50, 0.13);
  --radius: 0px;
  --radius-lg: 0px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); line-height: 1.75; }
a { text-decoration: none; color: inherit; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 6rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 0;
}

.section-title {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3.5rem;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 9, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30,111,238, 0.1);
  transition: var(--transition);
}

nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f6fc;
  white-space: nowrap;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  list-style: none;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: rgba(6, 9, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 5rem 1.5rem 2rem;
  border-left: 1px solid rgba(30,111,238,0.15);
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
}
.nav-links-mobile.open { transform: translateX(0); }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 0;
  color: #8b949e;
  transition: var(--transition);
}

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

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.4rem 1rem !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
}

.nav-socials {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.25rem;
}

.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #f0f6fc;
  transition: color var(--transition);
  outline: none;
  line-height: 0;
}

.nav-social-link:hover {
  color: var(--accent);
}

.nav-burger span { background: #f0f6fc; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 0;
  transition: var(--transition);
}

/* ===== HERO ===== */
#hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 5rem;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  color: #f0f6fc;
}

/* network mesh SVG background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(30,111,238,0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(30,111,238,0.12) 1px, transparent 1px);
  background-size: 80px 80px, 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 50%, black 30%, transparent 100%);
}

#hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(6,9,15,0.9) 0%, rgba(6,9,15,0.4) 50%, rgba(6,9,15,0.7) 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30,111,238,0.12);
  border: 1px solid rgba(30,111,238,0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 0;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 0;
  animation: pulse-teal 2s infinite;
}

@keyframes pulse-teal {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,111,238,0); }
  50% { box-shadow: 0 0 0 4px rgba(30,111,238,0.25); }
}

.hero-name {
  animation: fadeInUp 0.6s 0.1s ease both;
  color: #f0f6fc;
  line-height: 1.05;
}

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

.hero-title {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: #8b949e;
  margin: 1rem 0 1.5rem;
  animation: fadeInUp 0.6s 0.2s ease both;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-title strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-title .dot { color: #2d3f58; }

.hero-desc {
  font-size: 1rem;
  color: #8b949e;
  max-width: 500px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s 0.3s ease both;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(30,111,238,0.35);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30,111,238,0.45);
}

.btn-secondary {
  background: transparent;
  color: #f0f6fc;
  border: 1.5px solid #2d3f58;
}

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

.hero-avatar {
  animation: fadeIn 0.8s 0.2s ease both;
}

.avatar-ring {
  width: 320px;
  height: 360px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  position: relative;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle at 70% 30%, rgba(30,111,238,0.12) 0%, transparent 60%);
  z-index: -1;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: var(--surface-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.05em;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(30,111,238,0.15);
  animation: fadeInUp 0.6s 0.5s ease both;
}

.stat-item { text-align: left; }
.stat-number { font-size: 1.75rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.8rem; color: #8b949e; margin-top: 0.25rem; }

/* ===== QUOTE BAND ===== */
.quote-band {
  background: var(--bg-dark);
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

.hero-quote {
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  font-weight: 600;
  color: #e2e8f0;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.5;
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
}

.quote-mark {
  color: var(--accent-light);
  font-size: 1.5em;
  font-style: normal;
  line-height: 0;
  vertical-align: -0.2em;
  margin: 0 0.15em;
}

.quote-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.75rem;
  font-style: normal;
}

/* ===== AVATAR WITH PHOTO ===== */
.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ===== ABOUT PHOTO GRID ===== */
.about-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
}

.photo-main {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  background: var(--border);
}

.photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.photo-main:hover img { transform: scale(1.03); }

.photo-side {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  height: 210px;
  background: var(--border);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-item:hover img { transform: scale(1.04); }

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 2px dashed var(--border);
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ===== PROJECT CARD PHOTO ===== */
.project-img-wrap {
  margin: -2rem -2rem 1.25rem;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img-wrap img { transform: scale(1.04); }

/* ===== ABOUT ===== */
#about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p { margin-bottom: 1.25rem; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 0;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(30,111,238,0.2);
}

.about-cards { display: flex; flex-direction: column; gap: 1.25rem; }

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}

.about-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-body h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.25rem; }
.card-body p { font-size: 0.85rem; margin: 0; }

/* ===== STACK ===== */
#stack {
  background: var(--surface);
  color: var(--text);
}

#stack .section-label { color: var(--accent); }
#stack .section-label::before { background: var(--accent); }
#stack .section-title { color: var(--text); margin-bottom: 0.5rem; }

.stack-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stack-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.stack-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.stack-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stack-badges {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stack-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition);
}

.stack-badge::before {
  content: '→';
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.stack-badge svg { display: none; }

.stack-badge:hover { color: var(--accent); }

.stack-footer {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  text-align: center;
}

.stack-footer p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.7;
}

.stack-footer p strong, .stack-footer strong {
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ===== EXPERIENCE ===== */
#experience { background: var(--bg); }

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 0;
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.35rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-dot.current {
  background: #10b981;
  box-shadow: 0 0 0 2px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px #10b981, 0 0 0 4px rgba(16,185,129,0); }
  50% { box-shadow: 0 0 0 2px #10b981, 0 0 0 8px rgba(16,185,129,0.15); }
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-meta h3 { font-size: 1.15rem; color: var(--text); }
.timeline-meta .company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.2rem;
}

.timeline-period {
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  white-space: nowrap;
}

.timeline-period.current-badge {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: #059669;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.timeline-card ul {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.timeline-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.timeline-card .achievement {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #059669;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 0;
  margin-top: 1rem;
}

/* ===== SKILLS ===== */
#skills { background: var(--surface); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-category {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.skill-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.skill-cat-header h3 {
  font-size: 1rem;
  color: var(--text);
}

.skill-item { margin-bottom: 1.25rem; }
.skill-item:last-child { margin-bottom: 0; }

.skill-name {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.skill-pct { color: var(--text-muted); font-weight: 400; }

.skill-bar {
  height: 6px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 0;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PROJECTS ===== */
#projects { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover::before { transform: scaleX(1); }

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.project-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }
.project-card p { font-size: 0.88rem; margin-bottom: 1.25rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 0;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===== EDUCATION ===== */
#education { background: var(--surface); }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}

.edu-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.edu-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.edu-body h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.25rem; }
.edu-body .degree { font-size: 0.88rem; color: var(--text-muted); margin: 0.25rem 0; }
.edu-body .edu-year { font-size: 0.8rem; font-weight: 500; color: var(--accent); }

/* ===== CONTACT ===== */
#contact {
  background: var(--bg-dark);
  color: #f1f5f9;
}

#contact .section-label { color: #93c5fd; }
#contact .section-label::before { background: #93c5fd; }
#contact .section-title { color: #f1f5f9; }
#contact .section-subtitle { color: #94a3b8; }

.contact-inner {
  text-align: center;
}

.contact-inner .section-title { margin-bottom: 0.5rem; }
.contact-inner .section-subtitle { margin: 0 auto 3rem; }

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.contact-link:hover {
  background: rgba(30,111,238,0.1);
  border-color: rgba(30,111,238,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30,111,238,0.15);
}

.contact-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: rgba(30,111,238,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid rgba(30,111,238,0.2);
}

.contact-link-text { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-link-text span:first-child { font-size: 0.72rem; color: #8b949e; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-link-text span:last-child { font-size: 0.88rem; color: #e2e8f0; font-weight: 500; word-break: break-all; }

/* ===== FOOTER ===== */
footer {
  background: #060c1a;
  padding: 2rem 0;
  text-align: center;
}

footer p { font-size: 0.85rem; color: #cbd5e1; margin: 0; }
footer a { color: #60a5fa; }
footer a:hover { text-decoration: underline; }
.footer-hosted { font-size: 0.75rem; color: #94a3b8; margin-top: 0.5rem; }
.footer-hosted a { color: #60a5fa; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 900px) {
  .hero-quote { white-space: nowrap; }
}

@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }

  .nav-links-desktop { display: none; }
  .nav-links-mobile a { color: #e2e8f0; padding: 0.65rem 1rem; font-size: 1rem; display: block; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 98;
  }
  .nav-overlay.open { display: block; }

  .nav-burger {
    display: flex;
    padding: 10px;
    cursor: pointer;
  }
  .nav-burger span {
    background: #f0f6fc;
    width: 24px;
    height: 2px;
    display: block;
  }

  .nav-logo {
    font-size: 0.95rem;
    flex: 1;
  }
  .nav-burger {
    margin-left: auto;
  }
  .nav-socials {
    flex: 0 0 auto;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding-top: 2rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-title {
    justify-content: center;
  }
  .hero-avatar {
    order: -1;
  }
  .avatar-ring {
    width: 260px;
    height: 300px;
  }
  .hero-ctas { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo-grid { grid-template-columns: 1fr; }
  .photo-main { height: 280px; }
  .photo-item { height: 180px; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-tiles { grid-template-columns: repeat(2, 1fr); }
  .contact-link { padding: 1.5rem 0.75rem; }
  .contact-link-text span:last-child { font-size: 0.78rem; word-break: break-all; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }

  .hero-quote {
    font-size: 0.85rem;
    white-space: normal;
  }
  .quote-sub { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .contact-tiles { grid-template-columns: 1fr; }
  .avatar-ring { width: 220px; height: 260px; }
  footer p { font-size: 0.78rem; }
}

