:root {
    --bg-color: #f0f4f8;
    --text-color: #1f2937;
    --accent-color: #0d9488;
    --nav-color: #1e293b;
    --hover-color: #38bdf8;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInBody 1.5s ease-in-out forwards;
}

@keyframes fadeInBody {
    to {
        opacity: 1;
    }
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

nav {
    background-color: var(--nav-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand, .nav-link {
    color: white !important;
}

.nav-link {
    padding: 10px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: white !important;
    border-radius: 5px;
}

.nav-link::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--accent-color);
    width: 0;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.profile-pic {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 20px;
    box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    to {
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    }
}

section {
    padding: 80px 20px;
    min-height: 100vh;
}


.tech-icons img:hover {
    box-shadow: 0 0 15px 5px var(--accent-color);
}
.tech-icons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }

        .tech-icons > div {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 10px; 
        }

        .tech-icons img {
            max-width: 80px; 
            height: auto;
            margin-bottom: 5px; 
        }
.contact-icons img {
    width: 60px;
    height: 60px;
    transition: box-shadow 0.3s ease-in-out;
}

.contact-icons img:hover {
    box-shadow: 0 0 15px 5px var(--accent-color);
}

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



.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

.modal-content {
    background-color: #01060c;
    color: white;
}

iframe {
    width: 100%;
    height: 400px;
}

.close {
    color: #fff;
    font-size: 2rem;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.bg-dark {
    background-color: transparent !important;
    color: var(--text-color) !important;
}

.bg-secondary {
    background-color: transparent !important;
    color: var(--text-color) !important;
}

#leafletMap {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-color: rgb(147, 196, 214);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
}

h1, .navbar-brand, .nav-link {
    font-family: 'Open Sans', sans-serif;
}

h2, .navbar-brand, .nav-link, .modal-title {
    font-family: 'Open Sans', sans-serif;
}

.navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--nav-color);
    z-index: 999;
}

@media (min-width: 992px) {
    .navbar-collapse {
        position: static;
        display: flex !important;
        width: auto;
        background-color: transparent;
    }
    .navbar-nav {
        flex-direction: row !important;
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column !important;
        text-align: center;
        padding: 15px 0;
    }
    .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-link:last-child {
        border-bottom: none;
    }
    .nav-link::after {
        display: none;
    }
}

.btn-dark-mode {
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    box-shadow: none;
}

body {
    font-family: 'Open Sans', sans-serif;
}

.modal-content:focus {
    outline: none;
}

body {
    font-family: 'Open Sans', sans-serif;
}

#about .container {
    text-align: center;
}

#about p {
    font-size: 1.15rem;
}


