﻿/* =========================================
   REALISTIC MILKY WAY / GALAXY THEME
========================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    width: 100%;
}

    body.dark {
        position: relative;
        min-height: 100vh;
        overflow-x: hidden;
        color: #ffffff;
        background: #020617;
        display: flex;
        flex-direction: column;
        isolation: isolate;
    }

        /* =========================================
   DEEP SPACE BACKGROUND (IMPROVED REALISM)
========================================= */
        body.dark::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: -3;
            pointer-events: none;
            /* Deep space base + subtle nebula */
            background: radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.18), transparent 35%), radial-gradient(circle at 80% 25%, rgba(59, 130, 246, 0.15), transparent 40%), radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.10), transparent 45%), radial-gradient(circle at 40% 60%, rgba(14, 165, 233, 0.12), transparent 50%), linear-gradient(to bottom, #020617 0%, #020b1d 30%, #030712 60%, #000814 100% );
        }

        /* =========================================
   STAR LAYER (REALISTIC STAR FIELD)
========================================= */
        body.dark::after {
            content: "";
            position: fixed;
            inset: 0;
            z-index: -2;
            pointer-events: none;
            background-image: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.9) 50%, transparent 100%), radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,0.7) 50%, transparent 100%), radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.8) 50%, transparent 100%), radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.6) 50%, transparent 100%), radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,0.7) 50%, transparent 100%), radial-gradient(2px 2px at 30% 70%, rgba(255,255,255,0.9) 50%, transparent 100%), radial-gradient(2px 2px at 60% 80%, rgba(255,255,255,0.6) 50%, transparent 100%);
            background-repeat: repeat;
            background-size: 100% 100%;
            opacity: 0.9;
        }

        /* =========================================
   MILKY WAY CORE BAND (FIXED LOOK)
========================================= */
        body.dark .milkyway {
            position: fixed;
            top: 50%;
            left: 50%;
            width: 180%;
            height: 60%;
            z-index: -1;
            pointer-events: none;
            /* long galaxy streak instead of blob */
            background: linear-gradient( 115deg, transparent 0%, rgba(255,255,255,0.03) 35%, rgba(147,197,253,0.08) 45%, rgba(139,92,246,0.10) 50%, rgba(255,255,255,0.05) 55%, transparent 70% );
            transform: translate(-50%, -50%) rotate(-25deg);
            filter: blur(20px);
            opacity: 0.85;
        }

        /* =========================================
   EXTRA STAR DENSITY
========================================= */
        body.dark .stars-overlay {
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background-image: radial-gradient(1px 1px, rgba(255,255,255,0.55) 1px, transparent 1px);
            background-size: 4px 4px;
            opacity: 0.08;
        }

/* =========================================
   TWINKLING
========================================= */
@keyframes twinkleStars {
    0% {
        opacity: 0.65;
        transform: scale(1);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.75;
        transform: scale(1.01);
    }
}

/* =========================================
   REALISTIC SHOOTING STARS
========================================= */
.shooting-star {
    position: fixed;
    width: 1px;
    height: 10px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient( to bottom, rgba(255,255,255,1), rgba(125,211,252,0.85), rgba(59,130,246,0.3), transparent );
    border-radius: 999px;
    transform: rotate(-45deg);
    box-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 20px rgba(125,211,252,0.8), 0 0 40px rgba(59,130,246,0.6), 0 0 80px rgba(59,130,246,0.3);
    filter: blur(0.3px);
}

    /* STAR 1 */
    .shooting-star:nth-child(1) {
        animation: meteor1 8s linear infinite;
        animation-delay: 0s;
    }

    /* STAR 2 */
    .shooting-star:nth-child(2) {
        animation: meteor2 10s linear infinite;
        animation-delay: 3s;
    }

    /* STAR 3 */
    .shooting-star:nth-child(3) {
        animation: meteor3 12s linear infinite;
        animation-delay: 6s;
    }

@keyframes meteor1 {
    0% {
        top: -15%;
        left: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        top: 70%;
        left: 110%;
        opacity: 0;
    }
}

