 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    text-decoration: none;
    outline: none;
    scroll-behavior: smooth;
    font-family:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
:root{
    --bg-color:#fff;
    --snd-bg-color:#d5fdf9;
    --text-color:#000;
    --main-color:#fff;
    --img-hover-color:rgba(40, 5, 100, 0.717);
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
}
section{
    min-height:100vh;
    padding: 10rem 9% 2rem;

}
#particles-js {
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: -1;
    top: 0;
    left: 0;
    background: #ffffff; /* match your theme */
}

.header{
    position:fixed;
    width:100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: var(--main-color);
    backdrop-filter: blur(10px) ;
    transition: all 0.5s ease;
}

.logo{
    margin-left: 15rem;
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover{
    transform: scale(1.05) ;
    color:#FC8C05
}
.navbar a{
    font-size: 2.2rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
    background-color: white;
}
.navbar a:hover,.navbar a.active{
    color :#ff5e01;
    text-decoration: underline solid #ff5e01 0.2rem;
}
.navbar a.home-nav {
  text-decoration: underline rgb(104, 16, 220) 0.2rem ;
  color:rgb(104, 16, 220);
}
.navbar a.home-nav:hover{
    color :#ff5e01;
    text-decoration: underline solid #ff5e01 0.2rem;
}
.home{
    display:flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(215, 209, 209, 0.403);
}

.home-img img{
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    animation:floatImage 4s ease-in-out infinite;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d
}

.home-img img:hover{
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);

}
@keyframes floatImage {
    0%{
        transform:translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}
.home-content{
    margin-left: 5rem;

}
.home-content h3{
    font-size: 3.7rem;
    font-weight: 700;
    color:#0a1aa5
}
.home-content h3:nth-of-type(2)
{
    margin-bottom: 2rem;
    color:black
}
.multiple-text{
    color:#c1121f
}
.home-content h1 {
    color:#0a1aa5;
    font-size: 6rem;
    font-weight:700;
    line-height:1.3;
}
.last-name{
    color:#FC8C05;
}
.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height:42px;
    background: transparent;
    border:0.2rem solid rgb(27, 2, 110);
    border-radius: 50%;
    font-size: 3rem;
    color: rgb(11, 172, 172);
    background-color: black;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}
.social-media a:hover{
    transform: scale(1.2) translateY(-10px);
    background-color:blue ;
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color) ;
}
.btn{
    display: inline-flex;
    padding: 1rem 2.8rem;
    background:rgb(50, 8, 187);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: #ffff;
    letter-spacing: 0.1rem;
    transition: 0.3s ease;
}
.btn:hover{
    box-shadow:0 0 1.6rem var(--main-color) ;
}
/* About section */
.about section
{
    height: 500px;
}
#about {
  min-height: 50vh;   
  padding: 5rem 9% 2rem;
}

.about{
    display: flex;
    align-items: top;
    
    justify-content: center;
    gap: 2rem;
    background: var(--main-color);
}
.about-img img{
    width: 25vw;
    border:2px solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease;
}
.about-img img:hover{
    box-shadow: 0 0 25px var(--main-color) , 0 0 35px var(--main-color) ,0 0 45px var(--main-color);
}

.heading{
    font-size: 6rem;
    text-align: left;
}
.heading span{
    color:rgb(176, 17, 176)
}
.about-content{
    padding: 0 4rem;
    height: 500px;
}
.about-content h2{
    text-align: left;
    line-height: 1.2;
}
.about-content h3{
    font-size: 3rem;
}
.about-content p{
    font-size: 2.2rem;
    margin:2rem 0 3rem ;
    line-height: 5rem;
}
/* Skills Section */
/* Skills Section */
.skills {
  padding: 6rem 5% 8rem;
  background: #2A0066; /* Deep purple */
  text-align: center;
  color: #fff;
}

.skills-heading {
  font-size: 5rem;
  margin-bottom: 4rem;
  color: #fff;
}

.skills-heading span {
  color: #ffdd00;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(4, 200px);
  gap: 3rem 4rem;
  justify-content: space-evenly; /* Center the grid itself */
  align-items: center;
}

/* Individual skill card */
.skill-card {
  background-color: #0D0D0D;
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.skill-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1.2rem;
}

.skill-card p {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
}

/* ===== Qualification Section ===== */
.Qualification {
  background-color: white;
  color: black;
  padding: 8rem 0;
  z-index: 0;
  font-family: 'Poppins', sans-serif;
}

.Qualification-heading {
  font-size: 5rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4rem;
}

.Qualification-heading span {
  color: #42bb1ae1;
}

/* ===== Timeline Container ===== */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 100px auto;
  min-height: 60vh;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #000, #555);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 0; /* fixed layering */
}

/* ===== Each Timeline Container ===== */
.container {
  padding: 10px 50px;
  position: relative;
  width: 50%;
  margin: 50px 0;
  opacity: 1; /* changed to 1 to ensure visibility */
  transform: none;
  transition: all 0.8s ease;
  z-index: 2; /* ensures above the line */
}