.certification-image {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.certification-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.clicked-image {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid var(--accent-color);
}

.modal-header {
    border-bottom: none;
}
.development-tools-category .tech-icon-list {
    flex-wrap: nowrap;
}
    .navbar {
      background-color: var(--nav-color, #0f172a);
    }
    .navbar .nav-link, .navbar .navbar-brand {
      color: #fff !important;
    }
    .btn-dark-mode {
      margin-left: 10px;
      background: none;
      border: none;
      font-size: 1.2rem;
      cursor: pointer;
      color: #fff;
    }
    /* === Progress Bars === */
    .tech-item {
      text-align: center;
      margin-bottom: 30px;
    }
    .tech-item img {
      width: 60px;
      display: block;
      margin: 0 auto 10px;
    }
    .tech-item p {
      margin: 0 0 5px;
      font-weight: 600;
    }
    .progress {
      height: 8px;
      border-radius: 9999px;
      overflow: hidden;
    }
    .progress-bar {
      height: 100%;
      border-radius: 9999px;
      transition: width 1s ease-in-out;
    }

    /* === Color Codes === */
    .languages { background: linear-gradient(90deg, #0d9488, #14b8a6, #06b6d4); }
    .frameworks { background: linear-gradient(90deg, #9333ea, #a855f7, #c084fc); }
    .database { background: linear-gradient(90deg, #f59e0b, #fbbf24, #facc15); }
    .version { background: linear-gradient(90deg, #ef4444, #f87171, #fca5a5); }
    .ide { background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd); }

    /* Legend */
    .legend {
      text-align: center;
      margin-bottom: 40px;
    }
    .legend span {
      display: inline-block;
      margin: 0 15px;
      font-size: 14px;
      font-weight: 600;
    }
    .legend-box {
      width: 18px;
      height: 12px;
      display: inline-block;
      margin-right: 5px;
      border-radius: 3px;
    }

    /* === Dark/Light Mode Adaptation === */
    body.dark {
      --bg-color: #1f2937;
      --text-color: #f0f4f8;
      --nav-color: #1e293b;
    }
    body.light {
      --bg-color: #f0f4f8;
      --text-color: #1f2937;
      --nav-color: #0f172a;
    }

/* === Projects Page Enhancements === */
 .project-carousel {
      max-width: 320px;
      margin: auto;
    }
    .project-carousel img {
      border-radius: 10px;
      cursor: pointer;
    }
    .project-description {
      text-align: left;
    }
    @media (max-width: 768px) {
      .project-description {
        text-align: center;
        margin-top: 20px;
      }
    }
     .navbar {
      background-color: var(--nav-color, #0f172a);
    }
    .navbar .nav-link, .navbar .navbar-brand {
      color: #fff !important;
    }
    .btn-dark-mode {
      margin-left: 10px;
      background: none;
      border: none;
      font-size: 1.2rem;
      cursor: pointer;
      color: #fff;
    }

    .tech-item {
      text-align: center;
      margin-bottom: 30px;
      transition: transform 0.3s;
    }
    .tech-item img {
      width: 60px;
      display: block;
      margin: 0 auto 10px;
    }
    .tech-item p {
      margin: 0 0 5px;
      font-weight: 600;
    }
    .progress {
      height: 8px;
      border-radius: 9999px;
      margin: 0 auto;
      overflow: visible; /* allow hover glow to show */
    }
    .progress-bar {
      height: 100%;
      border-radius: 9999px;
      transition: width 1s ease-in-out, box-shadow 0.3s ease-in-out;
    }

    /* Category Colors */
    .languages { background: linear-gradient(90deg, #0d9488, #14b8a6, #06b6d4); }
    .frameworks { background: linear-gradient(90deg, #9333ea, #a855f7, #c084fc); }
    .database { background: linear-gradient(90deg, #f59e0b, #fbbf24, #facc15); }
    .version { background: linear-gradient(90deg, #ef4444, #f87171, #fca5a5); }
    .ide { background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd); }

    /* Hover Glow Effect on Tech Item */
    .tech-item:hover .progress-bar.languages { box-shadow: 0 0 20px rgba(13,148,136,0.8); }
    .tech-item:hover .progress-bar.frameworks { box-shadow: 0 0 20px rgba(147,51,234,0.8); }
    .tech-item:hover .progress-bar.database { box-shadow: 0 0 20px rgba(245,158,11,0.8); }
    .tech-item:hover .progress-bar.version { box-shadow: 0 0 20px rgba(239,68,68,0.8); }
    .tech-item:hover .progress-bar.ide { box-shadow: 0 0 20px rgba(59,130,246,0.8); }

    /* Legend */
    .legend { text-align: center; margin-bottom: 40px; }
    .legend span { display: inline-block; margin: 0 15px; font-size: 14px; font-weight: 600; }
    .legend-box { width: 18px; height: 12px; display: inline-block; margin-right: 5px; border-radius: 3px; }

    /* Dark/Light Mode */
    body.dark {
      --bg-color: #1f2937;
      --text-color: #f0f4f8;
      --nav-color: #1e293b;
    }
    body.light {
      --bg-color: #f0f4f8;
      --text-color: #1f2937;
      --nav-color: #0f172a;
    }