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

body{
    width: 100%;
    max-width: 1400px;
    display: block;
    margin: auto;
    min-height: 100vh;
    background: #191919;
    font-family: sans-serif;
}

.navbar{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    background: #1a1a1a;
}

.link-group{
    list-style: none;
    display: flex;
}

.link a{
    color: #fff;
    opacity: 0.5;
    text-decoration: none;
    text-transform: capitalize;
    padding: 10px 30px;
    margin: 0 20px;
    line-height: 80px;
    transition: .5s;
    font-size: 20px;
}

.link a:hover, .link.active a{
    opacity: 1;
}

/* Main Content */
 main {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: auto;
} 

 section {
  margin-bottom: 2rem;
} 

/* home-section */
.home-section{
    width: 100%;
    height: 100vh;
    padding: 0 150px;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 20px;
    transition: 1s; 
}

.hero-heading{
    color: #fff;
    font-size: 120px;
    text-transform: capitalize;
    font-weight: 300;
}

.home-img{
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 50%;
    object-fit: cover;
    opacity: 0.2;
    
}
 /* image sliding effect */
 .home-img {
  animation: slide 4s ease-in-out infinite;
}

@keyframes slide {
  0% { transform: translateX(0); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}


/*typing effect */
.hero-heading {
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  font-size: 2.5rem;
  animation: typing 3s steps(25, end) infinite;
}

/* Typing animation only */
@keyframes typing {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* about-section */
.about-heading {
    font-size: 40px;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.about-section{
    width: 100%;
    min-height: 100vh;
    padding: 150px 100px 0;
}
.about{
    width: 100%;
    display: grid;
    grid-template-columns: 30% 65%;
    grid-gap: 40px;
}
.about-img-container{
    position: relative;
}

.about-info{
    color: #fff;
    opacity: 0.6;
    font-size: 20px;
    line-height: 40px;
}

.about-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.download-cv-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.download-cv-btn:hover {
  background-color: #45a049;
}

/* timeline */
.timeline{
    display: block;
    width: 80%;
    margin: 150px auto;
}

.timeline .heading{
    margin-bottom: 60px;
}

.card{
    width: 45%;
    padding: 30px;
    border-radius: 10px;
    color: #fff;
    display: block;
    margin: -50px 0;
    position: relative;
    background: #f00;
}

.card:nth-child(even){
    margin-left: auto;
}

.card:nth-child(even):before{
    content: '';
    position: absolute;
    left: -15%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 5px solid #191919;
    border-radius: 50%;
}

.card:nth-child(even):after{
    content: '';
    position: absolute;
    left: -8.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 7%;
    height: 2px;
    background: #fff;
    z-index: -1;
}

.card:nth-child(odd):before{
    content: '';
    position: absolute;
    right: -13%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 5px solid #191919;
    border-radius: 50%;
}

.card:nth-child(odd):after{
    content: '';
    position: absolute;
    right: -8.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 7%;
    height: 2px;
    background: #fff;
    z-index: -1;
}

.card:nth-child(2), .card:nth-child(2):before{
    background: #ff4f4f;
}
.card:nth-child(3), .card:nth-child(3):before{
    background: #ffb84f;
}
.card:nth-child(4), .card:nth-child(4):before{
    background: #3dca5c;
}
.card:nth-child(5), .card:nth-child(5):before{
    background: #565252;
}
.card:nth-child(6), .card:nth-child(6):before{
    background: #4fa0ff;
}

.card:nth-child(even) .card-body:before{
    content: '';
    position: absolute;
    left: -12%;
    top: 0;
    width: 0px;
    height: 100%;
    border: 1px dashed #fff;
    z-index: -1;
}

.card-title{
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 20px;
}

/* Interests Section */
.interests-section {
  padding: 10px 10px;
  background-color: #191919;
}

.interests-section .heading {
  text-align: center;
  font-size: 60px;
  color: #fff;
  text-transform: capitalize;
  font-weight: 300;
  margin-bottom: 20px;
}

.interests-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.interest-card {
  background: #1e1e1e;
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interest-card i {
  font-size: 40px;
  margin-bottom: 20px;
  color: #4fa0ff;
}

.interest-card h2 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 400;
}

.interest-card p {
  font-size: 16px;
  opacity: 0.7;
  line-height: 1.6;
}

.interest-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* skills */
.skill-section{
    position: relative;
    margin: 100px 0;
}

.heading{
    text-align: center;
    font-size: 60px;
    color: #fff;
    text-transform: capitalize;
    font-weight: 300;
    margin-bottom: 100px;
}

.skills-container{
    width: 95%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 100px;
    color: #fff;
}

.skill-card{
    position: relative;
}

.skill-img{
    display: block;
    margin: auto;
    height: 200px;
}

.skill-name{
    font-size: 30px;
    font-weight: 300;
    text-align: center;
    text-transform: capitalize;
    margin: 30px 0 20px;
}

.skill-info{
    text-align: center;
    opacity: 0.5;
    font-size: 18px;
    line-height: 30px;
}

.skill-level{
    position: absolute;
    top: 80px;
    right: 0;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    border-radius: 50%;
    border: 10px solid;
}

.skill-card:nth-child(1) .skill-level{
    background: #ff4f4f28;
    border-color: #ff4f4f;
    color: #ff4f4f;
}

.skill-card:nth-child(2) .skill-level{
    background: #4fa0ff28;
    border-color: #4fa0ff;
    color: #4fa0ff;
}

.skill-card:nth-child(3) .skill-level{
    background: #ffed4f28;
    border-color: #ffed4f;
    color: #ffed4f;
}

.skill-card:nth-child(4) .skill-level{
    background: #52ff4f28;
    border-color: #52ff4f;
    color: #52ff4f;
}

.skill-card:nth-child(5) .skill-level{
    background: #4fdfff28;
    border-color: #4fdfff;
    color: #4fdfff;
}

.project-section {
    width: 100%;
    padding: 80px 20px;
    background: #111;
}

.project-heading {
    font-size: 60px;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 60px;
    color: #f0f0f0;
    letter-spacing: 2px;
    font-weight: 600;
}

.project-container {
    display: grid;
    grid-template-columns:repeat(2,1fr) ;
    gap: 40px;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

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

.project-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: filter 0.5s;
}

.project-card:hover .project-img {
    filter: brightness(40%);
}

.project-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.5s;
}

.project-card:hover .project-content {
    opacity: 1;
}

.project-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.project-info {
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 90%;
}

.project-btn-grp {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    text-transform: capitalize;
    cursor: pointer;
    transition: 0.3s;
}

.project-btn a {
    color: inherit;
    text-decoration: none;
}

.project-btn.github {
    background-color: #fff;
    color: #000;
}

.project-btn.github:hover {
    background-color: #16da30;
}

.project-btn.live {
    background: none;
    border: 2px solid #fff;
    color: #57afe2;
}

.project-btn.live:hover {
    background-color: #dbe920;
    color: #000;
}


 /* contact section */

.contact {
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(to bottom right, rgba(0,0,0, 0.9), rgba(36,11,54, 0.8), rgba(195,20,50,0.9)), url("https://i.imgur.com/3vacZxN.jpg") center no-repeat;
  background-size: cover;
}

.contact-header {
  font-family: "Montserrat", sans-serif;
  margin: 8rem 10rem 3rem;
  text-align: center;
}

#co-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c31432;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

#co-text {
  font-size: 3.5rem;
  font-weight: 600;
  color: white;
  padding-bottom: 2rem;
  line-height: 1.4;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-self: center;
  line-height: 2;
  width: 80%;
  background-color: rgba(0,0,0,0.6);
  margin-bottom: 10rem;
  border-radius: 12px;
  overflow: hidden;
}

.contact-form {
  font-family: "Montserrat", sans-serif;
  padding: 5rem;
}

#form-title {
  color: #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-left: 4rem;
  margin-bottom: 3rem;
}

