html{
    scroll-behavior: smooth;
          overflow-x: hidden;  /* === Stop Horizontal Scroll on Mobile === */

}
body{
    margin: 0%;
    padding: 0;
    background-color: hsl(0, 0%, 0%);
    color: #E0E0E0;
          overflow-x: hidden;  /* === Stop Horizontal Scroll on Mobile === */
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #00ffff;
}

/* Navbar full */
.navbar {
  background-color: black;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Branding + hamburger */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.navbar h3 {
  font-size: 1.5rem;
  color: #00ffff;
}

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 2rem;
  color: #00ffff;
  cursor: pointer;
  user-select: none;
}

/* Nav links */
.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  list-style: none;
  padding: 10px 20px;
  background-color: black;
}

.nav-links li a:hover {
  color: #f1981a;
}

/* Mobile View */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    display: none;
    padding: 10px 20px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }
}
   
#pic{
    border: 2px solid white;
    margin-left: 300px;
    gap: 40px;
    height: 300px;
    width: 300px;
    text-align: center;
    font-size: 3em;
    align-content: end;
    float: right;
    margin-top: 155px;
    margin-right: 200px;
    background-image: url(photo.jpg);
    border-radius: 90%;
    background-size:cover;
    border-color: skyblue;
}
p{
    margin-top: 130px;
    margin-left: 70px;
    font-size: 1.2em;
}
h1{
    margin-left: 70px ;
    margin-top: 0px ;
    font-size: 3.8em;
}
#home P{
        background: linear-gradient(30deg , hsl(0, 29%, 85%),hsl(0, 100%, 50%) );
      background-clip: text ;
      -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;


}
#home h1{
    background: linear-gradient(30deg , hsl(0, 29%, 85%),hsl(0, 100%, 50%) );
      background-clip: text ;
      -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
}
#devop{
    margin-left: 70px;
    margin-top: 0px;
background: linear-gradient(135deg ,  hsl(0, 29%, 85%),hsl(0, 100%, 50%));
      background-clip: text ;
      -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;


}
hr{
    border-style:dashed;
}
#about{
    padding: 60px 20px;
    color: rgb(228, 196, 196);
}
#about:hover{
    color: rgb(221, 206, 206);
    transition: .3s ease;

}
#about h2{
    color: rgb(224, 200, 247);
}
#about-text h2{
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 15px;
        transform: scale(1.05);

}
#about h2:hover{
    color: #cba1ff;
}
.about-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: auto;
    gap: 40px;
    flex-wrap: wrap;
        transition: transform 0.4s ease, background-color 0.4s ease;

    
}
.about-text{
    flex: 1;
    min-width: 300px;

}
.about-container:hover{
            transform: scale(1.03);

}
#about-text p{
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align:justify;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@keyframes fadeInUp {
    0%{
        opacity: 0;
        transform: translateY(40px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
    
}
.fade-in{
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;

}
.about-img img{
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0,0,0,.15) ;

}
@media (max-width:768) {
    .about-container{
        flex-direction: column-reverse;
        text-align: center;
    }
    .about-img{
        margin-bottom: 20px;
    }
    .about-text{
        text-align: center;
    }
}
.about-img img:hover{
    transform: scale(1.03) ;
}
#skills{
    padding: 50px 20px;
    text-align: center;
    color: #cba1ff;

}
#skills h2{
    font-size: 2em;
    border: 2px solid rgb(235, 155, 155);
        margin-bottom: 70px;
    border-radius: 100%;
}
#skill-list{
    display: inline-block;
    margin-left: 30px;
    height: 300px;
    width: 300px;
    border: 2px dashed rgb(87, 40, 40);
    border-radius: 40%;
}
#skill-list:hover{
        transform: scale(1.09);
    background-color: rgb(18, 17, 17);
    color: hsl(0, 0%, 66%);;
}

