


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}


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



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

/* Responsive Logo Image */
.logo-img {
  width: clamp(100px, 12vw, 120px); /* 🧠 responsive: min 80px, ideal 12% viewport width, max 140px */
  height: auto;
  display: block;
  transition: transform 0.3s ease, width 0.3s ease;
  margin: 0 0.1rem;
  cursor: pointer;
}

/* Optional: Add a small hover effect (nice touch) */
.logo-img:hover {
  transform: scale(1.05);
}

/* Align logo to the left on larger screens */
@media (min-width: 769px) {
  .logo {
    justify-content: flex-start;
  }
  .logo-img {
    margin-left:0.1rem;
  }
}



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

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

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

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

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

.navbar ul li a:hover {
  color: #0072ff;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  transition: transform 0.2s ease;
}


/* ===== Unified Section Title and Divider Styles ===== */
.section-title {
  margin: 0;
  margin-bottom: 0.25rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: 0.2px;
  color: black;
  font-weight: 700;
  font-family: "Verdana";
  text-align: center;
}

.section-divider {
  width: 64px;
  height: 4px;
  background-color: #0072ff;
  border-radius: 4px;
  margin: 0.75rem auto 2rem; /* Consistent spacing: 0.75rem top, 2rem bottom */
}


  



/* Home Section */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2em;
  /* background: #ffffff; */
  color: #000000;
  background: linear-gradient(to bottom, #FFFFFF, #E5E7E9);
}

.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: clamp(1rem, 1.2vw, 1.1rem);
  margin-bottom: 1.5em;
  color: #444;
  font-family: "Arial";
}

