/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    background-color: #333;  /* Dark background for contrast */
    color: #f5f5f536;  /* Light text color for readability */
}
html {
    scroll-behavior: smooth;
}


h1 {
    font-size: 2rem;
}




h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #61c6ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* General Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(40, 40, 40, 0.427); /* Subtle transparent background */
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
    backdrop-filter: blur(8px); /* Glassmorphism effect */
}

.logo a {
    text-decoration: none;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    transition: color 0.3s ease-in-out;
}

.logo a:hover {
    color:  #61c6ff; /* Vibrant green glow effect */
}

/* Navigation List */
.nav-list {
    margin-top: 30px;
    list-style: none;
    display: flex;
    gap: 30px;
    margin-right: 50px;
}

.nav-list li {
    display: block;
}

.nav-list a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Stylish Hover Effect with Underline Animation */
.nav-list a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #61c6ff;
    transition: width 0.4s ease-in-out;
}

.nav-list a:hover {
    color:  #61c6ff;
    transform: scale(1.1); /* Slight scale effect */
}

.nav-list a:hover::before {
    width: 100%;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px; /* Softer edges */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy animation */
}

/* Burger to X Animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Bounce Animation for Toggle Button */
.menu-toggle:hover .bar {
    animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        padding: 10px;
        top: 70px;
        left: 0;
        background-color: rgba(38, 38, 38, 0.8);
        width: 100%;
        z-index: 5;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Enhanced depth */
        animation: slideDown 0.5s ease-in-out;
    }

    .nav-list.show {
        display: flex;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .menu-toggle {
        display: flex;
    }
}






/* Custom styles */

span {
    color: #61c6ff;
}

.button-container {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-top: 20px; 
  }
  .submit-button {
    padding: 10px 20px;
    font-size: 16px; 
  }  

#projects {
    background-color: #21212169;
    color: #f8f9fa61;
    padding: 30px;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    margin-top: 20px;
    backdrop-filter: blur(8px); /* Glassmorphism effect */

}
#projects h2 {
    color: #61c6ff !important; 
    font-weight: bold;
  }

/* Remove the border around the card */
.card {
    background-color: #282c34; 
    color: #ffffff;
    border: none;
    border-radius: 12px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;  /* Ensure smooth image transition */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); /* Sleek shadow */
}

.card:hover {
    transform: scale(1.05); /* Slight zoom */
    box-shadow: 0 8px 20px rgba(97, 198, 255, 0.5); /* Soft blue glow */
}

.card img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);  /* Image zoom effect */
}

.card a.btn {
    background-color: #61c6ff; 
    color: #fff; 
    border: none;
    border-radius: 20px; 
    padding: 8px 15px;
    transition: background-color 0.3s ease-in-out;
}

.card a.btn:hover {
    background-color: #0056b3;
}

  .card h5.card-title {
    color: #ffc107; 
    font-weight: bold;
  }
  
  .card a.btn {
    background-color: #61c6ff; 
    color: #fff; 
    border: none;
  }
  
  


.about {
    color: #61c6ff;
}


.about-section {
    background: #f9f9f925;
    padding: 4rem 2rem;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    border-radius: 15px;
}
.about-content {
    position: relative;
    z-index: 1;
}

.about-content h2, .skills-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #61c6ff;
    text-align: center;
    border-bottom: 2px solid #61c6ff;
    padding-bottom: 0.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

/* Quote Styling */
.about-quote {
    font-style: italic;
    color: #ffffff;
    margin: 2rem auto;
    text-align: center;
    font-size: 1.2rem;
    border-left: 5px solid #61c6ff;
    padding-left: 1rem;
    width: 70%;
}

/* Timeline Styling */
.timeline {
    margin: 2rem auto;
    border-left: 3px solid #61c6ff;
    padding-left: 1.5rem;
    max-width: 600px;
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '•';
    position: absolute;
    left: -1.2rem;
    top: 0;
    font-size: 1.5rem;
    color: #ff6f61;
}

.timeline-item h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Skills Section */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.skill-card {
    background: #55555523;
    color: #f5f5f5;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 120px;
    transition: transform 0.3s ease-in-out;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2rem;
    color: #61c6ff;
    margin-bottom: 0.5rem;
}

.fun-facts {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.fun-facts h3 {
    color: #61c6ff;
    margin-bottom: 1rem;
    text-align: center;
}

.fun-facts ul {
    list-style: none;
    padding-left: 0;
    text-align: center;

}

.fun-facts li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5; 
    text-align: center;


}




