/* ============================================================
   FONTS & RESET
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;600;700;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background var(--transition);
}

/* ============================================================
   CSS VARIABLES — THEMES
   ============================================================ */
:root {
  --bg: #f8fafc;
  --bg-rgb: 248, 250, 252;
  --bg2: #ffffff;
  --text: #0f172a;
  --text2: #475569;
  --accent: #2563eb;
  --accent2: #3b82f6;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --nav-active: rgba(37, 99, 235, 0.1);
  --nav-active-text: #2563eb;
  --skill-bar-bg: #e2e8f0;
  --tag-bg: rgba(37, 99, 235, 0.1);
  --tag-text: #2563eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --ambient-glow-1: rgba(37, 99, 235, 0.08);
  --ambient-glow-2: rgba(56, 189, 248, 0.06);
  --ambient-glow-3: rgba(99, 102, 241, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 272px;
  --transition: 0.3s ease;
  --mobile-nav-h: 64px;
}

[data-theme="dark"] {
  --bg: #030712;
  --bg-rgb: 3, 7, 18;
  --bg2: #0d1117;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --card-bg: #0f172a;
  --card-border: #1e293b;
  --sidebar-bg: #030712;
  --sidebar-border: #1e293b;
  --nav-active: rgba(59, 130, 246, 0.15);
  --nav-active-text: #60a5fa;
  --skill-bar-bg: #1e293b;
  --tag-bg: rgba(59, 130, 246, 0.15);
  --tag-text: #60a5fa;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --ambient-glow-1: rgba(59, 130, 246, 0.11);
  --ambient-glow-2: rgba(20, 184, 166, 0.08);
  --ambient-glow-3: rgba(147, 51, 234, 0.06);
}

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: "Inter", sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  transition:
    background var(--transition),
    color var(--transition);
}

.ambient-gradient {
  position: fixed;
  inset: -25vmax;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;

  transform: rotate(var(--ambient-rotation, 0deg)) scale(1.1);
  transform-origin: center;
  will-change: transform;

  background:
    conic-gradient(
      from 0deg,
      rgba(37, 99, 235, 0.12),
      rgba(59, 130, 246, 0.08),
      rgba(147, 51, 234, 0.08),
      rgba(20, 184, 166, 0.08),
      rgba(37, 99, 235, 0.12)
    ),
    radial-gradient(circle at 25% 30%, var(--ambient-glow-1), transparent 40%),
    radial-gradient(circle at 75% 25%, var(--ambient-glow-2), transparent 35%),
    radial-gradient(circle at 50% 80%, var(--ambient-glow-3), transparent 45%);

  filter: blur(90px) saturate(120%);
}

@keyframes ambientFloat {
  0% {
    transform: rotate(var(--ambient-rotation)) scale(1.1) translateY(0px);
  }
  50% {
    transform: rotate(calc(var(--ambient-rotation) + 5deg)) scale(1.12)
      translateY(-20px);
  }
  100% {
    transform: rotate(var(--ambient-rotation)) scale(1.1) translateY(0px);
  }
}

.ambient-gradient {
  animation: ambientFloat 18s ease-in-out infinite;
}

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

/* ============================================================
   LAYOUT — SIDEBAR + MAIN
   ============================================================ */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  gap: 28px;
  z-index: 100;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.sidebar-profile {
  text-align: center;
}

.profile-img-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