@keyframes meteor2 {
    0% {
        top: 5%;
        left: 100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        top: 80%;
        left: -20%;
        opacity: 0;
    }
}

@keyframes meteor3 {
    0% {
        top: 50%;
        left: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        top: -10%;
        left: 110%;
        opacity: 0;
    }
}

/* =========================================
   GLASS NAVBAR
========================================= */
body.dark .navbar {
    position: sticky;
    top: 0;
    background: rgba(2, 6, 23, 0.45) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 30px rgba(59,130,246,0.12);
    z-index: 1000;
}

/* =========================================
   GLASS CARDS
========================================= */
body.dark .card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 1px rgba(255,255,255,0.03);
    color: white;
}

/* =========================================
   FOOTER FIX
========================================= */
body.dark footer {
    margin-top: auto;
    background: transparent;
    position: relative;
    z-index: 1;
}




body.dark .navbar .nav-link,
body.dark .navbar .navbar-brand {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

    /* KEEP HOVER YELLOW */
    body.dark .navbar .nav-link:hover,
    body.dark .navbar .navbar-brand:hover,
    body.dark .navbar .nav-link:focus,
    body.dark .navbar .nav-link.active {
        color: #fbbf24 !important;
    }

    /* Optional glowing hover effect */
    body.dark .navbar .nav-link:hover {
        text-shadow: 0 0 8px rgba(251, 191, 36, 0.7);
    }

/* =========================
   HERO SECTION
========================= */
body.dark .hero-section {
    background: transparent;
    position: relative;
    z-index: 1;
}

/* =========================
   FOOTER FIX
========================= */
body.dark footer {
    margin-top: auto;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* =========================
   CONTENT LAYERS
========================= */
body.dark main,
body.dark section,
body.dark .container,
body.dark .card {
    position: relative;
    z-index: 1;
}

/* =========================
   CARD DESIGN
========================= */
body.dark .card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    color: white;
}

/* =========================
   TEXT HIGHLIGHT
========================= */
body.dark strong {
    color: #fbbf24;
}
/* Profile Image */
.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 5px solid #fbbf24;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 40px;
}

    .profile-image:hover {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content-wrapper {
    padding: 0px 29px 71px !important;
}

/* Hero Section Enhancements */
.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 15%;
    /*    gap: 50px !important;*/
}

    .hero-content h1 {
        animation: fadeInUp 0.8s ease-out 0.2s both;
        color: #ffffff;
    }

    .hero-content p {
        animation: fadeInUp 0.8s ease-out 0.4s both;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .btn {
        animation: fadeInUp 0.8s ease-out 0.6s both;
    }

/* Project Card Enhancements */
.project-card {
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: none;
}

    .project-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), transparent);
        opacity: 0;
        transition: 0.3s ease;
        pointer-events: none;
    }

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0px 20px 50px rgba(250, 204, 21, 0.12);
    }

        .project-card:hover::before {
            opacity: 1;
        }

    .project-card.filtered-out {
        display: none;
    }

.card img {
    height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
    width: 100%;
}

.project-card:hover .card img {
    transform: scale(1.05);
}

