:root {
  --primary-bg: #000000;
  --secondary-bg:rgba(255, 255, 255, 0.05);
  --accent: #ff7b00;
  --text-light: #FFFFFF;
  --text-secondary: #ff7b0031;
  ;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html{
  font-size: 62.5%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  width: 100vw;
}

body{
  background-color: var(--primary-bg);
  color: var(--text-light);
  width: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

section{
  min-height: 100vh;
  padding: 10rem 9% 2rem;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
}
.heading{
  text-align: center;
  font-size: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    
}

.see-all {
    color: var(--accent);
    display: flex;
    justify-content: center;
    margin-top: 30px;
    font-size: 1.5rem;
    margin-left: 1500px;
}


.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--primary-bg);
  display: flex;
  justify-content:space-between;
  align-items: center;
  z-index: 100;
}

.header.sticky{
  border-bottom: .1rem solid var(--primary-bg);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo{
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 600;
  cursor: default;
  margin-left: 50px;
}


.navbar a{
  font-size: 1.7rem;
  font-weight: 500;
   color: var(--text-light);
   margin-left: 4rem;
   transition: .3s;
}

.navbar a:hover,
.navbar a.active{
  color: var(--accent);
}

#menu-icon{
  font-size: 4.6rem;
  display: none;
  color: var(--text-light);
}

.home{
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-content h3{
  font-size: 3.2rem;
  font-weight: 700;
}
.home-content h3:nth-of-type(2){
  margin-bottom: 2rem;
}
span{
  color:var(--accent);
}

.home-content h1{
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-image img{
  width: 30vw;
  margin-left: 20px;
  animation: floatImage 4s ease-in-out infinite;
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-bg);
  border-radius: 8px;
  transform: rotate(45deg);
}

.icon-1 {
  bottom: 90%;
  left: 10%;
  background-color: rgb(146, 30, 30);
}

.icon-2 {
  bottom: 60%;
  left: 25%;
  background-color: rgb(11, 46, 82);
}

.icon-3 {
  bottom: 50%;
  left: 10%;
  background-color: rgb(197, 18, 197);
}

@keyframes floatImage{
  0%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-2.4rem);
  }
  100%{
    transform: translateY(0);
  }
}

.home-content p{
  font-size: 1.6rem;
}
.social-media a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: .2rem solid var(--accent);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--accent);
  margin: 3rem 1.5rem 3rem 0;
  transition: .5s ease;
}

.social-media a:hover{
  background:var(--accent);
  color:var(--text-light) ;
  box-shadow: 0 0 1rem var(--accent);
}
.btn{
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--accent);
  border-radius: 4rem;
  box-shadow:none;
  font-size: 1.6rem;
  letter-spacing: .1rem;
  font-weight: 600;
  transition: .5s ease;
  text-align: center;
  color: var(--text-light);
}
.btn:hover{
  box-shadow : 0 0 1rem var(--accent);

}


/*about section*/

.about .about-d{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem; 

  
}
.about .about-d{
 
  border-radius: 2rem; 
  width: 100%; 
  max-width: 150rem;
  margin: 0 auto; 
  text-align: justify; 
  min-height: 60rem; 
}


.about-img img{
  width: 20vw;

}

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


.about-card {
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-header {
  margin-bottom: 40px;
  position: relative;
}

.about-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.about-title::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left:120px;
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #f1f1f1);
  border-radius: 2px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 100%;
  margin-bottom: 30px;
}

