/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --primary: #5b3de8;
  --primary-hover: #4a2fd4;
  --primary-light: #ede9ff;
  --accent: #ffd700;
  --text-dark: #0f0e1a;
  --text-medium: #4b5563;
  --text-light: #9ca3af;
  --bg-page: #f3f0ff;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --shadow-card: 0 2px 20px rgba(91,61,232,0.08);
  --shadow-hover: 0 8px 40px rgba(91,61,232,0.16);
  --radius: 18px;
}

body.dark-mode {
  --primary: #8b6fff;
  --primary-hover: #7a5ef0;
  --primary-light: #2a1f5e;
  --text-dark: #f1f5f9;
  --text-medium: #cbd5e1;
  --text-light: #64748b;
  --bg-page: #0d0b1e;
  --bg-card: #17152e;
  --border: #2d2b4e;
  --shadow-card: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(139,111,255,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

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

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #ede9ff;
  transition: box-shadow 0.3s;
}

body.dark-mode .navbar {
  background: #13112a;
  border-bottom-color: var(--border);
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(91,61,232,0.1); }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--primary);
}

.nav-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 13px;
  border-radius: 8px;
  color: var(--text-medium);
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 13px; right: 13px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Theme toggle - pill with sun/moon */
.theme-toggle-wrap {
  display: flex;
  align-items: center;
  background: #f3f0ff;
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  border: 1.5px solid #e0d9ff;
}

body.dark-mode .theme-toggle-wrap {
  background: #1e1a3e;
  border-color: var(--border);
}

.theme-btn {
  width: 32px; height: 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  background: transparent;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}

