header, footer {
    /*position: fixed;*/
    width: 100%;
    color: white;
    z-index: 1000;
    background: gray;
}

header {
    top: 0;
    height: 80px;
}

footer {
    /*bottom: 0;*/
    height: 60px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.footer {
    position: fixed;
    height: 20px;
    bottom: 0;
    justify-content: center;
    width: 100%;
    padding: 30px 8%;
    display: flex;
    align-items: center;
    z-index: 100;
}

.content {
    margin-top: 60px; /* Offset by header height */
    margin-bottom: 50px; /* Offset by footer height */
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 110px); /* Adjust based on header/footer sizes */
}

button {
    background-color: #33FF33;
    color: #000;
    border: 2px solid #33FF33;
    padding: 8px 20px;
    font-family: "Courier New", monospace;
    cursor: pointer;
}

    button:hover {
        background-color: #000;
        color: #33FF33;
    }


.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

    .dark-mode .card {
        background-color: #1e1e1e;
    }

    .dark-mode .list-group-item {
        background-color: #1e1e1e;
        color: yellow
    }
    .dark-mode .nav-container .menu-items a {
        color: deeppink;
    }

    .dark-mode .nav-container .hamburger-lines .line {
        background: aqua;
    }
    .dark-mode .footer {
        background-color: black;
        color: darkorange;
    }
        .dark-mode .footer a {
            background-color: black;
            color: darkorange;
        }
    .dark-mode .header {
        background-color: black;
        color: darkorange;
    }
    .dark-mode .nav-container .logo a {
        color: aqua;
    }


    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


