/* ==================================================
   DARK THEME – Full Portfolio (Matching Reference)
   ================================================== */

:root {
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --border-light: #334155;
}

/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 380px) {
  .container,
  .hero-container {
    padding: 0 16px;
  }
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}
.section-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
  padding: 4px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.section-sub {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}
.text-center {
  text-align: center;
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1000;
  padding: 0.8rem 0;
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-brand .code-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 1em;
  font-family: 'Courier New', monospace;
  letter-spacing: -1px;
}
.nav-brand span:last-child {
  color: var(--accent);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.25s;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  background: none;
  border: none;
}

/* ==================================================
   HERO – DARK THEME
   ================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  background: var(--bg-primary);
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  padding: 4px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}
.highlight-name {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0;
}
.hero-desc {
  color: var(--text-secondary);
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  border: 2px solid #475569;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.hero-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.8rem;
}
.hero-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all 0.25s;
}
.hero-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile-frame {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.15);
}
.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: var(--bg-primary);
}

/* ---------- RESPONSIVE HERO ---------- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left {
    align-items: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-social {
    justify-content: center;
  }
  .hero-right {
    order: -1;
  }
  .profile-frame {
    width: 240px;
    height: 240px;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary, .btn-secondary {
    text-align: center;
  }
  .profile-frame {
    width: 220px;
    height: 220px;
  }
}
/* ==================================================
   HERO – ORBITING TECH BADGES (added)
   Floating icon chips connected to the profile photo
   by thin animated lines, matching the reference layout.
   Purely additive: does not alter any existing rule.
   ================================================== */

.profile-orbit {
  position: relative;
  width: 400px;
  height: 400px;
}

/* keep the existing profile-frame perfectly centered inside the orbit */
.profile-orbit .profile-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* thin connecting lines from the photo out to each badge */
.orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}
.orbit-line {
  stroke: var(--accent);
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
  opacity: 0.28;
  stroke-dasharray: 2 2.4;
  animation: orbitLineFlow 9s linear infinite;
}
@keyframes orbitLineFlow {
  to { stroke-dashoffset: -60; }
}

/* icon chips */
.orbit-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  z-index: 3;
  transform: translate(-50%, -50%);
  animation: orbitFloat 5s ease-in-out infinite;
  backdrop-filter: blur(4px);
}