#skill-list h3{
    margin : 15px;
    border-bottom: 1px dashed rgb(2, 2, 2);
    color: #00ffff;
}
#skill-list p{
    text-align:start;
    margin: 25px;
    color: hsl(0, 0%, 56%);
}
.skills-grid {
  width: 100%;
  flex-wrap: wrap;

}
#project    {
    padding: 60px 20px;
    /* border: 2px dotted aquamarine; */


}
/* #project:hover{
    transform: scale(1.03);
} */
#project h2{
    font-size: 2em;
    text-decoration: underline;
    font-weight: bold;
    color: #cba1ff;
}
.project-list h3{
    padding: 5px 10px;
    font-size: 1.3em;
    color:#90ee90 ;

}
.project-list strong{
    font-size: 1.2em;
    font-weight: bold;
    color: hsl(0, 0%, 61%);

}
.project-list a{
    font-size: 1.5em;
    margin-left: 50px;
    color: #00ffff;

}
.project-list a:hover{
    color: #0d9d9d;
 transform: scale(1.05);
 transition: .3s ease;

}
.project-list a:visited{
    color:  #0d9d9d;
}

#project p{
    margin: 15px;;
        color: hsl(0, 0%, 56%);

}
.project-list{
    border: 2px solid grey;
    margin: 10px;
    background-color: black;
    border-radius: 20px;
}
.project-list:hover{
    background-color: rgb(27, 27, 27);
    transform: scale(1.03);

}
#resume p{
    margin: 15px;

}
/* Resume */
#resume {
  padding: 60px 20px;
  color: #aaa;
  text-align: center;
}

#resume h2 {
  color: #cba1ff;
  margin-bottom: 10px;
}

#resume a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: aqua;
  color: #000;
  border-radius: 6px;
  transition: 0.3s;
}

#resume a:hover {
  background: transparent;
  color: #0efafa;
  border: 1px solid #0efafa;
}
#contact {
  padding: 60px 20px;
  background-color: #000;
  color: #fff;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.contact-desc {
  flex: 1;
  min-width: 300px;
}

.contact-desc h1 {
   background: linear-gradient(30deg , hsl(0, 29%, 85%),hsl(343, 85%, 69%) );
      background-clip: text ;
      -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;

  margin-bottom: 30px;
  text-align: center;
}

.icon-text {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.icon-text img {

  width: 40px;
  height: 40px;
  border-radius: 30%;
  padding: 10px;
  display: inline-block;
 background: #000;
}


.icon-text h5 {
  color: #d29034;
  margin: 0;
}

.icon-text p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #aaa;
}

/* Contact Form */
#feedback {
  flex: 1;
  min-width: 300px;
}

#feedback h2 {
  color: #00ffff;
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px;
}

input, textarea {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  height: 150px;
}

#btn {
  background-color: #f1981a;
  border: none;
  color: #000;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.hidden {
  display: none;
}


#btn:hover {
  background-color: #d29034;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .contact-box {
    flex-direction: column;
    align-items: center;
  }

  .icon-text {
    flex-direction: row;
    align-items: flex-start;
  }

  .icon-text img {
    margin-bottom: 0;
  }
}
footer{
  background: #2d2d2d;
  color: white;
  text-align: center;
  margin: 0;
  height: 100px;
  justify-content: center;
  padding: 0%;
}
footer p{
    margin: 0;
    padding: 10px;
    justify-content: center;
}
footer a{
     color: skyblue;
}
.about-container,
.project-list {
    transition: transform 0.4s ease, background-color 0.4s ease;
}
.about-container:hover {
    transform: scale(1.03);
    background-color: transparent;
}
.project-list:hover {
    transform: scale(1.03);
    background-color: #1a1a1a;
}

/* === Task 4: Responsive About Section (photo under text) === */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about-img {
        margin-bottom: 20px;
    }
    .about-text {
        text-align: center;
    }
}

/* === Task 5: Flip Card Animation === */
.flip-card {
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    
}
.flip-card:hover {
    transform: rotateX(180deg);
}
