a {
    color: black;
    text-decoration: none;
}
/* Disable smooth scrolling for instant anchor navigation */
html {
    scroll-behavior: auto;
}
header{
    z-index:9999999 !important;}
#lead-content h2 {
    background: linear-gradient(120deg, #00B0FF 0%, #1E40FF 50%, #ffffff 99%);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
    font-size: 2.5em;
    font-weight: 500;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


#lead::before {
    content: "";
    position: absolute;
    top: 0;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.9);
    text-decoration: underline; /* Ensure active state underline is applied */
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay with 30% opacity */
    z-index: 1; /* Ensure it sits above the background */
}
header li,header ul{display:inline-block}#lead,.heading{position:relative}#lead-down,header{right:0;z-index:10}#lead-down span,.top span{cursor:pointer;width:35px;height:35px;text-align:center}#education,#experience,#lead-content,#lead-down,#lead-down span,.top,.top span,header,header ul{text-align:center}#contact,.background-alt{background:#f2f2f5}#about,#contact,#education,#experience,#projects{border-bottom:1px solid #dcd9d9}#contact-form button,.shadow{box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}#lead,.project,body.active{overflow:hidden}body{font-family:Lato,sans-serif;font-size:16px}body.active{z-index:-1}.no-js #experience-timeline>div{background:#fff;padding:10px;margin-bottom:10px;border:1px solid #dcd9d9}.no-js #experience-timeline>div h3,.vtimeline-content h3{font-size:1.5em;font-weight:300;color:#374054;display:inline-block;margin:0}.no-js #experience-timeline>div h4,.vtimeline-content h4{font-size:1.2em;font-weight:300;color:#7e8890;margin:0 0 15px}.copyright p,.social a,.top i{color:#74808a}.no-js #experience-timeline>div p,.vtimeline-content p{color:#74808a;font-size:.9em;margin:0}.no-js #experience-timeline:after,.no-js #experience-timeline:before{content:none}@keyframes dropHeader{0%{transform:translateY(-100%)}100%{transform:translateY(0)}}header{position:fixed;top:0;left:0;animation-name:dropHeader;animation-iteration-count:1;animation-timing-function:ease;animation-duration:.75s}
header ul{  width:100%;background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 8px 5px 10px #ffffff26;padding:10px;margin:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);}

/* Glassmorphism header on scroll */
header.scrolled ul {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    overscroll-behavior: contain; /* Add overscroll containment */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header Logo Styling */
.header-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99999;
    transition: all 0.3s ease;
}

.header-logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Desktop Navigation */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: block;
    padding: 0 24px; /* side padding for breathing room */
    background: rgba(0, 0, 0, 0.9); /* full-width bar */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 0; /* no rounding on full-width bar */
}

.nav-menu {
    display: flex;
    justify-content: center; /* group items at the center */
    align-items: center;
    gap: 28px;
    background: transparent; /* background on the bar, not the list */
    margin: 0 auto;
    width: 100%;
    padding: 14px 0; /* vertical padding only */
    list-style: none;
}

.nav-menu li { margin: 0; }

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-menu a.active {
    background: transparent;
    color: #ffffff;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.6);
}

/* Override older generic header ul styling to avoid double backgrounds */
header > nav.desktop-nav > ul.nav-menu {
    display: flex !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 14px 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* On scroll, adjust bar background via header.scrolled */
header.scrolled .desktop-nav {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Ensure generic header ul rule doesn't override nav menu spacing */
header > nav.desktop-nav > ul.nav-menu li { margin: 0; }

/* Neutralize old header.scrolled ul glass styles for the nav list */
header.scrolled > nav.desktop-nav > ul.nav-menu {
    background: transparent !important;
    backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Ensure flex layout not affected by old inline-block rule */
header > nav.desktop-nav > ul.nav-menu li {
    display: block !important;
}

/* Mobile: Hide desktop nav, show hamburger */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .header-logo {
        top: 15px;
        left: 15px;
    }
    
    .logo-img {
        height: 35px;
        max-width: 140px;
    }
    
    /* Ensure proper menu sizing on mobile */
    .mobile-menu {
        max-width: 280px;
    }
    
    .mobile-menu a {
        font-size: 16px;
        padding: 14px 0;
    }
}

@media (max-width: 480px) {
    .header-logo {
        top: 12px;
        left: 12px;
    }
    
    .logo-img {
        height: 30px;
        max-width: 120px;
    }
}

#menu.active,.top span,header a,header.active{display:block}header a{color:#ffffff;padding:10px}header a:hover{color:#ffffff;text-decoration:none;background:rgba(255,255,255,0.1);border-radius:4px}header a:focus{color:#ffffff;text-decoration:none;outline:2px solid rgba(255,255,255,0.5);outline-offset:2px;background:transparent}header.sticky{position:fixed;z-index:999}/* Modern Hamburger Menu + Full Screen Navigation */
#mobile-menu-open {
    display: none;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 99999;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-open:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.05);
}