.project-badge {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

.filter-btn {
    transition: all 0.3s ease;
    border-color: #475569;
    color: #cbd5e1;
}

    .filter-btn:hover,
    .filter-btn.active {
        background-color: #3b82f6;
        border-color: #3b82f6;
        color: #ffffff;
    }

/* Skills Section */
.skill-tag {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    margin: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .skill-tag i {
        margin-right: 8px;
        font-size: 1rem;
    }

    .skill-tag:hover {
        background-color: #2563eb;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
    }

.skill-category {
    margin-bottom: 30px;
}

    .skill-category h4 {
        color: #ffffff2e !important;
        font-weight: 600;
        margin-bottom: 20px;
        padding-bottom: 10px;
        /*        border-bottom: 2px solid rgba(251, 191, 36, 0.3);*/
    }

    .skill-category h5 {
        color: lightgray !important;
        /*    border-bottom: 2px solid #fbbf24;*/
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

.skills-container {
    margin-bottom: 30px;
    padding: 30px 0 !important;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 100%;
        background: linear-gradient(to bottom, #fbbf24, #fbbf24);
    }

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 0;
        margin-right: 52%;
        text-align: right;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 52%;
        margin-right: 0;
        text-align: left;
    }

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #fbbf24;
    border: 4px solid #0a0e27;
    border-radius: 50%;
    z-index: 10;
}

.timeline-content {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #fbbf24;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 3px solid #fbbf24;
}

.timeline-content:hover {
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3), 0 0 20px rgba(251, 191, 36, 0.2);
    transform: translateY(-4px);
    border-left-color: #fbbf24;
    background-color: rgba(30, 41, 59, 0.8);
}

.timeline-item:nth-child(even) .timeline-content:hover {
    border-right-color: #fbbf24;
}

.timeline-content h5 {
    color: #fbbf24;
    margin-bottom: 5px;
}

.timeline-content .timeline-date {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1px;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

@media (max-width: 767px) {
    .social-links {
        justify-content: center;
    }
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fbbf24 !important; /*#3b82f6*/
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

    .social-link:hover {
        color: #3b82f6 !important; /*#fbbf24*/
        transform: translateY(-4px);
    }

/* Contact Section */
.contact-card {
    background-color: #1e293b;
    border: 2px solid #3b82f6;
    transition: all 0.3s ease;
    padding: 2.5rem !important;
    min-width: 240px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .contact-card:hover {
        border-color: #2563eb;
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
        transform: translateY(-5px);
    }

.contact-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .flex-nowrap {
        flex-wrap: wrap !important;
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 280px !important;
        height: 280px !important;
        min-width: 280px !important;
        min-height: 280px !important;
    }
}
/* Modal Enhancements */
.modal-content {
    background-color: #1e293b;
    border: 1px solid #3b82f6;
}

.modal-header {
    border-bottom-color: #3b82f6;
}

.modal-title {
    color: #fbbf24;
}

.close {
    color: #cbd5e1;
}

.btn-close {
    filter: invert(1);
}

/* Footer */
footer {
    /*    background-color: rgba(0, 8, 20, 0.8) !important;*/
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: auto;
    position: relative;
    z-index: 10;
    /*    border-top: 1px solid rgba(72, 219, 251, 0.2);*/
}

    footer a {
        color: #3b82f6;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        footer a:hover {
            color: #fbbf24;
        }

/* Footer Mobile Responsive */
@media (max-width: 767px) {
    footer .row {
        flex-direction: column;
    }

    footer .col-md-6 {
        text-align: center !important;
        margin-bottom: 15px;
    }

        footer .col-md-6:first-child {
            order: 2;
            margin-bottom: 0;
            margin-top: 0px;
        }

        footer .col-md-6:last-child {
            order: 1;
        }
}

.custom-container {
    min-height: 83vh;
}

.container {
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

/* Skill Icons Grid */
.skill-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
    justify-items: center;
}

.skill-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    color: #fbbf24;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .skill-icon:hover {
        background-color: none;
        color: #ffffff;
        transform: scale(1.15);
        box-shadow: 0 10px 25px rgb(243 246 59 / 40%);
    }

/* Tools & Platforms Grid - 5 columns */
.skill-grid-tools {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .skill-icons-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 15px;
    }

    .skill-grid-tools {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    .skill-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .skill-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .skill-grid-tools {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

/* Fade In Animation for Contact Section */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-section {
    animation: fadeInDown 0.8s ease-out;
}

/* Scroll Triggered Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.skill-icon.fade-in {
    animation: fadeInScale 1.5s ease-in-out forwards;
    opacity: 0;
}

    .skill-icon.fade-in:nth-child(1) {
        animation-delay: 0.1s;
    }

    .skill-icon.fade-in:nth-child(2) {
        animation-delay: 0.2s;
    }

    .skill-icon.fade-in:nth-child(3) {
        animation-delay: 0.3s;
    }

    .skill-icon.fade-in:nth-child(4) {
        animation-delay: 0.4s;
    }

    .skill-icon.fade-in:nth-child(5) {
        animation-delay: 0.5s;
    }

    .skill-icon.fade-in:nth-child(6) {
        animation-delay: 0.6s;
    }

    .skill-icon.fade-in:nth-child(7) {
        animation-delay: 0.7s;
    }

    .skill-icon.fade-in:nth-child(8) {
        animation-delay: 0.8s;
    }

    .skill-icon.fade-in:nth-child(9) {
        animation-delay: 0.9s;
    }

    .skill-icon.fade-in:nth-child(10) {
        animation-delay: 1s;
    }

    .skill-icon.fade-in:nth-child(11) {
        animation-delay: 1.1s;
    }

    .skill-icon.fade-in:nth-child(12) {
        animation-delay: 1.2s;
    }

    .skill-icon.fade-in:nth-child(13) {
        animation-delay: 1.3s;
    }

    .skill-icon.fade-in:nth-child(14) {
        animation-delay: 1.4s;
    }

    .skill-icon.fade-in:nth-child(15) {
        animation-delay: 1.5s;
    }

    .skill-icon.fade-in:nth-child(16) {
        animation-delay: 1.6s;
    }

    .skill-icon.fade-in:nth-child(17) {
        animation-delay: 1.7s;
    }

    .skill-icon.fade-in:nth-child(18) {
        animation-delay: 1.8s;
    }

/* Scroll to Top Button */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    margin-bottom: 50px;
}

    #scrollToTopBtn.show {
        display: flex;
        animation: slideInUp 0.3s ease-out;
    }

    #scrollToTopBtn:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
    }

    #scrollToTopBtn:active {
        transform: translateY(-2px);
    }

