body {
    background-color: rgba(15, 15, 15, 0.75);
    color: white;
    font-family: 'Poppins', sans-serif;
}

.navbar {
    background: #1b1b1b;
}

a.nav-link {
    color: white;
}
a.navbar-brand {
    font-size: 25px;
    font-weight: 600;
}

.modal-content{
    background-color: #252525d6 !important;
}

.modal-title, .yellow{
    color: #FFD700 !important;
}

.fw-bold{
    margin-bottom: 0;
}

.btn-close{
    background: #ffffff var(--bs-btn-close-bg) center / 1em auto no-repeat !important;
    opacity: 0.8;
}

/* Navbar background */
.custom-navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    padding: 10px 20px;
    height: 100px
}

/* Toggler button */
.custom-toggler {
    border: none;
    outline: none;
}

/* Full-screen mobile menu */
@media (max-width: 991px) {
    .custom-nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.3sease-in-out;
        z-index: 999;
        flex-direction: column;
        visibility: hidden;
        opacity: 0;
        flex-wrap: wrap;
        align-content: center;
    }

    /* Show menu */
    .custom-nav-menu.show {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .navbar-nav .nav-item {
        margin: 10px 0;
    }

    .navbar-nav .nav-link {
        font-size: 1.5rem;
        color: white !important;
        font-weight: bold;
    }

    /* Close button effect */
    .navbar-toggler:focus,
    .navbar-toggler:hover {
        outline: none;
    }
}

a {
    position: relative;
}

a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background-color: #FFD700;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}

a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}
a.btn.btn-glow::before {
    content: none !important;
}
img.logo {
    height: 25px;
}

.hero {
    background-color: rgba(18, 18, 18, 0.75);
    padding: 100px 0;
    text-align: center;
}

@media (min-width: 1024px){
    .content-ctn {
        background-color: rgba(15, 15, 15, 0.55);
        max-width: 100vw;
        padding: 0 15%;
    }
    img.d-block.w-100.cert-img {
        place-self: anchor-center !important;
        max-width: 50vw !important;
    }
    h1.intro{
        min-height: 110px;
    }
}

.content-ctn {
    background-color: rgba(15, 15, 15, 0.55);
    max-width: 100vw;
    padding: 0 7%;
}

.hidden {
    display: none;
}

/* ===== EXPERIENCE SECTION ===== */
#experience {
    max-width: 900px;
    margin: 0px auto;
    text-align: center;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #ffcc00;
    position: relative;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 4px solid rgba(255, 204, 0, 0.5); /* Neon yellow */
}

/* Timeline Items */
.timeline-item {
    position: relative;
    padding: 20px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05); /* Transparent glass effect */
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover Effect */
.timeline-item:hover {
    transform: translateX(15px) !important;
    box-shadow: 0px 10px 20px rgba(255, 204, 0, 0.3);
}

/* Timeline Icons */
.timeline-icon {
    position: absolute;
    left: -35px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ffcc00, #ff8800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #222;
    box-shadow: 0px 0px 15px rgba(255, 204, 0, 0.5);
    animation: glow 1.5s infinite alternate;
}

/* Glowing effect */
@keyframes glow {
    from {
        box-shadow: 0px 0px 10px rgba(255, 204, 0, 0.5);
    }
    to {
        box-shadow: 0px 0px 20px rgba(255, 204, 0, 0.8);
    }
}

/* Timeline Content */
.timeline-content {
    padding: 15px;
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffcc00;
}

.company {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 204, 0, 0.7);
    margin-bottom: 10px;
}

.company span {
    font-weight: normal;
    font-size: 0.9rem;
    color: #aaa;
}

/* List Styling */
.timeline-content ul {
    padding-left: 20px;
    list-style: none;
}

.timeline-content ul li {
    position: relative;
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 8px;
}

.timeline-content ul li::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #ffcc00;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline {
        padding-left: 10px;
    }
    .timeline-icon {
        left: -30px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .navbar-brand{
        font-size: 19px !important;
    }
    h1.intro{
        min-height: 80px;
    }
    .game-container p {
        font-size: 10px;
    }
    .unlock-container {
        width: 100%;
        padding: 0px 3px;
        right: 0px !important;
    }
    
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #121212;
    /* Dark background */
    z-index: 0;
}

#skills {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: bold;
    text-align: center;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    border-radius: 15px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 250px;
    align-content: center;
}

.glassmorphism h3 {
    font-size: 1.5rem;
    color: #FFCC00;
    margin-bottom: 10px;
    font-weight: 800;
}

.glassmorphism p {
    color: #fff;
    font-size: 1rem;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Background Overlay with Animated Glow */
.hero .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255 214 0 / 20%) 10%, #ffffff00 50%);
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 0.6;
    }
}

/* Hero Content */
.hero .container {
    position: relative;
    max-width: 800px;
    padding: 20px;
    color: #fff;
}

/* Typing Effect */
.typing {
    font-weight: 700;
    color: #ffcc00;
    border-right: 3px solid #ffcc00;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typingEffect 4s steps(40) forwards, blink 0.8s infinite;
}

