:root {
  --bg-0: #080808;
  --bg-1: #0d0d0d;
  --bg-2: #111111;
  --bg-3: #181818;
  --bg-card: #1e1e1e;
  --text-1: #ffffff;
  --text-2: #c8c8c8;
  --text-3: #888888;
  --accent: #00d4a0;
  --accent-blue: #3b82f6;
  --border: #262626;
  --radius: 12px;
}

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

body {
  background: var(--bg-1);
  color: var(--text-1);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--text-3);
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s;
}

.nav-cta:hover { border-color: var(--text-1); color: var(--text-1); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
#home {
  padding: 140px 0 90px;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse at 60% 30%, rgba(59,130,246,0.14) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text { flex: 1; max-width: 560px; }

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-title .teal { color: var(--accent); }

.hero-subtitle {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 12px;
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.hero-desc {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 28px;
}

.hero-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-link-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

/* HERO PHOTO */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 380px; height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.38) 0%, rgba(37,99,235,0.22) 40%, transparent 72%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from { transform: scale(1);    opacity: 0.8; }
  to   { transform: scale(1.07); opacity: 1;   }
}

.hero-photo-circle {
  position: relative;
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(59,130,246,0.4);
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2444 60%, #0a1929 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}

.hero-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-photo-initials {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.04em;
  user-select: none;
  line-height: 1;
  padding-bottom: 16px;
}

.hero-floating-card {
  position: absolute;
  top: 10px; right: -24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.72rem;
  color: var(--text-3);
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-floating-card .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
}

/* ===== MARQUEE STRIP ===== */
.marquee-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 28px;
  font-size: 0.78rem;
  color: var(--text-3);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.marquee-badge .arr { color: var(--accent); font-size: 0.7rem; }

/* ===== ABOUT ===== */
#about {
  padding: 100px 0;
  background: var(--bg-1);
}

/* Both rows share the same 2-column grid so everything lines up */
.about-intro,
.about-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
}

.about-intro {
  align-items: start;
  margin-bottom: 72px;
}

.about-intro-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-intro p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.8;
}

.about-intro .hl-teal { color: var(--accent); }
.about-intro .hl-blue { color: var(--accent-blue); }

.about-main { align-items: center; }

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-photo-inner {
  aspect-ratio: 1030 / 854;
  background: linear-gradient(160deg, #1c2b3a 0%, #0d1b2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-inner .ph-icon { font-size: 5rem; opacity: 0.1; }

.about-text h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.about-text .about-shape {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
  margin-bottom: 16px;
}

.about-text .about-shape .hl { color: var(--accent); }

.about-text p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 14px;
}

.quote-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.quote-tag {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.73rem;
  color: var(--text-3);
}

/* ===== PHOTO SPOTS (when an <img> replaces the placeholder) ===== */
.about-photo-inner img,
.quote-photo-inner img { width: 100%; height: 100%; object-fit: cover; }
.cert-card.has-image { padding: 0; aspect-ratio: 1187 / 915; }
.cert-card.has-image img { width: 100%; height: 100%; object-fit: cover; }
.proj-mockup.has-image { display: block; padding: 0; aspect-ratio: 1642 / 958; }
.proj-mockup.has-image img { width: 100%; height: 100%; object-fit: cover; }
.proj-info { max-width: 720px; }

/* ===== SKILLS ===== */
#skills {
  padding: 100px 0;
  background: var(--bg-1);
}

.skills-group { margin-bottom: 52px; }
.skills-group:last-child { margin-bottom: 0; }

.skills-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100px;
  cursor: default;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-card:hover {
  border-color: rgba(0,212,160,0.5);
  transform: translateY(-3px);
}

.skill-card img {
  width: 44px; height: 44px;
  object-fit: contain;
}

.skill-card .flag { font-size: 2.2rem; line-height: 1; }

.skill-name {
  font-size: 0.7rem;
  color: var(--text-3);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.exp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.exp-left h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.exp-sep {
  color: var(--text-3);
  font-size: 0.88rem;
  font-weight: 400;
}

.exp-left p {
  font-size: 0.86rem;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 14px;
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-3);
}

.cert-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #200a0a 0%, #2e0d0d 40%, #1a0808 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cert-logo-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(220,38,38,0.6);
}

.cert-org {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cert-divider {
  width: 80%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.cert-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  text-align: center;
}

.cert-of {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.cert-name {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ===== PROJECTS ===== */
#projects {
  padding: 100px 0;
  background: var(--bg-1);
}

.proj-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.proj-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 4px;
}

.proj-info h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.proj-info p {
  font-size: 0.86rem;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 22px;
}

.proj-actions { display: flex; gap: 12px; }

.proj-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.proj-btn:hover { border-color: var(--accent); color: var(--accent); }

.proj-mockup {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-0);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mockup-screen {
  width: 100%; height: 100%;
  background: #090912;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
}

.mockup-topbar {
  height: 28px;
  background: #10101c;
  border-bottom: 1px solid #1e1e30;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}

.mockup-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2a2a3a;
}

.mockup-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mkrow {
  height: 11px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
}

.mkrow.accent  { background: rgba(0,212,160,0.14); width: 55%; }
.mkrow.half    { width: 75%; }
.mkrow.short   { width: 38%; }
.mkrow.imgph   { height: 70px; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.13); border-radius: 6px; }

/* ===== CONTACT ===== */
#contact {
  padding: 100px 0;
  background: var(--bg-0);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-left h2 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.contact-right { width: 100%; }

.contact-right > p {
  font-size: 0.86rem;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 26px;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
  text-align: left;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-1);
  font-size: 0.86rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136,136,136,0.55);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent-blue); }

.form-group textarea { min-height: 120px; }

.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--accent-blue);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-send:hover { background: #2563eb; }
.btn-send:active { transform: scale(0.99); }

/* ===== SOCIAL ===== */
.social-bar {
  padding: 36px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.social-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 1.6rem;
  transition: color 0.25s, text-shadow 0.25s, transform 0.2s;
}

.social-icon:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 18px rgba(255,255,255,0.55);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
  padding: 28px 0;
  background: var(--bg-0);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand .fn { font-size: 0.9rem; font-weight: 700; }
.footer-brand .fr { font-size: 0.72rem; color: var(--text-3); margin-top: 2px; }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.footer-contact a {
  font-size: 0.76rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--accent); }

.footer-copy { font-size: 0.72rem; color: var(--text-3); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-links { justify-content: center; }
  .hero-photo-wrap { width: 280px; height: 280px; }
  .hero-photo-circle { width: 210px; height: 210px; }
  .hero-floating-card { display: none; }
  .about-intro { grid-template-columns: 1fr; row-gap: 18px; margin-bottom: 48px; }
  .about-main { grid-template-columns: 1fr; row-gap: 32px; }
  .exp-inner { grid-template-columns: 1fr; }
  .contact-inner { gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { flex-direction: row; justify-content: center; gap: 20px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--bg-0);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    gap: 0;
  }
  .nav-links.open a { display: block; padding: 12px 28px; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  #home { padding: 110px 0 60px; }
  #about, #skills, #experience, #projects, #contact { padding: 70px 0; }
  .skills-grid { gap: 12px; }
  .skill-card { width: 84px; padding: 14px 10px; }
  .skill-card img { width: 36px; height: 36px; }
}