@media (max-width: 576px) {
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Enhanced Button Styles */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    }

.btn-outline-light {
    border: 2px solid #e2e8f0;
    color: #e2e8f0;
}

    .btn-outline-light:hover {
        background-color: #e2e8f0;
        color: #0f172a;
        transform: translateY(-2px);
    }

.btn-outline-secondary {
    border: 2px solid #475569;
    color: #cbd5e1;
}

    .btn-outline-secondary:hover {
        background-color: #3b82f6;
        border-color: #3b82f6;
        color: white;
    }

/* Link Styling */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        text-decoration: none;
    }

/* Card Enhancements */
.card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    transition: color 0.3s ease;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
    color: #ffffff;
}

/* Text Utilities */
.text-highlight {
    color: #fbbf24;
    font-weight: 600;
}

.text-muted-light {
    color: #cbd5e1;
}

.text-primary-light {
    color: #3b82f6;
}

/*Back button*/
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #facc15 !important; /* Yellow */
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .back-button:hover {
        color: #3b82f6 !important; /* Blue on hover */
    }

.section-icon-wrapper-custom-color {
    /* background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); */
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2) !important;
}

.hero-image-container-custom {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #149376;
}

.overview-text-custom {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
    background: linear-gradient(266deg, #1e293b 0%, #0f172a00 100%);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #facc15;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.section-divider-custom {
    height: 2px;
    background: linear-gradient(to right, transparent, #eaf63b54, transparent);
    margin: 50px 0 60px;
    opacity: 0.6;
    clear: both;
}

.highlight-item-custom {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    /*    border: 1px solid rgb(246 214 59 / 42%);*/
    border-radius: 10px;
    transition: all 0.3s ease;
}

/*Contributions*/
/* =========================
   Contributions Section
========================= */

.contributions-section {
    margin-top: 40px;
}

/* Header */
.modern-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 35px;
}

.section-icon {
    font-size: 1.8rem;
    color: #facc15;
}

.section-header-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.section-subtitle {
    color: #9ca3af;
    margin: 0;
    font-size: 0.95rem;
}

/* Grid Layout */
.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Contribution Card */
.contribution-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    /*    border: 1px solid rgba(255, 255, 255, 0.06);*/
    transition: all 0.3s ease;
    overflow: hidden;
}

    .contribution-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(250, 204, 21, 0.08), transparent );
        opacity: 0;
        transition: 0.3s ease;
    }

    .contribution-card:hover {
        transform: translateY(-6px);
        border-color: rgba(250, 204, 21, 0.25);
        box-shadow: 0px 20px 50px rgba(250, 204, 21, 0.12);
    }

        .contribution-card:hover::before {
            opacity: 1;
        }