/* Typing Animation */
@keyframes typingEffect {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Hero Description */
.hero-description {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Glowing Button */
.btn-glow {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #111;
    background: linear-gradient(90deg, #ffcc00, #ff8800);
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(255, 204, 0, 0.5);
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 20px rgba(255, 204, 0, 0.8);
}

/* Floating Effect */
.hero h1,
.hero-description,
.btn-glow {
    animation: floatUp 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-glow {
        font-size: 1rem;
        padding: 10px 20px;
    }
}


#achievements {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: bold;
}

#achievements {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: bold;
}

.cert-img {
    border-radius: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.cert-img:hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.7);
}

#previous-works {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: bold;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
    min-height: 300px;
    place-content: center;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: opacity 0.3s ease-in-out;
    min-height: 125px;
}

.project-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;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 15px;
    padding: 0px 25px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.project-subheading {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 15px;
}

.btn-warning {
    background-color: #FFD700;
    border: none;
    color: #000;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-warning:hover {
    background-color: #ffcc00;
}

img.contact-icon {
    max-width: 75px;
}

#contact {
    padding: 80px 0 200px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: bold;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
}

.contact-item:hover {
    transform: scale(1.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0px 4px 6px rgba(255, 215, 0, 0.5));
}

.contact-item span {
    margin-top: 10px;
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
}

.contact-item:hover span {
    color: #FFD700;
}
/* Custom Circular Carousel Buttons */
.carousel-control-prev,
.carousel-control-next {
    width: 50px; /* Adjust button size */
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3); /* Light background */
    border-radius: 50%; /* Makes it circular */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    
    /* Fix Position */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for perfect centering */
}

/* Icon Color */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* Makes the icons white */
}

/* Hover Effect */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.7); /* Brighter on hover */
    transform: translateY(-50%) scale(1.1); /* Keep centered and add zoom effect */
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    position: relative;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, rgba(255,255,255,0) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 75%);
}

.fade-in-section .timeline-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 0.5s, transform 0.5s ease-out 0.5s; /* Delay matches animation */
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
    animation: scan 1.5s ease-out, remove-bg 2s ease-out forwards;
}

.fade-in-section.visible .timeline-content {
    opacity: 1;
    transform: translateY(0);
}

/* Hide text content initially */
.glassmorphism h3, .glassmorphism p {
    opacity: 0;
    transform: translateY(20px);
}

/* Section becomes visible with animations */
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
    animation: scan 1.5s ease-out, remove-bg 2s ease-out forwards;
}

/* Delayed appearance for the Skills section */
#skills .fade-in-section.visible h3,
#skills .fade-in-section.visible p,
h3.project-title, p.project-subheading{
    animation: fade-in-content 0.25s ease-out 1s forwards; 
}

@keyframes scan {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@keyframes remove-bg {
    to { background-image: none; }
}

/* Keyframes for content fade-in */
@keyframes fade-in-content {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    div#certificationsCarouselDesktop {
        padding: 0px 120px;
    }
}
@media (max-width: 1024px){
    img.d-block.w-100.cert-img {
        border-radius: 20px;
        max-width: unset !important;
        width: 100% !important;
        justify-self: center !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .col-md-6 {
        flex: 0 0 auto;
        width: 100% !important;
    }
}

.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    color: #FFCC00;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', cursive;
    z-index: 9999;
  }
  
  .game-modal.show {
    display: flex;
    flex-direction: column !important;
  }
  
  .game-container {
    background: #000;
    padding: 2rem;
    border: 4px solid #FFCC00;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 20px #FFCC00;
  }
  
  .invader {
    position: absolute;
    padding: 8px 16px;
    background-color: #222;
    color: #FFCC00;
    font-size: 12px;
    border: 1px solid #FFCC00;
    border-radius: 5px;
    cursor: pointer;
    animation: flicker 0.2s infinite;
  }
  
  @keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }
  
  #invader-area {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border: 2px solid #FFCC00;
    margin: 1rem auto;
    overflow: hidden;
  }

  span#health{
    font-size: 15px;
  }
  
  #game-status p {
    font-size: 12px;
    margin: 1rem 0;
  }
  
  #close-game, .leaderboard {
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    background: transparent;
    color: #FFCC00;
    border: 2px solid #FFCC00;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  #close-game:hover {
    background: #FFCC00;
    color: #000;
  }
  
  .unlock-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* space between messages */
    z-index: 9999;
  }
  
  .unlock-message {
    background: #ffffffeb;
    border: 1px solid #ffc107;
    color: #333;
    padding: 10px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-weight: bold;
    display: none;
    text-align: center;
  }
  
  .unlock-message a {
    margin-left: 10px;
  }
  
  .unlock-message.shown {
    display: block;
    opacity: 1;
  }
  
  .leaderboard-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: #111;
    color: #fff;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 10px #000;
  }
  
  .leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .leaderboard-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
  }
  
  .leaderboard-list li small {
    display: block;
    color: #aaa;
    font-size: 0.8rem;
  }
  