/* Animated Hamburger Lines */
.hamburger-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-line:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-6px);
}

.hamburger-line:nth-child(2) {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.hamburger-line:nth-child(3) {
    transform: translate(-50%, -50%) translateY(6px);
    width: 14px;
}

/* Hamburger to X Animation */
.menu-active .hamburger-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.menu-active .hamburger-line:nth-child(3) {
    width: 20px;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Full Screen Overlay - SOLID BLACK */
#mobile-menu-close {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* prepare for centering when active */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* avoid overlay scrollbar */
}

#mobile-menu-close.active {
    opacity: 1;
    visibility: visible;
    display: flex; /* keep flex to center UL */
}

/* Minimal title and hint so the fullscreen menu doesn’t feel empty */
#mobile-menu-close::before {
    content: 'MENU';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

#mobile-menu-close::after {
    content: 'tap outside to close';
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
}

/* Close Button */
.close-button {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Items */
.mobile-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 320px;
    padding: 0 16px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    list-style: none;
    margin: 0 auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu li {
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: none;
    background: transparent;
}

.mobile-menu.active li {
    animation: slideInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.mobile-menu.active li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.active li:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.active li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.active li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.active li:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.active li:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu a {
    display: block;
    color: #ffffff;
    padding: 14px 0;
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: color 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: #ffffff;
    background: transparent;
    text-decoration: none;
}

#menu a.active {
    color: #ffffff;
    background: transparent;
    /* No underline on mobile overlay */
}

.mobile-menu a.active {
    color: #ffffff;
    background: transparent;
    /* No underline on mobile overlay */
}

/* Close Icon */
.close-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.close-icon::before,
.close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#menu a {
    display: block;
    color: #ffffff;
    padding: 14px 0;
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: color 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.2px;
}

#menu a:last-child {
    border-bottom: none;
}

#menu a:hover {
    color: #ffffff;
    background: transparent;
}