.btn {
 /* background: #4c72ff; */
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  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: linear-gradient(90deg, #00c6ff, #0072ff);
}

.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 {
  background: linear-gradient(to bottom, #E5E7E9, #FFFFFF);
  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;
  padding: 1rem 1.25rem;
}

.about-body {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  /* line-height: 1.6; */
  color: black;
  /* max-width: 90ch; */
  font-family:"Arial";
}





/* Badges Section */

.badges {
  background: linear-gradient(to bottom, #FFFFFF, #E5E7E9);
  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;
  padding: 1rem 1.25rem;
}


/* 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: 180px;
  width: 100%;
  height: auto;
}

  

/* Projects Section */
.projects {
  background: linear-gradient(to bottom, #E5E7E9, #FFFFFF);
  display: flex;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  width: 100%;
}

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

.projects-card {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  gap: 2rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.project-item {
  padding: 1.5rem;
  border-radius: 12px;
  /* background-color: #f7f7f7; /* slightly lighter than section */
  border: 2px solid white;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

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

.project-item h3 a {
  font-family: "Verdana";
  color: #0072ff;
  font-size: clamp(1.1rem, 1.3vw, 1.2rem);
}

.project-item p {
  margin: 0.25rem 0;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  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 */
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  color: #fff;
  font-family: "Arial";
  text-decoration: none;
  font-weight: bold;
}

.project-btn:hover {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
}






/* ======= Experience Section ======= */
.experience {
  background: linear-gradient(to bottom, #FFFFFF, #E5E7E9);
  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;
}

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

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

.job-content {
  flex: 1;
  min-width: 0;
}

.job-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #0072ff;
  font-family: "Verdana";
  margin: 0;
  line-height: 1.3;
}

.company-name {
  font-weight: normal;
  font-family: "Verdana";
  color: #000;
  display: inline;
}

.job-meta {
  margin: 0.3rem 0 1.5rem 0;
  font-size: 0.95rem;
  font-family: "Verdana";
  color: #777;
  line-height: 1.4;
}

.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";
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

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

  

/* ===== Why Me Section ===== */
.why-me-section {
  background: linear-gradient(to bottom, #FFFFFF, #E5E7E9);
  padding: 80px 20px;
 /* background: #fff;  */
  text-align: center;
}

.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;
  font-family: "Arial";
  line-height: 1.6;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.why-me-item i {
  /* color: #28a745; /* green tick color */
  margin-right: 0;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-family: "Arial";
}

.checkmark {
  display: inline-block;
  width: 1.3rem;
  height: 1.3rem;
  /* background-color: #4c72ff; */
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.2rem;
  width: 0.4rem;
  height: 0.7rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}





/* Contact Me Section */
.contact{
  background: linear-gradient(to bottom, #E5E7E9, #FFFFFF);
  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;
}


/* 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 */
  border: 2px solid 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: #0072ff;
  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
 {
  background: linear-gradient(to bottom, #FFFFFF, #E5E7E9);
  display: flex;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  width: 100%;
}

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

.courses-card {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}

.courses-container
 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  gap: 2rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.course-item
{
  padding: 1.5rem;
  border-radius: 12px;
  /*background-color: #f7f7f7; /* slightly lighter than section */
  border: 2px solid white;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap:1rem;
}

.course-item * {
  margin-top: 0;
  margin-bottom: 0;
}

.course-info {
  width: 100%;
  /*
  display: flex;
  flex-direction: column;
  justify-content: center;
  */
}

.course-title {
  font-size: 1.3rem;
  font-family: "Verdana";
  font-weight: 700;
  color: #000;
  line-height: 1.4;
  margin-bottom: 0;
}

.course-links {
  display: flex;
  justify-content: space-between; /* provider left, links right */
  align-items: center;
  width: 100%;
  flex-wrap: wrap; /* ensures good mobile behavior */
  margin-top: 0;
}

.course-provider {
  font-size: 0.95rem;
  font-family: "Verdana";
  color: #0072ff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

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

.course-link {
  color: #0072ff;
  font-size: 0.95rem;
  font-family: "Verdana";
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease-in-out;
  white-space: nowrap;
}

.course-link:hover {
  color: #333;
}
/* Responsive adjustments */
@media (max-width: 768px) {
 .courses-container {
    grid-template-columns: 1fr;
 }
            
 .course-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
            
 .course-links-right {
    gap: 10px;
  }
  .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: column;
  gap: 8px;
  margin-top: 5px;
}

.course-links-right {
  gap: 15px;
}
}














/* Skills Section Base Styles */
.skills-section {
  background: linear-gradient(to bottom, #E5E7E9, #FFFFFF);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* Scroll Container Styles */
.scroll-row {
  display: flex;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.scroll-content {
  display: flex;
  align-items: center;
  gap: 40px;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  white-space: nowrap;
}

/* Scroll Animations */
.scroll-right .scroll-content {
  animation-name: scrollRight;
}

.scroll-left .scroll-content {
  animation-name: scrollLeft;
}

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

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

/* Icon Styles */
.scroll-content img {
  width: auto;
  height: 50px;
  object-fit: contain;
 /*  filter: grayscale(0.3); */
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.scroll-content img:hover {
  filter: grayscale(0);
  transform: scale(1.1);
}

/* Word Styles */
.skills-words .word {
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1rem;
  font-family: "Verdana";
  flex-shrink: 0;
}

.skills-words .word:hover {
  transform: scale(1.1);
  filter: brightness(1.3);
}

/* Animation Duration */
.scroll-row .scroll-content {
  animation-duration: 150s; /* Default speed */
}

.skills-words .scroll-content {
  animation-duration: 150s; /* Slower for words */
}

/* === Responsive Fix === */
@media (max-width: 768px) {
  .skills-words .word {
    font-size: 1.2rem;
  }
  
  .scroll-content {
    gap: 30px;
  }
  
  .scroll-content img {
    width: auto;
    height: 50px;
  }
  
  .scroll-row .scroll-content {
    animation-duration: 90s;
  }
  
  .skills-words .scroll-content {
    animation-duration: 90s;
  }
}

@media (max-width: 480px) {
  .skills-words .word {
    font-size: 1rem;
  }
  
  .scroll-content {
    gap: 20px;
  }
  
  .scroll-content img {
    width: auto;
    height: 35px;
  }
  
  .scroll-row .scroll-content {
    animation-duration: 90s;
  }
  
  .skills-words .scroll-content {
    animation-duration: 90s;
  }
}

#education {
  background: linear-gradient(to bottom, #E5E7E9, #FFFFFF);
}






/* ===== Footer Styling ===== */
.footer {
  background-color: #000;
  color: #f5f5f5;
  padding: 60px 20px 30px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-about,
.footer-links,
.footer-social {
  flex: 1;
  min-width: 220px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00c6ff;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #bbb;
  font-size: 1.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #00c6ff;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

.two-column-list {
  columns: 2; /* or column-count: 2; */
  column-gap: 10px; /* spacing between columns */
  list-style: none; /* optional: remove bullets */
  padding: 0;
  margin: 0;
}



/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

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





/* Mobile mode */
@media (max-width: 768px) {
  
  header{
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    align-items: center;
  }

  .logo {
    justify-content: flex-start;
    margin-left: 0rem; 
  }

  .logo-img {
   margin-left: 0rem;
  }
  
  .navbar ul {
    display: none; /* hide by default */
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1em 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 */
    margin-left: auto;
    margin-right: 0.75rem;
    order: 2;
  }

  
  /* Home section*/
  .home-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  .home{
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .home-text{
    order: 2;
    flex: 0 1 auto;
  }
  .home-image{
    order: 1;
  }

  body{
    margin-top: 60px;
  }
  .about,
  .badges,
  .experience,
  .contact,
  .courses-section,
  .skills-section{
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

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

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

  .badges-grid img {
    max-width: 180px;
    padding: 0.75rem;
  }
  
  .projects{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    width:100%;
    box-sizing: border-box;
  }

  .projects-card{
    width: 100%;
    max-width: 100%;
    margin: 0 auto ;
    padding: 0;
  }
  
  .projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  .project-item {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background-color: #f7f7f7
    text-align: left;
  }
  
  .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: 100%;
    width: 100%;
    box-sizing: border-box;
  }

 .why-me-container {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }

  .why-me-item {
    font-size: 1rem;
    line-height: 1.5;
    gap: 10px;
  }

  .why-me-item i{
    font-size: 1.1rem;
    margin-top: 0.05rem;
  }

  .checkmark {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
  }

  .checkmark::after{
    left: 0.35rem;
    top: 0.15rem;
    width: 0.3rem;
    height: 0.5rem;
    border-width: 0 1.5px 1.5px 0;
  }
  
  }