fieldset {
  border: none;
}

.form-field {
  outline: none;
  width: 200%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

#name, #email, #subject, #message {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  outline: none;
  background: transparent;
  border: none;
  letter-spacing: 1.5px;
  font-size: 1rem;
  line-height: 2.2rem;
  padding-bottom: 0.7rem;
}

textarea, #message {
  width: 100%;
  color: #fff;
  overflow: visible;
  font-size: 1rem;
  line-height: 1.6;
}

#form-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  border: none;
  color: white;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  width: 200%;
  height: 60px;
  background-color: #c31432;
  cursor: pointer;
  transition: all .3s ease;
  border-radius: 5px;
}

#form-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 0 15px 0 #000;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 5rem;
  background-color: rgba(0,0,0,0.3);
}

.contact-info h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  color: #c31432;
  margin-bottom: 10px;
}

.contact-info a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: #ccc;
  font-size: 1rem;
  letter-spacing: 1.5px;
  line-height: 2.8rem;
  margin-bottom: 2rem;
  transition: all .3s ease;
}

.contact-info a:hover {
  transform: translateY(-2.5%);
  color: #fff;
}

.contact-info .fab {
  font-size: 1.8rem;
  line-height: 3rem;
  padding-left: 1.5rem;
  color: #aaa;
  cursor: pointer;
  transition: all .3s ease;
}

.fab:hover {
  transform: scale(1.2);
}

.contact-links i {
  color: #0077b5; 
  font-size: 24px; 
  transition: color 0.3s ease; 
}

/* Optional: Different color for each icon */
.contact-links a:nth-child(1) i {
  color: #0077b5; /* LinkedIn blue */
}

.contact-links a:nth-child(2) i {
  color: #333; /* GitHub dark gray */
}

.contact-links a:nth-child(3) i {
  color: #25D366; /* WhatsApp green */
}

/* Optional: Hover effect */
.contact-links a:hover i {
  color: #ff6600; /* Changes icon color when hovered */
}


/* Footer */
 footer {
  text-align: center;
  padding: 1rem;
  background-color: #eee;
  font-size: 0.9rem;
} 
/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 10px 0;
  }

  .link-group {
    flex-direction: column;
    align-items: center;
  }

  .link a {
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    line-height: 40px;
  }

  .home-section {
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
    height: auto;
  }

  .hero-heading {
    font-size: 40px;
  }

  .home-img {
    display: none;
  }

  .about-section {
    padding: 100px 20px 0;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .timeline {
    width: 90%;
    margin: 80px auto;
  }

  .card {
    width: 100%;
    margin: 50px 0;
  }

  .card:nth-child(even),
  .card:nth-child(odd) {
    margin-left: 0;
    margin-right: 0;
  }

  .card:before,
  .card:after,
  .card:nth-child(even):before,
  .card:nth-child(even):after,
  .card:nth-child(odd):before,
  .card:nth-child(odd):after {
    display: none;
  }

  .skills-container {
    grid-template-columns: 1fr;
    grid-gap: 40px;
  }

  .interests-container {
    grid-template-columns: 1fr;
  }

  .contact-content {
    flex-direction: column;
    width: 100%;
    padding: 20px;
  }

  .contact-form,
  .contact-info {
    padding: 20px;
    width: 100%;
  }

  .form-field,
  #form-btn {
    width: 100%;
  }

  .contact-header {
    margin: 4rem 2rem 2rem;
  }

  #co-text {
    font-size: 2rem;
  }

  .project-container {
    grid-template-columns: 1fr;
  }

  .project-img {
    height: 200px;
  }
}