#menu a.active {
    color: #ffffff;
    background: transparent;
}footer{padding:50px 0}.copyright{padding-top:20px}.copyright p{margin:0}.top span{margin:15px auto 0;border-radius:50%;border:3px solid #b9bfc4}.btn-rounded-white,.heading,.social li{display:inline-block}.social{text-align:right}.social ul{margin:5px 0 0;padding:0}.social li{font-size:1.25em;list-style:none}.social a{display:block;padding:10px}.social a:hover{color:#3498db}.btn-rounded-white{color:#fff;padding:15px 25px;border:3px solid #fff;border-radius:30px;transition:.5s;font-size:18px;}.btn-rounded-white:hover{color:#003161;background:#fff;text-decoration:none}#experience-timeline:after,#experience-timeline:before,.heading:after{position:absolute;content:'';background:#3498db}.shadow-large{box-shadow:0 3px 6px rgba(0,0,0,.08),0 3px 6px rgba(0,0,0,.15)}.heading{font-size:2em;font-weight:300;margin:0 0 30px}.heading:after{top:100%;height:1px;width:50px;left:0;right:0;margin:0 auto}#lead{height:100vh;min-height:500px;max-height:1080px;background:url(../images/lead-bg.jpg) 0 0/cover;padding:15px}#lead-content{position:absolute;z-index:10;top:50%;left:50%;transform:translate(-50%,-50%)}#lead-content h1,#lead-content h2{margin:0}#lead-content h1{color:#fff;font-weight:900;font-size:5em;text-transform:uppercase;letter-spacing:.05em;line-height:.9em}#lead-content h2{font-size:2.25em;margin-bottom:15px}#lead-down{position:absolute;left:0;width:100%;bottom:15px;color:#fff}#lead-down span{display:block;margin:0 auto;border-radius:50%;border:3px solid #a0cfee}#lead-down i{animation:1.5s infinite pulsate;padding-top:5px}@keyframes pulsate{0%,100%{transform:scale(1,1)}50%{transform:scale(1.2,1.2)}}#about{padding:75px 15px}#about h2,#experience h2,.optional-section h2{color:#374054}#about p{color:#74808a;margin:0}#experience{padding:50px 15px}#experience-timeline{margin:30px auto 0;position:relative;max-width:1000px}#experience-timeline:before{top:0;bottom:0;left:303px;right:auto;height:100%;width:3px;z-index:0}#experience-timeline:after{width:3px;height:40px;background:linear-gradient(to bottom,#3498db,rgba(52,152,219,0));top:100%;left:303px}.vtimeline-content{margin-left:350px;background:#fff;border:1px solid #e6e6e6;padding:15px;border-radius:3px;text-align:left ;border-radius:28px;}.vtimeline-point{position:relative;display:block;vertical-align:top;margin-bottom:30px}.vtimeline-icon {
    position: relative;
    color: #fff;
    width: 50px;
    height: 50px;
    background: linear-gradient(0deg, rgb(1, 3, 210) 0%, rgb(6, 0, 122) 100%);
    border-radius: 50%;
    float: left;
    z-index: 99;
    margin-left: 280px;
}
.vtimeline-icon i{display:block;font-size:2em;margin-top:10px}.vtimeline-date{width:260px;text-align:right;position:absolute;left:0;top:10px;font-weight:300;color:#374054}#education{padding:50px 15px 20px}#education h2,#projects h2,#skills h2, #technologies h2{color:#374054;margin-bottom:50px}.education-block{max-width:700px;margin:0 auto 30px;padding:15px;border-radius:28px;border:1px solid #dcd9d9;text-align:left}#contact,#projects,#skills,.optional-section{padding:50px 15px;text-align:center}.education-block h3{font-weight:500;float:left;margin:0;color:#374054}.education-block span{color:#74808a;float:right}.education-block h4,.optional-section-block h4{color:#74808a;clear:both;font-weight:500;margin:0 0 15px}.education-block p,.education-block ul{margin:0;color:#74808a;font-size:16px}#contact h2,.optional-section-block h3{color:#374054;font-weight:500;margin:0 0 15px}.education-block ul,.optional-section-block ul{padding:0 0 0 15px}.project-info h3{font-weight:300;margin:0 0 15px}.project-info p{margin:0 0 15px}#lead-overlay,#more-projects{display:none}#skills ul{display:block;margin:0 auto;padding:0;max-width:800px}

/* Enhanced animated skill tags */
#skills li{
    display:inline-block;
    margin:7px;
    padding:5px 10px;
    color:#374054;
    background:#e4e4ea;
    list-style:none;
    cursor:default;
    font-size:1.2em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 20px;
}

#skills li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

#skills li:hover {
    background: linear-gradient(0deg, rgb(1, 3, 210) 0%, rgb(6, 0, 122) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 3, 210, 0.3);
}

