@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}
:root {
    --bg-color: #151925;
    --second-bg-color: #323846;
    --text-color: #fff;
    --main-color: #0ef;
}
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;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;

}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}
.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;

}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;

}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 27vw;
    
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    

}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}
.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;

}
.home-content p {
    font-size: 1.8rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);

}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 30vw;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;

}

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}
 
.services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}
.portfolio {
    background: var(--second-bg-color)
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;

}

.portfolio-box img {
    width: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;

}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);

}

.portfolio-layer h4 {
    font-size: 3rem;
}

.portfolio-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.portfolio-layer a i {
    font-size: 2rem;
    color: var(--second-bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: block; /* Changed from flex to block */
    margin-bottom: 0.7rem;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

/* Removed the 49% width rule since we don't need side-by-side inputs anymore */
/* .contact form .input-box input {
    width: 49%;
} */

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
} /* Optional: makes button full width */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);

}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: .5s ease;
}

.footer-social a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}
/* Timeline Section Styles */
.timeline {
  position: relative;
  margin: 60px auto 0 auto;
  padding-left: 0;
  width: 92%;
  max-width: 800px;
}

.timeline .heading {
  margin-bottom: 40px;
  color: var(--main-color);
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 44px;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  background: var(--main-color);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--second-bg-color);
}

.timeline-icon.cec {
  background: #22c55e;
}

.timeline-icon.exp {
  background: var(--main-color);
}

.timeline-content {
  background: var(--second-bg-color);
  padding: 18px 22px 16px 22px;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
}

.timeline-content:hover {
  transform: translateY(-4px) scale(1.01);
}

.timeline-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 8px;
  display: block;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.timeline-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--main-color);
  margin: 2px 0 1px 0;
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin: 5px 0 2px 0;
  letter-spacing: 0.2px;
}

.timeline-content p {
  font-size: 0.98rem;
  color: #bdbdbd;
  margin: 4px 0 0 0;
  line-height: 1.5;
  font-size: 1.18rem;
}

.timeline-content strong {
  color: #fff;
  font-weight: 600;
}

.timeline-item .timeline-content ul {
  margin: 8px 0 8px 0;
  padding-left: 18px;
  list-style-type: disc;
}

.timeline-item .timeline-content ul li {
  font-size: 1.4rem;
  color: #bdbdbd;
  margin-bottom: 2px;
  line-height: 1.4;
}

.timeline-item .timeline-content a {
  color: #0ef;
  text-decoration: underline;
  word-break: break-all;
  transition: color 0.2s;
  font-size: 1.4rem;
}

.timeline-item .timeline-content a:hover {
  color: #22c55e;
}

/* Experience section background and timeline-content color */
.experience {
    background: #323846;
}
.experience .timeline-content {
    background: #151925;
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline {
    width: 99%;
    padding-left: 0;
  }
  .timeline-item {
    padding-left: 28px;
  }
  .timeline-logo {
    width: 32px;
    height: 32px;
  }
  .timeline-content {
    padding: 12px 7px 10px 7px;
  }
  .timeline-content h2,
  .timeline-content h3,
  .timeline-content p,
  .timeline-item .timeline-content ul li,
  .timeline-item .timeline-content a {
    font-size: 1.5rem;
  }
}

