*{
    padding:0px;
    margin:0px;
}

body {
  margin: 0;
  overflow-x: hidden;
}

html, body {/*important*/
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/*Top Bar*/
.navbar{
  position: fixed;
  top: 0;
  width: 100%;
  color:black;
  background-color: rgb(72, 71, 71);
  height:65px;
  font-size: 30px;
  z-index: 4;
  transition: all 4.3s ease-in  4.3s ease;
  
  }
  
  .navbar a{
  color:white;
  text-decoration: none;
  font-size: 25px;
  display:block;
  float:left;
  }
  
  
  /* When scrolled: add background and shadow */

  .navbar.scrolled {
    height: 50px;
    background-color: rgb(72, 71, 71); /* same as privius*/
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .navbar.scrolled a{
    margin-top: 0px;
  color:rgb(235, 200, 59);
  }

  .navbar.scrolled #a1{
    font-size: 30px;
    margin-right: 213.5px;
    margin-top: 4px;
  }

  .navbar.scrolled #a{
    margin-top: 8px;
  }

  .navbar.scrolled #a5{
    margin-top: 5px;
  }

  .navbar.scrolled #krishna{
    padding-top: 3px;
    margin-top: 0px;
    height: 40px;
  }
#a1{
     font-family:cursive;
     color: rgb(255, 115, 0);
     font-size: 40px;
     padding-bottom: 1px;
     margin-left: 15px;
     margin-right: 160px;
}
#a1:hover{
    border-style: none none dotted none;
    border-color: rgb(45, 249, 140);
}
.navbar a span{
    color: rgb(63, 193, 193);
 }

#a{
    
    padding: 2px;
    margin-top: 15px;
    margin-left: 35px;
}
#a:hover{
   color: orange;
   background-color: blanchedalmond;
   transform: scale(1.2);
   border: 1px solid;
   border-radius: 1px;
   border-color: rgb(173, 174, 174);
}
#krishna{
    margin-left: 1px;
    padding-top: 7px;
    height:50px;
}
#skillimg{
    width: 20px;
}
#resumeimg{
  
    height: 17px;
}

#a5{
     
     color: orange;
     float: right;
     padding-right: 5px;
     margin-top: 15px;
     margin-right: 10px;
}
#a5:hover{
    border-style: none dashed dotted none;
}

.menu-toggle {
  font-size: 24px;
  color: rgb(229, 39, 39);
  cursor: pointer;
}

#menu-tog{
  display: none;
}

/*Responsive navbar*/

@media (max-width: 768px) {
   
  body {
    overflow-x: hidden;
  }

  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 1000;
    padding: 10px 15px;
   
    justify-content: space-between;
    align-items: center;
    background-color: rgb(72, 71, 71);
    
  }

  .menu-toggle {
    display: block;
    color: white;
    cursor: pointer;
    padding: 10px;
    padding-left: 80px;
    padding-top: 16px;
  }

  #menu-tog{
    display: block;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgb(72, 71, 71);
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 999;
  }
  

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
   
    border-top: 1px solid #444;
    font-size: 20px;
    text-align: center;
    color:white;
    
  }

  #a1 {
    margin-right: 0;
    font-size: 40px;
    font-family:cursive;
    margin-left: 0px;
  }

  .navbar.scrolled #a1{
    font-size: 30px;
    margin-right: 40px;
    margin-top: 0px;
  }

  #a, #a5 {
    margin: 10px 15px;
    float: none;
  }

  #krishna {
    margin-left: 5px;
    height: 40px;
  }
}

/* Mainpage Section*/
.mainpage{
     background-color:rgb(230, 230, 230); 
     width:100%;   
}
.row{
    display: flex;
}
/*Text div*/   
.text {
    width: 50%;
    padding: 145px 50px;
    /*animation: fadeI 2s steps(10) ;*/
    animation: shiva 2s ease ;
}