/* What I Do section */
.services-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-card {
  background-color: var(--primary-bg);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.service-icon {
  margin-bottom: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.service-card:nth-child(1) .service-icon {
  background-color: rgba(116, 27, 71, 0.1);
  color: #ec4899;
}

.service-card:nth-child(2) .service-icon {
  background-color: #f6e60023;
  color:#f6e600 ;
}

.service-card:nth-child(3) .service-icon {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.service-card:nth-child(4) .service-icon {
  background-color: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.service-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent);
}

.service-description {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-text {
    max-width: 100%;
  }
  
  .about-card {
    padding: 2px 2px;
  }
}


/* Skills Section Styles */
.skills {
  padding: 100px 0;
  position: relative;
}

.skills-container {
  max-width: 1200px;
  margin:0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 30px;
  padding: 0 20px;
  margin-top: 50px;
}

.skill {
  background-color: rgba(26, 26, 31, 0.7);
  border-radius: 15px;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill:hover {
  transform: translateY(-8px);
  box-shadow: 0 5px 3px var(--text-secondary);
}

.skill::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,var(--accent), var(--text-secondary));
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.skill:hover::before {
  transform: scaleX(1);
}

.skill img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.skill:hover img {
  transform: scale(1.15);
}

.skill-icon {
  font-size: 14px;
  font-weight: 500;
  color: #cccccc;
  text-transform: capitalize;
  transition: color 0.3s ease;
}

.skill:hover .skill-icon {
  color: var(--accent);
}

/* Add a subtle animation for skills on page load */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.skill {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(0.1s * var(--i, 0));
  opacity: 0;
}


/* Responsive styles */
@media (max-width: 992px) {
  .skills-container {
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 25px;
  }
}

@media (max-width: 768px) {
  .skills {
      padding: 80px 0;
  }
  
  .heading {
      font-size: 30px;
      margin-bottom: 40px;
  }
  
  .skills-container {
      grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
      gap: 20px;
  }
  
  .skill img {
      width: 50px;
      height: 50px;
  }
}

@media (max-width: 450px) {
  .skills {
      padding: 40px;
  }
  
  .heading {
      font-size: 26px;
      margin-bottom: 30px;
  }
  
  .skills-container {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 25px;
  }
  
  .skill {
      padding: 20px 10px;
  }
  
  .skill img {
      width: 45px;
      height: 45px;
      margin-bottom: 10px;
  }
  
  .skill-icon {
      font-size: 17px;
  }
}

/*Education*/
.education-container{
  width: min(1000px, 100%);
  margin: 100px auto; 
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.education-container::after{
  content: "";
  position: absolute;
  right: 50%;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(var(--accent),var(--text-light));
  border-radius: 50px;
  animation: lineAniated 5s linear forwards;
  z-index: -1;
}
@keyframes lineAniated{
  0%{
    height: 0;
  }
  100%{
    height: 100%;
  }
}
.education-box{
  width: 50%;
  position: relative;
  padding: 10px 20px;
  animation: Animate-Container 1s linear forwards;
  opacity: 0;
  animation-delay: var(--dly); 
}
@keyframes Animate-Container{
  0%{
    transform: translateY(-30px);
    opacity: 0;
  }
  100%{
    transform: translateY(0);
    opacity: 1;
  }
}
.education-box:nth-child(even){
  right: -50%;
}
.education-box:nth-child(odd)::before{
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  background: linear-gradient(var(--accent),var(--text-light));
  top: 0;
  right: -7px;
  border-radius: 50%;
  z-index: 10;
}
.education-box:nth-child(even)::before{
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  background: linear-gradient(var(--accent),var(--text-light));
  top: 0;
  left: -12.5px;
  border-radius: 50%;
  z-index: 10;
} 
.text-content{
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow:0 2px 5px var(--accent) ;
}
.text-content h2{
  font-size: 25px;
}
.text-content p{
  font-size: 15px;
  margin-top: 10px;
}



/* Certifications Section */
.certificate {
  padding: 8rem 0;
  background-color: var(--primary-bg);
  position: relative;
  overflow: hidden;
}

.cert-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.cert-item {
  background: linear-gradient(145deg, rgb(0, 0, 0) 0%, rgba(255, 255, 255, 0.034) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.377);
  border-radius: 16px;
  padding: 35px 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.664);
  display: flex;
}

.cert-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.cert-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cert-icon {
  margin-bottom: 25px;
  width: 60px;
  height: 60px;
  background: var(--secondary-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-right: 20px;
  flex-shrink: 0;
}

.cert-item:hover .cert-icon {
  transform: scale(1.1) rotate(5deg);
}

.cert-icon i {
  font-size: 28px;
  color: var(--text-light);
}

.cert-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.cert-item:hover .cert-content h3 {
  color: var(--accent);
}

.cert-meta {
  display: flex;
  align-items: center;
}

.cert-issuer {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  margin-right: 15px;
  position: relative;
  padding-right: 15px;
}

.cert-issuer::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
}

.cert-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.cert-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;

}

.cert-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background-color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.cert-link i {
  margin-left: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cert-link:hover {
  background-color: var(--accent);
  color: var(--text-light);
}

.cert-link:hover i {
  transform: translateX(4px);
}

.certificate .section-header {
  margin-top: 40px;
  text-align: center;
}

.certificate .btn {
  background-color: rgba(255, 123, 0, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 123, 0, 0.3);
  padding: 12px 25px;
}

.certificate .btn:hover {
  background-color: var(--accent);
  color: var(--text-light);
}

.tool{
  color:#f6e600;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .cert-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .cert-container {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .cert-item {
    padding: 25px 20px;
  }
  
  .cert-icon {
    width: 50px;
    height: 50px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cert-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.cert-item:nth-child(1) {
  animation-delay: 0.1s;
}

.cert-item:nth-child(2) {
  animation-delay: 0.3s;
}

.cert-item:nth-child(3) {
  animation-delay: 0.5s;
}

.cert-item:nth-child(4) {
  animation-delay: 0.7s;
}
/*Projects section*/
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 50px;
}

.project-card {
  width: 350px;
  min-height: 500px; /* Add fixed height */
  background-color:var(--primary-bg);
  border: 1px solid var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
}

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

.link-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.project-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 80px; /* Increased from 60px to create more space */
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-description {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 25px; /* Increased from 15px to create more space above tags */
}

.project-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* Allow tags to wrap to multiple lines */
  gap: 8px;
  position: absolute;
  bottom: 20px; /* Increased from 15px to create more space */
  left: 20px;
  width: calc(100% - 130px); /* Ensure tags don't overlap with status badge */
}

.tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #ffffff;
  margin-bottom: 5px; /* Add space between wrapped tag rows */
}