/* BREAKPOINT */

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    
    }

    .services {
        padding-bottom: 7rem;
    }

    .portfolio {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;

    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;

    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .portfolio h2 {
        margin-bottom: 3rem;
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media (max-width: 617px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }


    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }

    .about-img img {
        width: 90vw;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}
/* Timeline Section Styles */
.timeline {
  position: relative;
  margin: 80px auto 0 auto;
  padding-left: 0;
  width: 90%;
  max-width: 800px;
}

.timeline .heading {
  margin-bottom: 60px;
  color: var(--main-color);
  text-align: center;
  font-size: 3rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 50px;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 30px;
  width: 24px;
  height: 24px;
  background: var(--main-color);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px var(--second-bg-color);
}
.timeline-icon.cec {
  background: #00FF00; /* Green for Experience and CEC */
}

.timeline-icon.entri {
  background: #00FF00; /* Green for Experience and CEC */
}

.experience {
    background: #323846; /* Change this color as you like */
}
/* Change timeline-content background only in Experience section */
.experience .timeline-content {
    background: #151925; /* <-- Your desired color */
}

.timeline-icon.exp {
  background: var(--main-color); /* Green for Experience */
}

.timeline-content {
  background: var(--second-bg-color);
  padding: 24px 28px;
  border-radius: 14px;
  box-shadow: 0px 4px 16px rgba(0,0,0,0.10);
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
}

.timeline-content:hover {
  transform: translateY(-6px) scale(1.02);
}

.timeline-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.timeline-content h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--main-color);
  margin: 5px 0 2px 0;
}

.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin: 8px 0 4px 0;
}

.timeline-content p {
  font-size: 1.4rem;
  color: #bdbdbd;
  margin: 5px 0 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline {
    width: 98%;
    padding-left: 0;
  }
  .timeline-item {
    padding-left: 38px;
  }
  .timeline-logo {
    width: 44px;
    height: 44px;
  }
  .timeline-content {
    padding: 18px 12px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        width: 90%;
        margin: 30px auto;
    }

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



    .card:nth-child(even) .card-body:before, .card:nth-child(odd) .card-body:before {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 24px;
    }

    .card-detail {
        font-size: 13px;
    }
}

/* Normal .btn style for repo and certificate buttons in Education and Experience section */
.ext-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ext-link {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--second-bg-color);
  letter-spacing: .1rem;
  font-weight: 600;
  text-decoration: none;
  transition: .5s ease;
  border: none;
}

.ext-link.cert {
  background: var(--main-color); /* Removed green, now same as main color */
  color: var(--second-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.ext-link i {
  font-size: 2rem;
  color: inherit;
  margin-right: 0.7rem;
}

.ext-link:hover,
.ext-link.cert:hover {
  box-shadow: none;
  background: var(--second-bg-color);
  color: var(--main-color);
}
.ext-link,
.ext-link.cert {
  color: #fff !important;
}



/* Responsive: stack buttons on small screens */
/* 📱 Mobile (max 600px) */
@media (max-width: 600px) {
  .ext-links {
    justify-content: center;
    gap: 8px;
  }

  .ext-link {
    padding: 0.8rem 1.8rem;
    font-size: 1.3rem;
    border-radius: 3rem;
  }

  .ext-link i {
    font-size: 1.6rem;
    margin-right: 0.5rem;
  }
}
/* Add this to your existing styles.css */

/* Preloader */
#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #151925;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    color: #fff;
  }
    .spinner:before,
    .spinner:after {
      content: '';
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: inherit;
      height: inherit;
      border-radius: 50%;
      transform: rotateX(70deg);
      animation: 1s spin linear infinite;
    }
    .spinner:after {
      color: #0ef;
      transform: rotateY(70deg);
      animation-delay: .4s;
    }

  @keyframes rotate {
    0% {
      transform: translate(-50%, -50%) rotateZ(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotateZ(360deg);
    }
  }

  @keyframes rotateccw {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(-360deg);
    }
  }

  @keyframes spin {
    0%,
    100% {
      box-shadow: .2em 0px 0 0px currentcolor;
    }
    12% {
      box-shadow: .2em .2em 0 0 currentcolor;
    }
    25% {
      box-shadow: 0 .2em 0 0px currentcolor;
    }
    37% {
      box-shadow: -.2em .2em 0 0 currentcolor;
    }
    50% {
      box-shadow: -.2em 0 0 0 currentcolor;
    }
    62% {
      box-shadow: -.2em -.2em 0 0 currentcolor;
    }
    75% {
      box-shadow: 0px -.2em 0 0 currentcolor;
    }
    87% {
      box-shadow: .2em -.2em 0 0 currentcolor;
    }
  }