.sidebar-name {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-title {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

.sidebar-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: center;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: var(--sidebar-border);
}

.sidebar-nav {
  width: 100%;
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}

.sidebar-nav a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

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

.sidebar-bottom {
  margin-top: auto;
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.theme-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* MAIN CONTENT */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-h);
  background: rgba(var(--bg-rgb, 248, 250, 252), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 200;
  transition: background var(--transition);
}

.mobile-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-profile-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.mobile-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-profile-initials {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-name {
  font-size: 15px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: var(--text);
}

.mobile-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background var(--transition);
}

.hamburger-btn:hover {
  background: var(--accent-soft);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-dropdown {
  display: none;
  position: fixed;
  top: var(--mobile-nav-h);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  z-index: 190;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}

.mobile-dropdown a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mobile-dropdown a:hover,
.mobile-dropdown a.active {
  background: var(--nav-active);
  color: var(--nav-active-text);
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
section {
  padding: 80px 60px;
  max-width: none;
  width: 100%;
}

.section-header {
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.section-title span {
  color: var(--accent);
}

.section-line {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
  margin-top: 12px;
}

.section-subtext {
  margin-top: 12px;
  color: var(--text2);
  font-size: 14px;
  max-width: 560px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* ============================================================
   HERO SECTION
   ============================================================ */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  position: relative;
}

.hero-text {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero-heading {
  font-family: "Poppins", sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-heading .name {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typing {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text2);
  margin-bottom: 20px;
  min-height: 34px;
}

.hero-typing .role {
  color: var(--accent);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--text);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--card-border);
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary svg,
.btn-outline svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hero-photo-wrap {
  flex-shrink: 0;
  position: relative;
}

.hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow:
    var(--shadow-lg),
    0 0 0 8px var(--accent-soft);
  position: relative;
  z-index: 1;
}

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

.hero-photo-initials {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #fff;
}

.hero-photo-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--accent);
  border-radius: 24px;
  top: 14px;
  left: 14px;
  z-index: 0;
  opacity: 0.3;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: transparent;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.about-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.about-img-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-soft),
    rgba(59, 130, 246, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 80px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
}

/* ============================================================
   EXPERIENCE / TIMELINE SECTION
   ============================================================ */
#experience {
  background: transparent;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.experience-col-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 4px;
  display: inline-flex;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 9px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text2);
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.timeline-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.timeline-title {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.timeline-badge {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.badge-edu {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}
.badge-work {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

[data-theme="dark"] .badge-edu {
  color: #60a5fa;
}
[data-theme="dark"] .badge-work {
  color: #4ade80;
}

.timeline-org {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-date {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.timeline-date svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.timeline-points {
  margin-top: 6px;
  padding-left: 20px;
  list-style: disc;
  list-style-position: outside;
  color: var(--text2);
}

.timeline-points li {
  display: list-item;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.timeline-points li:last-child {
  margin-bottom: 0;
}

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

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skill-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.skill-percent {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.skill-tech {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 12px;
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--skill-bar-bg);
  border-radius: 10px;
  overflow: hidden;
}

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

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
#projects {
  background: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

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

.project-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.proj-1 {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.proj-2 {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}
.proj-3 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.project-body {
  padding: 20px;
}

.project-title {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.project-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--tag-bg);
  color: var(--tag-text);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-link:hover {
  gap: 8px;
}
.project-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================================
   CERTIFICATIONS SECTION
   ============================================================ */
#certifications {
  background: transparent;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

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

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.cert-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cert-title {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.cert-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cert-issuer {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.cert-date {
  font-size: 12px;
  color: var(--text2);
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-btn-secondary {
  border-color: var(--card-border);
  color: var(--text2);
}

.cert-btn-secondary:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.cert-btn:hover {
  background: var(--accent);
  color: #fff;
}
.cert-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.certificate iframe {
  width: 100%;
  height: 500px;   /* fixed height instead of huge space */
  border: none;
}
/* ============================================================
   CONTACT SECTION 
   ============================================================ */

#contact {
  background: transparent;
  /* 1. Offset for the Sidebar: adjust 280px to match your actual sidebar width */
  padding: 60px 50px 80px 310px; 
  width: 100%;
  justify-content: center; /* Centers the content block in the remaining space */
}
.contact-section {
    min-height: 100vh; /* Ensures it takes up the full screen */
    display: flex;
    flex-direction: column;
    overflow: visible; /* Prevents content from being hidden */
}
.contact-inner {
  display: grid;
  /* 2. Proper width adjustment: 1fr for cards, 1.2fr for map */
  grid-template-columns: minmax(3px, 1fr) 1.5fr;
  gap: 40px;
  width: 100%;
  max-width: 1200px; /* Prevents the layout from getting too wide */
  align-items: stretch;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), 
              box-shadow var(--transition), 
              border-color var(--transition);
}

.contact-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-details {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevents long emails from breaking the card */
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.contact-value a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

.contact-value a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Map Styling */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 400px; /* Makes map height match the cards height */
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* ============================================================
   RESPONSIVE FIXES (Mobile & Tablet)
   ============================================================ */

/* If screen is medium (Laptop/Tablet) */
@media (max-width: 1024px) {
  #contact {
    padding-left: 280px; /* Matches smaller sidebar width */
  }
  .contact-inner {
    grid-template-columns: 1fr; /* Stack map under cards */
  }
}

/* If screen is mobile (Sidebar usually hidden or top-nav) */
@media (max-width: 768px) {
  #contact {
    padding: 60px 20px; /* Remove large left padding on mobile */
  }
  .contact-inner {
    gap: 20px;
  }
  .map-wrap {
    min-height: 300px;
  }
}

/* ============================================================
   PDF MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--card-border);
}

.modal-title {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  color: var(--text2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 18px;
}

.modal-close:hover {
  background: #ef4444;
  color: #fff;
}

.modal-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 300px;
}

.modal-placeholder {
  display: none;
  text-align: center;
}

.modal-placeholder.open {
  display: block;
}

.modal-pdf {
  display: none;
  width: 100%;
  height: calc(90vh - 120px);
  border: none;
  border-radius: 0;
  background: var(--bg);
  touch-action: manipulation;
}

.modal-pdf.open {
  display: block;
}

.modal-image-wrap {
  display: none;
  width: 100%;
  height: calc(90vh - 120px);
  background: var(--bg);
  overflow: auto;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.modal-image-wrap.open {
  display: flex;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.modal-placeholder svg {
  width: 60px;
  height: 60px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 16px;
}

.modal-placeholder h3 {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-placeholder p {
  font-size: 14px;
  color: var(--text2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  /* This is the key: padding-left must be sidebar width + your desired padding */
  padding: 28px 60px 28px 320px; 
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between; /* Pushes text to left and status to right */
  font-size: 13px;
  color: var(--text2);
  background: var(--bg2);
  width: 100%;
  box-sizing: border-box;
}

.footer .footer-status {
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 6px;
}


/* Mobile: Remove sidebar offset when sidebar becomes a top-nav or hidden */
@media (max-width: 768px) {
  .footer {
    padding: 28px 20px; 
    flex-direction: column; /* Stack them on small screens */
    gap: 10px;
    text-align: center;
  }
}

/* animated status dot */

.footer .footer-status .dot {
  width: 8px;
  height: 8px;

  background: #22c55e;

  border-radius: 50%;

  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.footer a {
  color: var(--accent);
}
/* ============================================================
   MODERN TECH FOOTER
   ============================================================ */

/* .modern-footer {
  background: linear-gradient(
    to top,
    rgba(var(--bg-rgb), 0.9),
    rgba(var(--bg-rgb), 0.6)
  );

  backdrop-filter: blur(10px);

  border-top: 1px solid var(--card-border);

  position: relative;
  overflow: hidden;
} */

/* subtle glow line */
/* .modern-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;

  background: linear-gradient(90deg, transparent, var(--accent), transparent);

  opacity: 0.5;
} */

/* .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  max-width: 1100px;
  margin: auto;
} */

/* left side layout */

/* .footer-left {
  display: flex;
  align-items: center;

  gap: 14px;

  flex-wrap: wrap;
} */

/* built with section */

/* .footer-built {
  display: flex;
  align-items: center;
  gap: 8px;

  flex-wrap: wrap;
} */

/* coffee text aligned nicely */

/* .coffee {
  white-space: nowrap;

  font-family: monospace;

  opacity: 0.7;
} */

/* right side */

/* .footer-right {
  display: flex;
  align-items: center;

  gap: 18px;

  white-space: nowrap;
} */

/* responsive fix */

/* @media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
  }
} */

/* tech stack badges */

/* .footer-built {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
} */

/* .tech {
  font-size: 12px;
  font-weight: 600;

  padding: 4px 10px;

  border-radius: 20px;

  background: var(--accent-soft);

  border: 1px solid rgba(255, 255, 255, 0.05);

  transition: 0.3s;
} */

/* hover glow */
/* .tech:hover {
  transform: translateY(-2px);

  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
} */

/* coffee text */

/* .coffee {
  opacity: 0.7;

  font-family: monospace;
} */

/* right side */

/* .footer-right {
  display: flex;
  gap: 18px;
  align-items: center;
} */

/* copyright */

/* .footer-copy {
  opacity: 0.6;

  font-size: 12px;
} */
/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.loader-overlay.fadeOut {
  opacity: 0;
  pointer-events: none;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-family: "Poppins", sans-serif;
}

.loader-progress {
  color: var(--accent);
  font-weight: 700;
}

.loader-bar {
  width: 200px;
  height: 6px;
  background: var(--card-border);
  border-radius: 10px;
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
  .main-content {
    margin-left: 0;
  }
  section {
    padding: 80px 24px 60px;
  }
  section:first-child {
    padding-top: calc(var(--mobile-nav-h) + 40px);
  }
  #home {
    padding-top: calc(var(--mobile-nav-h) + 40px);
  }
  .footer {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 32px;
  }
  .hero-photo {
    width: 200px;
    height: 200px;
  }
  .hero-photo-decoration {
    display: none;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-img-col {
    display: none;
  }
  .about-details {
    grid-template-columns: 1fr;
  }
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