body.light-mode .sun-btn { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
body.dark-mode .moon-btn { background: #2d2860; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

.btn-resume {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(91,61,232,0.35);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-resume:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

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

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

/* ===========================
   HERO — Full background image, never crop
   =========================== */
.hero {
  position: relative;
  padding-top: 68px;
  overflow: hidden;
}

/* Wrapper sizes itself to the image's natural height */
.hero-bg {
  position: relative;
  width: 100%;
  line-height: 0;
}

/* Image always shows 100% width at natural aspect ratio — NEVER crop */
.hero-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Full-size overlay sits exactly over the image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(215, 208, 255, 0.18) 0%,
    rgba(215, 208, 255, 0.10) 30%,
    transparent 55%
  );
  pointer-events: none;
}

body.dark-mode .hero-overlay {
  background: linear-gradient(
    to right,
    rgba(10,8,28,0.96) 0%,
    rgba(10,8,28,0.90) 22%,
    rgba(10,8,28,0.68) 40%,
    rgba(10,8,28,0.22) 56%,
    transparent 70%
  );
}

/* Text content: absolutely positioned over the image, full height */
.hero-content {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px 48px 56px;
  z-index: 2;
}

/* Sparkles */
.sparkle {
  position: absolute;
  animation: twinkle 2.5s ease-in-out infinite;
  font-weight: 900;
  pointer-events: none;
}
.s1 { top: 18%; left: 5%;  font-size: 1.6rem; color: #ffd700; animation-delay: 0s; }
.s2 { bottom: 20%; left: 4%; font-size: 1rem; color: #ffd700; animation-delay: 0.8s; }
.s3 { top: 22%; left: 43%; font-size: 0.9rem; color: #7c5cbf; animation-delay: 1.3s; }
.s4 { bottom: 26%; left: 41%; font-size: 0.85rem; color: #7c5cbf; animation-delay: 0.5s; }

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50%       { transform: scale(1.45) rotate(20deg); opacity: 1; }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Text elements ─────────────── */
.hello-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(91,61,232,0.2);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 14px;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  animation: fadeSlideIn 0.5s ease both;
}
body.dark-mode .hello-badge {
  background: rgba(20,16,50,0.85);
  border-color: rgba(139,111,255,0.3);
  color: #cbd5e1;
}

.hero-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  font-weight: 900;
  color: #0f0e1a;
  line-height: 1.05;
  margin-bottom: 10px;
  letter-spacing: -1px;
  animation: fadeSlideIn 0.55s ease 0.08s both;
}
body.dark-mode .hero-name { color: #f1f5f9; }

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  animation: fadeSlideIn 0.55s ease 0.13s both;
}

.hero-desc {
  font-size: clamp(0.82rem, 1.1vw, 0.96rem);
  line-height: 1.72;
  color: #374151;
  margin-bottom: 28px;
  max-width: 400px;
  animation: fadeSlideIn 0.55s ease 0.18s both;
}
body.dark-mode .hero-desc { color: #cbd5e1; }

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  animation: fadeSlideIn 0.55s ease 0.23s both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: 12px;
  font-weight: 800; font-size: 0.93rem;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 6px 22px rgba(91,61,232,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(91,61,232,0.5); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.88); color: #0f0e1a;
  padding: 12px 24px; border-radius: 12px;
  font-weight: 700; font-size: 0.93rem;
  font-family: 'Nunito', sans-serif;
  border: 1.5px solid rgba(91,61,232,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; white-space: nowrap;
}
body.dark-mode .btn-secondary { background: rgba(30,24,70,0.88); color: #f1f5f9; border-color: #2d2b4e; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

.hero-socials {
  display: flex; gap: 10px;
  animation: fadeSlideIn 0.55s ease 0.28s both;
}
.hero-socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(91,61,232,0.25);
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  color: #4b5563; font-size: 1rem;
  transition: all 0.2s; text-decoration: none;
}
body.dark-mode .hero-socials a { background: rgba(20,16,50,0.8); border-color: #2d2b4e; color: #cbd5e1; }
.hero-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); }

/* ── Responsive ───────────────── */
@media (max-width: 900px) {
  .hero-content { width: 60%; padding: 40px 32px 40px 36px; }
  .hero-overlay {
    background: linear-gradient(to right,
      rgba(215,208,255,0.22) 0%,
      rgba(215,208,255,0.10) 40%,
      transparent 60%);
  }
}

@media (max-width: 640px) {
  /* Keep overlay on mobile — text stays ON the image */
  .hero { display: block; }
  .hero-bg { position: relative; }
  .hero-bg-img { width: 100%; height: auto; min-height: 420px; object-fit: cover; object-position: 65% center; }
  .hero-overlay {
    display: block;
    background: linear-gradient(
      to right,
      rgba(215,208,255,0.25) 0%,
      rgba(215,208,255,0.12) 45%,
      transparent 70%
    );
  }
  body.dark-mode .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(10,8,28,0.97) 0%,
      rgba(10,8,28,0.94) 35%,
      rgba(10,8,28,0.80) 55%,
      rgba(10,8,28,0.40) 75%,
      transparent 92%
    );
  }
  .hero-content {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 70%;
    padding: 28px 20px 28px 22px;
    background: transparent;
    justify-content: center;
  }
  .hero-name { font-size: 2rem; }
  .hero-title { font-size: 0.92rem; }
  .hero-desc { font-size: 0.82rem; margin-bottom: 18px; max-width: 100%; }
  .hello-badge { font-size: 0.78rem; padding: 5px 14px; margin-bottom: 10px; }
  .s3, .s4 { display: none; }
  .hero-btns { gap: 8px; margin-bottom: 16px; }
  .btn-primary { padding: 10px 18px; font-size: 0.85rem; }
  .btn-secondary { padding: 10px 16px; font-size: 0.85rem; }
  .hero-socials a { width: 34px; height: 34px; font-size: 0.88rem; }
}

@media (max-width: 420px) {
  .hero-bg-img { min-height: 380px; object-position: 70% center; }
  .hero-content { width: 72%; padding: 24px 16px 24px 18px; }
  .hero-name { font-size: 1.75rem; letter-spacing: -0.5px; }
  .hero-desc { display: none; }
  .hero-btns { flex-direction: column; gap: 8px; }
  .btn-primary, .btn-secondary { justify-content: center; padding: 10px 14px; }
}

/* ===========================
   TECH STRIP
   =========================== */
.tech-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

body.dark-mode .tech-strip {
  background: #13112a;
}

.tech-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.tech-label {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 140px;
  padding-right: 28px;
  border-right: 2px solid var(--border);
}

.tech-label span {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.tech-underline {
  width: 32px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
  margin-top: 6px;
}

.tech-icons {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 0;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.2s;
}

.tech-item:hover { transform: translateY(-5px); }

.tech-item img,
.tech-item svg { width: 40px; height: 40px; object-fit: contain; }

.tech-item span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-medium);
  white-space: nowrap;
}

