html {
  scroll-behavior: smooth;
}
section {
  scroll-margin-top: 80px; /* equal to navbar height */
}

/* ===== Logo Styling ===== */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  width: 100px;        /* Default desktop size */
  height: auto;
  max-width: 25vw;     /* Keeps it responsive */
  transition: all 0.3s ease;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .logo {
    justify-content: center;
    margin-bottom: 10px;
  }

  .logo-img {
    width: 110px;       /* Smaller size for mobile */
    margin: 0 auto;
  }

  header nav ul {
    flex-direction: column;
    gap: 15px;
  }
}


@media (min-width: 769px) {
  .logo {
    justify-content: flex-start;
  }

  .logo-img {
    width: 140px;
  }
}


/* General header */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background: #ffffff;
  color: #000000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

body {
  margin-top: 80px; /* equal to your header height */
}

/* Navbar links */
.navbar{
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* allow wrapping on tablets */
  gap: 1em;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  color: #000000;
  text-decoration: none;
  font-family: "Arial";
  font-weight: bold;
}

.navbar ul li a:hover {
  color: #4c72ff;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
}



/* Home Section */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2em;
  background: #ffffff;
  color: #000000;
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  gap: 2em;
}

.home-text {
  order: 1;
  flex: 0 1 500px;
}

.home-text h1 {
  font-size: 3rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
  font-family: "Verdana";
  font-weight: bold;
}

.home-text h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0.5em 0;
  color: #333;
}

.home-text p {
  font-size: 1rem;
  margin-bottom: 1.5em;
  color: #444;
  font-family: "Arial";
}

.btn {
  background: #4c72ff;
  color: white;
  padding: 0.8em 1.5em;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  font-family: "Arial" ;
}

.btn:hover {
  background: #3456d1;
}

.home-image {
  order: 2;
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: none;
}

.home-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  z-index: 2;
}



/* About Me Section */
.about {
  margin-top: 3rem;
  
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
}

.about-card {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
}

.about-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: 0.2px;
  color: black;
  font-weight: 700;
  font-family:"Verdana";
}

.about-divider {
  width: 64px;
  height: 4px;
  background-color: #4c72ff;
  border-radius: 4px;
}

.about-body {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.6;
  color: black;
  max-width: 60ch;
  font-family:"Arial";
}





/* Badges Section */

.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
  scroll-margin-top: 80px;
}

.badges-card {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
}

.badges-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: 0.2px;
  color: black;
  font-weight: 700;
  font-family:"Verdana";
}

.badges-divider {
  width: 64px;
  height: 4px;
  background-color: #4c72ff;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* Top badge */
.badge-top {
  display: flex;
  justify-content: center;
  eidth: 100%;
  margin-bottom: 2rem;
}
.badge-top img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

/* Grid for other 6 badges */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: center;
}

.badges-grid img {
  max-width: 120px;
  width: 100%;
  height: auto;
}

  

/* Projects Section */
.projects {
  margin-top: 3rem;
}

.projects-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
}

.projects-card {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.projects-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-family: "Verdana";
  font-weight: 700;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  gap: 2rem;
}

.project-item {
  padding: 1rem;
  border-radius: 12px;
  background-color: #f7f7f7; /* slightly lighter than section */
  text-align: left;
}

.project-item h3 {
  margin: 0 0 0.5rem 0;
}

.project-item h3 a {
  color: #000;
  font-family: "Verdana";
  text-decoration: none;
}

.project-item h3 a:hover {
  color: #4c72ff; /* same color as little divider */
}

.project-item p {
  margin: 0.25rem 0;
  font-family: "Arial";
}

.tech-btn {
  display: inline-block;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  background-color: #e0e0e0; /* slightly darker than section */
  color: #000;
  font-family: "Arial";
  font-size: 0.9rem;
}

.project-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  background-color: #4c72ff; /* same as little divider */
  color: #fff;
  font-family: "Arial";
  text-decoration: none;
  font-weight: bold;
}

.project-btn:hover {
  background-color: #3456d1;
}















/* ======= Experience Section ======= */
.experience {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  background: #ffffff;
}

.experience-card {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.experience-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-family: "Verdana";
  font-weight: 700;
  text-align: center;
}

.experience-divider {
  width: 64px;
  height: 4px;
  background-color: #4c72ff;
  border-radius: 4px;
  margin: 0.75rem auto 2rem;
}

/* ======= Job Element ======= */
.job {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.company-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.job-content {
  flex: 1;
}

.job-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #4c72ff;
  margin: 0;
}

.company-name {
  font-weight: normal;
  color: #000;
}

.job-meta {
  margin: 0.3rem 0 1.5rem 0;
  font-size: 0.95rem;
  color: #777;
}

.job-description {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-description li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  line-height: 1.5;
  font-family: "Arial";
  color: #333;
}

.job-description li::before {
  content: "♦";
  position: absolute;
  left: 0;
  color: #4c72ff;
  font-size: 0.8rem;
  top: 0.2rem;
}

  