@keyframes shiva {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.intro {
    font-size: 50px;
    font-weight: bold;
    color: #333;
}

.intro span {
    color: orange;
}

.role {
    font-size: 25px;
    margin: 10px 0;
    color: #555;
    min-height: 30px;
}

.text p{
    font-size: 18px;
    margin: 20px 0;
    line-height: 1.6;
    color: #444;
}

.buttons {
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    margin-right: 10px;
    font-size: 16px;
    border: none;
    background-color: orange;
    color: white;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 1px 14px 15px rgba(0,0,0,0.8);
}

.btn.outline {
    background-color: transparent;
    color: orange;
    border: 2px solid orange;
}

.btn.outline:hover {
    background-color: orange;
    color: white;
}


/* IMAGE CSS*/
.image{
    width: 50%;
    height: 450px;
}

#img1{
     width:300px;
    transform:rotate(-15deg);
}
#img2{
    width:300px ;
}

.dimg1{
     position: absolute;
      left: 910px;
      top: 50px;
      z-index: 10;
}

.dimg2{
   
    position:absolute;
      left: 860px;
      top: 150px;
      z-index: 5;
}
.dimg1:hover{
    transform: scale(1.3);
}
.dimg2:hover{
    transform: scale(0.8);
    z-index: 2;
}



/*For main page*/
      /* Tablet screens (768px and below) */
      @media (max-width: 768px) {
        .row {
          flex-direction: column-reverse;
          align-items: center;
          text-align: center;
        }
      
        .text {
          width: 100%;
          padding: 80px 20px 20px 20px;
        }
      
        .intro {
          font-size: 36px;
        }
      
        .role {
          font-size: 20px;
          min-height: 25px;
        }
      
        .text p {
          font-size: 16px;
        }
      
        .buttons {
          display: flex;
          justify-content: center;
          flex-wrap: wrap;
          gap: 10px;
        }
      
        .btn {
          margin: 5px 0;
          font-size: 15px;
          padding: 10px 20px;
        }
      
        .image {
          width: 100%;
          height: auto;
          position: relative;
          margin-top: 30px;
        }
      
        #img1, #img2 {
          width: 200px;
        }
      
        .dimg1, .dimg2 {
          position: static;
          display: inline-block;
          margin: 10px;
          transform: none !important;
        }
      
        .dimg1:hover, .dimg2:hover {
          transform: none;
        }
      
        .floating-icons {
          bottom:430px;
          right: 0px;
          opacity: 0.9;
          gap: 5px;
          z-index: 999;
        }
        
        .go-top {
          position: fixed;
          bottom: 20px;
          right: 20px;
        }
      
      }
      
      /* Mobile screens (480px and below) */
      @media (max-width: 480px) {
        .intro {
          font-size: 28px;
        }
      
        .role {
          font-size: 18px;
        }
      
        .text p {
          font-size: 14px;
        }
      
        .btn {
          font-size: 14px;
          padding: 10px 18px;
        }
      
        #img1, #img2 {
          width: 160px;
        }
      }




 /*Second Page About Section*/

.pg2{
    background: linear-gradient(to right, rgb(230, 230, 230), #f5d397);
    display: flex;
}

.animated-para-container {
  border-left: 5px solid orange;
  padding-left: 15px;
  transition: border-color 0.3s ease;
  margin: 20px 0;
  max-width: 60%;
}


.animated-para {
    white-space: pre-wrap; /* This preserves \n line breaks */
    font-size: 18px;
    color: #444;
    margin-top: px;
    width: 80%;
    line-height: 1.5;
    border-left: 4px solid orange;
    padding-left: 15px;
    font-style: italic;
    animation: fadeIn 2s ease-in;
  }


  #cimg {
    /* Let the image height match the paragraph's height */
    align-self: stretch; /* Match height of tallest sibling */
    display: flex;
    align-items: center; 
    max-width:50px;
    padding-left: 0px;
  }
  
  #cimg img {
    height:100%; /* Match the container height */
    max-width: 400px;
    width: auto;
    transition: all 0.4s ease;
    object-fit: contain;
  }

  #Abouttag {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    position: absolute;
    display: inline;
    left: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #3a3a3a;
    letter-spacing: 3px;
    margin: 0;
    white-space: nowrap;
  }

  /*responsive about me section*/
  @media (max-width: 768px) {
    
    .pg2{
      background: linear-gradient(to right, rgb(230, 230, 230), #f5d397);
      display: flex;
  }
  
  .animated-para-container {
    border-left: 5px solid orange;
    padding-left: 15px;
    transition: border-color 0.3s ease;
    margin: 20px 0;
    max-width: 100%;
  }
  
  
  .animated-para {
      white-space: pre-wrap; /* This preserves \n line breaks */
      font-size: 18px;
      color: #444;
      margin-top: px;
      width: 80%;
      line-height: 1.5;
      border-left: 4px solid orange;
      padding-left: 15px;
      font-style: italic;
      animation: fadeIn 2s ease-in;
    }
  
  
    #cimg {
      display: none;
    }
    

    
  }
  
