:root {
    --neon-blue: #00d4ff;
    --neon-cyan: #00ffea;
    --neon-purple: #7b2fff;
    --neon-gold: #ffd700;
    --neon-green: #00ff88;
    --dark-bg: #020b18;
}

body {
    background: var(--dark-bg) !important;
    color: rgba(200, 230, 255, 0.88) !important;
}

.sec-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.sec-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%, rgba(0, 212, 255, 0.32) 25%,
            rgba(0, 255, 234, 0.48) 50%, rgba(0, 212, 255, 0.32) 75%,
            transparent 100%);
}

/* =============================================
           PAGE HEADER
        ============================================= */
#hero.page-header {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    background: var(--dark-bg) !important;
    overflow: hidden;
    padding: 0;
}

#hero.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.038) 2px, rgba(0, 0, 0, 0.038) 4px);
    z-index: 1;
    pointer-events: none;
    animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
    from {
        background-position: 0 0
    }

    to {
        background-position: 0 100px
    }
}

#hero.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 85% at 50% 50%, rgba(2, 11, 24, 0.18) 0%, rgba(2, 11, 24, 0.62) 100%);
    z-index: 1;
    pointer-events: none;
}

#hero.page-header .container {
    position: relative;
    z-index: 2;
    padding-top: 110px;
    padding-bottom: 60px;
}

.hero-corner {
    position: absolute;
    width: 48px;
    height: 48px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.65;
}

.hc-tl {
    top: 20px;
    left: 20px;
    border-top: 2px solid var(--neon-blue);
    border-left: 2px solid var(--neon-blue);
}

.hc-tr {
    top: 20px;
    right: 20px;
    border-top: 2px solid var(--neon-blue);
    border-right: 2px solid var(--neon-blue);
}

.hc-bl {
    bottom: 20px;
    left: 20px;
    border-bottom: 2px solid var(--neon-blue);
    border-left: 2px solid var(--neon-blue);
}

.hc-br {
    bottom: 20px;
    right: 20px;
    border-bottom: 2px solid var(--neon-blue);
    border-right: 2px solid var(--neon-blue);
}

.hero-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue) 30%, var(--neon-cyan) 50%, var(--neon-blue) 70%, transparent);
    z-index: 3;
    pointer-events: none;
    animation: scanLine 5s ease-in-out infinite;
}

@keyframes scanLine {
    0% {
        top: 10%;
        opacity: 0
    }

    8% {
        opacity: .55
    }

    92% {
        opacity: .25
    }

    100% {
        top: 90%;
        opacity: 0
    }
}

#hero.page-header h1 {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(2rem, 5vw, 3.4rem) !important;
    color: #fff !important;
    text-shadow: 0 0 25px rgba(0, 212, 255, 0.75), 0 0 55px rgba(0, 212, 255, 0.30) !important;
    letter-spacing: 3px;
}

#hero.page-header p.lead {
    font-family: 'Rajdhani', sans-serif !important;
    color: rgba(185, 225, 255, 0.80) !important;
    font-size: 1.1rem !important;
}

.hero-title-line {
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    margin: 10px auto 0;
    border-radius: 2px;
    animation: titleLine 1.2s .5s ease forwards;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

@keyframes titleLine {
    to {
        width: 150px;
    }
}

/* =============================================
           PORTFOLIO SECTION
        ============================================= */
.portfolio-section {
    position: relative;
    background: #020e1a !important;
    overflow: hidden;
}

.portfolio-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Orbitron', sans-serif !important;
    color: #fff !important;
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    margin: 10px auto 0;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ---- filter buttons ---- */
.portfolio-filter .btn-outline-primary {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
    color: rgba(180, 220, 255, 0.70) !important;
    background: transparent !important;
    border-radius: 20px !important;
    padding: 7px 20px !important;
    transition: all 0.28s ease !important;
}

.portfolio-filter .btn-outline-primary:hover,
.portfolio-filter .btn-outline-primary.active {
    background: rgba(0, 212, 255, 0.12) !important;
    border-color: var(--neon-blue) !important;
    color: var(--neon-blue) !important;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.28) !important;
}

.portfolio-filter .btn-outline-primary.active {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.35) !important;
}

/* ---- portfolio cards ---- */
.portfolio-card {
    background: rgba(0, 15, 32, 0.80) !important;
    border: 1px solid rgba(0, 212, 255, 0.12) !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: all 0.35s ease !important;
    height: 100%;
}

.portfolio-card:hover {
    border-color: rgba(0, 212, 255, 0.52) !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.18), 0 8px 40px rgba(0, 0, 0, 0.5) !important;
}