/* ===== Text Box Styling ===== */
.text-box {
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(236, 114, 7, 0.9), rgba(255, 149, 5, 0.9));
  position: relative;
  border-radius: 12px;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.text-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.text-box h2 {
  font-weight: 600;
  margin-bottom: 8px;
}

.text-box small {
  display: inline-block;
  margin-bottom: 15px;
  opacity: 0.9;
  font-size: 2rem;
}

/* ===== Timeline Arrows ===== */
.left-container-arrow,
.right-container-arrow {
  height: 0;
  width: 0;
  position: absolute;
  top: 20px;
  z-index: 3;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.left-container-arrow {
  border-left: 15px solid rgba(236, 114, 7, 0.9);
  right: -15px;
}

.right-container-arrow {
  border-right: 15px solid rgba(236, 114, 7, 0.9);
  left: -15px;
}

/* ===== Left & Right Containers ===== */
.left-container {
  left: 0px;
}

.right-container {
  left: 50%;
}

/* ===== Connector Dots ===== */
.container::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ec7207;
  border: 3px solid #fff;
  border-radius: 50%;
  top: 35px;
  z-index: 3;
}

.left-container::before {
  right: -13px;
}

.right-container::before {
  left: -13px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .timeline::after {
    left: 30px;
  }

  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .text-box {
    font-size: 1.4rem;
  }

  .left-container,
  .right-container {
    left: 0;
  }

  .left-container::before,
  .right-container::before {
    left: 15px;
  }
}
/* ===== Contact Section ===== */

.contact {
  background-color: #f8f9fa;
  padding: 8rem 0;
  min-height: unset;
  font-family: 'Poppins', sans-serif;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 4rem;
  flex-wrap: wrap;
}

.contact-left {
  flex: 1;
  min-width: 320px;
}

.contact-left h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-left h2 span {
  color: #42bb1ae1;
}

.contact-left p {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.4rem;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #42bb1ae1;
  box-shadow: 0 0 10px rgba(66, 187, 26, 0.2);
}

.contact-btn {
  background: linear-gradient(135deg, #42bb1ae1, #2f7d11);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  width: fit-content;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #2f7d11, #42bb1ae1);
  transform: scale(1.05);
}

/* ===== Contact Image ===== */
.contact-right {
  flex: 1;
  min-width: 320px;
}

.contact-right img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  margin-left: 100px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .input-group {
    flex-direction: column;
  }

  .contact-btn {
    margin: 0 auto;
  }
}

/* ===== Footer ===== */
.footer {
  background-color: #0d0d0d;
  color: #fff;
  padding: 2rem 5%;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer p {
  font-size: 1.4rem;
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  color: #fff;
  border-radius: 50%;
  background-color: #222;
  transition: 0.3s;
}

.footer-socials a:hover {
  background-color: #FC8C05; /* theme orange */
  color: #fff;
  transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .footer-container {
    gap: 0.8rem;
  }
  .footer-socials a {
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
  }
}

/* ============ Tablet Devices (≤1024px) ============ */
@media (max-width: 1024px) {
  html {
    font-size: 55%;
  }

  .logo {
    margin-left: 5rem;
  }

  .home {
    flex-direction: column;
    padding: 6rem 5% 2rem;
    text-align: center;
  }

  .home-img img {
    width: 40vw;
    margin-bottom: 2rem;
  }

  .home-content {
    margin-left: 0;
  }

  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    flex-direction: column;
    padding: 4rem 5%;
  }

  .about-img img {
    width: 40vw;
    margin-bottom: 2rem;
  }

  .about-content {
    height: auto;
    padding: 0;
    text-align: center;
  }
}

/* ============ Mobile Devices (≤768px) ============ */
@media (max-width: 768px) {
  html {
    font-size: 50%;
  }

  .header {
    padding: 1.5rem 3%;
  }

  .navbar {
    display: none; /* Optional: Add mobile navbar if needed */
  }

  .home h1 {
    font-size: 4.5rem;
  }

  .home-content h3 {
    font-size: 3rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .skill-card {
    width: 100%;
    height: auto;
  }

  .timeline::after {
    left: 30px;
  }

  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .left-container,
  .right-container {
    left: 0;
  }

  .left-container::before,
  .right-container::before {
    left: 15px;
  }

  .about-img img {
    width: 60vw;
  }

  .about-content p {
    line-height: 3.5rem;
    font-size: 2rem;
  }

  .footer-socials {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-right img {
    margin-left: 0;
  }

  .contact-left,
  .contact-right {
    text-align: center;
  }
}

/* ============ Extra Small Devices (≤480px) ============ */
@media (max-width: 480px) {
  html {
    font-size: 45%;
  }

  .logo {
    margin-left: 2rem;
    font-size: 2.5rem;
  }

  .home-img img {
    width: 65vw;
  }

  .heading {
    font-size: 4.5rem;
  }

  .skills-heading {
    font-size: 4rem;
  }

  .about-img img {
    width: 75vw;
  }

  .contact-left h2 {
    font-size: 2.8rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1.3rem;
  }
}  
@media (max-width:768px)
{
  
  .left-container-arrow{
    left: -15px;
    transform: scaleX(-1);
  }
}