@import url('https://fonts.googleapis.com/css?family=poppins:wght@300,400,500,600,700,800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/*
body{
    background: #1f242d;   
}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
*/
a{
    color: white;
    text-decoration: none;
}


.navbar{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 25px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0; 
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.2s;
}

@keyframes show-content{
    100%{
        visibility: visible;
       opacity: 1;
    }
}

.navbar .logo a{
    font-size: 30px;
    font-weight: 700;
}

.navbar ul{
    display: flex;
}

.navbar ul li{
    list-style: none;
    margin-left: 35px;
}

.navbar ul li a{
    font-size: 20px;
    font-weight: 500;
    transition: .5s;
}

.navbar ul li:hover a,
.navbar ul li.active a{
    color:#7cf03d
}

section{
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10rem 9% 2rem;
    background-color: var(--bg-color);
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
}

.home{
    display: flex;
    align-items: center;
    gap: 50px;
    height: 100vh;
    padding: 60px 9% 0;
    color: white;
    visibility: hidden;
    opacity: 0; 
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
}


.home-info h1{
    font-size: 55px;
}

.home-info h2{
    display: inline-block;
    font-size: 32px;
    margin-top: -10px;
}

.home-info h2 span{
    position: relative;
    display: inline-block;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .7px #7cf03d;
    animation: display-text 16s linear infinite;
    animation-delay: calc(-4s * var(--i));
}

@keyframes display-text{
    25%,100%{
        display: none;
    }
}

.home-info h2 span::before{
    content: attr(data-text);
    position: absolute;
    width: 0;
    border-right: 2px solid #7cf03d;
    color: #7cf03d;
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text{
    10%,
    100%{
        width: 0;
    }

    70%,
    90%{
        width: 100%;
    }
}




.home-info p{
    font-size: 16px;
    margin: 10px 0 25px;
}

.home-info .btn-sci{
    display: flex;
    align-items: center;
}

.btn{
    display: inline-block;
    padding: 10px 30px;
    background: #7cf03d;
    border: 2px solid #7cf03d;
    border-radius: 40px;
    box-shadow: 0 0 10px #7cf03d;
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;
    transition: .5s;
}

.btn:hover{
    background: transparent;
    color: #7cf03d;
    box-shadow: none;
}

.home-info .btn-sci .sci{
    margin-left: 20px;
}

.home-info .btn-sci .sci a{
    display: inline-flex;
    padding: 8px;
    border: 2px solid #7cf03d;
    font-size: 20px;
    color: #7cf03d;
    margin: 0 8px;
    transition: .5s;
}

.home-info .btn-sci .sci a:hover{
    background: #7cf03d;
    color: #1f242d;
    box-shadow: 0 0 10px #7cf03d;
}


.home-img .img-box{
    position: relative;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after{
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(transparent, transparent, transparent, #7cf03d);
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after{
    animation-delay: -5s;
}

@keyframes rotate-border{
    100%{
        transform: rotate(360deg);
    }
}

.home-img .img-box .img-item{
    position: relative;
    width: 100%;
    height: 100%;
    background: #1f242d;
    border-radius: 50%;
    border: 1px solid #1f242d;
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;

}


.home-img .img-box .img-item img{
    position: absolute;
    top: 30px;
    display: block;
    width: 85%;
    object-fit: cover;
    mix-blend-mode: lighten;
}


.bars-animation{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
}

.bars-animation .bar{
    width: 100%;
    height: 100%;
    background: #1f242d;
    transform: translate(-100%);
    animation: show-bars .5s ease-in-out forwards;
    animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars{
    100%{
        transform: translate(0%);
    }
}

/* Services Page */
.services-section {
    min-height: 100vh;
    background-color: #1f242d;
    padding: 100px 9% 60px;
    color: white;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
    opacity: 0;
    visibility: hidden;
}

.services-section .section-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 60px;
}

.services-section .section-title span {
    color: #7cf03d;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-box {
    background: #2a2f3b;
    border-radius: 15px;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
    box-shadow: 0 0 10px rgba(124, 240, 61, 0.1);
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px rgba(124, 240, 61, 0.3);
    border: 1px solid #7cf03d;
}

.service-box i {
    font-size: 40px;
    color: #7cf03d;
    margin-bottom: 15px;
    display: block;
}

.service-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-box p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.service-box .icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: #7cf03d;
    font-size: 20px;
    transition: 0.3s;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
}

.service-box:hover .icon {
    background: transparent;
    color: #7cf03d;
    border: 1px solid #7cf03d;
}




/*  Contact Form */
.contact-section {
    background-color: #1f242d;
    padding: 100px 9% 60px;
    color: white;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
    opacity: 0;
    visibility: hidden;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.contact-info {
    flex: 1 1 45%;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 14px;
    margin-bottom: 30px;
    color: #ccc;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 26px;
    color: #7cf03d;
    margin-right: 15px;
}

.info-item h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.info-item p {
    margin: 2px 0 0;
    font-size: 14px;
    color: #ccc;
}

/* Form Styling */
.contact-form {
    flex: 1 1 50%;
    background: #2a2f3b;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(124, 240, 61, 0.1);
}

.contact-form h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.contact-form h2 span {
    color: #7cf03d;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    background: #1f242d;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 1px solid #7cf03d;
    outline: none;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}

/* Resume */
.resume-section {
  background-color: #1f242d;
  min-height: 100vh;
  padding: 100px 9% 60px;
  color: white;
  display: flex;
  align-items: center;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.6s;
  opacity: 0;
  visibility: hidden;
}

.resume-container {
  display: flex;
  gap: 50px;
  width: 100%;
}

.resume-tabs {
  flex: 1;
}

.resume-tabs h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.resume-tabs p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #ccc;
}

.tab-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: none;
  background: #2a2f3b;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
  border: 1px solid #7cf03d;
  color: #7cf03d;
  background: transparent;
}

.resume-content {
  flex: 2;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: show-content 1.5s linear forwards;
}

.tab-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.tab-content h2 span {
  color: #7cf03d;
}

.tab-content p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.experience-card {
  background: #2a2f3b;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: 0.4s ease;
}

.experience-card:hover {
  border: 1px solid #7cf03d;
  box-shadow: 0 0 10px rgba(124, 240, 61, 0.2);
}

.experience-card h4 {
  font-size: 14px;
  color: #7cf03d;
}

.experience-card h3 {
  font-size: 18px;
  margin: 5px 0;
}

.experience-card p {
  font-size: 14px;
  color: #ccc;
}

/* Resume - Skills (tittles) */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background-color: var(--card-bg, #fff);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #7cf03d; /
}

.skill-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}


/* Resume - Skills section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-card {
  background: #2a2f3b;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
  border: 1px solid transparent;
}

.skill-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: 0.3s ease;
}

.skill-card:hover {
  border: 1px solid #7cf03d;
  box-shadow: 0 0 10px rgba(124, 240, 61, 0.3);
}

.skill-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Resume - About Me Section */
.about-intro {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 30px;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px 30px;
}


.about-item {
  font-size: 14px;
  color: #ccc;
}

.about-item strong {
  color: #7cf03d;
  margin-right: 8px;
  font-weight: 600;
}


/* Portfolio Page */
.portfolio-section {
  padding: 100px 9% 60px;
  background: #1f242d;
  color: white;
  min-height: 100vh;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.6s;
  opacity: 0;
  visibility: hidden;
}

.section-title {
  font-size: 38px;
  text-align: center;
  margin-bottom: 60px;
}

.section-title span {
  color: #7cf03d;
}

.portfolio-category {
  margin-bottom: 70px;
}

.category-title {
  font-size: 26px;
  color: #7cf03d;
  margin-bottom: 20px;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 40px;
  transition: transform 0.5s ease;
}

.carousel-track img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: 0.3s;
}

.carousel-track img:hover {
  transform: scale(1.05);
  border: 2px solid #7cf03d;
  box-shadow: 0 0 10px rgba(124, 240, 61, 0.3);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(124, 240, 61, 0.2);
  border: none;
  color: #7cf03d;
  font-size: 28px;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.carousel-btn:hover {
  background: #7cf03d;
  color: #1f242d;
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}

/* Updated Carausel CSS*/
.carousel-item {
  flex: 0 0 500px;
  text-align: center;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(124, 240, 61, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-title {
  margin-top: 10px;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}