/* image overlay */
.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(2, 11, 24, 0.88) 100%);
    transition: opacity 0.35s;
}

.portfolio-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.72) saturate(0.8);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.07);
    filter: brightness(0.88) saturate(1.1);
}

/* hover overlay icon */
.portfolio-img .overlay-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-img .overlay-icon i {
    font-size: 2rem;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.9));
}

.portfolio-card:hover .overlay-icon {
    opacity: 1;
}

/* info */
.portfolio-info {
    padding: 1.3rem 1.4rem 1.4rem;
}

.portfolio-info h3 {
    font-family: 'Orbitron', sans-serif !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
}

.portfolio-info p {
    font-family: 'Rajdhani', sans-serif !important;
    color: rgba(175, 220, 255, 0.68) !important;
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 0.9rem;
}

/* badges */
.portfolio-tags .badge {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.55rem !important;
    letter-spacing: 1.2px !important;
    font-weight: 700 !important;
    background: rgba(0, 212, 255, 0.12) !important;
    color: var(--neon-blue) !important;
    border: 1px solid rgba(0, 212, 255, 0.28) !important;
    border-radius: 10px !important;
    padding: 4px 9px !important;
    margin-right: 4px;
    margin-bottom: 4px;
    transition: all 0.25s;
}

.portfolio-card:hover .portfolio-tags .badge {
    background: rgba(0, 212, 255, 0.20) !important;
    border-color: rgba(0, 212, 255, 0.55) !important;
}

/* AI/ML card special color */
.portfolio-tags .badge-ai {
    background: rgba(123, 47, 255, 0.15) !important;
    color: #b97fff !important;
    border: 1px solid rgba(123, 47, 255, 0.35) !important;
}

.portfolio-card:hover .portfolio-tags .badge-ai {
    background: rgba(123, 47, 255, 0.28) !important;
    border-color: rgba(123, 47, 255, 0.6) !important;
}

/* filter animation */
.portfolio-item {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    display: none !important;
}

/* =============================================
           AI/ML PROJECTS BADGE ON CARD
        ============================================= */
.ai-badge-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: linear-gradient(135deg, rgba(123, 47, 255, 0.85), rgba(0, 212, 255, 0.85));
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(123, 47, 255, 0.5);
}

/* =============================================
           CERTIFICATIONS SECTION
        ============================================= */
.certs-section {
    position: relative;
    background: #030d1c !important;
    overflow: hidden;
}

.certs-section .container {
    position: relative;
    z-index: 1;
}

.cert-card {
    background: rgba(0, 12, 28, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    height: 100%;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.cert-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.12), 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cert-card:hover::before {
    opacity: 1;
}

/* gold highlight for top cert */
.cert-card.cert-gold {
    border-color: rgba(255, 215, 0, 0.22) !important;
}

.cert-card.cert-gold::before {
    background: linear-gradient(90deg, transparent, var(--neon-gold), #ffaa00, transparent) !important;
}

.cert-card.cert-gold:hover {
    border-color: rgba(255, 215, 0, 0.55) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.12), 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.cert-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    position: relative;
}

.cert-icon-wrap.blue {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.28);
    color: var(--neon-blue);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.15);
}

.cert-icon-wrap.gold {
    background: rgba(255, 215, 0, 0.10);
    border: 1px solid rgba(255, 215, 0, 0.30);
    color: var(--neon-gold);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.14);
}

.cert-icon-wrap.purple {
    background: rgba(123, 47, 255, 0.12);
    border: 1px solid rgba(123, 47, 255, 0.28);
    color: #b97fff;
    box-shadow: 0 0 18px rgba(123, 47, 255, 0.14);
}

.cert-icon-wrap.green {
    background: rgba(0, 255, 136, 0.10);
    border: 1px solid rgba(0, 255, 136, 0.25);
    color: var(--neon-green);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.12);
}

.cert-org {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cert-org.blue {
    color: var(--neon-blue);
}

.cert-org.gold {
    color: var(--neon-gold);
}

.cert-org.purple {
    color: #b97fff;
}

.cert-org.green {
    color: var(--neon-green);
}

.cert-card h3 {
    font-family: 'Orbitron', sans-serif !important;
    color: #fff !important;
    font-size: 0.88rem !important;
    letter-spacing: 1.2px;
    margin-bottom: 0.7rem;
}

.cert-card p {
    font-family: 'Rajdhani', sans-serif !important;
    color: rgba(170, 215, 255, 0.65) !important;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.cert-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1.8px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 7px 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.28s ease;
}

.cert-link.blue {
    color: var(--neon-blue) !important;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.06);
}

