/* =============================================================================
   GENERAL STYLES
   ============================================================================= */
body {
  margin: 0;
  font-family: "Kumbh Sans", sans-serif;
  background-color: #0e0e0e; /* Black background */
  color: #fff;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* =============================================================================
   NAVBAR STYLES
   ============================================================================= */
.navbar {
  background: #292929;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  height: 88px;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
}

#navbar__logo {
  background-color: #131313;
  background-image: linear-gradient(to top, #86f869 10%, #86f869 50%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.5rem;
}

.fa-gem {
  margin-right: 0.5rem;
}

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
}

.navbar__item {
  height: 80px;
}

.navbar__links {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 1rem;
  height: 100%;
  font-size: 1rem;
}

.navbar__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 5px 10px;
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 6px;
  background: #86f869;
  color: rgb(255, 255, 255);
  font-size: 1rem;
}

.button:hover {
  background: #219404;
  transition: all 0.3s ease;
}

.navbar__links:hover {
  color: #86f869;
  transition: all 0.3s ease;
}

/* =============================================================================
   HERO SECTION STYLES
   ============================================================================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px; /* gap from navbar */
  padding: 100px 100px 10px 100px; /* top right bottom left; reduce bottom */
  background-color: #1a1a1a;
  min-height: auto; /* remove full viewport requirement */
  position: relative;
  margin-bottom: 20px; /* gap between hero and info-skills */
}

/* Hero Text */
.hero-content {
  max-width: 50%;
  margin-top: 20px;
  transform: translateX(100px) translateY(-80px);
}