.icon-react { left: 9%;   top: 12%; color: #61dafb; box-shadow: 0 0 22px rgba(97, 218, 251, 0.18); animation-delay: 0s; }
.icon-node  { left: 86%;  top: 7%;  color: #6cc24a; box-shadow: 0 0 22px rgba(108, 194, 74, 0.18); animation-delay: 0.9s; }
.icon-db    { left: 100%; top: 47%; color: #818cf8; box-shadow: 0 0 22px rgba(129, 140, 248, 0.2); animation-delay: 1.7s; }
.icon-cloud { left: 89%;  top: 90%; color: #60a5fa; box-shadow: 0 0 22px rgba(96, 165, 250, 0.18); animation-delay: 0.4s; }
.icon-git   { left: 10%;  top: 86%; color: #f05032; box-shadow: 0 0 22px rgba(240, 80, 50, 0.18);  animation-delay: 1.3s; }
.icon-code  { left: -3%;  top: 50%; color: #a78bfa; box-shadow: 0 0 22px rgba(167, 139, 250, 0.2); animation-delay: 2.1s; }

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

@media (prefers-reduced-motion: reduce) {
  .orbit-icon,
  .orbit-line {
    animation: none !important;
  }
}

/* ---------- RESPONSIVE: orbit badges ---------- */
@media (max-width: 992px) {
  .profile-orbit {
    width: 240px;
    height: 240px;
  }
  .orbit-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .profile-orbit {
   width: 220px;
    height: 220px;
  }
  .orbit-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.9rem;
  }
  /* keep the corner icons closest to the ring, drop the two
     side badges so nothing crowds the small photo on phones */
  .icon-db,
  .icon-code {
    display: none;
  }
  .orbit-lines line[x2="101"],
  .orbit-lines line[x2="-3"] {
    display: none;
  }
}


/* ==================================================
   ALL OTHER SECTIONS – DARK THEME
   ================================================== */

/* About */
.about {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-image img {
  border-radius: 20px;
  display: block;
  border: none;
}
.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.about-info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.about-info-item i {
  width: 32px;
  height: 32px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
}
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}
.stat-box {
  background: var(--bg-card);
  padding: 1rem 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  text-align: center;
}
.stat-box .number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-box .label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.about-email-btn {
  margin-top: 1.2rem;
}
.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-email:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.about-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}
.about-buttons .btn-secondary {
  color: #fff;
  border-color: #475569;
}

/* Skills */
.skills {
  padding: 80px 0;
  background: var(--bg-primary);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.skill-item {
  background: var(--bg-card);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}
.skill-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.skill-info {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-info i {
  color: var(--accent);
  font-size: 1.1rem;
  width: 1.4rem;
  text-align: center;
}
.skill-percent {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}
.progress-bar {
  width: 100%;
  height: 5px;
  background: #334155;
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s ease;
}

/* Technologies section */
.tech-stack {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1.2rem;
  max-width: 700px;
  margin: 2rem auto 0;
}
.tech-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: all 0.25s;
  aspect-ratio: 1/1;
}
.tech-box:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}
.tech-box .fa-html5 { color: #E34F26; }
.tech-box .fa-css3-alt { color: #1572B6; }
.tech-box .fa-js { color: #F7DF1E; }
.tech-box .fa-react { color: #61DAFB; }
.tech-box .fa-php { color: #777BB4; }
.tech-box .fa-laravel { color: #FF2D20; }
.tech-box .fa-database { color: #4479A1; }
.tech-box .fa-git-alt { color: #F05032; }
.tech-box .fa-github { color: #f0f0f0; }

/* Projects */
.projects {
  padding: 80px 0;
  background: var(--bg-primary);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}
.project-card .thumb {
  height: 200px;
  background: #1e293b;
  overflow: hidden;
}
.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card .body {
  padding: 1.5rem;
}
.project-card .body h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.project-card .body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.project-tech span {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
  padding: 2px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}
.project-links {
  display: flex;
  gap: 0.8rem;
}
.project-links a {
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.project-links .demo {
  background: var(--accent);
  color: #fff;
}
.project-links .demo:hover {
  background: var(--accent-hover);
}
.project-links .code {
  border: 1px solid #475569;
  color: var(--text-secondary);
}
.project-links .code:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Experience */
.experience {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}
.timeline-item h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}
.timeline-item .meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.timeline-item p {
  color: var(--text-secondary);
}

/* Services */
.services {
  padding: 80px 0;
  background: var(--bg-primary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}
.service-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.service-card h4 {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Contact */
.contact {
  padding: 80px 0;
  background: var(--bg-primary);
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact-info {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
}
.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.contact-info .detail {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.contact-info .detail i {
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}
.contact-info .detail strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.contact-info .detail p {
  color: var(--text-primary);
  font-weight: 500;
}
.contact-info .detail p a {
  color: var(--accent);
}
.contact-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
}
.contact-form .form-group {
  margin-bottom: 1.2rem;
}
.contact-form label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border 0.2s;
  background: var(--bg-primary);
  color: var(--text-primary);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.contact-form button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 40px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s;
}
.contact-form button:hover {
  background: var(--accent-hover);
}
/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-primary);
  padding: 1.5rem 0 1.2rem;
  border-top: 1px solid var(--border-light);
}

/* Row 1: brand + nav */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-left {
  display: flex;
  align-items: center;
}
.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-brand span {
  color: var(--accent);
}
.footer-nav {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--text-primary);
}

/* Divider between the two rows */
.footer-divider {
border-top: 1px solid var(--border-light);
margin: 1.1rem 0;
}

/* Row 2: centered copyright */
.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- RESPONSIVE: Footer ---------- */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* ---------- RESPONSIVE (global) ---------- */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-info-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    justify-content: center;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(12px);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}/* ---------- PROCESS SECTION ---------- */
.process {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  position: relative;
}

/* dotted connecting line running behind the circles, desktop only */
.process-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 0;
  border-top: 2px dashed rgba(99, 102, 241, 0.35);
  z-index: 1;
}

.process-step {
  background: transparent;
  padding: 0 0.5rem;
  border-radius: 0;
  border: none;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
}
.process-step:hover {
  transform: translateY(-4px);
}

.step-circle {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--bg-secondary), 0 6px 18px rgba(99, 102, 241, 0.35);
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 0.5rem;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---------- RESPONSIVE: Process ---------- */
@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.5rem;
  }
  .process-grid::before {
    display: none;
  }
}
@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .step-circle {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }
}
/* ==================================================
   LIGHT THEME OVERRIDES
   ================================================== */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent: #4f46e5;
  --accent-hover: #6366f1;
  --border-light: #e2e8f0;
}

/* Fixes for values that were hardcoded instead of using variables */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .nav-brand,
[data-theme="light"] .mobile-toggle,
[data-theme="light"] .hero h1 {
  color: var(--text-primary);
}
[data-theme="light"] .btn-secondary,
[data-theme="light"] .about-buttons .btn-secondary {
  color: var(--text-primary);
  border-color: #cbd5e1;
}
[data-theme="light"] .hero-social a {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
}
[data-theme="light"] .project-card .thumb {
  background: var(--bg-secondary);
}
[data-theme="light"] .progress-bar {
  background: #e2e8f0;
}
[data-theme="light"] .tech-box .fa-github {
  color: #24292f;
}
[data-theme="light"] .project-card:hover,
[data-theme="light"] .service-card:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .about-image img,
[data-theme="light"] .project-card:hover {
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
}
@media (max-width: 1100px) {
  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  }
}

/* ---------- THEME TOGGLE BUTTON ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.25s;
  margin-left: 0.5rem;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
/* ==================================================
   ABOUT SECTION — LIGHT THEME ENHANCEMENTS
   ================================================== */

/* Animated gradient border around the about photo */
.about-image {
  position: relative;
  border-radius: 24px;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), #a78bfa, var(--accent));
  background-size: 200% 200%;
  animation: aboutBorderFlow 6s ease infinite;
}
@keyframes aboutBorderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Light theme: soften the shadow, add a glow instead of the dark drop-shadow */
[data-theme="light"] .about {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}
[data-theme="light"] .about-image {
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.12);
}
[data-theme="light"] .about-image img {
  box-shadow: none;
}

/* Info items become soft "glass" chips in light mode */
[data-theme="light"] .about-info-item {
  background: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s;
}
[data-theme="light"] .about-info-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.1);
}

/* Stat boxes get a light gradient instead of flat dark card */
[data-theme="light"] .stat-box {
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
}
[data-theme="light"] .stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.14);
}
.stat-box {
  transition: all 0.25s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .about-image {
    animation: none;
  }
}
/* ==================================================
   ABOUT IMAGE — 3-IMAGE CAROUSEL (final, clean)
   ================================================== */