/* ===== Why Me Section ===== */
.why-me-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.why-me-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-me-section .section-divider {
  width: 60px;
  height: 4px;
  background: #000; /* same color as About section divider */
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

.why-me-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 60px; /* vertical and horizontal spacing */
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.why-me-item {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  display: flex;
  align-items: flex-start;
}

.why-me-item i {
  color: #28a745; /* green tick color */
  margin-right: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
}
  







/* Contact Me Section */
.contact{
  margin-top: 3rem;

  
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  text-align: center;
  box-sizing: border-box;
}

.contact-card-wrapper {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Title and Divider */
.contact-card-wrapper h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-family: "Verdana";
  font-weight: 700;
}

.contact-divider {
  width: 64px;
  height: 4px;
  background-color: #4c72ff; /* same as About section */
  border-radius: 4px;
  margin-bottom: 2rem;
}

/* Cards Container */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Individual Cards */
.contact-card {
  background-color: #f7f7f7; /* slightly darker than white */
  padding: 1.5rem 1rem;
  border-radius: 12px;
  flex: 1 1 200px; /* responsive width */
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.contact-card p {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #000;
}

.contact-card a {
  color: #4c72ff;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Icons inside cards */
.contact-icon {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
}

.contact-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: grayscale(100%); /* black-and-white effect */
  transition: transform 0.3s ease;
}

.contact-icon img:hover {
  transform: scale(1.1);
}




/* ===== Courses Section ===== */
.courses-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.courses-section .section-title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Verdana";
}

.courses-section .section-divider {
  width: 60px;
  height: 4px;
  background: #4c72ff;
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px; /* vertical & horizontal spacing */
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0;
}

.course-info {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #000;
}

.course-provider {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #4c72ff;
  text-decoration: none;
  font-weight: 500;
}

.course-provider:hover {
  text-decoration: underline;
}

.course-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.course-link {
  color: #4c72ff;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease-in-out;
}

.course-link:hover {
  color: #333;
}

.course-link i {
  font-size: 0.9rem;
}









/* ===== Skills Section ===== */
.skills-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
  overflow: hidden;
}

.skills-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.skills-section .section-divider {
  width: 60px;
  height: 4px;
  background: #000; /* same color as About divider */
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

/* Scroll rows */
.scroll-row {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
  padding: 20px 0;
}

.scroll-content {
  display: inline-flex;
  align-items: center;
  gap: 60px; /* spacing between items */
  animation: scrollRight 40s linear infinite;
}

.scroll-row.scroll-left .scroll-content {
  animation: scrollLeft 40s linear infinite;
}

.scroll-content img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
}

.scroll-content span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

/* Animations */
@keyframes scrollRight {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}


  








/* Mobile mode */
@media (max-width: 768px) {
  .navbar ul {
    display: none; /* hide by default */
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    width: 100%;
    padding: 1em 0;
    border-radius: 0;
    margin: 0;
  }
  .navbar ul li{
    width: 100%;
    text-align: center;
    margin: 0.5em 0;
  }
  .navbar ul.show {
    display: flex; /* show when toggled */
  }

  .menu-toggle {
    display: block; /* show hamburger */
  }

  
  /* Home section*/
  .home-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .home{
    align-items: flex-start;
    padding: 2rem 1rem;
  }
  .home-text{
    order: 2;
    flex: 0 1 auto;
  }
  .home-image{
    order: 1;
  }

  body{
    margin-top: 60px;
  }
  .about-section{
    min-height: auto;
    padding: 2rem 1rem;
  }
  .about-card {
    gap: 1rem;
  }
  .about-divider {
    width: 52px;
    height: 3px;
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .badge-top img {
    max-width: 140px;
    margin-bottom: 1.5rem;
  }

  .badges-grid img {
    max-width: 100px;
  }
  
  .projects-card {
    padding: 1rem;
  }

  .project-item {
    padding: 0.75rem;
  }
  .projects-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-cards {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-card {
    max-width: 100%;
    flex: unset;
    padding: 1.2rem 1rem;
  }

  .job {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .company-logo {
    margin-bottom: 1rem;
  }

  .job-content {
    text-align: center;
  }

  .job-title {
    font-size: 1.2rem;
  }

  .company-name {
    display: block; /* stack under job title */
    margin-top: 0.3rem;
  }

  .job-meta {
    margin: 0.5rem 0 1.5rem;
  }

  .job-description li {
    text-align: left;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
  }

  .job-description li::before {
    left: 0;
  }

  .courses-container {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .course-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .course-info {
    max-width: 100%;
    justify-content: flex-start;
  }

  .course-links {
    align-self: flex-start;
    flex-direction: row;
    gap: 16px;
    margin-top: 5px;
  }
  
  .scroll-content img {
    width: 45px;
    height: 45px;
  }
  
  .scroll-content span {
    font-size: 1rem;
  }
  
 .why-me-container {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  
  }