.cert-link.blue:hover {
    background: rgba(0, 212, 255, 0.18) !important;
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.30) !important;
    transform: translateX(3px);
}

.cert-link.gold {
    color: var(--neon-gold) !important;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.06);
}

.cert-link.gold:hover {
    background: rgba(255, 215, 0, 0.14) !important;
    border-color: var(--neon-gold) !important;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.25) !important;
    transform: translateX(3px);
}

/* rank badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 170, 0, 0.10));
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 20px;
    padding: 4px 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-gold);
    margin-bottom: 1rem;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.12);
}

.rank-badge i {
    font-size: 0.75rem;
}

/* points display */
.points-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--neon-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.points-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.55);
}

/* =============================================
           LEARNING / COURSES SECTION
        ============================================= */
.learning-section {
    position: relative;
    background: #020b18 !important;
    overflow: hidden;
}

.learning-section .container {
    position: relative;
    z-index: 1;
}

.mentor-card {
    background: rgba(0, 10, 24, 0.80);
    border: 1px solid rgba(0, 212, 255, 0.10);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mentor-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.mentor-card:hover {
    border-color: rgba(0, 212, 255, 0.30);
    transform: translateX(5px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.08);
}

.mentor-card:hover::before {
    opacity: 1;
}

.mentor-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mentor-avatar.cyan {
    background: rgba(0, 255, 234, 0.12);
    border: 1px solid rgba(0, 255, 234, 0.28);
    color: var(--neon-cyan);
}

.mentor-avatar.orange {
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.28);
    color: #ff8c00;
}

.mentor-avatar.nvidia {
    background: rgba(118, 185, 0, 0.12);
    border: 1px solid rgba(118, 185, 0, 0.28);
    color: #76b900;
}

.mentor-info h4 {
    font-family: 'Orbitron', sans-serif !important;
    color: #fff !important;
    font-size: 0.82rem !important;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.mentor-info .mentor-role {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: rgba(160, 210, 255, 0.55);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.mentor-info p {
    font-family: 'Rajdhani', sans-serif !important;
    color: rgba(170, 215, 255, 0.62) !important;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.event-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(118, 185, 0, 0.10);
    border: 1px solid rgba(118, 185, 0, 0.28);
    border-radius: 20px;
    padding: 3px 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #76b900;
    text-transform: uppercase;
}

/* =============================================
           CTA SECTION
        ============================================= */
.cta-section {
    position: relative;
    background: #030d1c !important;
    overflow: hidden;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.4;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0.4;
}

.cta-section h2 {
    font-family: 'Orbitron', sans-serif !important;
    color: #fff !important;
    font-size: clamp(1.4rem, 3.5vw, 2.5rem) !important;
    text-shadow: 0 0 28px rgba(0, 212, 255, 0.55), 0 0 55px rgba(0, 212, 255, 0.20);
}

.cta-section p.lead {
    font-family: 'Rajdhani', sans-serif !important;
    color: rgba(190, 230, 255, 0.80) !important;
    font-size: 1.15rem;
}

.cta-section .btn-primary {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan) !important;
    padding: 13px 38px;
    transition: all 0.3s ease;
    box-shadow: 0 0 16px rgba(0, 255, 234, 0.20), inset 0 0 16px rgba(0, 255, 234, 0.03);
}

.cta-section .btn-primary:hover {
    background: var(--neon-cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 36px rgba(0, 255, 234, 0.70) !important;
    transform: translateY(-3px) scale(1.03);
}

/* =============================================
           FOOTER
        ============================================= */
.footer {
    position: relative;
    background: #010810 !important;
    border-top: 1px solid rgba(0, 212, 255, 0.18) !important;
    overflow: hidden;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h4 {
    color: #fff !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.95rem !important;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
}

.footer h5 {
    color: var(--neon-blue) !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.72rem !important;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(150, 200, 230, 0.60) !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.95rem;
}

.footer a {
    color: rgba(150, 200, 230, 0.60) !important;
    text-decoration: none !important;
    transition: color 0.25s, text-shadow 0.25s;
}

.footer a:hover {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

.footer hr {
    border-color: rgba(0, 212, 255, 0.13) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
    font-family: 'Rajdhani', sans-serif;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 1rem;
}

.footer .footer-logo {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.35));
}

.back-to-top {
    background: rgba(0, 212, 255, 0.10) !important;
    border: 1px solid rgba(0, 212, 255, 0.38) !important;
    color: var(--neon-blue) !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.18);
    transition: all 0.3s ease !important;
}

.back-to-top:hover {
    background: var(--neon-blue) !important;
    color: #000 !important;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.6) !important;
}