*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}
html{
    scroll-behavior: smooth;
}
/* header  */
.header { 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000e18;
    padding: 0 3rem;
    position: sticky; 
    top: 0; 
    left: 0;
    right: 0;
    z-index: 1000;     /* ensures it stays above all other content */
}

#logo{
  object-fit: contain;
  height: 5rem;
}

.toggle{
  display: none;
}
#toggle{
  display: none;
}


.logo{
    display: flex;
    align-items: center;
}
.nav-links{
    display: flex;
    align-items: center;
    list-style: none;
}
.nav-links li{
    margin-right:3rem ;
}
.nav-links li a{
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff; 
    position: relative;
    transition: color 0.3s ease;
}
.nav-links li a::before{
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    width: 0%;
    height: 2px;
    background-color: #d6ed17;
    transition: width 0.3s ease;
}
.nav-links li a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #d6ed17;
    transition: width 0.3s ease;
}
.nav-links li a:hover{
    color: #d6ed17;
}
.nav-links li a:hover::after
{
    width: 100%;
}
.hidden2{
  display: none !important;
}
.nav-links2{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
    list-style: none;
    background-color: #000e18;
    margin-top: 0 !important;
}
.nav-links2 li{
    margin-right:3rem ;
}
.nav-links2 li a{
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff; 
    position: relative;
    transition: color 0.3s ease;
}
.nav-links2 li a::before{
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    width: 0%;
    height: 2px;
    background-color: #d6ed17;
    transition: width 0.3s ease;
}
.nav-links2 li a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #d6ed17;
    transition: width 0.3s ease;
}
.nav-links2 li a:hover{
    color: #d6ed17;
}
.nav-links2 li a:hover::after
{
    width: 100%;
}
.navbar button {
    background-color: #d6ed17;
     
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.navbar button :hover{
    background-color: #c0d314;
    box-shadow: 0 4px 10px rgba(214, 237, 23, 0.4);
    transform: translateY(-2px);
}
 
.navbar a{
  text-decoration: none;
  color: #000e18; 
}


/* HERO */
.hero{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 10% 5rem;
    height: 100vh;
    background: linear-gradient(135deg, #000e18, #001f2d);
    color: #fff;
    background-size: 200% 200%; 
    background-position: 0% 50%; 
    position: relative;
    overflow: hidden;
    animation: colorChange 15s infinite ease-in-out;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(214, 237, 23, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    animation: rippleGlow 4s infinite ease-out;
    pointer-events: none;
}

@keyframes rippleGlow {
    0% {
        opacity: 0.6;
        transform: scale(0.5);
    }
    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}

  
.hero-content{
    opacity: 0;
    transform: translateY(-50px);
    max-width: 50%;
    animation: slideInLeft 1s ease-out forwards;
transition: opacity 1s ease-out;
transition: opacity 1s ease-out, transform 1s ease-out;
}
.hero-content.is-visible {
    opacity: 1;
    transform: translateX(0);
  }
  .hero-image.is-visible {
    opacity: 1;
    transform: translateX(0);
  }
.hero-content h1{
font-size: 4rem;
font-weight: 700;
margin-bottom: 1rem;
color: #d6ed17;
}
.hero-content h2{
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}
.hero-content p{
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #ddd;
}
.hero-btn{
    background-color: #d6ed17;
  
    border: none;
    border-radius: 6px;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-btn a{
  text-decoration: none;
  font-size: 500;
  color: #000e18;
}
.hero-btn:hover{
    background-color: #b5cb13;
    box-shadow: 0 4px 10px rgba(214, 237, 23, 0.4);
    transform: translateY(-3px);
}
.hero-image{
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.2s; /* Optional: adds a slight delay to the image */
}
.hero-image img{
    max-width: 55%;
    margin-left: 40%;
    height: auto;
    border-radius: 50px;
    border: 3px solid #b6ed17;
    
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-70px);
    }
    to {
        opacity: 1;
        transform: translateX(-10);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ABOUT ME */
.about{
    padding: 80px 10%;
    background: #000e18;
    color: #f1f1f1;
}
.second-title{
    text-align: center;
font-size: 2.5rem;
margin-bottom: 50px;
font-weight: 700;
color: #d6ed17;
animation: SlideFromTop 1s ease-in;
}

.aboutText{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
  justify-content: center;
}

.about-container{
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-photo img{
width: 300px;
border-radius: 30px;
box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.about-photo img:hover {
    transform: scale(1.05);
  }
  .about-content{
flex: 1;
  }
  .about-headline{
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
color: #b5cb13;
}
.about-text{
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
color: #b6ed17;
}

.about-stats{
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.stat{
    text-align: center;
}
.stat-number{
    font-size: 2rem;
    font-weight: 700;
    color: #d6ed17;
    margin-bottom: 10px;
}
.stat-label{
    font-size: 0.9rem;
    color: #b6ed17;
}
.about-btn{
display: inline-block;
padding: 12px 24px;
border-radius: 12px;
text-decoration: none;
font-weight: 600;
background: #b5cb13;
color: #001f2d;
transition: background 0.3s ease;
}
.about-btn:hover{
    background: #001f2d;
    color: #b5cb13;
}
.skills-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns layout */
    gap: 30px;
  }
  
  .skill {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .skill-name {
    font-weight: 600;
    color: #d6ed17;
  }
  
  .skill-bar {
    width: 100%;
    height: 12px;
    background: #111a25;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }
  
  .skill-fill {
    height: 100%;
    width: 0%; /* Initial width is 0% */
    background: linear-gradient(90deg, #d6ed17, #a4c414);
    border-radius: 8px;
    /* Add a transition for the width property */
    transition: width 1s ease-out;
  }
  
  /* New class to trigger the animation */
  .skill-fill.is-visible {
    width: var(--skill-percent);
  }
  
  .skill-percent {
    align-self: flex-end;
    font-size: 0.9rem;
    color: #d6ed17;
    font-weight: 500;
  }
  /* MY PROJECT */
  .portfolio {
    padding: 80px 10%;
    background: #000e18;
    color: #fff;
  }
  
  .portfolio .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #d6ed17;
  }
  
  .portfolio-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  
  .portfolio-box {
    position: relative;
    width: 350px;
    height: 220px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.6);
    cursor: pointer;
  }
  
  .portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .portfolio-box:hover img {
    transform: scale(1.1);
  }
  
  .portfolio-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .portfolio-box:hover .portfolio-overlay {
    opacity: 1;
  }
  
  .portfolio-overlay h3 {
    color: #b6ed17;
    margin-bottom: 15px;
    font-size: 1.3rem;
  }
  
  .portfolio-btn {
    padding: 10px 20px;
    background: #d6ed17;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease;
  }
  
  .portfolio-btn:hover {
    transform: translateY(-3px);
  }
  /* TESTIMONIALS */
  .testimonials {
    padding: 80px 10%;
    background: #0a0f16;
    color: #fff;
    text-align: center;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #d6ed17;
  }
  
  .section-subtitle {
    color: #aaa;
    margin-bottom: 50px;
  }
  
  .testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  
  .testimonial-card {
    background: #111a25;
    padding: 25px;
    border-radius: 15px;
    max-width: 300px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
  }
  
  .testimonial-card:hover {
    transform: translateY(-8px);
  }
  
  .testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #d6ed17;
  }
  
  .testimonial-card p {
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 15px;
    line-height: 1.5;
  }
  
  .testimonial-card h4 {
    margin-bottom: 5px;
    font-size: 1rem;
    color: #fff;
  }
  
  .testimonial-card span {
    font-size: 0.85rem;
    color: #bbb;
  }
  /* CONTACT */
  .contact {
    padding: 80px 10%;
    background: #0a0f16;
    color: #fff;
    text-align: center;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #d6ed17;
  }
  
  .section-subtitle {
    color: #aaa;
    margin-bottom: 50px;
  }
  
  .contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: flex-start;
  }
  
  .contact-info {
    max-width: 300px;
    text-align: left;
  }
  
  .contact-info h3 {
    margin-bottom: 20px;
    color: #d6ed17;
  }
  
  .contact-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
  
  .socials a {
    margin-right: 15px;
    color: #d6ed17;
    font-size: 1.5rem;
    transition: color 0.3s;
  }
  
  .socials a:hover {
    color: #fff;
  }
  
  .contact-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: #111a25;
    color: #fff;
    font-size: 1rem;
  }
  
  .contact-form button {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #d6ed17;
    font-size: 1rem;
    font-weight: bold;
    color: #0a0f16;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .contact-form button:hover {
    background: #c0d715;
  }
  /* FOOTER   */
  .footer {
    background: #0a0f16;
    color: #aaa;
    padding: 50px 10% 20px;
    text-align: center;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .footer-logo h2 {
    color: #d6ed17;
    font-size: 1.8rem;
  }
  
  .footer-logo p {
    font-size: 0.95rem;
    margin-top: 5px;
  }
  
  .footer-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
  }
  
  .footer-nav a {
    color: #aaa;
    transition: color 0.3s;
  }
  
  .footer-nav a:hover {
    color: #d6ed17;
  }
  
  .footer-socials a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: #d6ed17;
    transition: color 0.3s;
  }
  
  .footer-socials a:hover {
    color: #fff;
  }
  
  .footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #666;
  }
  