section {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
/*
.logo {
    font-size: 32px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}
    */


.navbar {
    display: none;
}

.navbar a {
    align-items: center;
    display: inline-block;
    font-size: 18px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    margin: 0 20px;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

    .navbar a:hover,
    .navbar a.active {
        color: #1743e3;
    }

.social-media {
    width: 150px;
    height: 40px;
    justify-content: space-between;
}

    .social-media a {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 2px solid transparent;
        text-decoration: none;
        transform: rotate(45deg);
        transition: .5s;
        opacity: 0;
        animation: slideSci .5s ease forwards;
        animation-delay: calc(.2s * var(--i));
    }

        .social-media a:hover {
            border-color: #eaeaea;
        }

        .social-media a i {
            font-size: 24px;
            color: #eaeaea;
            transform: rotate(-45deg);
        }

.home {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column; /* Helps with better stacking on mobile */
    justify-content: center;
    align-items: center;
    padding: 20px 5%; /* Reduce padding for small screens */
}

.home-content {
    max-width: 90%;
    /*text-align: center; /* Center text for better readability */
}

    .home-content h1 {
        font-size: 50px;
        line-height: 1.2;
        opacity: 0;
        animation: slideBottom 1s ease forwards;
        animation-delay: 1s;
    }

    .home-content h3 {
        font-size: 40px;
        color: #1743e3;
        opacity: 0;
        animation: slideRight 1s ease forwards;
        animation-delay: 1.3s;
    }

    .home-content p {
        font-size: 16px;
        margin: 15px 0 15px;
        opacity: 0;
        animation: slideBottom 1s ease forwards;
        animation-delay: 1.3s;
    }


.btn1 {
    display: inline-block;
    padding: 10px 20px;
    background: #1743e3;
    border: 2px solid #1743e3;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    font-size: 16px;
    color: #eaeaea;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 1.3s;
}

    .btn1:hover {
        background: transparent;
        border: 2px solid #1743e3;
    }
        

.home-img {
    position: relative;
    right: -7%;
    width: 450px;
    height: 450px;
    transform: rotate(45deg);
}

    .home-img .rhombus {
        position: relative;
        top: 20%;
        width: 30vw;
        height: 30vw;
        background: black;
        border: 25px solid #1743e3;
        box-shadow: -15px 15px 15px rgba(0, 0, 0, .2);
        flex-grow: 1;
        justify-content: space-evenly;
        display: none;
    }

    .home-img .rhombus p{
        position: absolute;
        color: greenyellow;
        animation: rotateSlide 1.5s linear infinite;
    }

        .home-img .rhombus img {
            position: absolute;
            top: 110px;
            left: -250px;
            max-width: 750px;
            transform: rotate(-45deg);
        }

.home .rhombus2 {
    position: absolute;
    top: -25%;
    right: -25%;
    width: 700px;
    height: 700px;
    background: #1743e3;
    transform: rotate(45deg);
    z-index: -1;
}


.container {
    max-width: 1050px;
    width: 100%;
    margin: auto;
}


.navbar1 {
    width: 100%;
    box-shadow: 0 1px 4px rgb(146 161 176 / 15%);
}

.logo {
    order: 1;
    font-size: 5rem;
    margin-bottom: 0.5rem;
    left: 25px;
    font-weight: 600;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
}

.navbar1 .menu-items {
    display: flex;
}

.navbar1 .nav-container li {
    list-style: none;
}

.navbar1 .nav-container a {
    text-decoration: none;
    color: #0e2431;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.7rem;
}

    .navbar1 .nav-container a:hover {
        font-weight: bolder;
    }

.nav-container {
    display: block;
    position: relative;
    height: 60px;
}

    .nav-container .checkbox {
        position: absolute;
        display: block;
        height: 32px;
        width: 32px;
        top: 20px;
        right: 20px;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }

    .nav-container .hamburger-lines {
        display: block;
        height: 26px;
        width: 32px;
        position: absolute;
        top: 17px;
        right: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

        .nav-container .hamburger-lines .line {
            display: block;
            height: 4px;
            width: 100%;
            border-radius: 10px;
            background: #0e2431;
        }

        .nav-container .hamburger-lines .line1 {
            transform-origin: 0% 0%;
            transition: transform 0.4s ease-in-out;
        }

        .nav-container .hamburger-lines .line2 {
            transition: transform 0.2s ease-in-out;
        }

        .nav-container .hamburger-lines .line3 {
            transform-origin: 0% 100%;
            transition: transform 0.4s ease-in-out;
        }

.navbar1 .menu-items {
    padding-top: 120px;
    height: 100vh;
    width: 100%;
    transform: translate(150%);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
    text-align: right;
}

    .navbar1 .menu-items li {
        margin-bottom: 1.2rem;
        font-size: 1.5rem;
        font-weight: 500;
    }
    .navbar1 .menu-items a {
        color: coral;
    }

.nav-container input[type="checkbox"]:checked ~ .menu-items {
    transform: translateX(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
}

.nav-container input[type="checkbox"]:checked ~ .logo {
    display: none;
}

/*KEY FFRAMES ANIMATION*/
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideSci {
    0% {
        transform: translateX(100px) rotate(45deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotate(45deg);
        opacity: 1;
    }
}

@keyframes rotateSlide {
    0% {
        transform: translateY(290px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
/**/
@keyframes techBadges {
    0%, 100% {
        transform: translate3d(0px, 0px, 0px);
        opacity: 1;
    }

    50% {
        transform: translate3d(0px, -20px, 0px);
        opacity: 1;
    }
}

/*On smaller screens, hide nav items and show the hamburger 
@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .navbar1 {
        display: block;
        cursor: pointer;
    }
}

*/
@media (max-width: 768px) {
    .home {
        height: auto; /* Let content dictate height */
        padding: 15px 5%;
    }

    .home-content {
        font-size: 16px; /* Adjust for readability */
        max-width: 80%;
    }
        .home-content h1 {
            font-size: 40px;
        }
        .home-content h3 {
            font-size: 30px;
        }

    .logo {
        font-size: 3rem;
        font-weight: 400;
    }
    
    h3 {
        font-size: 30px;
    }

    /*
    .container {
        height: auto; /* Let content dictate height 
        padding: 15px 5%;
    }*/
    
    .header {
        height: 60px;
        padding: 15px 5%;
    }

    .footer {
        height: 50px;
        padding: 10px 5%;
    }

    body {
        font-size: 14px;
    }

    .navbar {
        display: none;
    }

    .navbar1 {
        opacity: 0.95;
    }
    /*
    .home-img .rhombus {
        top: 40%;
        width: 250px;
        height: 250px;
    }
    */

    .navbar2-container input[type="checkbox"],
    .navbar2-container .hamburger-lines {
        display: block;
    }

    .navbar-container {
        display: block;
        position: relative;
        height: 64px;
    }

        .navbar-container input[type="checkbox"] {
            position: absolute;
            display: block;
            height: 32px;
            width: 30px;
            top: 20px;
            left: 20px;
            z-index: 5;
            opacity: 0;
        }

        .navbar-container .hamburger-lines {
            display: block;
            height: 23px;
            width: 35px;
            position: absolute;
            top: 17px;
            left: 20px;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

            .navbar-container .hamburger-lines .line {
                display: block;
                height: 4px;
                width: 100%;
                border-radius: 10px;
                background: #333;
            }

            .navbar-container .hamburger-lines .line1 {
                transform-origin: 0% 0%;
                transition: transform 0.4s ease-in-out;
            }

            .navbar-container .hamburger-lines .line2 {
                transition: transform 0.2s ease-in-out;
            }

            .navbar-container .hamburger-lines .line3 {
                transform-origin: 0% 100%;
                transition: transform 0.4s ease-in-out;
            }

    .navbar .menu-items {
        padding-top: 100px;
        background: #fff;
        height: 100vh;
        max-width: 300px;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -40px;
        padding-left: 50px;
        transition: transform 0.5s ease-in-out;
        box-shadow: 5px 0px 10px 0px #aaa;
    }

        .navbar .menu-items li {
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
            font-weight: 500;
        }

    .logo {
        position: absolute;
        top: 5px;
        right: 15px;
        font-size: 2rem;
    }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items {
        transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
        transform: rotate(35deg);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
        transform: scaleY(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
        transform: rotate(-35deg);
    }
}

/* Sliders Container */
.sliders-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Individual Memory Slider */
.memory-slider {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.slider-header {
    color: white;
    font-family: 'Brush Script MT', cursive;
    font-size: 2rem;
    margin-bottom: 5px;
    text-align: center;
}

.slider-message {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    text-align: center;
    margin-bottom: 20px;
}

/* Slider Mechanics */
.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 400px; /* Fixed height for all sliders */
}

    .slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        flex-shrink: 0;
    }

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider-nav:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .slider-nav.prev {
        left: 15px;
    }

    .slider-nav.next {
        right: 15px;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .slider {
        height: 300px;
    }

    .memory-slider {
        padding: 15px;
    }
}


/* Card styling */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.card-footer {
    background: rgba(0, 0, 0, 0.03) !important;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    margin-right: 5px;
}

.bg-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
}

/* Dark mode toggle */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

    .dark-mode .card {
        background-color: #1e1e1e;
        border: 1px solid #333;
    }

.card1 {
    position: relative;
    justify-content: center;
    align-content: center;
    display: flex;
}

.carousel-item img {
    width:80%; /* Make images responsive */
    max-height: 250px; /* Limit height to prevent excessive space usage */
    object-fit: cover; /* Ensures images maintain proportions */
    border-radius: 8px; /* Slight rounding for a polished look */
}

.card-img-top {
    width: 80%;
    max-height: 200px; /* Keeps project images uniform */
    object-fit: cover;
    border-radius: 5px;
}


.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px #33FF33;
    transition: 0.3s ease-in-out;
}
.btn-info {
    background-color: #33FF33;
    color: #000;
    border: 2px solid #33FF33;
    font-family: "Courier New", monospace;
}

    .btn-info:hover {
        background-color: #000;
        color: #33FF33;
    }

.carousel-item img {
    width: 100%; /* Responsive scaling */
    max-height: 220px; /* Limit height */
    object-fit: cover; /* Maintain proportions */
    border-radius: 5px; /* Slight rounding */
}

.card-img-top {
    width: 100%;
    max-height: 180px; /* Keeps images consistent */
    object-fit: cover;
    border-radius: 5px;
}

.list-group-item {
    background-color: #fff;
    border-left: 5px solid #007bff; /* Color strip */
    padding: 15px;
}

.hero-tech-stack {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.tech-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    animation: techBadges 0.7s ease-in-out infinite;
}
    .tech-badge p {
        animation: techBadges 0.7s ease-in-out infinite;
    }

    .tech-badge:hover {
        background: var(--primary);
        transform: translateY(-3px);
    }