.contribution-icon {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .contribution-icon i {
        color: #facc15;
        font-size: 1.1rem;
    }

.contribution-content h5 {
    color: lightgray !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .modern-header {
        align-items: flex-start;
    }

    .section-header-text h2 {
        font-size: 1.5rem;
    }

    .contribution-card {
        padding: 18px;
    }
}

/* =========================
   Features Section
========================= */

.features-section {
    margin-top: 40px;
}

/* Grid Layout */
.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Feature Card */
.feature-card-modern {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    /*    border: 1px solid rgba(255, 255, 255, 0.06);*/
    transition: all 0.3s ease;
    overflow: hidden;
}


    .feature-card-modern::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(250, 204, 21, 0.08), transparent );
        opacity: 0;
        transition: 0.3s ease;
    }

    .feature-card-modern:hover {
        transform: translateY(-6px);
        border-color: rgba(250, 204, 21, 0.25);
        box-shadow: 0px 20px 50px rgba(250, 204, 21, 0.12);
    }

        .feature-card-modern:hover::before {
            opacity: 1;
        }

.feature-card {
    border: none !important;
}

    .feature-card:hover {
        border-top-color: yellow !important;
        box-shadow: 0px 20px 50px rgba(250, 204, 21, 0.12) !important;
    }

    .feature-card::before {
        background: none !important;
    }