/* ===========================
   THREE-COL SECTION
   =========================== */
.three-col-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 28px;
  background: transparent;
}

.three-col-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.col-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.col-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.col-card-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--text-dark);
  flex: 1;
}

.col-icon { color: var(--primary); font-size: 1rem; }

.view-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.view-all:hover { text-decoration: underline; }

/* About Card */
.about-avatar-wrap { display: flex; justify-content: center; margin-bottom: 16px; }

.about-avatar-bg {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #ddd6ff 60%, #c8beff);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}

.about-avatar {
  width: 130px; height: 130px;
  object-fit: cover;
  border-radius: 50%;
}

.about-text {
  font-size: 0.84rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 14px;
  text-align: center;
}

.about-hobbies {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.about-hobbies li {
  font-size: 0.84rem;
  color: var(--text-medium);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hobby-icon { font-size: 1rem; }

.btn-outline {
  display: block;
  text-align: center;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, #ddd6ff 100%);
}

.timeline-item {
  position: relative;
  padding-left: 18px;
  padding-bottom: 20px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -14px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ddd;
  z-index: 1;
}

.timeline-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.exp-date {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.exp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.exp-company {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.exp-role {
  display: block;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 5px;
}

.exp-desc {
  font-size: 0.79rem;
  color: var(--text-medium);
  line-height: 1.55;
}

.exp-logo {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-page);
  overflow: hidden;
}

.atos-logo span {
  font-weight: 900;
  font-size: 12px;
  color: #c00;
  letter-spacing: -0.5px;
}

/* Blog Card */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.blog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-page);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.blog-item:hover {
  background: var(--primary-light);
  transform: translateX(3px);
}

.blog-thumb {
  width: 68px; height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-info h4 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.blog-meta {
  font-size: 0.74rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.stat-item i { font-size: 1rem; }

.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.3;
}

/* ===========================
   PROJECTS
   =========================== */
.projects-section {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 28px;
}

body.dark-mode .projects-section {
  background: #13112a;
}

.section-header {
  text-align: center;
  max-width: 1280px;
  margin: 0 auto 40px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-sub { font-size: 0.95rem; color: var(--text-medium); }

.projects-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--bg-page);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

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

.project-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.project-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 18px;
}

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

.project-links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-links a:hover { text-decoration: underline; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  position: relative;
  overflow: hidden;
  background: url("assets/footer-scene.png") center bottom / cover no-repeat;
  background-color: #cfc8f8;
  min-height: 160px;
}

/* Content sits above the scene */
.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 48px 44px 280px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  min-height: 160px;
}

.footer-left { flex-shrink: 0; }

.footer-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1040;
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 0.84rem;
  color: #4a3880;
}

.footer-mid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.footer-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: #2d1f6e;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--primary); }

.footer-socials {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(91,61,232,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #2d1f6e;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}


/* Equal height card internals */
.about-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.about-hobbies {
  flex: 1;
}

.exp-card .timeline {
  flex: 1;
}

.blog-card .blog-list {
  flex: 1;
}

.blog-card .stats-row {
  margin-top: auto;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet landscape: 2-col grid, about spans full width */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait */
@media (max-width: 860px) {
  .about-card {
    flex-direction: column;
  }
  .about-card .about-body {
    flex-direction: column;
  }
  .about-card .about-avatar-wrap { justify-content: center; }
  .about-card .about-text { text-align: center; }
}

/* Mobile: hamburger, single column */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px 28px 30px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-link { display: block; padding: 13px 0; font-size: 1rem; }
  .hamburger { display: flex; }
  .btn-resume { font-size: 0; padding: 9px 13px; }
  .btn-resume i { font-size: 1rem; }

  /* Hero */
  .hero-content { padding: 36px 20px 40px; }
  .hero-name { font-size: 2.4rem; }
  .hero-desc { font-size: 0.92rem; }

  /* Tech strip */
  .tech-strip-inner { flex-direction: column; gap: 14px; align-items: flex-start; }
  .tech-label {
    border-right: none;
    border-bottom: 2px solid var(--border);
    padding-right: 0;
    padding-bottom: 12px;
    min-width: unset;
    width: 100%;
  }
  .tech-icons { gap: 16px; }

  /* Cards: single column, equal height OFF on mobile (each card natural height) */
  .three-col-section { padding: 32px 16px; }
  .three-col-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .col-card { height: auto; }
  .about-card { flex-direction: column; }
  .about-card .about-body { flex-direction: column; }
  .about-avatar-wrap { justify-content: center; }
  .about-text { text-align: center; }

  /* Projects */
  .projects-section { padding: 36px 16px; }
  .projects-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer { background-position: left bottom; }
  .footer-content {
    flex-direction: column;
    padding: 32px 20px;
    gap: 16px;
    text-align: center;
    align-items: center;
  }
  .footer-mid { flex-direction: column; gap: 10px; }
  .footer-socials { justify-content: center; }
}

@media (max-width: 480px) {

  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tech-icons { gap: 14px; }
  .tech-item span { font-size: 0.68rem; }
}

/* ===========================
   FOOTER RESPONSIVE OVERRIDES
   =========================== */
@media (max-width: 900px) {
  .footer-content {
    padding: 36px 24px 36px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-mid { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .footer-content { align-items: center; text-align: center; }
  .footer-mid { flex-direction: column; gap: 10px; justify-content: center; }
  .footer-socials { justify-content: center; }
}



/* ===========================
   SHARED SECTION HELPERS
   =========================== */
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* ===========================
   AWARDS & CERTIFICATIONS
   =========================== */
.awards-section {
  padding: 72px 28px;
  background: var(--bg-page);
  max-width: 100%;
}

.awards-section .section-header { text-align: center; margin-bottom: 48px; }

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.award-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.award-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #dbeafe;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #2563eb;
  flex-shrink: 0;
}
.award-icon-wrap.gold { background: #fef9c3; color: #d97706; }
.award-icon-wrap.purple { background: #ede9fe; color: var(--primary); }
.award-icon-wrap.spring { background: #dcfce7; color: #16a34a; }
.award-icon-wrap.docker { background: #dbeafe; color: #0284c7; }
.award-icon-wrap.orange { background: #ffedd5; color: #ea580c; }

.award-body { flex: 1; }

.award-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 50px;
  background: #dbeafe;
  color: #2563eb;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.award-tag-gold { background: #fef9c3; color: #d97706; }
.award-tag-purple { background: #ede9fe; color: var(--primary); }
.award-tag-orange { background: #ffedd5; color: #ea580c; }

.award-body h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.award-body p {
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: 8px;
}

.award-year {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-page);
  padding: 2px 10px;
  border-radius: 50px;
  display: inline-block;
}

/* ===========================
   GITHUB STATS
   =========================== */
.github-section {
  padding: 72px 28px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.github-section .section-header { text-align: center; margin-bottom: 48px; }

.github-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  align-items: start;
}

.github-stats-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gh-stat-card {
  background: var(--bg-page);
  border-radius: 16px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

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

.gh-icon { font-size: 1.5rem; }
.gh-icon.orange { color: #f97316; }
.gh-icon.purple { color: var(--primary); }
.gh-icon.yellow { color: #eab308; }
.gh-icon.green  { color: #22c55e; }

.gh-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}

.gh-stat-label {
  font-size: 0.76rem;
  color: var(--text-medium);
  font-weight: 600;
}

/* Language bars */
.github-langs-col {
  background: var(--bg-page);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--border);
}

.langs-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.lang-bars { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.lang-bar-item { display: flex; flex-direction: column; gap: 6px; }

.lang-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-medium);
}

.lang-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.lang-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.lang-bar-fill.java   { background: linear-gradient(90deg, #f97316, #ef4444); }
.lang-bar-fill.python { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.lang-bar-fill.shell  { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.lang-bar-fill.js     { background: linear-gradient(90deg, #eab308, #f97316); }

.streak-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  color: #fff;
}

.streak-icon { font-size: 1.8rem; color: #fbbf24; }
.streak-num { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 900; }
.streak-label { font-size: 0.8rem; opacity: 0.9; }

.gh-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
}

body.dark-mode .gh-link-btn { background: #fff; color: #0f0e1a; }
.gh-link-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ===========================
   FOOTBALL / BEYOND CODE
   =========================== */
.football-section {
  position: relative;
  padding: 80px 28px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  overflow: hidden;
}

.football-bg-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Animated background circles */
.football-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -100px; right: -100px;
}
.football-section::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -80px; left: -80px;
}

.football-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header.light { text-align: center; margin-bottom: 48px; }
.light-tag { background: rgba(255,255,255,0.15); color: #fff; }
.light-title { color: #fff; }
.light-sub { color: rgba(255,255,255,0.7); }

.football-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
}

/* Football stats */
.football-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fb-stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 130px;
  transition: all 0.3s;
}

.fb-stat-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.fb-stat-icon { font-size: 1.6rem; }
.fb-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.fb-stat-label { font-size: 0.76rem; color: rgba(255,255,255,0.75); font-weight: 600; }

/* Photo gallery */
.football-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 140px;
  gap: 12px;
}

.fb-photo-card { border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.fb-photo-card:hover { transform: scale(1.02); }
.fb-photo-card.main-photo { grid-column: 1 / -1; grid-row: 1; }

.photo-placeholder {
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
}

.photo-placeholder:hover { background: rgba(255,255,255,0.13); }
.photo-placeholder i { font-size: 2rem; opacity: 0.5; }
.photo-placeholder small { font-size: 0.7rem; opacity: 0.6; }
.photo-placeholder.small { padding: 12px; }

/* FIFA-style player card */
.player-card {
  background: linear-gradient(160deg, #c8a84b 0%, #f0d060 40%, #c8a84b 100%);
  border-radius: 20px;
  padding: 24px 20px;
  width: 180px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.3);
}

.player-card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.player-rating {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1;
}

.player-pos {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1a1a2e;
  align-self: flex-end;
}

.player-card-avatar img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.5);
  margin: 0 auto 10px;
  display: block;
}

.player-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.player-card-club {
  font-size: 0.72rem;
  color: #3d2e00;
  margin-bottom: 14px;
  font-weight: 600;
}

.player-card-attrs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(0,0,0,0.15);
  padding-top: 12px;
}

.attr { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.attr-num { font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 800; color: #1a1a2e; }
.attr-label { font-size: 0.6rem; color: #5a4000; font-weight: 700; }

/* ===========================
   SKILLS SECTION
   =========================== */
.skills-section {
  padding: 72px 28px;
  background: var(--bg-page);
}

.skills-section .section-header { text-align: center; margin-bottom: 48px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.skills-col {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.skills-col-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skills-col-title i { color: var(--primary); }

.skill-item { margin-bottom: 18px; }
.skill-item:last-child { margin-bottom: 0; }

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-medium);
  margin-bottom: 7px;
}

.skill-track {
  height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary) 0%, #a78bfa 100%);
  transition: width 1.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery-section {
  padding: 72px 28px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.gallery-section .section-header { text-align: center; margin-bottom: 32px; }

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 8px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg-page);
  color: var(--text-medium);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
}

.gallery-tab:hover { border-color: var(--primary); color: var(--primary); }
.gallery-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto 24px;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item.hidden { display: none; }

.gallery-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-page);
  border: 2px dashed var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.gallery-placeholder:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.gallery-placeholder i { font-size: 1.8rem; opacity: 0.5; }

.gallery-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-note code {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ===========================
   RESPONSIVE — NEW SECTIONS
   =========================== */
@media (max-width: 1100px) {
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .football-layout { grid-template-columns: 1fr 1fr; }
  .player-card { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .awards-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .github-grid { grid-template-columns: 1fr; }
  .github-stats-col { grid-template-columns: repeat(2, 1fr); }
  .football-layout { grid-template-columns: 1fr; }
  .football-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .fb-stat-card { min-width: 120px; flex: 1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .gallery-item.tall { grid-row: span 1; }
  .github-stats-col { grid-template-columns: 1fr 1fr; }
  .awards-section, .github-section, .football-section,
  .skills-section, .gallery-section { padding: 48px 16px; }
}

/* ===========================
   FOOTBALL SECTION — REAL PHOTOS
   =========================== */
.fb-photo-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

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

.fb-photo-card:hover img { transform: scale(1.05); }

.fb-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 20px 12px 10px;
}

.fb-photo-card.main-photo {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 240px;
}

.fb-photo-card.main-photo img { object-position: center 30%; }

/* Football awards strip */
.fb-awards-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.fb-award-item {
  flex-shrink: 0;
  width: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: transform 0.2s;
}

.fb-award-item:hover { transform: translateY(-4px); }

.fb-award-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.fb-award-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  padding: 8px 10px;
  text-align: center;
}

/* ===========================
   GALLERY — REAL PHOTOS
   =========================== */
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

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

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 22px 12px 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* Remove the old note box since we have real photos now */
.gallery-note { display: none; }

/* ===========================
   FOOTBALL RESPONSIVE UPDATES
   =========================== */
@media (max-width: 768px) {
  .fb-awards-row { gap: 10px; }
  .fb-award-item { width: 130px; }
  .fb-award-item img { height: 90px; }
  .fb-photo-card.main-photo { height: 180px; }
}

/* ===========================
   MERGED FOOTBALL + GALLERY SECTION
   =========================== */
.football-gallery-section {
  position: relative;
  padding: 80px 28px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  overflow: hidden;
}

.football-gallery-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border: 2px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  top: -120px; right: -120px;
  pointer-events: none;
}

.football-gallery-section::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border: 2px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -80px; left: -80px;
  pointer-events: none;
}

/* Top row: stats left, player card right */
.fg-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.fg-top-row .football-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  flex: 1;
  max-width: 420px;
}

/* Gallery sub-header */
.fg-gallery-header {
  margin-bottom: 24px;
}

.fg-gallery-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.fg-gallery-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

/* Gallery tabs — light version for dark bg */
.football-gallery-section .gallery-tabs { justify-content: flex-start; }

.football-gallery-section .gallery-tab {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}

.football-gallery-section .gallery-tab:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.football-gallery-section .gallery-tab.active {
  background: #fff;
  color: #312e81;
  border-color: #fff;
}

/* Masonry photo grid */
.fg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.fg-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
}

.fg-item.fg-tall { grid-row: span 2; }
.fg-item.fg-wide { grid-column: span 2; }

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

.fg-item:hover img { transform: scale(1.06); }

.fg-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 24px 12px 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.fg-item:hover .fg-caption { opacity: 1; }

/* Hide old gallery classes */
.gallery-section { display: none; }
.football-section { display: none; }

/* ===========================
   MERGED SECTION RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
  .fg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .fg-top-row {
    flex-direction: column;
    align-items: center;
  }
  .fg-top-row .football-stats {
    max-width: 100%;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
  .fg-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .fg-item.fg-wide { grid-column: span 2; }
  .football-gallery-section { padding: 56px 16px; }
}

@media (max-width: 480px) {
  .fg-top-row .football-stats { grid-template-columns: repeat(2, 1fr); }
  .fg-grid { grid-auto-rows: 130px; }
  .fg-item.fg-tall { grid-row: span 1; }
}

/* ===========================
   HERO QUOTE BLOCK
   =========================== */
.fg-hero-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 40px 56px;
  min-height: calc(60vh);
  justify-content: center;
  position: relative;
}

.fg-quote-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  animation: float 3s ease-in-out infinite;
}

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

.fg-hero-quote blockquote {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  max-width: 800px;
  margin: 0 0 20px;
  position: relative;
}

.fg-hero-quote blockquote::before,
.fg-hero-quote blockquote::after {
  content: '"';
  font-size: 4rem;
  color: rgba(255,255,255,0.15);
  font-family: Georgia, serif;
  position: absolute;
  line-height: 1;
}

.fg-hero-quote blockquote::before { top: -20px; left: -20px; }
.fg-hero-quote blockquote::after  { bottom: -40px; right: -20px; }

.fg-quote-author {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Scroll indicator */
.fg-hero-quote::after {
  content: '↓ scroll to see photos';
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  letter-spacing: 1px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.35; }
  50%       { transform: translateX(-50%) translateY(5px); opacity: 0.6; }
}

/* ===========================
   RESPONSIVE QUOTE
   =========================== */
@media (max-width: 768px) {
  .fg-hero-quote {
    padding: 48px 24px 48px;
    min-height: 50vh;
  }
  .fg-quote-icon { font-size: 2.8rem; }
  .fg-hero-quote blockquote { font-size: 1.15rem; }
  .fg-hero-quote blockquote::before,
  .fg-hero-quote blockquote::after { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .fg-hero-quote { padding: 36px 18px 40px; min-height: 45vh; }
  .fg-hero-quote blockquote { font-size: 1rem; }
}

/* ===========================
   EXPERIENCE — NESTED PROJECTS
   =========================== */
.exp-projects {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.exp-project {
  background: var(--bg-page);
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
}

.exp-project-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.exp-tools {
  display: block;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.4;
}

/* Projects — company tag instead of links */
.project-company {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Projects grid — 3 col on desktop, expand to 6 cards */
.projects-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

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

/* ===========================
   2-COL LAYOUT FIX (blog removed)
   =========================== */
.exp-stats {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* About card — no longer spans full width */
.about-card {
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  .three-col-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
}

/* ===========================
   TECH SECTION — RESPONSIVE GRID
   =========================== */
.tech-section {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 28px;
}

body.dark-mode .tech-section {
  background: #13112a;
}

.tech-section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.tech-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.tech-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tech-section-sub {
  font-size: 0.92rem;
  color: var(--text-medium);
}

/* Responsive grid — fills screen at all sizes */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tech-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(91,61,232,0.12);
  border-color: var(--primary);
}

.tech-card img,
.tech-card svg {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.tech-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-medium);
  text-align: center;
  white-space: nowrap;
}

/* Tablet: 4 per row */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile landscape: 3 per row */
@media (max-width: 640px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .tech-section { padding: 40px 16px; }
  .tech-card { padding: 16px 10px 12px; border-radius: 12px; }
  .tech-card img, .tech-card svg { width: 36px; height: 36px; }
  .tech-card span { font-size: 0.72rem; }
}

/* Mobile portrait: 3 per row still, tighter */
@media (max-width: 400px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tech-card { padding: 14px 8px 10px; }
  .tech-card img, .tech-card svg { width: 32px; height: 32px; }
}

/* ===========================
   ABOUT PHOTO — REAL PHOTO STYLE
   =========================== */
.about-avatar-bg {
  width: 160px;
  height: 200px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ddd6ff, #c8beff);
  overflow: hidden;
  border: 3px solid var(--primary-light);
  box-shadow: 0 8px 24px rgba(91,61,232,0.15);
}

.about-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

/* PROJECT SECTION ANIMATIONS */
.projects-section .section-header {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.projects-section .section-header.visible { opacity: 1; transform: translateY(0); }

.project-card {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden; cursor: pointer;
}
.project-card.visible { opacity: 1; transform: translateY(0); }

.project-card[data-index="0"] { transition-delay: 0.05s; }
.project-card[data-index="1"] { transition-delay: 0.15s; }
.project-card[data-index="2"] { transition-delay: 0.25s; }
.project-card[data-index="3"] { transition-delay: 0.35s; }
.project-card[data-index="4"] { transition-delay: 0.45s; }
.project-card[data-index="5"] { transition-delay: 0.55s; }

.project-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 48px rgba(91,61,232,0.18);
  border-color: var(--primary);
}

.project-shine {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transition: left 0.55s ease; pointer-events: none;
}
.project-card:hover .project-shine { left: 150%; }

.project-icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; margin-bottom: 14px; flex-shrink: 0;
}
.proj-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.proj-green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.proj-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.proj-purple { background: linear-gradient(135deg, #8b5cf6, #5b3de8); }
.proj-red    { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.proj-teal   { background: linear-gradient(135deg, #14b8a6, #0f766e); }

.project-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
}
.project-tech-dots { display: flex; gap: 6px; align-items: center; }

.dot {
  width: 10px; height: 10px; border-radius: 50%;
  transition: transform 0.2s; cursor: default; position: relative;
}
.dot:hover { transform: scale(1.4); }
.dot::after {
  content: attr(title); position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%); background: #111; color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 3px 7px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.dot:hover::after { opacity: 1; }

.dot-java { background: #f97316; }
.dot-spring { background: #22c55e; }
.dot-aws { background: #f59e0b; }
.dot-kafka { background: #64748b; }
.dot-mongo { background: #16a34a; }
.dot-pg { background: #3b82f6; }
.dot-cass { background: #8b5cf6; }
.dot-linux { background: #374151; }

.project-card-inner { display: flex; flex-direction: column; height: 100%; position: relative; }