#skills li:hover::before {
    left: 100%;
}#contact-form{max-width:500px;margin:0 auto}#contact-form input,#contact-form textarea{display:block;width:100%;padding:10px;border-radius:4px;border:none;margin-bottom:10px;background:#1d6fa5;color:#fff;transition:.5s}#contact-form input::-webkit-input-placeholder,#contact-form textarea::-webkit-input-placeholder{color:#fff}#contact-form input:-moz-placeholder,#contact-form textarea:-moz-placeholder{color:#fff;opacity:1}#contact-form input::-moz-placeholder,#contact-form textarea::-moz-placeholder{color:#fff;opacity:1}#contact-form input:-ms-input-placeholder,#contact-form textarea:-ms-input-placeholder{color:#fff}#contact-form input:focus,#contact-form textarea:focus{outline:0;background:#16527a}#contact-form textarea{height:150px;resize:none}#contact-form button{display:block;width:100%;background:#fff;border-radius:4px;padding:5px 10px;border:none;color:#3498db;font-weight:700;transition:.5s}#contact-form button:hover{box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23)}.optional-section{border-top:1px solid #dcd9d9}.optional-section-block{max-width:700px;margin:0 auto 30px;padding:15px;border:1px solid #dcd9d9;background:#fff;text-align:left}.optional-section-block p,.optional-section-block ul{margin:0 0 15px;color:#74808a;font-size:.9em}@media only screen and (max-width:750px){#experience-timeline:after,#experience-timeline:before{left:23px}.vtimeline-date{width:auto;text-align:left;position:relative;margin-bottom:15px;display:block;margin-left:70px}.vtimeline-icon{margin-left:0}.vtimeline-content{margin-left:70px}}@media only screen and (max-width:992px){#lead{height:auto;min-height:auto;max-height:auto;padding:100px 15px}#lead-content{position:relative;transform:none;left:auto;top:auto}#lead-content h1{font-size:3em}#lead-content h2{font-size:1.75em}#about{text-align:center}#about p{text-align:left}}@media only screen and (max-width:768px){#menu li,#mobile-menu-close,#mobile-menu-open{display:block}#lead-down,header{display:none}

header{
    position:fixed;z-index:99999999!important;animation:none;bottom:0;height:100%;
    background: transparent;
}

header.active {
    display: block;
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-menu {
        top: 55%;
    }
    
    .mobile-menu a {
        padding: 12px 0;
        margin: 0;
        font-size: 18px;
    }
    
    .close-button {
        top: 15px;
        right: 15px;
    }
}

/* Small mobile screen adjustments */
@media (max-width: 480px) {
    .mobile-menu {
        max-width: 250px;
    }
    
    .mobile-menu a {
        font-size: 16px;
        padding: 12px 0;
    }
    
    .close-button {
        width: 40px;
        height: 40px;
    }
}

#menu{
    /* use natural height so flex parent can center it */
    height:auto;
    max-height: 85vh;
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
    box-shadow:none;
    border-radius:0;
    width:100%;
    background: transparent;
    margin: 0;
    padding: 0;
}

/* hide inner scrollbar visuals while keeping scroll functionality */
#menu::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
#menu { scrollbar-width: none; }

#menu li{margin-bottom:0; margin: 0; padding: 0; background: transparent;}#lead-content h1{font-size:2em}#lead-content h2{font-size:1.3em}#lead-content a{padding:10px 20px}.education-block h3,.education-block span{float:none}.project-info{position:relative;margin:0;padding:30px 15px;top:auto;transform:none}.social,footer{text-align:center}}@media only screen and (max-width:480px){#lead-content h1{font-size:1.5em}#lead-content h2{font-size:2em}#lead-content a{font-size:.9em;padding:5px 10px}}.project{position:relative;background:#fff;max-width:600px;margin:0 auto 30px;border-radius:28px;box-shadow:0 2px 4px rgba(0,0,0,.1)}.project-content{display:flex;flex-direction:column}.project-image{float:left;width:100%;border-top-left-radius:4px;border-top-right-radius:4px}.project-info{padding:15px;background-color:#f7f7f7;border:1px solid #ddd;border-top:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.project-info h3{font-size:1.2em;color:#374054;margin-bottom:10px}.project-info p{color:#74808a;font-size:16px;margin-bottom:10px}.project-info a{display:inline-block;background-color:#124e66;color:#fff;padding:8px 15px;border-radius:4px;text-decoration:none;transition:background-color .3s}.project-info a:hover{background-color:#2b3643}.thatsme{width:150px;height:150px;border-radius:50%;display:block;margin-left:auto;margin-right:auto;margin-top:10px}@media only screen and (min-width:992px){.thatsme{width:150px;height:150px;border-radius:50%;display:block;margin-top:10px;margin-right:220px}}


::-webkit-scrollbar {
    width: 20px;
}
#about p{
    font-size: 18px;
    line-height: 26px;
   color: #4a5565;
}
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(0deg, rgb(1, 0, 190) 0%, rgb(6, 0, 122) 100%); /* Gradient */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(0deg, rgb(1, 0, 190) 0%, rgb(6, 0, 122) 100%); /* Gradient */
}