.tag-figma {
  background-color: #9901ff;
}

.tag-react {
  background-color: #00c8ff;
}
.tag-node{
  background-color: #8cc84b;
}
.tag-mongo{
  background-color: #c79b0c;
}

.status-badge {
  position: absolute;
  bottom: 20px; /* Match the bottom position of tags for alignment */
  right: 20px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-in-progress {
  background-color: var(--accent);
  color: var(--text-light);
}

.status-completed {
  background-color: #028a0d;
  color: #fff;
}

/* R
.status-in-progress {
  background-color: var(--accent);
  color: var(--text-light);
}

.status-completed {
  background-color: #028a0d;
  color: #fff;
}
edesigned Project Tabs - Underline Style */
.project-tabs {
  display: flex;
  justify-content: center;
  margin: 2rem 0 5rem;
  position: relative;
  z-index: 5;
  padding: 0 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


.tab-button {
  background-color: transparent;
  color: rgb(199, 199, 199);
  border: none;
  padding: 1.2rem 2rem;
  font-size: 1.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
  margin: 0 10px;
}

/* Reduce tab-button underline width */
.tab-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px; /* Reduced from 3px */
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.tab-button:hover::after {
  width: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.tab-button.active::after {
  width: 50%; /* Reduced from 100% */
  left: 50%;
  transform: translateX(-50%);
}

.tab-button:hover {
  color: var(--text-light);
}

.tab-button.active {
  color: var(--accent);
  font-weight: 600;
  background-color: transparent;
  box-shadow: none;
}

/* Project Category Container */
.project-category {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.project-category.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.info-container {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 100px;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 500;

}

p {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-light);
  line-height: 1.6;
}


.accent-dot {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  transform: translateY(70%);
  margin-right: 5px;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-input {
  padding: 15px;
  border-radius: 10px;
  border: none;
  background-color: rgba(255, 255, 255, 0.05);
  color:var(--text-light);
  font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

textarea.form-input {
  resize: none;
  height: 150px;
}

.form-input:focus {
  border-color: var(--accent);
  outline: none;
}

@media (max-width: 768px) {
  .form-container, .info-container {
      padding: 30px;
  }
}


/* Footer */
footer {
  padding: 10px 0;
  border-top: 2px solid var(--secondary-bg);
}


.copyright {
  text-align: center;
  margin-top: 30px;
  color: #ffffffb0;
  font-size: 1.4rem;
}

/* Fixed Contact Button */
.fixed-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
}



/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .project-tabs {
    padding: 0;
  }
  
  .tab-button {
    padding: 1rem 1.5rem;
    font-size: 1.6rem;
    margin: 0 5px;
  }
}

@media screen and (max-width: 480px) {
  .project-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tab-button {
    padding: 1rem 1rem;
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .tab-button::after {
    bottom: -5px;
  }
}

/*breakpoints*/

@media (max-width: 1200px){
  html{
    font-size: 55%;
  }
}

@media (max-width: 991px){
  .header{
    padding: 2rem 3%;
  }
  section{
    padding: 10rem 3% 2rem;
  }
  .services{
    padding-bottom: 7rem;
  }
  .portfolio{
    padding-bottom: 7rem;
  }

  .contact{
    min-height: auto;
  }

  .footer{
   padding: 2rem 3%;
  }
}

@media (max-width: 768px){
  #menu-icon{
    display: block;
  }
  .navbar{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background:  rgb(11, 12, 14);
    border-top: 1rem solid rgb(11, 12, 14);
    box-shadow: 0 .5rem 1rem  rgb(11, 12, 14);
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .navbar.active{
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .navbar a{
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .home{
    flex-direction: column-reverse;
  }
  .home h3{
   font-size: 2.6rem;
  }
  .home-content h1{
    font-size: 5rem;
  }

  .home-img img{
    width: 70vw;
    margin-top: 4rem;
  }
  
  .about-img img{
    width: 70vw;
    margin-top: 8rem;
  }
  .about-d{
    flex-direction: column;
  }
  .services h2{
    margin-bottom: 3rem;
  }

  .portfolio h2{
    margin-bottom: 3rem;
  }
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-container,
  .info-container {
    padding: 20px;
  }
  
  .services-grid,
  .works-container,
  .cert-container {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (max-width: 617px){
  .works-container{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px){
  html{
    font-size: 50%;
  }
}

@media (max-width: 365px){
  .home-img img{
    width: 90vw;
  }

  .about-img img{
    width: 90vw;
  }

}
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
}
}


@media (max-width: 1024px) {
  .education-container {
    width: 95%; /* Slightly increase width for better fit */
    margin: 80px auto; /* Adjust margin */
  }
}

/* Media Queries */
@media screen and (max-width: 1400px) {
  .see-all {
    margin-left: 1200px;
  }
  
  .education-container {
    width: 90%;
  }
}

@media screen and (max-width: 1200px) {
  html {
    font-size: 55%;
  }
  
  .see-all {
    margin-left: 900px;
  }
  
  .works-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 991px) {
  .header {
    padding: 2rem 4%;
  }
  
  section {
    padding: 8rem 4% 2rem;
  }
  
  .home-content {
    max-width: 550px;
  }
  
  .hero-image img {
    width: 40vw;
  }
  
  .about-d {
    gap: 4rem;
  }
  
  .cert-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .see-all {
    margin-left: 600px;
  }
}

@media screen and (max-width: 768px) {
  .header {
    padding: 1.5rem 4%;
  }
  
  #menu-icon {
    display: block;
    cursor: pointer;
  }
  
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 4%;
    background: var(--primary-bg);
    border-top: 1px solid var(--secondary-bg);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .navbar.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .navbar a {
    display: block;
    font-size: 1.8rem;
    margin: 2rem 0;
  }
  
  .home {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }
  
  .home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-image img {
    width: 60vw;
  }
  
  .about-d {
    flex-direction: column;
    text-align: center;
  }
  
  .about-img img {
    width: 50vw;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .works-container {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .cert-container {
    grid-template-columns: 1fr;
  }
  
  .see-all {
    margin-left: 300px;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  .home-content h1 {
    font-size: 4.5rem;
  }
  
  .hero-image img {
    width: 80vw;
  }
  
  .about-img img {
    width: 70vw;
  }
  
  .skill {
    width: 140px;
  }
  
  .education-container {
    width: 100%;
  }
  
  .see-all {
    margin-left: 200px;
  }
  
  .cert-item {
    padding: 20px;
  }
  
  .education-container::after {
    left: 0;
    right: auto;
  }
  
  .education-box {
    width: 100%;
    padding-left: 30px;
  }
  
  .education-box:nth-child(even) {
    right: 0;
  }
  
  .education-box:nth-child(odd)::before,
  .education-box:nth-child(even)::before {
    left: -6px;
    right: auto;
  }
}

@media screen and (max-width: 380px) {
  .hero-image img {
    width: 90vw;
  }
  
  .about-img img {
    width: 90vw;
  }

  .skill {
    width: 130px;
  }
  
  .see-all {
    margin-left: 150px;
  }
  
  .social-media a {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .btn {
    padding: 0.8rem 2.4rem;
  }
}


