:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --success: #10b981;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


section {
  padding: 80px 0;
  scroll-margin-top: 90px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  transition: all 0.4s ease-in-out;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Smooth underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Hero Section */
#hero {
  height: 112vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(124, 58, 237, 0.1) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-text {
  flex: 1;
  padding-right: 40px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 300px;
  border: 1px solid white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.social-links {
  display: flex;
  margin-top: 30px;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--dark);
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Impact Data Section */
.impact-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.14), transparent 45%),
    #f1f5ff;
  padding: 56px 0 72px;
}

.impact-intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.impact-kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.impact-intro h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.impact-intro p {
  color: var(--gray);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.impact-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.impact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.14);
}

.impact-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.impact-card p {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 500;
}

@media (max-width: 992px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .impact-section {
    padding: 44px 0 54px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* About Section */
#about {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite; /* add float animation */
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--gray); 
}

#about .education-section,
#about .certificates-section {
  width: 100%;
}

#about .education-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

#about .education-logo {
  flex-shrink: 0;
}

#about .education-details {
  min-width: 0;
}

#about .certificates-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: initial;
}

#about .certificate-item {
  width: 100% !important;
  margin: 0;
}

#about .certificate-item img {
  width: 100%;
  height: 118px !important;
}

@media (max-width: 900px) {
  #about .about-content {
    gap: 26px !important;
  }

  #about .about-image {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  #about .education-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  #about .education-logo {
    margin-right: 0 !important;
  }

  #about .certificates-gallery {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  #about .certificates-gallery {
    grid-template-columns: 1fr;
  }

  #about .certificate-item img {
    height: 160px !important;
  }
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.skill-chip {
  background-color: var(--light-gray);
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-chip:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Experience Section */
#experience {
  background-color: #f8fafc;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--light-gray);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::after {
  right: -10px;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-company {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.timeline-description {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Projects Section */
#projects {
  background-color: white;
}

.projects-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}
.projects-slider {
  flex: 1;
  overflow: hidden;
}
.projects-slider-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects-slider-btn:disabled {
  background: var(--light-gray);
  color: var(--gray);
  cursor: not-allowed;
}
.projects-grid {
  display: flex;
  transition: all 0.3s;
  gap: 30px;
  width: 100%;
}
.project-card {
  min-width: 320px;
  max-width: 370px;
  flex: 1 0 0;
}

/* Responsive adjustments for slider */
@media (max-width: 992px) {
  .projects-grid {
    gap: 18px;
  }
  .project-card {
    min-width: 260px;
    max-width: 1fr;
  }
}
@media (max-width: 768px) {
  .projects-slider-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  .project-card {
    min-width: 220px;
  }
}
@media (max-width: 576px) {
  .projects-slider-wrapper {
    gap: 4px;
  }
  .projects-grid {
    gap: 8px;
  }
  .project-card {
    min-width: 90vw;
    max-width: 98vw;
  }
}

.view-all-projects-btn {
  display: block;
  margin: 30px auto 0 auto;
  padding: 12px 32px;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.view-all-projects-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-description {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-tag {
  background-color: var(--light-gray);
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.project-link {
  display: flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-link i {
  margin-right: 5px;
}

.project-link:hover {
  color: var(--primary-dark);
}

/* Contact Section */
#contact {
  background-color: #f8fafc;
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--primary);
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 40px 0 20px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--secondary);
}

.footer-links {
  display: flex;
  list-style: none;
  margin-bottom: 30px;
}

.footer-links li {
  margin: 0 15px;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  color: var(--gray);
  font-size: 0.9rem;
}

.fade-in {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

.delay-3 {
  transition-delay: 360ms;
}

.delay-4 {
  transition-delay: 480ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-image img {
    animation: none;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
    margin-top: 40px;
  }

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

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

  .about-content {
    flex-direction: column;
  }

  .timeline::after {
    left: 31px;
  }

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

  .timeline-item::after {
    left: 21px;
  }

  .left::after,
  .right::after {
    left: 21px;
  }

  .right {
    left: 0;
  }

  .contact-container {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* slide from right */
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    right: 0; /* smooth slide in */
  }

  .nav-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
  }

  /* animate each item when active */
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  /* optional stagger effect */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

  /* Hamburger show on mobile */
  .hamburger {
    display: block;
    position: relative;
  }

  /* Hamburger animation */
  .hamburger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Optional: dark overlay when menu opens */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 8px;
  }

  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
    margin-top: 20px;
  }

  .hero-text h1 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .hero-image {
    margin-top: 45px;
    width: 250px;
    height: 250px;
  }

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

    border: 1px solid white;
  }

  .hero-image img {
    border-radius: 300px;
  }

  .hero-btns {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding: 10px 0;
  }

  .social-links {
    gap: 10px;
    margin-top: 18px;
  }

  .about-content {
    flex-direction: column;
    gap: 25px;
  }

  .about-image img {
    border-radius: 12px;
  }

  .about-text h3 {
    font-size: 1.rem;
    margin-bottom: 12px;
  }
  
  .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    justify-content: center;
  }

  .skill-chip {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .timeline {
    max-width: 100%;
    padding: 0 0;
  }

  .timeline-item {
    padding-left: 50px;
    padding-right: 10px;
  }

  .timeline-content {
    padding: 12px;
  }

  .timeline-title {
    font-size: 1rem;
  }

  .timeline-company {
    font-size: 0.95rem;
  }

  .timeline-description {
    font-size: 0.85rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-image {
    height: 120px;
  }

  .project-info {
    padding: 12px;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.85rem;
  }

  .project-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .contact-container {
    flex-direction: column;
    gap: 25px;
  }

  .contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .contact-details {
    gap: 10px;
  }

  .contact-item {
    gap: 8px;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .contact-form {
    padding: 15px;
  }

  .form-group label {
    margin-bottom: 5px;
    font-size: 0.95rem;
  }

  .form-control {
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  textarea.form-control {
    min-height: 80px;
  }

  .footer-container {
    padding: 0 8px;
  }

  .footer-logo {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .footer-links li {
    margin: 0;
  }

  .footer-social {
    gap: 8px;
    margin-bottom: 18px;
  }

  .copyright {
    font-size: 0.8rem;
  }
}

/* Extra small devices (≤400px) */
@media (max-width: 400px) {
  .container {
    padding: 0 2px;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .hero-text h1 {
    font-size: 1rem;
  }
  .btn {
    font-size: 0.85rem;
    padding: 8px 0;
  }
  .footer-logo {
    font-size: 1rem;
  }
}

/* Responsive and centered GitHub button for projects section */
.projects-github-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  width: 100%;
}

@media (max-width: 576px) {
  .projects-github-btn-wrapper {
    margin-top: 24px;
  }
  .projects-github-btn-wrapper .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }
}

.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.2s;
}
.img-modal-content {
  display: block;
  margin: 5vh auto;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  background: #fff;
  padding: 8px;
  animation: floatModal 0.4s;
}
.img-modal-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 0 2px 8px #000;
  transition: color 0.2s;
}
.img-modal-close:hover {
  color: #ff4d4f;
}
@keyframes floatModal {
  0% {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Freelance Client Work Gallery */
.client-proof-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.client-proof-item {
  flex: 1 1 220px;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.client-proof-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.2s;
  cursor: pointer;
}
.client-proof-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16);
}
@media (max-width: 768px) {
  .client-proof-gallery {
    gap: 12px;
  }
  .client-proof-item {
    max-width: 48vw;
  }
  .client-proof-item img {
    height: 120px;
  }
}
@media (max-width: 576px) {
  .client-proof-gallery {
    gap: 8px;
    justify-content: center;
  }
  .client-proof-item {
    max-width: 98vw;
  }
  .client-proof-item img {
    height: 90px;
  }
}

/* Hero Section Custom Background and Text */
.hero-bg {
  background: url("https://wallpaperaccess.com/full/5652030.jpg") center
    center/cover no-repeat;
  background-position: center center;
  color: #fff;
  will-change: background-position;
}
.hero-bg .hero-text h1,
.hero-bg .hero-text p,
.hero-bg .btn-outline,
.hero-bg .btn-outline:visited {
  color: #fff;
}
.hero-bg .btn-outline:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Experience Section Custom Background */
.experience-bg {
  background: url("https://images.ctfassets.net/5uvqefs8jmoh/3QlF5tUM6RUjIzIPjdR5qH/267309e0e39c79998e72d05328161acc/softwaredeveloper.jpg?w=1440&q=75")
    center center/cover no-repeat;
  color: #fff;
}
.experience-bg .section-title,
.experience-bg .timeline-content,
.experience-bg .timeline-date,
.experience-bg .timeline-title,
.experience-bg .timeline-company,
.experience-bg .timeline-description {
  color: #fff;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 10px;
}
.experience-bg .timeline-content {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Freelance Client Work Section Custom Background */
.client-work-bg {
  background: url("https://img.freepik.com/free-vector/background-realistic-abstract-technology-particle_23-2148431735.jpg?semt=ais_hybrid&w=740")
    center center/cover no-repeat;
  color: #fff;
}
.client-work-bg .section-title,
.client-work-bg p {
  color: #fff;
  text-shadow: 0 2px 8px #00000044;
}
.client-work-bg .client-proof-item {
  background: rgba(255, 255, 255, 0.85);
}
.client-work-bg .client-proof-item img {
  border: 2px solid #fff;
}

.wrapper {
  width: 1170px;
  margin: auto;
}
.wrapper h2 {
  text-transform: uppercase;
  font-family: "Poppins", serif;
  font-weight: bold;
  text-align: center;
  font-size: 60px;
  color: black;
  margin: 0;
}
.single-service {
  position: relative;
  width: 31%;
  height: 320px;
  background: #151f32; 
  box-sizing: border-box;
  padding: 0 15px;
  transition: 0.5s;
  overflow: hidden;
  float: left;
  margin: 0 10px 45px 10px; /* increased bottom margin */
  text-align: center;
  border-radius: 8px; /* optional: soft rounded corners */
}

.line {
  width: 150px;
  height: 3px;
  background: black;
  margin: 0 auto 60px auto;
}
.single-service p {
  color: #ffffff;
  font-size: 14px;
}
.single-service h3 {
  font-size: 25px;
  text-transform: uppercase;
  font-family: "Poppins", serif;
  letter-spacing: 1px;
  color: #ffffff;
}
.social {
  width: 60px;
  height: 60px;
  background: #262626;
  border-radius: 50%;
  margin: 5% auto;
}
.social i {
  font-size: 30px;
  padding: 15px;
  color: #fff;
}
.single-service:hover {
  box-shadow: 0 30px 35px rgba(255, 255, 255, 0.7);
}
.single-service span {
  position: absolute;
  top: 0;
  left: -110%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  transition: 0.7s;
  transform: skewX(10deg);
}
.single-service:hover span {
  left: 110%;
}

@media (max-width: 1000px) {
  .wrapper {
    width: 100%;
  }
  .single-service {
    width: 95%;
    margin-bottom: 30px;
  }
  .wrapper h2 {
    font-size: 30px;
  }
  .single-service p {
    font-size: 12px;
  }
}

.dark-mode-toggle {
  background: transparent;
  border: 2px solid #6c63ff;
  color: #6c63ff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
  order: 2;
}

.dark-mode-toggle:hover {
  background: #6c63ff;
  color: #fff;
  transform: rotate(20deg);
}

body.dark-mode .dark-mode-toggle {
  border-color: #ffd700;
  color: #ffd700;
}

body.dark-mode .dark-mode-toggle:hover {
  background: #ffd700;
  color: #1a1a2e;
}

.hamburger {
  order: 3;
  margin-left: 0;
}

@media (min-width: 769px) {
  .dark-mode-toggle {
    margin-left: 20px;
    order: 2;
  }
}

@media (max-width: 768px) {
  .header-container {
    gap: 0;
  }

  .dark-mode-toggle {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-left: auto;
    margin-right: 10px;
    order: 2;
  }

  .hamburger {
    order: 3;
  }
}

@media (max-width: 480px) {
  .dark-mode-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    margin-right: 8px;
  }
}

/* Mobile spacing normalization */
@media (max-width: 768px) {
  #services.wrapper {
    padding-top: 30px !important;
    padding-bottom: 18px !important;
  }

  #services .line {
    margin-bottom: 28px !important;
  }

  #services .single-service {
    margin-bottom: 18px !important;
  }

  #services .services-inquire-wrap {
    margin-top: 8px !important;
  }

  #projects-home {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
  }

  #projects-home .projects-section {
    padding-top: 1.8rem !important;
    padding-bottom: 2rem !important;
  }

  #client-work {
    padding-top: 30px !important;
    padding-bottom: 24px !important;
  }

  #client-work .client-proof-actions {
    margin-top: 10px !important;
  }

  #feedback.feedback-section {
    padding-top: 28px !important;
    padding-bottom: 24px !important;
  }

  #feedback .feedback-form-container {
    margin-bottom: 26px !important;
  }

  #feedback .feedback-nav-actions {
    margin-top: 10px !important;
  }

  #contact {
    padding-top: 28px !important;
    padding-bottom: 30px !important;
  }
}

@media (max-width: 480px) {
  #services.wrapper {
    padding-top: 24px !important;
    padding-bottom: 14px !important;
  }

  #projects-home {
    padding-top: 14px !important;
  }

  #feedback.feedback-section {
    padding-top: 22px !important;
    padding-bottom: 18px !important;
  }

  #contact {
    padding-top: 22px !important;
  }
}
