body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-image: url('data-analysis.jpg');
    background-repeat: no-repeat;
    background-position: center; /* Centers the image */
    background-attachment: fixed; /* Keeps the image fixed when scrolling */
    background-size: auto;
    background-size: cover;
    background-color: #f0f8ff; /* Light blue */
    color: #333;
}

header {
    background-color: #004080; /* Dark blue */
    color: white;
    padding: 20px;
    text-align: center;
}

.title-section {
    margin-bottom: 10px;
}

.title-section h1 {
    margin: 0;
}

.title-section p {
    margin: 5px 0;
}

a {
    color: #4ca3fa; /* Blue link color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav {
    position: fixed;
    right: 20px;
    top: 100px;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav li {
    margin: 10px 0;
}

nav a {
    display: inline-block;
    width: 150px;
    background-color: #007bff; /* Button background color */
    color: white; /* Button text color */
    padding: 10px; /* Button padding */
    border: 2px solid rgb(199, 199, 199); /* Button border */
    border-radius: 5px; /* Rounded corners */
    text-align: center; /* Center text */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
}

nav a:hover {
    background-color: #004080; /* Darker color on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

nav a.active {
    background-color: #004080; /* Dark blue color for the selected button */
    color: white; /* Ensures text color is visible on dark background */
}


main {
    margin-right: 200px; /* Adjusted for fixed nav */
    padding: 20px;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.home-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #e0eaf3; /* #e9ecef Light background for emphasis */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.intro {
    background-color: white; /* White background for intro */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #004080; /* Same color as header */
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

.highlight {
    background-color: lightgray; /* Highlight color */
    transition: background-color 0.3s ease; /* Smooth transition for highlights */
}

.card {
    border: 1px solid #ddd;
    padding: 16px;
    margin: 16px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.certificate-image {
    width: 700px;  /* Set a fixed width */
    height: 500px; /* Set a fixed height */
    object-fit: cover; /* Ensures the image fills the specified dimensions without distortion */
    border-radius: 4px;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
}

.card h3 {
    margin: 8px 0;
}

.credential-link {
    font-weight: bold;
   
}


/* Smaller mobile screens (phones) */
@media (max-width: 768px) {
    .title-section h1 {
        font-size: 24px;
    }

    .title-section p {
        font-size: 13px;
    }

    body {
        padding: 8px;
    }

    header {
        padding: 16px;
    }

    nav {
        position: static;
        width: 100%;
        top: auto;
        right: auto;
        margin: 0 0 20px;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav li {
        margin: 0;
    }

    nav a {
        width: auto;
        min-width: 120px;
        padding: 10px 14px;
    }

    main {
        margin: 0;
        padding: 10px;
    }

    .home-section,
    .intro,
    .card,
    .experience-content,
    .projects-content {
        width: 100%;
        box-sizing: border-box;
    }

    .certificate-image,
    .project-image,
    .modal-content,
    .hero-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .experience-container,
    .projects-container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }

    .experience-navigation,
    .projects-navigation {
        width: 100%;
        margin-right: 0;
    }

    .experience-navigation button,
    .projects-navigation button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .experience-content,
    .projects-content {
        width: 100%;
        padding: 15px;
        margin-top: 15px;
    }

    #chat-icon {
        bottom: 15px;
        right: 15px;
    }

    #chatbot-container {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 70px;
        height: 420px;
    }

    footer {
        font-size: 14px;
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .title-section h1 {
        font-size: 20px;
    }

    .title-section p {
        font-size: 12px;
    }

    body {
        padding: 5px;
    }

    main {
        padding: 8px;
    }

    nav a {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 14px;
    }

    #chatbot-container {
        height: 360px;
    }

    footer {
        font-size: 12px;
    }
}

.project-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 10px auto;
    display: block;
    border-radius: 8px;
}


/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Place it on top */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
}

.modal-content:hover {
    cursor: zoom-out;
}


.image-container {
    position: relative;
    display: inline-block;
    text-align: center;
}

.click-note {
    font-size: 0.85em;
    color: #555;
    margin-top: 5px;
}

/* Chat Icon */
#chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0078d4;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#chat-icon i {
    font-size: 24px;
}

/* Chatbot Container */
#chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

#chatbot-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}