.count-particles{
  background: #000022;
  position: absolute;
  top: 48px;
  left: 0;
  width: 80px;
  color: #13E8E9;
  font-size: .8em;
  text-align: left;
  text-indent: 4px;
  line-height: 14px;
  padding-bottom: 2px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.js-count-particles{
  font-size: 1.1em;
}

#stats,
.count-particles{
  -webkit-user-select: none;
  margin-top: 5px;
  margin-left: 5px;
}

#stats{
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.count-particles{
  border-radius: 0 0 3px 3px;
}

@media only screen and (max-width: 992px) {
    #lead-content {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
    }
}
@media only screen and (max-width: 992px) {
    #lead {
        height: auto;
        min-height: auto;
        max-height: auto;
        padding: 100px 15px;
    }
}

/* ---- particles.js container ---- */

#particles-js{
  width: 100%;
  height: 100%;
  background-image: url('');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}


.project:hover::before {
  transform: scale(1.1) !important;
  box-shadow: 0 0 15px #ababab !important;
}

/* Enhanced project card hover effects */
.project {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}



@keyframes slideIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.new-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff5252, #ff7979);
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.8s ease-out, pulse 1.5s ease-in-out infinite;
}

.project-content {
    position: relative;
    animation: fadeInOut 3s infinite;
}

/* --- Scroll reveal animation for project cards --- */
.reveal-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        will-change: opacity, transform;
}

.reveal-visible {
        opacity: 1;
        transform: translateY(0);
}

/* --- Projects: 2 per row on desktop --- */
@media (min-width: 992px) {
    #projects .row {
        display: flex;
        flex-wrap: wrap;
        gap: 50px 30px; /* row-gap, column-gap */
        align-items: stretch;
        margin-left: 0;  /* neutralize bootstrap negative margins causing shift */
        margin-right: 0;
        justify-content: flex-start;
        align-content: flex-start;
    }

    #projects .project {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
        margin: 0; /* spacing handled by gap */
        box-sizing: border-box;
    }
    /* Remove side padding so first column aligns flush in projects grid */
    #projects > .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ensure inner content fills card height so the info background reaches the bottom */
#projects .project .project-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#projects .project .project-info {
    flex: 1 1 auto;            /* expand grey area to fill remaining height */
    display: flex;
    flex-direction: column;
}

/* Keep CTA button at the bottom of the grey panel for consistent alignment */
#projects .project .project-info a {
    margin-top: auto;
    align-self: center; /* center the button horizontally */
    width: auto;
}

/* --- Project card visual fixes (remove white band) --- */
/* Make outer card background transparent and let inner blocks define visuals */
.project {
    background: transparent;
}

/* Ensure image fills width without float and matches large corner radius */
.project-image {
    float: none;
    display: block;
    width: 100%;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
}

/* Match bottom radii so grey info block looks like a single card */
.project-info {
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

/* Disable unintended looping animation on content (prevents flicker) */
.project-content {
    animation: none;
}

/* Active nav highlight */
header a.active{
    background: transparent;
    color: #ffffff !important;
    border-radius: 0;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.6);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(0deg, rgb(1, 3, 210) 0%, rgb(6, 0, 122) 100%);
    z-index: 99999;
    transition: width 0.1s ease;
}

/* Enhanced CTA Buttons */
.cta-primary {
    background: linear-gradient(0deg, rgb(1, 3, 210) 0%, rgb(6, 0, 122) 100%) !important;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-primary:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 3, 210, 0.4);
    text-decoration: none;
}

/* Apply to existing project CTAs */
.project-info a {
    background: linear-gradient(0deg, rgb(1, 3, 210) 0%, rgb(6, 0, 122) 100%) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.project-info a:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 3, 210, 0.4);
    text-decoration: none;
}

/* Project Tags */
.project-tags {
    margin-bottom: 15px;
}

.project-tags .tag {
    display: inline-block;
    background: rgba(1, 3, 210, 0.1);
    color: rgb(1, 3, 210);
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(1, 3, 210, 0.2);
    transition: all 0.3s ease;
}

.project-tags .tag:hover {
    background: linear-gradient(0deg, rgb(1, 3, 210) 0%, rgb(6, 0, 122) 100%);
    color: white;
    transform: translateY(-1px);
}

