/* ===== v3.1 — Base + Theme ===== */
:root {
  --bg: #0b0c10;
  --text: #e6e6e6;
  --muted: #b8b8b8;
  --surface-1: #121318;
  --surface-2: #1a1c23;
  --accent: #5865f2;
  --accent-2: #00c2ff;
  --radius: 14px;

  --maxw: 1100px;
  --xpad: 22px;

  --shadow-1: 0 6px 20px rgba(0,0,0,.28);
  --shadow-2: 0 10px 30px rgba(0,0,0,.36);
}

/* Light theme */
body[data-theme="light"] {
  --bg: #ffffff;
  --text: #1b1b1b;
  --muted: #5b5b5b;
  --surface-1: #f6f7f9;
  --surface-2: #eef0f5;
  --accent: #4f46e5;
  --accent-2: #06b6d4;
  --shadow-1: 0 6px 20px rgba(0,0,0,.10);
  --shadow-2: 0 10px 30px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

/* Accessibility helper */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Shared max-width container */
.section, .hero-inner, .nav-container, .work-grid, .skills-row, .two-col {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--xpad);
  padding-right: var(--xpad);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,12,16,.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
body[data-theme="light"] .navbar {
  background: rgba(255,255,255,.7);
  border-bottom-color: rgba(0,0,0,.06);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-weight: 800; letter-spacing: .5px; color: var(--text); }
.logo img {
  height: 40px;        /* ideal for 64px navbar */
  width: auto;         /* keep aspect ratio */
  display: block;
  object-fit: contain;
}

.nav-links { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; }
.nav-links a {
  color: var(--text); opacity: .9; padding: .4rem .6rem; border-radius: 8px;
}
.nav-links a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
body[data-theme="light"] .nav-links a:hover { background: rgba(0,0,0,.06); }
.theme-toggle {
  border: 0; background: var(--surface-2); color: var(--text);
  border-radius: 10px; padding: .4rem .6rem; cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  padding: 64px 0 24px;
}
.hero-inner { padding-top: 10px; }
.name { font-size: clamp(28px, 5vw, 44px); margin: 0 0 .4rem 0; }
.tagline { margin: 0 0 1rem 0; color: var(--muted); font-size: 1.05rem; }
.cta-row { display: flex; gap: .75rem; margin: 1rem 0 1.2rem; }
.btn {
  display: inline-block; padding: .7rem 1rem; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-1);
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.18); color: var(--text); }
body[data-theme="light"] .btn.ghost { border-color: rgba(0,0,0,.18); }
.hero-social { display: flex; gap: .6rem; align-items: center; }
.hero-social img {
  width: 28px; height: 28px; display: block;
  filter: saturate(0) brightness(1.2); transition: .2s;
}
.hero-social a:hover img { filter: none; transform: translateY(-2px); }
.portrait { margin: 0; display: flex; justify-content: center; align-items: center; }
.portrait img {
  width: 220px; height: 220px; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--surface-2); box-shadow: var(--shadow-2);
}

/* ===== Sections ===== */
.section { padding: 44px 0; }
.section h2 { font-size: 1.6rem; margin: 0 0 1rem 0; }
.section p { margin: 0.5rem 0 0; color: var(--muted); }

/* ===== Top Skills strip ===== */
.skills-strip { padding-top: 30px; }
.skills-row {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}
.skill-icon {
  display: flex; gap: .55rem; align-items: center;
  padding: .6rem .7rem; background: var(--surface-2);
  border-radius: 12px; box-shadow: var(--shadow-1);
}
.skill-icon img { width: 28px; height: 28px; display: block; }
.skill-icon span { font-weight: 600; }

/* ===== Work grid ===== */
.work-grid {
  display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0,1fr));
}
.work-item {
  background: var(--surface-2); padding: 1rem; border-radius: 12px; box-shadow: var(--shadow-1);
}
.work-item h3 { margin: 0 0 .35rem 0; font-size: 1.05rem; }
.work-item p { margin: 0; color: var(--muted); }

/* ===== Certifications + Technical Depth ===== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
.two-col .col h3 { margin: 0 0 .4rem 0; }

ul.tags {
  display: flex; flex-wrap: wrap; gap: .5rem .75rem;
  list-style: none; padding: 0; margin: .5rem 0 0;
}
ul.tags li {
  background: var(--surface-2);
  padding: .35rem .6rem; border-radius: 999px; font-size: 0.95rem;
  box-shadow: var(--shadow-1);
}

/* Skill bars */
.skill-bars { display: grid; gap: .75rem; }
.skill-bar { display: grid; gap: .35rem; }
.skill-bar span { font-size: .95rem; opacity: .9; }
.skill-bar .bar {
  height: 8px; background: rgba(255,255,255,.12);
  border-radius: 99px; overflow: hidden;
}
body[data-theme="light"] .skill-bar .bar { background: rgba(0,0,0,.08); }
.skill-bar .bar > div {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px; transition: width .6s ease;
}

/* ===== Footer ===== */
.footer {
  padding: 28px var(--xpad); text-align: center; color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.06); margin-top: 16px;
}
body[data-theme="light"] .footer { border-top-color: rgba(0,0,0,.06); }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: left; gap: 1.2rem; }
  .portrait { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .skills-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .work-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .skills-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ===== Hero adjustments (stronger right shift) ===== */
/* ===== Hero layout alignment fix ===== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

/* Push hero text toward the portrait */
.hero-inner {
  justify-self: end;        /* move text column to the right */
  text-align: left;        /* keep text readable */
  max-width: 640px;        /* prevents overly long lines */
  padding-right: 1.5rem;   /* breathing space from image */
}

/* Optional: tighter visual alignment */
.name,
.tagline,
.cta-row,
.hero-social {
  align-self: flex-start;
}

/* Mobile/tablet: stack normally */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    justify-self: start;
    max-width: 100%;
    padding-right: 0;
  }

  .portrait {
    justify-content: flex-start;
  }
}






.skills-carousel {
  overflow: hidden;
  padding: 3rem 0;
}

.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 3rem;
  animation: scroll-reverse 30s linear infinite;

}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  opacity: 0.85;
}

.skill img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}

.skill span {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes scroll-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.skill:hover {
  opacity: 1;
  transform: scale(1.08);
  transition: 0.3s ease;
}


/* ===== Hero: pull text toward portrait (real fix) ===== */
.hero {
  grid-template-columns: 1.4fr 0.6fr; /* give more space to text column */
}

/* Move text block right inside its grid column */
.hero-inner {
  margin-left: auto;                 /* key line */
  padding-left: clamp(40px, 8vw, 140px);
  max-width: 800px;
}

/* Keep portrait snug */
.portrait {
  justify-content: flex-start;
}

/* Mobile reset */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    margin-left: 0;
    padding-left: 0;
    max-width: 100%;
  }
}