/* Icon */
.feature-icon-wrapper-modern {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-modern {
    color: #facc15;
    font-size: 1.1rem;
}

/* Content */
.feature-info-modern h5 {
    color: lightgray !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .feature-card-modern {
        padding: 18px;
    }
}


/* =========================
   Tech Stack Section
========================= */

.tech-section {
    margin-top: 40px;
}

/* Tech Stack Layout */
.tech-stack-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

/* Tech Item */
.tech-item {
    position: relative;
}

/* Icon Container */
.tech-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

    .tech-icon i {
        font-size: 1.6rem;
        color: #facc15;
        transition: 0.3s ease;
    }

/* Hover Effects */
.tech-item:hover .tech-icon {
    transform: translateY(-6px) scale(1.05);
    border-color: rgba(250, 204, 21, 0.25);
    box-shadow: 0px 20px 50px rgba(250, 204, 21, 0.12), 0px 0px 20px rgba(250, 204, 21, 0.08);
}

    .tech-item:hover .tech-icon i {
        transform: scale(1.1);
    }

/* Tooltip */
.tech-tooltip {
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #111827;
    color: #f9fafb;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

    /* Tooltip Arrow */
    .tech-tooltip::before {
        content: "";
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 10px;
        height: 10px;
        background: #111827;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

/* Show Tooltip */
.tech-item:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .tech-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

        .tech-icon i {
            font-size: 1.3rem;
        }

    .tech-tooltip {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* =========================
   Tech Stack Section
========================= */

.tech-section {
    margin-top: 40px;
}

/* Grid Layout */
.tech-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Tech Card */
.tech-card-modern {
    position: relative;
    align-items: center;
    gap: 15px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    /*    border: 1px solid rgba(255, 255, 255, 0.06);*/
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

    /* Gradient Hover Overlay */
    .tech-card-modern::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(250, 204, 21, 0.08), transparent );
        opacity: 0;
        transition: 0.3s ease;
    }

    /* Hover Effects */
    .tech-card-modern:hover {
        transform: translateY(-6px);
        border-color: rgba(250, 204, 21, 0.25);
        box-shadow: 0px 20px 50px rgba(250, 204, 21, 0.12), 0px 0px 20px rgba(250, 204, 21, 0.05);
    }

        .tech-card-modern:hover::before {
            opacity: 1;
        }

/* Icon Wrapper */
.tech-icon-wrapper-modern {
    min-width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(250, 204, 21, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

/* Icon */
.tech-icon-modern {
    font-size: 1.2rem;
    color: #facc15;
}

/* Content */
.tech-info-modern h5 {
    margin: 0;
    color: lightgray !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
    .tech-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-card-modern {
        padding: 18px;
    }

    .tech-icon-wrapper-modern {
        min-width: 44px;
        height: 44px;
    }

    .tech-icon-modern {
        font-size: 1rem;
    }

    .tech-info-modern h5 {
        font-size: 0.95rem; 
    }
    .btn{
        margin-bottom: 10px;
    }
}

/* =========================
   Screenshot Gallery
========================= */

.gallery-section {
    margin-top: 40px;
}

/* Grid Layout */
.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Gallery Card */
.gallery-card-modern {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    /*    border: 1px solid rgba(255, 255, 255, 0.06);*/
    cursor: pointer;
    transition: all 0.35s ease;
}

/* Image */
.gallery-image-modern {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Effect */
.gallery-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(250, 204, 21, 0.25);
    box-shadow: 0px 20px 50px rgba(250, 204, 21, 0.12), 0px 0px 20px rgba(250, 204, 21, 0.05);
}

    .gallery-card-modern:hover .gallery-image-modern {
        transform: scale(1.08);
    }

/* Overlay */
.gallery-overlay-modern {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.2) );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card-modern:hover .gallery-overlay-modern {
    opacity: 1;
}

/* Zoom Icon */
.gallery-zoom-icon-modern {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
    transform: scale(0.8);
    transition: 0.3s ease;
}

.gallery-card-modern:hover .gallery-zoom-icon-modern {
    transform: scale(1);
}

.gallery-zoom-icon-modern i {
    color: #facc15;
    font-size: 1.7rem;
}

/* Label */
.gallery-label-modern {
    color: #f9fafb;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Mobile */
@media (max-width: 768px) {
    .gallery-grid-modern {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-image-modern {
        height: 220px;
    }

    .gallery-zoom-icon-modern {
        width: 58px;
        height: 58px;
    }

        .gallery-zoom-icon-modern i {
            font-size: 1.4rem;
        }

    .gallery-label-modern {
        font-size: 0.85rem;
    }
}

.challenge-card-custom {
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .challenge-card-custom:hover {
        border-color: ;
        box-shadow: 0 15px 40px rgba(251, 191, 36, 0.15);
        transform: translateY(-6px);
    }


.challenge-card:hover {
    border-color: none !important;
}

.section-header-custom {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 0;
    border-bottom: none;
    justify-content: center;
}

.architecture-container-custom {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}

.challenge-header-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.architecture-layer-custom {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: 0.3s;
    position: relative;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    text-align: center;
    align-content: center;
    flex-direction: column;
}

    .architecture-layer-custom:hover {
        background: rgba(59, 130, 246, 0.1);
        border-color: #3b82f6;
        box-shadow: 0 15px 40px rgb(246 180 59 / 20%);
        transform: translateX(8px);
    }

.cta-section-custom {
    /* background: linear-gradient(180deg, #000000 0%, #070b16 100%); */
    /* border: 2px solid #3b82f6; */
    /* border-radius: 16px; */
    padding: 50px 40px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 0;
    /* box-shadow: 0 20px 50px rgba(59, 130, 246, 0.1); */
    /* transition: all 0.3s ease; */
    clear: both;
    display: block;
    position: relative;
    z-index: 1;
}

.project-hero-custom {
    background: linear-gradient(181deg, #0f172a00 0%, #1e293b00 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 70px;
    /* box-shadow: 0 30px 80px rgba(59, 130, 246, 0.15); */
    /* border: 1px solid #334155; */
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {

    body.dark .navbar-collapse {
        position: fixed;
        top: 45px; /* adjust based on your navbar height */
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.85);
        backdrop-filter: blur(18px);
        z-index: 9999;
        /* CRITICAL: prevent layout push */
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        /* override Bootstrap collapse behavior */
        transform: none !important;
        padding: 13px;
        margin-top: 10px;
    }
}

.footer-custom {
    position: relative;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.btn-download {
    margin-right: 7px;
}

.project-status-badge {
    margin-bottom: 23px !important;
}

/* =========================================
   FOOTER OVERLAP FIX - ALL PAGES
========================================= */

/* Projects Page - Push content above footer */
@media (max-width: 768px) {
    .py-5 {
        padding-bottom: 8rem !important;
    }

    /*    .row .col-md-6:last-child {
        margin-bottom: 40px;
    }*/
}

@media (max-width: 576px) {
    .py-5 {
        padding-bottom: 12rem !important;
    }

    /*    .row .col-md-6:last-child {
        margin-bottom: 60px;
    }*/

    .card-footer {
        padding-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    .py-5 {
        padding-bottom: 14rem !important;
    }

    /*    .row .col-md-6:last-child {
        margin-bottom: 80px;
    }*/
}

/* Contact Page - Push cards above footer */
@media (max-width: 768px) {
    .contact-section {
        padding-bottom: 10rem !important;
    }

    .mb-4 {
        margin-bottom: 2rem !important;
    }

    .mb-md-5 {
        margin-bottom: 2rem !important;
    }

    .row.mb-4 {
        margin-bottom: 4rem !important;
    }

    .hero-badges-section {
        display: flex;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding-bottom: 15rem !important;
    }

    .col-12.col-md-4:last-child {
        margin-bottom: 60px;
    }

    .row.mb-4.mb-md-5 {
        margin-bottom: 6rem !important;
        padding-bottom: 2rem;
    }

    .hero-badges-section {
        display: flex;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding-bottom: 18rem !important;
    }

    .col-12.col-md-4:last-child {
        margin-bottom: 80px;
    }

    .row.mb-4.mb-md-5 {
        margin-bottom: 8rem !important;
        padding-bottom: 3rem;
    }
}

/* About Page Timeline - Push experience above footer */
@media (max-width: 768px) {
    .py-5:last-of-type {
        padding-bottom: 10rem !important;
    }

    .timeline-item:last-child {
        margin-bottom: 60px !important;
    }

    .hero-badges-section {
        display: flex;
    }
}

@media (max-width: 576px) {
    .py-5:last-of-type {
        padding-bottom: 15rem !important;
    }

    .timeline-item:last-child {
        margin-bottom: 80px !important;
    }

    .timeline {
        margin-bottom: 40px;
    }

    .hero-badges-section {
        display: flex;
    }
}

@media (max-width: 480px) {
    .py-5:last-of-type {
        padding-bottom: 1rem !important;
    }

    .timeline-item:last-child {
        margin-bottom: -45px !important;
    }

    .timeline {
        margin-bottom: 50px;
    }

    section.container {
        padding-bottom: 5rem !important;
    }

    .hero-content {
        margin-bottom: 0px;
    }

    .project-status-badge {
        margin-bottom: 40px
    }

    .hero-buttons-section {
        margin-bottom: -10px;
    }

    .cta-section-custom {
        margin-bottom: 100px;
        margin-top: -10px;
    }

    .hero-badges-section {
        display: flex;
    }
}

@media (max-width: 768px) {
    body.dark .hero-section {
        justify-content: center;
        center horizontally align-items: center;
        center vertically flex-direction: column;
        stack items for mobile text-align: center;
        center text content
    }
}

@media (max-width: 480px) {
    body.dark .hero-section {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 20px;
        margin-top: 25px;
    }
}

@media (max-width: 225px) {
    .btn {
        margin-bottom: 100px;
    }

    .btn-download {
        margin-right: 7px;
    }

    .hero-badges-section {
        display: flex;
        gap: 0px;
        flex-wrap: nowrap;
        margin-left: 3px;
    }
}


.border-bottom {
    border-bottom: none !important;
}
.border-secondary {
    --bs-border-opacity: none;
    border-color: none !important;
}
.border-top {
    border-top: none !important;
}
.border-bottom {
    border-bottom: none;
}