* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}



body {
    font-family: "Montserrat", sans-serif;


    color: #fff;
    transition: background-color 0.5s, color 0.5s;
}

.animated-text {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(
      270deg,
      #e071c9,
      #00ffff,
      #00ff00,
      #ffff00,
      #9328db,
      #e53bc3
    );
    background-size: 1200% 1200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animateBg 8s linear infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  }

  @keyframes animateBg {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }


nav {
    position: sticky;
    top: 0;
    background-color: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 25px 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #00f0ff;
}

.hamburger {
    display: none; 
    font-size: 2rem;
    cursor: pointer;
  }



/* home  */


.profile-img {
    width: 450px;
    height: 250px;
    border-radius: 20px;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.5);
    transform: rotateY(15deg);
    transition: transform 0.5s;
}

#home {
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 90px;
}


.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    gap: 40px;
    max-width: 1200px;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.btn {
    position: relative;
    padding: 12px 24px;
    border: 2px solid #4b6e7e;
    color: white;
    text-decoration: none;
    font-weight: bold;
    overflow: hidden;
    border-radius: 6px;
    transition: color 0.4s ease;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: white;
    z-index: -1;
    transition: width 0.4s ease;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: black;
}

.hero-left {
    flex: 1;
    min-width: 280px;
    text-align: left;
    font-size: 1.5rem;
}

@keyframes blink {
    50% {
        background-color: transparent;
    }
}

.cursor {
    display: inline-block;
    background-color: #fff;
    width: 2px;
    animation: blink 0.7s steps(1) infinite;
}

.hero-left span {
    font-weight: 600;
    font-size: xxx-large;
}

.hero-right {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

/* about  */

#about {
    padding: 80px 20px;
    color: #fff;
}

.about-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 250px;
    max-width: 1100px;
    margin: auto;
}

.about-img-container {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.about-img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 10%;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.about-content {
    flex: 2;
    min-width: 280px;
}

.about-description {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.icon {
    margin-right: 10px;
    color: #00f0ff;
}


/* skills  */

#skills {
    padding: 80px 20px;
    background-color: #121212;
    color: #fff;
}

.skills-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.skill-box {
    background: #00f0ff22;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.skill-box i {
    font-size: 1.6rem;
}







@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}




.bounce i {
    animation: bounce 2s infinite ease-in-out;
}




.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.skills-container.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-box {
    background: #00f0ff22;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.skill-box i {
    font-size: 1.6rem;
}


/* projects  */



/* resume */

#resume {
    padding: 80px 20px;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
}

.resume-heading {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.resume-text {
    margin-bottom: 30px;
}

.resume-btn {
    padding: 12px 24px;
    background-color: #00f0ff;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
}




/* contact  */



#contact {
    text-align: center;
    font-family: Arial, sans-serif;
    min-height: 10vh;
    padding: 80px 20px;
    background-color: #000;
    color: white;
}


.contact-heading {
    color: #e9e2e2;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}



.contact-icons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

.contact-icons a {
    color: #00f0ff;
    text-decoration: none;
    font-size: 30px;
    
    transition: transform 0.3s ease, color 0.3s ease;
}


.contact-icons {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 30px;
}



.contact-icons a:hover {
    color: #00f0ff;
    transform: scale(1.2);
}




  .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
  }

  .info-item {
    flex: 1 1 200px;
    text-align: left;
    max-width: 200px;
  }

  .info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f5ebeb;
  }

  .info-item p {
    color: #9cb6c4;
  }

  .contact-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
  }

  .contact-icons a {
    font-size: 1.8rem;
    color: #e9e0e0;
    transition: transform 0.3s, color 0.3s;
  }






.typed-text {
    font-weight: bold;
}

/* for responsive css  */



@media (max-width: 768px) {
    body{
        width: fit-content;
    }

    .hamburger {
        display: block; 
      }
   
    .navlinks{
       display: grid;
       grid-template-columns: repeat(3,1fr);
    position: absolute;
    top: 60px;
    right: 0;
    background: #111;
    width: 100%;
    display: none; 
    text-align: center;
    padding: 1rem 0;
    }

    .navlinks.active{
        display: flex;
    }
  
    .hero-content {
      flex-direction: column;
      text-align: center;
    
    }
  
    .hero-left, .hero-right {
      padding: 0.5rem;
      margin: auto;
    }

    .projects-wrapper {
       display: grid;
       grid-template-columns: repeat(1,1fr);
        justify-content: center;
        gap: 10px;
    
    }
  
    .skills-container,
    .projects-wrapper,
    .statics-wrapper {
    display: grid;
    grid-template-columns: repeat(2,1fr);
      align-items: center;
    }
  
    .contact-container {
      flex-direction: column;
    }
}



/* Statics wrapper */
.github-stats-wrapper{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:30px;
}

.stat-box{
  background:#111;
  padding:20px;
  border-radius:12px;
  flex:1 1 150px;
  min-width:150px;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.6);
}

.stat-box h3{
  color:#00ffcc;
  margin:0 0 8px 0;
  font-size:22px;
}

.stat-box p{
  color:#ccc;
  margin:0;
  font-size:14px;
}

/* Projects grid */
.repo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:20px;
}

.repo-card{
  background:#1a1a1a;
  padding:16px;
  border-radius:10px;
  box-shadow:0 6px 20px rgba(0,0,0,0.6);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:transform 0.2s;
  overflow-wrap: break-word;
}

.repo-card:hover{
  transform:translateY(-5px);
  background:#222;
}

.repo-card h4{
  color:#00ffcc;
  margin:0 0 10px 0;
  font-size:16px;
}

.repo-card p{
  color:#ccc;
  font-size:14px;
  margin:0 0 8px 0;
}

.repo-card a{
  color:#00ffcc;
  text-decoration:none;
  font-weight:600;
  margin-top:auto;
}




.github-stats-wrapper{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:30px;
}

.stat-box{
  background:#111;
  padding:20px;
  border-radius:12px;
  flex:1 1 150px;
  min-width:150px;
  text-align:center;
  box-shadow:0 4px 12px rgba(255,255,255,0.1);
}

.stat-box h3{
  color:#00ffcc;
  margin:0 0 8px 0;
  font-size:22px;
}

.stat-box p{
  color:#ccc;
  margin:0;
  font-size:14px;
}

.repo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:20px;
}

.repo-card{
  background:#111;
  padding:16px;
  border-radius:10px;
  box-shadow:0 6px 20px rgba(255,255,255,0.2);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:transform 0.2s;
  overflow-wrap: break-word;
}

.repo-card:hover{
  transform:translateY(-5px);
  background:#222;
}

.repo-card h4{
  color:#00ffcc;
  margin:0 0 10px 0;
  font-size:16px;
}

.repo-card p{
  color:#ccc;
  font-size:14px;
  margin:0 0 8px 0;
}

.repo-card a{
  color:#00ffcc;
  text-decoration:none;
  font-weight:600;
  margin-top:auto;
}