/*Marque*/

.marq {
    background: linear-gradient(to left, #ebe2d5, #f5d397);
    background-color: #ffecd2;
    color: #333;
    padding: 10px;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 30px;
  }

  


/* Skill Section */
.skills {
    background: #f2f2f2;/*
    background:  rgb(230, 230, 230);*/
    padding: 150px 20px;
  }
  
  .skills-grid {
    display: grid;
    gap: 50px;
  }
  
 /* @media (min-width: 992px) {
    .skills-grid {
      grid-template-columns: 1fr 1fr;
      align-items: center;
    }
  
    .skills-content {
      display: flex;
      flex-direction: column;
      gap: 30px;
      padding-right: 0;
    }
  }*/
  
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .skills-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-right: 0;
  }

  /* Heading */
  .skills-heading {
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }
  
  .skills-heading .section-subtitle {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: bold;
    font-size: 14px;
    color: #666;
    letter-spacing: 3px;
    margin: 0;
  }
  
  
  
  .skills-title-group {
    flex: 1;
  }
  
  .skills-title-group .section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #222;
  }
  
  .skills-title-group .section-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
  }
  
  /* Toggle buttons */
  .skills-toggle {
    display: flex;
    gap: 10px;
  }
  
  .toggle-btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    background: #fff;
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .toggle-btn.active {
    background: #f4a261;
    color: #fff;
    box-shadow: 0 4px 16px rgba(244, 162, 97, 0.5);
  }
  
  /* Skill & Tool Cards Grid */
  .skills-box ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 0;
    list-style: none;
  }
  
  .skills-card {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 16px;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow .3s ease;
    cursor: pointer;
  }
  
  .skills-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 17px 20px rgba(0, 0, 0, 0.52);
  }
  
  .skills-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  
  .skills-card .tooltip{
    position: absolute;
    bottom: 100%; /* place it above the card */
    left: 20%;
    top: -35px;
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-5px);
    transition: 0.3s;
    pointer-events: none;
    white-space: nowrap;
  }
  
  .skills-card:hover .tooltip {
    opacity: 1;
    transform: translateY(-15px);
  }
  
  /* Hide Tool section by default */
  #tools-list {
    display: none;
  }
  
  /* Responsive: Stack on small screens */
  @media (max-width: 768px) {
    .skills-grid {
      grid-template-columns: 1fr;
    }
  
    .skills-heading {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .skills-heading .section-subtitle {
      writing-mode: horizontal-tb;
      transform: none;
      margin-bottom: 10px;
    }
  }
  
  /*--Project section*/
  .projects-section {
    background-color:rgb(230, 230, 230); 
    padding: 50px 20px;
  }
  
  .projects-section .section-subtitle {
    color: #4e4d4d;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  
  .projects-section .section-title {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
  }
  
  .featured-project {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
  }
  
  #mywork{
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    position: absolute;
    left: 800px;
    font-weight: bold;
    font-size: 24px;
    color: #818080;
    letter-spacing: 3px;
    margin: 0;
    white-space: nowrap;

  }

  /* 📱 Mobile Responsive */
@media (max-width: 768px) {
  #mywork {
    position: relative;
    left: 0;
    top: 10px;
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    text-align: center;
    font-size: 18px;
    padding: 10px 0;
  }
}
  .featured-img img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  
  .featured-content {
    flex: 1;
  }
  
  .featured-content h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
  }
  
  .featured-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
  }
  
  .featured-content .btn {
    margin-right: 15px;
    padding: 10px 20px;
    background: #f76c6c;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .featured-content .btn:hover {
    background: #e45a5a;
  }
  
  .featured-content .btn.outline {
    background: transparent;
    border: 2px solid #f76c6c;
    color: #f76c6c;
  }
  
  .featured-content .btn.outline:hover {
    background: #f76c6c;
    color: #fff;
  }
  
  .projects-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  
  .project-card {
    background: #fafafa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
    transition: 0.3s ease-in-out;
    padding-bottom: 15px;
  }
  
  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,1.1);
  }
  
  .project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .project-card h4 {
    font-size: 20px;
    margin: 10px 16px;
    color: #333;
  }
  
  .project-card p {
    font-size: 14px;
    color: #666;
    margin: 0 16px 10px;
  }
  
  .project-card a {
    text-decoration: none;
    color: #f76c6c;
    font-weight: 600;
    margin-left: 16px;
  }
  
  /*contact us css*/
  
  /* Contact Section Wrapper */

  /* Contact Section Wrapper */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px;
  background: #f1f1f1;
  font-family: "Poppins", sans-serif;
}