.about-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
}
.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 1.4s ease;
  pointer-events: none;
}
.carousel-img.active {
  opacity: 1;
  transform: scale(1);
}

/* Dots overlay directly on the image, bottom edge, hidden until hover */
.about-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.6rem 0 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.about-carousel:hover .about-carousel-dots,
.about-carousel:focus-within .about-carousel-dots {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.about-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.about-dot:hover {
  background: #fff;
}
.about-dot.active {
  width: 20px;
  border-radius: 5px;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-img { transition: opacity 0.3s ease; transform: none !important; }
  .about-carousel-dots { transition: none; }
}

/* Touch devices can't hover — always show dots there */
@media (hover: none) {
  .about-carousel-dots {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
/* ==================================================
   BULB TOGGLE – GLOW ANIMATION
   ================================================== */

#bulb-icon {
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark mode → Bulb OFF (no glow, greyish) */
[data-theme="dark"] #bulb-icon,
:root:not([data-theme="light"]) #bulb-icon {
  color: #94a3b8;                /* soft grey outline */
  text-shadow: none;
  animation: none;
}

/* Light mode → Bulb ON (filled yellow + breathing glow) */
[data-theme="light"] #bulb-icon {
  color: #ffcc00;
  animation: filamentGlow 2s ease-in-out infinite alternate;
}

@keyframes filamentGlow {
  0% {
    text-shadow:
      0 0 8px #ffcc00,
      0 0 20px #ffaa00,
      0 0 40px #ff8800;
    transform: scale(1);
  }
  100% {
    text-shadow:
      0 0 15px #ffdd44,
      0 0 40px #ffcc00,
      0 0 80px #ff9900,
      0 0 120px #ff6600;
    transform: scale(1.05);
  }
}

/* Ensure the toggle button itself stays clean */
.theme-toggle {
  /* already styled in your CSS, keep as is */
}
/* ===== Small-phone fixes (Galaxy A10s ≈ 360px) ===== */
@media (max-width: 480px) {
  html, body { overflow-x: hidden; }

  .hero {
    min-height: auto;
    padding: 84px 0 40px;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-right { order: -1; display: flex; justify-content: center; }
  .hero-left  { text-align: center; }

  .profile-orbit {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .profile-frame { width: 150px; height: 150px; }
  .profile-frame img { width: 100%; height: 100%; object-fit: cover; }

  .orbit-icon { transform: scale(.65); }

  .hero h1 { font-size: clamp(1.6rem, 8vw, 2rem); line-height: 1.2; }
  .hero-badge { font-size: .75rem; padding: 4px 12px; }
  .hero-tagline { font-size: 1rem; }
  .hero-desc { font-size: .9rem; line-height: 1.5; }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: .75rem;
  }
  .hero-buttons a { width: 100%; text-align: center; }

  .hero-social { justify-content: center; }

  .section-title { font-size: 1.6rem; }
  .project-grid,
  .services-grid,
  .process-grid,
  .skills-grid,
  .about-grid,
  .contact-wrapper { grid-template-columns: 1fr !important; }
  img { max-width: 100%; height: auto; }
}

@media (max-width: 400px) {
  .orbit-icon, .orbit-lines { display: none; }
}