.gradient-text {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(90deg, #00ffb3, #00ff00, #00ffb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 20px 0;
}

.gradient-text-S1 {
  font-size: 1.2rem;
  font-weight: bold;
  background: linear-gradient(90deg, #00ffb3, #00ff00, #00ffb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 20px 0;
}

.hero-paragraph {
  font-size: 1rem;
  margin: 10px 0;
}

/* .................................................................................................... */
/* Hero section - Web Icons */

.hero-software-icons {
  display: flex;
  gap: 20px;
  justify-content: left;
  margin-top: 50px;
  flex-wrap: wrap;
}

.hero-software-icons img {
  width: 25px;
  height: 25px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(2); /* brightens all icons on dark background */
}

/* Optional: Color glows for each icon */
.hero-software-icons img[alt="Photoshop"] {
  filter: brightness(1) drop-shadow(0 0 8px hsl(0, 0%, 100%));
}

.hero-software-icons img[alt="Illustrator"] {
  filter: brightness(1) drop-shadow(0 0 8px #ff8c00);
}

.hero-software-icons img[alt="RStudio"] {
  filter: brightness(1) drop-shadow(0 0 8px #ffffff);
}

.hero-software-icons img[alt="Python"] {
  filter: brightness(1) drop-shadow(0 0 8px #ffffff);
}

.hero-software-icons img[alt="MySQL"] {
  filter: brightness(2) drop-shadow(0 0 8px #ffffff);
}

.hero-software-icons img[alt="HTML"] {
  filter: brightness(1) drop-shadow(0 0 8px hsl(0, 100%, 57%));
}

.hero-software-icons img[alt="CSS"] {
  filter: brightness(1) drop-shadow(0 0 8px hsl(271, 82%, 56%));
}

.hero-software-icons img[alt="JavaScript"] {
  filter: brightness(1) drop-shadow(0 0 8px hsl(0, 0%, 100%));
}

.hero-software-icons img[alt="VS Code"] {
  filter: brightness(0.5) drop-shadow(0 0 8px hsl(251, 74%, 67%));
}

/* Hover animation for all icons */
.hero-software-icons img:hover {
  transform: scale(1.3);
  filter: brightness(2.5) drop-shadow(0 0 15px #00fff7);
}

/* ...................................................................................................... */

/* Hero Image */
.hero-image-container {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-150px) translateY(-30px); /* move left by 50px */
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* circle */
  object-fit: cover; /* cover the container */
  object-position: top; /* shift image to show top portion */
  animation: float 7s ease-in-out infinite;
  position: relative;
  z-index: 2;
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
}

/* Reusable Glowing Line */
.glow-line {
  display: inline-block; /* behaves like text */
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, #ffffff, #f7fff7, #00ffb3);
  box-shadow: 0 0 10px #00ff80, 0 0 20px #00ff80;
  border-radius: 10px;
  margin: 10px 0; /* spacing above/below */
}

/* Glowing circle */
.glow-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(144, 238, 144, 0.5); /* light green */
  filter: blur(30px);
  z-index: 1;
}

/* Smooth Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-image {
  animation: float 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  will-change: transform;
}

/* =============================================================================
   SKILLS SECTION STYLES
   ============================================================================= */
.skills-section {
  background-color: #0a0a0a; /* same as hero */
  padding: 100px 20px;
  margin-top: -10px; /* gap from hero section */
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Glowing effect at top */
.skills-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3000px; /* width of glow */
  height: 20px; /* thickness of glow */
  background: linear-gradient(90deg, #00ffb3, #74fc74, #00ffb3);
  filter: blur(50px);
  opacity: 0.7;
  border-radius: 50%;
  z-index: 1; /* behind content */
}

/* Skills title animation */
.skills-title {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(90deg, #00ffb3, #00ff00, #00ffb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideIn 1s ease forwards;
  margin: 0; /* remove default spacing */
  margin-bottom: -80px; /* space between title and glow line/cards */
  position: relative;
  top: -80px; /* move title 30px upward */
}

/* Simple slide in animation for title */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skills cards container */
.skills-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 5px;
}

/* Remove underline and color change from skill links */
.skill-link {
  display: block;
  text-decoration: none; /* removes underline */
  color: inherit; /* keeps same text color as parent */
}

/* Ensure hover doesn't add underline or blue color */
.skill-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Position the animated icons */
.animated-icon {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  z-index: 2;
}

.animated-icon img {
  width: 80px; /* increase from 60px */
  height: 80px; /* increase from 60px */
  object-fit: contain;
}

/* Individual skill card */
.skill-card {
  background: #111111;
  width: 250px;
  height: 350px;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.4);
  color: #fff;
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
  animation: floatCard 4s ease-in-out infinite alternate;
}

/* Floating animation */
@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Hover effect */
.skill-card:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #00ffb3, #00ff00);
}

/* Card title */
.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

/* Card description */
.skill-card p {
  font-size: 1rem;
  margin-top: 3px;
}

/* Glowing line inside card */
.skill-card .glow-line {
  width: 200px;
  height: 1px;
  margin: 10px auto;
  background: linear-gradient(90deg, #ffffff, #f7fff7, #00ffb3);
  box-shadow: 0 0 10px #00ff80, 0 0 20px #00ff80;
  border-radius: 10px;
}

/* =============================================================================
   CONTACT FOOTER STYLES
   ============================================================================= */
.contact-footer {
  background-color: #1a1a1a; /* same as hero */
  height: 80px; /* same as navbar */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px; /* gap from Skills section */
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* Footer icons container */
.footer-icons {
  display: flex;
  gap: 30px; /* space between icons */
}

/* Social icon style */
.social-icon {
  text-decoration: none; /* REMOVE underline */
  font-size: 1.5rem;
  color: #00ffb3; /* gradient fallback */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Gradient for icons using background-clip */
.social-icon i {
  background: linear-gradient(90deg, #00ffb3, #00ff00, #00ffb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hover effect: electric pulse */
.social-icon:hover {
  transform: scale(1.6);
  animation: electricPulse 0.6s ease infinite alternate;
}

/* Electric pulse animation */
@keyframes electricPulse {
  0% {
    text-shadow: 0 0 5px #00ffb3, 0 0 10px #00ffb3, 0 0 20px #00ff80;
  }
  50% {
    text-shadow: 0 0 10px #00ffb3, 0 0 20px #00ffb3, 0 0 30px #00ff80;
  }
  100% {
    text-shadow: 0 0 5px #00ffb3, 0 0 10px #00ffb3, 0 0 20px #00ff80;
  }
}

/* =============================================================================
   ANIMATIONS AND TRANSITIONS
   ============================================================================= */
/* Click Zoom Animation for cards */
@keyframes clickZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  } /* zoom out */
  100% {
    transform: scale(1);
  } /* zoom back in */
}

.skill-card.clicked {
  animation: clickZoom 0.3s ease forwards;
}

/* Page Transition Animations */
body.fade-out {
  animation: fadeOutScroll 1s forwards;
}

body.fade-in {
  animation: fadeIn 0.5s forwards;
}

/* Fade out + scroll up */
@keyframes fadeOutScroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}

/* Fade in */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* =============================================================================
   ABOUT PAGE STYLES
   ============================================================================= */
/* Info-Skills section background */
.info-skills {
  background: rgb(24, 24, 24);
  color: #ffffff;
  padding: 30px 250px;
  font-family: "Kumbh Sans", sans-serif;
}

/* Section spacing */
.section {
  margin-bottom: 50px;
}

/* Section title with glowing line */
.glow-line-title {
  position: relative;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #5cf316;
}

.glow-line-title::after {
  content: "";
  display: block;
  width: 75%; /* use percentage to center dynamically */
  max-width: 1000px; /* optional max width */
  height: 1px; /* slightly thicker for visibility */
  margin: 20px auto 0; /* auto left/right to center */
  background: #00fff7;
  box-shadow: 0 0 5px #00fff7, 0 0 10px #00fff7, 0 0 20px #00fff7;
  border-radius: 1px; /* optional for smooth edges */
}

.section-desc {
  flex: 1 1 30%;
  font-size: 1rem;
  line-height: 1.5;
  color: #cfe1fc;
  margin-bottom: 50px; /* adjust value as needed */
}

.section-content > *:not(.section-desc) {
  flex: 1 1 65%;
}

/* Basic Details */
.basic-details {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.basic-details ul {
  list-style: none;
  padding: 0;
}

.basic-details li {
  margin: 10px 0;
  font-size: 1rem;
}

.label {
  color: #08c508;
  font-weight: bold;
}

.value {
  color: #fff;
}

/* Education items */
.education {
  display: flex;
  flex-wrap: wrap;
  gap: 75px;
}

/* Space between h4 title and paragraph */
.edu-item h4 {
  margin-bottom: 8px; /* space after title */
}

.edu-item p {
  margin-top: 0; /* remove default top margin if needed */
  margin-bottom: 15px; /* space after paragraph */
}

.edu-item .glow-icon {
  margin-right: 0px; /* space between icons horizontally */
  margin-bottom: 20px; /* space below icons before the title */
  font-size: 24px; /* optional: make icons bigger */
  color: #00fff7;
}

.edu-item h3 {
  margin-top: 0; /* remove default top margin if needed */
}

.animated-link {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 14px;
  color: #000000;
  background: hsl(0, 0%, 100%);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.animated-link:hover {
  background: #ffbb00;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(24, 24, 24, 0.4);
}

.edu-item {
  flex: 1 1 30%;
  background: #272727;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.edu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #00fff7, 0 0 40px #00fff7;
}

/* Skills grid with floating effect */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  justify-items: center;
  margin-top: 50px;
}

.skill-circle {
  width: 90px;
  height: 90px;
  background: #222;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-align: center;
  transition: transform 0.5s, box-shadow 0.5s;
  animation: float 3s ease-in-out infinite alternate;
}

.skill-circle:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 15px #00fff7, 0 0 30px #00fff7;
}

.skill-circle span {
  margin-top: 5px;
  font-size: 0.85rem;
}

/* Glow icons */
.glow-icon {
  font-size: 1.5rem;
  color: #cfe1fc;
  text-shadow: 0 0 5px #00fff7, 0 0 10px #00fff7;
  animation: glowPulse 2s infinite alternate;
}

/* Glow pulse */
@keyframes glowPulse {
  0% {
    text-shadow: 0 0 5px #00fff7, 0 0 10px #00fff7;
  }
  100% {
    text-shadow: 0 0 10px #00fff7, 0 0 20px #00fff7;
  }
}

/* ===================== */
/* Data Engineering Section Styling  */
/* ===================== */
/* Roadmap Section */
/* Roadmap Section */
.roadmap-section {
  background: #222222;
  padding: 100px 20px;
  color: #ffffff;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #b6ff2e;
  /*text-shadow: 0 0 10px #000000;*/
  margin-bottom: 80px;
  margin-top: -50px;
  /*animation: glowPulse 2s infinite alternate;*/
}

.roadmap-section .glow-line {
  content: "";
  display: block;
  width: 75%; /* use percentage to center dynamically */
  max-width: 1000px; /* optional max width */
  height: 1px; /* slightly thicker for visibility */
  margin: -10px auto 0; /* auto left/right to center */
  background: #00fff7;
  box-shadow: 0 0 5px #00fff7, 0 0 10px #00fff7, 0 0 20px #00fff7;
  border-radius: 1px; /* optional for smooth edges */
}

/* Timeline structure */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: #00ffff;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff;
}

/* Timeline item */
.timeline-item {
  padding: 30px 40px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

/* Timeline icon */
.timeline-icon {
  position: absolute;
  top: 50px;
  width: 60px;
  height: 60px;
  background: #00ffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  font-size: 2rem;
  z-index: 10;
  box-shadow: 0 0 20px #00ffff;
  animation: floatIcon 3s ease-in-out infinite;
}

.timeline-item.left .timeline-icon {
  right: -30px;
}

.timeline-item.right .timeline-icon {
  left: -30px;
}

/* Timeline content box */
.timeline-content {
  padding: 25px 30px;
  background: #242424;
  border-radius: 15px;
  margin-top: 30px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  position: relative;
}

/* Style for h3 inside timeline content */
.timeline-content .glow-text {
  color: #97f719; /* change heading color */
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px; /* space below heading */
  margin-top: 5px; /* space above heading */
  text-decoration: underline; /* simple underline */
  text-decoration-color: #ffffff; /* match glow color */
  text-underline-offset: 6px; /* add gap between text and underline */
}

.timeline-content .data-subtitle {
  color: #ffffff; /* change heading color */
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px; /* space below heading */
  margin-top: 5px; /* space above heading */
}

.timeline-content::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item.left .timeline-content::after {
  right: -20px;
  margin-top: 10px;
  border-left-color: #808080;
}

.timeline-item.right .timeline-content::after {
  left: -20px;
  margin-top: 10px;
  border-right-color: #808080;
}

/* Link button */
.link-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border: 1px solid #00ffff;
  color: #00ffff;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.link-btn:hover {
  background: #00ffff;
  color: #000;
}

/* Animations */
@keyframes glowPulse {
  0% {
    text-shadow: 0 0 8px #00ffff, 0 0 20px #00ffff;
  }
  100% {
    text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
  }
}

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

/* =============================================================================
   Development Page 
   ============================================================================= */

.project-section {
  padding: 60px 20px;
  background-color: #1f1f1f;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #18ff4a;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-section .section-title::after {
  content: "";
  display: block;
  width: 75%;
  max-width: 1000px;
  height: 1px;
  margin: 10px auto 0;
  background: #00fff7;
  box-shadow: 0 0 5px #00fff7, 0 0 10px #00fff7, 0 0 20px #00fff7;
  border-radius: 2px;
}

.table-container {
  width: 90%;
  max-width: 950px;
  margin: 40px auto;
  border-collapse: separate;
  border-spacing: 0 20px;
  display: table;
}

.table-row {
  display: table-row;
  background: #1a1a1a;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 195, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Bright up photosho */

.software-icons img[alt="Adobe Photoshop"],
.software-icons img[alt="Adobe Illustrator"] {
  filter: brightness(5) contrast(1.2);
}

.table-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.3);
}

.table-number,
.table-details {
  display: table-cell;
  vertical-align: top;
  padding: 20px 25px;
}

.table-number {
  font-size: 1.6rem;
  font-weight: bold;
  color: #00c3ff;
  width: 80px;
  text-align: center;
}

.table-details {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.project-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-about {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 15px;
}

.software-icons {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.software-icons img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.software-icons img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #00c3ff);
}

.project-desc {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
}

/* ✅ Responsive Design */
@media (max-width: 700px) {
  .table-container {
    display: block;
  }

  .table-row {
    display: block;
    margin-bottom: 25px;
    border-radius: 15px;
  }

  .table-number {
    display: block;
    text-align: left;
    margin-bottom: 10px;
  }

  .table-details {
    display: block;
    border: none;
  }
}

.project-link {
  color: #1e90ff; /* blue */
  text-decoration: none;
  font-weight: 600;
}

.project-link:hover {
  text-decoration: underline;
}


/* =============================================================================
   GALLERY SECTION STYLES (Graphic Designing Page)
   ============================================================================= */
/* Reset and body styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #111;
  color: #fff;
  min-height: 100vh;
}

/* Gallery Section */
.gallery-section {
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  background-color: #111;
}

.gallery-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 50px;
  color: #0eff36; /* white text */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
}

.gallery-title:after {
  content: "";
  display: block;
  width: 75%;
  max-width: 1000px;
  height: 1px;
  margin: 10px auto 0;
  background: #ffffff;
  box-shadow: 0 0 5px #00fff7, 0 0 10px #00fff7, 0 0 20px #00fff7;
  border-radius: 2px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

/* Image styling */
.gallery-container img {
  width: 100%;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.5s, box-shadow 0.5s;
}

.gallery-container img:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
  animation: fadeIn 0.5s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #f00;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =============================================================================
   RESPONSIVE MOBILE STYLES (Extended to 768px for better mobile/tablet support)
   ============================================================================= */
@media screen and (max-width: 768px) {
  /* Default navbar for desktop */
  .navbar__menu {
    display: flex;
    list-style: none;
    gap: 20px;
  }

  @media screen and (max-width: 768px) {
    /* Move logo a bit left */
    #navbar__logo {
      margin-left: -25px;
    }

    /* Move Home and About a bit right */
    .navbar__menu {
      margin-right: -45px;
    }

    /* Lower Home & About links slightly */
    .navbar__links {
      position: relative;
      top: 0px; /* move downward */
    }
  }

  .navbar__toggle {
    display: none; /* hide toggle on desktop */
  }

  /* Mobile styling */
  @media screen and (max-width: 768px) {
    /* Hide all menu items first */
    .navbar__menu li {
      display: none;
    }

    /* Show only Home and About */
    .navbar__menu li:nth-child(1), /* Home */
  .navbar__menu li:nth-child(3)  /* About */ {
      display: block;
    }

    /* Flex layout for logo + links */
    .navbar__container {
      justify-content: space-between;
      align-items: center;
    }

    .navbar__menu {
      display: flex;
      gap: 15px;
    }

    /* Hide toggle button on mobile */
    .navbar__toggle {
      display: none;
    }
  }

  /* Logo styling */
  #navbar__logo {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding-left: 1px;
  }

  /*....................................................................................................... */

  /* Hero responsive */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 20px;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 30px;
    transform: translateY(-10px);
  }

  .hero-image-container {
    max-width: 100%;
    margin-bottom: 30px;
    transform: translateY(-10px);
  }

  /* Mobile adjustments */
  @media (max-width: 600px) {
    .hero-software-icons img {
      width: 25px; /* smaller width for mobile */
      height: 25px; /* smaller height for mobile */
    }

    .hero-software-icons {
      gap: 15px; /* optional: reduce gap between icons on mobile */
      margin-top: 20px;
      margin-bottom: 35px; /* optional: reduce top margin */
      justify-content: center; /* center icons on mobile */
      display: none;
    }
  }

  /* .................................................................................................... */

  /* Skills responsive */
  .skills-cards {
    flex-direction: column;
    align-items: center;
    gap: 50px; /* spacing between rectangles */
  }

  .animated-icon {
    bottom: -5px; /* move up inside card */
    left: -30px; /* optional, move a bit right */
    width: 60px; /* smaller for mobile */
    height: 60px;
  }

  /* Footer responsive */
  .footer-icons {
    gap: 20px;
  }

  /* About page responsive */
  .section-content {
    flex-direction: column;
  }

  @media screen and (max-width: 768px) {
    /* Make all basic details appear in one column on mobile */
    .info-skills,
    .basic-details,
    .info-section,
    .details-container,
    .about-content {
      display: flex;
      flex-direction: column !important;
      align-items: flex-start;
      text-align: left;
    }

    /* Add some spacing between sections */
    .info-skills > div,
    .basic-details > div,
    .info-section > div {
      margin-bottom: 15px;
    }

    /* Adjust font size slightly for readability */
    .info-skills,
    .basic-details,
    .about-content {
      font-size: 0.95rem;
    }
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .info-skills {
    padding: 30px 20px;
  }

  /* Gallery responsive - Mobile layout */
  @media (max-width: 600px) {
    .gallery-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 2 images per row */
      gap: 10px; /* smaller gap for mobile */
    }

    .gallery-container img {
      width: 100%;
      height: auto;
      max-height: 200px; /* smaller images on mobile */
      object-fit: cover; /* keep aspect ratio */
    }
  }

  @media screen and (max-width: 500px) {
    .skills-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Additional smaller screen adjustments */
  @media (max-width: 1000px) {
    .skills-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  @media (max-width: 800px) {
    .skills-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /*Data anaytics page */

  /* Responsive */
  @media (max-width: 768px) {
    .timeline::after {
      left: 20px;
    }

    .timeline-item {
      width: 100%;
      padding-left: 45px;
      padding-right: 25px;
    }

    .timeline-item.right {
      left: 0;
    }

    .timeline-item .timeline-icon {
      left: 0;
      right: auto;
    }

    .timeline-content::after {
      left: 50px !important;
      border: 10px solid transparent;
      border-right-color: #1a1a1a !important;
    }

    /* Roadmap section */
    .roadmap-section {
      padding: 60px 15px;
    }

    .section-title {
      font-size: 1.5rem;
      margin-bottom: 40px;
      margin-top: -20px;
    }

    .roadmap-section .glow-line {
      width: 100%;
      height: 1px;
      margin: -10px auto 20px;
      background: #ffffff; /* make it match your theme */
      box-shadow: 0 0 8px #ffffff, 0 0 15px #b6ff2e;
    }

    /* Timeline vertical line */
    .timeline::after {
      left: 20px;
      margin-top: 40px; /* shift line to left edge */
    }

    /* Timeline item adjustments */
    .timeline-item {
      width: 100%;
      padding: 20px 20px 20px 60px;
    }

    .timeline-item.left,
    .timeline-item.right {
      left: 0;
    }

    /* Icon repositioning */
    /* Adjust individual icons */
    .timeline-item:nth-child(1) .timeline-icon {
      top: 10px;
      left: 5px;
      background: #00ffff;
    }

    .timeline-item:nth-child(2) .timeline-icon {
      top: 30px;
      left: 7px;
      background: #00ffff;
    }

    .timeline-item:nth-child(3) .timeline-icon {
      top: 15px;
      left: 5px;
      background: #00ffff;
    }

    .timeline-item:nth-child(4) .timeline-icon {
      top: 25px;
      left: 4px;
      background: #00ffff;
    }

    /* Content box */
    .timeline-content {
      margin-top: 10px;
      padding: 20px;
    }

    /* Remove directional arrows (optional for clean look on mobile) */
    .timeline-content::after {
      display: none;
    }
  }
}
