* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(120deg, #0a0a0a, #002244, #0a0a0a, #003366);
    background-size: 400% 400%;
    animation: gradientMove 25s ease infinite;
    color: #fff;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

header {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.tabs {
    list-style: none;
    display: flex;
    gap: 20px;
}

.tabs li {
    margin: 0 20px;
}

.tabs li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.tabs li a:hover {
    background-color: #003366;
}

.tabs li#lang  a:hover {
    background-color: #660300;
}

.tabs li a.active {
    background-color: #003366;
}

.language-switcher {
    display: flex;
    gap: 15px;
    position: absolute;
    right: 20px;
}

.language-switcher a {
    color: white;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #003366;
    transition: background-color 0.3s ease;
}

.language-switcher a:hover {
    background-color: #002244;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: none; /* remove the dark blocker */
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

.tab-content.active {
    display: block;
}

footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: auto;
}

#home {
    background-color: #111;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.home-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.home-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    max-width: 400px;
}

.home-text {
    max-width: 500px;
    text-align: left;
}

#home h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

#home p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 20px;
}

#home .intro p {
    font-size: 1.1rem;
    color: #bbb;
    margin-top: 20px;
}

#home button {
    background-color: #003366;
    color: white;
    font-size: 1.2rem;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

#home button:hover {
    background-color: #002244;
    transform: scale(1.05);
}

/* Styling for span tags */
span {
    color: #015ebb;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

span:hover {
    color: #6485a4;
    text-shadow: 0 0 5px #4d6c89, 0 0 10px #4d6c89, 0 0 15px #4d6c89;
}


.home-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    max-width: 400px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    /* Default border */
}

.home-image img:hover {
    border: 3px solid #003366;
    /* Navy blue border */
    box-shadow: 0 0 10px #003366;
    /* Subtle glow effect */
}

#background {
    background-color: #111;
    padding: 40px 20px;
    color: white;
    text-align: center;
}

#background h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
}

.background-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.experience-section,
.education-section {
    flex: 1;
    max-width: 45%;
}

.experience-section h2,
.education-section h2 {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 20px;
}

.experience-box,
.education-box {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border-radius: 10px;
    margin: 20px 0;
    padding: 20px;
    transition: transform 0.3s ease;
}

.experience-box:hover,
.education-box:hover {
    transform: scale(1.02);
}

.experience-image img,
.education-image img {
    max-width: 100px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
}

.experience-text,
.education-text {
    text-align: left;
}

.experience-text h3,
.education-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #fff;
}

.experience-text p,
.education-text p {
    font-size: 1rem;
    color: #bbb;
    margin: 5px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.project-card img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid #003366;
}

.project-card video {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 3px solid #003366;
    border-radius: 0;
    object-fit: cover;
    background-color: #000;
}

.project-details {
    padding: 15px;
    text-align: left;
}

.project-details h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.project-details p {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 15px;
}

.project-details button {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-details button:hover {
    background-color: #002244;
    transform: scale(1.05);
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 100%;
    /* Make the image fill the container */
    max-width: 350px;
    /* Adjust the size as needed */
    height: auto;
    border-radius: 10px;
    border: 4px solid #003366;
    box-shadow: 0 0 15px rgba(0, 51, 102, 0.6);
}

.about-text-container {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-box {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about-box h2 {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 10px;
}

.about-box p,
.about-box ul {
    font-size: 1.1rem;
    color: #bbb;
}

.about-box ul {
    list-style: none;
    padding: 0;
}

.about-box ul li {
    margin: 8px 0;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#contact h1
{
    margin: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-size: 1rem;
}

.form-group textarea {
    resize: none;
}

button[type="submit"] {
    background-color: #003366;
    color: white;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #002244;
    transform: scale(1.05);
}

.popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none; /* Initially hidden */
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.popup.show {
    display: block;
    opacity: 1;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-icon {
    font-size: 2.5rem;
    color: #EEE;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: #003366;
    transform: scale(1.1);
}

.social-icon i {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs {
        flex-direction: column;
        width: 100%;
    }

    .tabs li {
        margin: 10px 0;
    }

    .home-container {
        flex-direction: column;
        text-align: center;
    }

    .home-image,
    .home-text {
        max-width: 100%;
    }

    .background-container {
        flex-direction: column;
    }

    .experience-section,
    .education-section {
        max-width: 100%;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image-container,
    .about-text-container {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    footer {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tabs li a {
        font-size: 16px;
        padding: 8px 10px;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    #home p,
    .about-box p,
    .experience-text p {
        font-size: 1rem;
    }

    .home-image img {
        max-width: 300px;
    }
}

.hamburger-icon {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: #fff;
}

/* Show hamburger icon on smaller screens */
@media (max-width: 768px) {
    /* Hide the tabs navbar on smaller screens */
    .tabs {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    /* Show the hamburger menu on smaller screens */
    .hamburger-icon {
        display: block;
    }
    
    /* Show the menu when active */
    .tabs.active {
        display: block;
        position: absolute;
        top: 50px;
        left: 0;
        background-color: #1a1a1a;
        width: 100%;
        padding: 20px;
    }

    .tabs li {
        margin: 10px 0;
    }
}

#mobile-menu {
    transition: transform 0.3s ease;
}

#mobile-menu.active {
    transform: translateX(0);
}

#mobile-menu {
    transform: translateX(-100%); /* Start off-screen */
}