/* Left Content (text + list) */
.contact-content {
  flex: 1 1 350px;
  max-width: 500px;
}

.section-subtitle {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 500;
  color: gray;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-text {
  font-size: 15px;
  color: #555;
  margin-bottom: 30px;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item-icon ion-icon {
  font-size: 22px;
  color: #000;
  margin-top: 5px;
}

.contact-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #000;
}

.contact-info {
  display: block;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.contact-info:hover {
  color: #000;
}

.contact-social-list {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.contact-social-link {
  font-size: 20px;
  color: black;
  position: relative;
  display: inline-block;
  transition: 0.3s ease;
}

.contact-social-link:hover {
  color: #f76c6c;
}

.tooltip {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  background-color: #000;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: 0.3s;
}

.contact-social-link:hover .tooltip {
  opacity: 1;
}

/* Form Section */
.contacform {
  flex: 1 1 350px;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.contact-form {
  flex: 1 1 400px;
  width: 600px;
  max-width: 600px;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  padding: 40px 70px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.41);
  box-sizing: border-box;
}

.form-wrapper {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.input-wrapper {
  position: relative;
}

.input-field {
  width: 100%;
  padding: 12px 1px 12px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: 0.3s border-color ease;
}

.input-field:focus {
  border-color: #000;
}

.input-wrapper ion-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
}

textarea.input-field {
  height: 100px;
  resize: vertical;
}

/* Send Button */
.btn-primary {
  width: 100%;
  padding: 12px;
  margin-left: 5px;
  font-size: 14px;
  font-weight: 600;
  background: #000;
  color: white;
  border: none;
  border-radius: 6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;

}

.btn-primary:hover {
  background: #333;
}

   

/*go to top button*/

.go-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background:transparent;
  color: black;
  border: 2px;
  border-color: #222;
  padding: 12px 14px;
  font-size: 20px;
  border-radius: 50%;
  box-shadow: 1px 4px 12px rgba(0, 0, 0, 1.15);
  cursor: pointer;
  opacity: 1;
  visibility: hidden;
 
  z-index: 999;
}

.go-top.show {
  opacity: 1;
  visibility: visible;
}

.go-top:hover {
  background: #e76f51;
}

/*Footer*/
.foot{
  background-color: #3a3a3a;
  color: white;
  text-align: center;
  padding: 30px;
}
.Ftext{
  padding: 10px;
}

.foot a{
  text-decoration: none;
  color: #eba651;
}
.foot h2:hover{
  color: #87d7ec;
  transform: scale(1.5);
}
.foot a:hover{
  color: #f18b8b;
  transform: scale(1.5);
}
#ftell:hover{
  transform: scale(1.5);
}
#Thanks{
  font-size: 40px;

}

/*icon on main page*/

/*floting icons*/

.floating-icons {
  position: fixed;
  bottom:230px;
  right: 10px;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 999;
}

.floating-icons a {
  background:rgb(45, 45, 44);
  color:rgb(230, 230, 230);
  padding: 4px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transition: transform 0.3s;
}

.floating-icons a:hover {
  transform: scale(1.2);
  background: #f1b554;
}



/* ----------------------------------
   📱 Mobile Responsive Styles
   ---------------------------------- 
*/


/*for nav bar*/