.card-img-top {
    background-color: #555; 
    padding: 10px;
    object-fit: cover;
    width: 100%;
    height: auto;
}
body.dark-mode .card {
    background-color: #222222;
}
body.dark-mode .card-img-top {
    background-color: #222222;
}

#dark-mode-toggle {
    position: fixed;
    bottom: 3rem;    
    left: 2rem;     
    color: #fff;    
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    cursor: pointer; 
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

body.dark-mode .nav-link:hover {
    color: #61c6ff;
    background-color: #333333;
    border-radius: 2px;
    text-decoration: underline;
}

body.dark-mode .card {
    color: #fff;
}

/* Contact form styles */
#contact {
    background-color: #ffffff49;
    padding: 2rem;
    border-radius: 8px;
    color: #61c6ff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px); /* Glassmorphism effect */

}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    font-weight: bold;
    color: #ffffff;
}

.contact-form .form-control {
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
}

.contact-form .form-control:focus {
    border-color: #61c6ff;
    box-shadow: 0 0 5px rgba(97, 198, 255, 0.5);
}

.submit-button {
    background: linear-gradient(135deg, #61c6ff, #0056b3) !important; 
    color: #fff;
    border: none;
    border-radius: 30px; 
    padding: 12px 30px; 
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(97, 198, 255, 0.5); 
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Space for an icon */
}

.submit-button:hover {
    background: linear-gradient(135deg, #0056b3, #61c6ff) !important;
    transform: scale(1.05);  /* Slight zoom on hover */
    box-shadow: 0 8px 20px rgba(97, 198, 255, 0.7);
}

.submit-button:active {
    transform: scale(0.98); /* Click feedback */
}

.submit-button i {
    font-size: 1.2rem;
}



@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--skill-level);
    }
}

.skills-section {
    padding: 3rem 1rem;
    background-color: #2222226f; 
    color: #f5f5f5;
    border-radius: 10px;
}

.skills-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #61c6ff; 
    text-align: center;
    border-bottom: 2px solid #61c6ff;
    padding-bottom: 0.5rem;
    backdrop-filter: blur(8px); 

}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    backdrop-filter: blur(8px); /

}

.skill-card {
    background: #444; 
    color: #f5f5f545;
    padding: 1.5rem;
    width: 150px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-card i {
    font-size: 2.5rem;
    color: #61c6ff;
    margin-bottom: 0.5rem;
}


.skill-card p {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 0.3rem;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(97, 198, 255, 0.8); 
    border: 1px solid #61c6ff;
}

.skill-card:hover i {
    color: #333;
}




.but {
    background-color: #212121;
    color: #fbfbfb;
    border: none;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.but:hover {
    background-color: #61c6ff;
    color: #212121;
}


footer {
    background-color: #33333300;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer .social-media {
    margin-bottom: 1rem;
}

footer .social-media a {
    color: #ffffff;
    transition: color 0.3s ease;
}

footer .social-media a:hover {
    color: #61c6ff;
}

footer p {
    margin: 0;
}

@media (max-width: 1200px) {
    .carousel-item img {
        height: 400px;
    }

    .typing-effect {
        font-size: 1.75rem;
    }

    header .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 992px) {
    .carousel-item img {
        height: 300px;
    }

    .typing-effect {
        font-size: 1.5rem;
    }

    header .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 200px;
    }

    

    header .navbar-brand {
        font-size: 1rem;
    }

    .contact-form .submit-button {
        width: auto;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 150px;
    }

    
    header .navbar-brand {
        font-size: 1rem;
    }
}

.hero {
    background: linear-gradient(135deg, #ff6f61, #61c6ff);
    padding: 5rem 1rem;
    text-align: center;
    color: #fff;
    position: relative;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}


/* Back to Top Button Styles */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #61c6ff; 
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(97, 198, 255, 0.5); 
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #0056b3;
    transform: scale(1.1); 
    box-shadow: 0 8px 20px rgba(97, 198, 255, 0.7); 
}

#backToTop i {
    font-size: 1.5rem;
}




.button {
    display: inline-block;
    background-color: #212121;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.button:hover {
    background-color: #ff6f61;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.skill-card {
    background: linear-gradient(135deg, #1f1f1f, #292929); 
    color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    width: 130px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none; 
    background: radial-gradient(circle, rgba(0, 0, 60, 0.8), rgba(0, 0, 20, 0.9));
}


@keyframes pulseGlow {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1); }
}

#particle-container {
    animation: pulseGlow 6s infinite alternate;
}







