html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #f8f8f8;
  font-size: 30px;
  font-weight: bold;
  color: #0a66c2;
}

.humburgur{
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 15px;
  padding: 15px 8px;
}

/* Intro Section */
.intro-section {
  background-image: url('../../image/bg.jpg2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 70px;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1;
  max-width: 50%;
  text-align: left;
  color: #555;
  font-family: serif;
}

.intro-text h1 {
  font-size: 36px;
  color: #0a66c2;
  margin-bottom: 2px;
  font-family: 'Segoe UI';
}

.intro-text p {
  font-size: 18px;
  line-height: 1.6;
}

.intro-image {
  flex: 1;
  max-width: 45%;
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Skills Section */
.skills-section {
  padding: 50px 60px;
  background-color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin: 0 40px 40px;
  border-radius: 10px;
}

.skills-section h2 {
  font-size: 30px;
  color: #000;
  margin-bottom: 50px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.skill {
  background-color: #f1f1f1;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* About Section */
.about-section {
  /* max-width: 1200px; */
  margin: 40px;
  padding: 60px 20px 0;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
  color: #000;
}

.about-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.about-left,
.about-right {
  flex: 1 1 200px;
}

.about-left h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #555;
}

.about-left p {
  font-size: 16px;
  line-height: 1.6;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.stat {
  text-align: center;
}

.stat h4 {
  font-size: 25px;
  margin: 0;
}

.stat p {
  font-size: 20px;
  margin-top: 5px;
  color: #666;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

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

.social-icons-inline .icon {
  font-size: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
  margin-top: 18px;
}

.social-icons-inline .insta {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icons-inline .linkedin {
  background-color: #0077b5;
}

.social-icons-inline .icon:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.resume-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0a66c2;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
}

/* Progress Bars */
.progress-bar {
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-weight: 500;
}

.progress-container {
  background-color: #eee;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  background-color: #0a66c2;
  height: 100%;
  width: 80%;
}

/* Services Section */
.what-i-do {
  text-align: center;
  padding: 0 0 0;
  margin-bottom: 20px;
}

.what-i-do h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 45px;
}

.services {
  display: flex;
  gap: 40px;
  padding: 40px;
  justify-content: center;
}

.service-box {
  border: 2px solid #fff;
  padding: 20px;
  width: 250px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 40px;
  color: #0a66c2;
  margin-bottom: 10px;
}

.service-box h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Achievements */
/* Achievements Section */
.achievements {
  background-color: #fff;
  padding: 40px 0;
  text-align: center;
  overflow-x: auto;
  font-size: 20px;
}


.certificates-scroll-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px 40px 10px;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* position: relative; */

  scrollbar-width: none; /* Hide Firefox default scrollbar */
}

.certificate-card {
  flex: 0 0 250px;
  background: linear-gradient(to top right, #ffffff, #f0f8ff);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 250px;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.15);
}

.cert-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}

.cert-badge {
  width: 40px;
  height: auto;
  margin: 12px 0;
}

.cert-name {
  font-size: 14px;
  font-weight: bold;
  font-family: 'Georgia', serif;
  color: #3b3bb3;
}

.issuer {
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #222;
}

/* Responsive Scroll */
.certificates-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.certificates-scroll-container::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}


/* Contact Section */
.contact-section {
  padding: 20px 40px;
}

.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: justify;
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.icon-box {
  font-size: 28px;
  color: #0a66c2;
}

.info-text h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.info-text p {
  color: #6b7280;
  font-size: 16px;
}

.contact-form {
  flex: 2;
  min-width: 300px;
}

.contact-form h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
}

input,
textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: border 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

input:focus,
textarea:focus {
  border-color: #000;
}

textarea {
  resize: vertical;
}

button {
  align-self: flex-start;
  background-color: #0a66c2;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0a66c2;
  transform: translateY(-5px);
}

/* Footer */
.site-footer {
  background-color: #f2f2f2;
  text-align: center;
  padding: 25px;
  font-size: 17px;
  color: #555;
  margin-top: 40px;
}

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

 

  .form-row {
    flex-direction: column;
  }


  .nav-links {
    
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: -100%;
    width: 50%;
    background: #fff;
    z-index: 999;
    gap: 10px;
    height: 100%;
    transition: right 0.8s ease;
  }
  .humburgur{
    display: block;
  }

  .nav-links li {
    padding-left: 20px;
  }

  .nav-links.active {
    right: 10px;
  }
.services {
    flex-direction: column;
        justify-content: center;
        align-items: center;

}
.certificates-scroll-container {
   flex-direction: column;
   justify-content: center;
   align-items: center;
}

}

@media (max-width:551px) {

   .intro-section{
    flex-direction: column-reverse;
  }

  .intro-image {
  
     max-width: 100%; 
   
}

.intro-text {
  max-width: 100%;

}
  
}