*{
    box-sizing: border-box;
}

.brand-link {
    text-decoration: none;
    color: #fff;
    font-size: 0.9em;
    font-weight: bold;
}

.brand-link:hover {
    color: #fff;
}


.navbar {
    position: sticky; /* Makes the navbar sticky */
    top: 0; /* Sticks the navbar to the top of the viewport */
    z-index: 1000; /* Ensures it stays above other elements */
    background-color: #000000; /* Background color for visibility */
    padding: 20px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow for distinction */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease; /* Smooth animation for any changes */
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #fffefe;
}

.navbar-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.navbar-links li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1em;
    transition: color 0.3s;
}

.navbar-links li a:hover {
    color: #0056b3;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
}

/* Mobile View */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    .navbar-links {
        display: none; /* Initially hides the menu */
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #ffffff;
        width: 100%;
        padding: 10px 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .navbar-links.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        background-color: #000000;
    }

    .navbar-links li {
        padding: 10px 15px;
    }

    .navbar-links a {
        font-size: 18px;
    }

    .menu-toggle .menu-icon,
    .menu-toggle .close-icon {
        transition: all 0.3s ease;
    }

    .menu-toggle.active .menu-icon {
        display: none;
    }

    .menu-toggle.active .close-icon {
        display: inline !important;
    }

}


/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 50px;
    max-width: 900px;
    margin: auto;
}

/* Profile Picture */
.picture img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Profile Info */
.profile-info {
    text-align: left;
}

.profile-info .intro {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.profile-info h1 {
    font-size: 36px;
    font-weight: bold;
    margin: 5px 0;
}

.profile-info h2 {
    font-size: 20px;
    color: #333;
    font-weight: normal;
    margin: 10px 0;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 5px;
    margin: 20px 0;
}

.cv-button, .contact-button {
    padding: 10px 10px;
    font-size: 16px;
    color: #333;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cv-button:hover, .contact-button:hover {
    background-color: #333;
    color: #fff;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon i {
    font-size: 24px; /* Size of the icon */
}

.social-icon:hover {
    color: #666;
}

@media (max-width: 768px) {
    .profile-section {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
        gap: 50px;
        max-width: 900px;
        margin: auto;
    }
    
    /* Profile Picture */
    .picture img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    /* Profile Info */
    .profile-info {
        text-align: left;
    }
    
    .profile-info .intro {
        font-size: 16px;
        color: #666;
        margin: 0;
    }
    
    .profile-info h1 {
        font-size: 36px;
        font-weight: bold;
        margin: 5px 0;
    }
    
    .profile-info h2 {
        font-size: 20px;
        color: #333;
        font-weight: normal;
        margin: 10px 0;
    }
    
    /* Button Group */
    .button-group {
        display: flex;
        gap: 5px;
        margin: 20px 0;
    }
    
    .cv-button, .contact-button {
        padding: 10px 10px;
        font-size: 16px;
        color: #333;
        border: 2px solid #333;
        border-radius: 5px;
        background-color: transparent;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .cv-button:hover, .contact-button:hover {
        background-color: #333;
        color: #fff;
    }
    
    /* Social Icons */
    .social-icons {
        display: flex;
        gap: 20px;
        margin-top: 10px;
    }
    
    .social-icon {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 18px;
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .social-icon i {
        font-size: 24px; /* Size of the icon */
    }
    
    .social-icon:hover {
        color: #666;
    }
}


/*    ABOUT SECTION      */
.about-section {
    text-align: center;
    padding: 50px 20px;
    font-family: Arial, sans-serif;
}

.about-section p {
    color: #666;
    font-size: 18px;
}

.about-section h1 {
    font-size: 36px;
    margin-top: 5px;
}

/* About Content Layout */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 30px;
    flex-wrap: wrap;
}

/* Profile Image */
.about-image img {
    border-radius: 15px;
    width: 250px;
    height: 250px;
    object-fit: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Info Boxes */
.about-info {
    display: flex;
    gap: 20px;
}

.info-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 200px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.info-box p {
    margin: 5px 0;
    color: #666;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .profile-section {
        padding: 15px;
    }

    .profile-section .picture img {
        width: 120px;
        height: 120px;
    }

    .profile-info h1 {
        font-size: 20px;
    }

    .profile-info h2 {
        font-size: 16px;
    }

    .cv-button,
    .contact-button {
        width: 100%;
        /* Buttons take full width on mobile */
        text-align: center;
    }

    .modal-content {
        width: 95%;
        /* Reduce modal width on mobile */
    }
}

/* Description */
.about-description {
    max-width: 600px;
    margin: 20px auto;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}


/* Experience Section */
.experience-section {
    text-align: center;
    padding: 50px 20px;
    font-family: Arial, sans-serif;
}

.experience-section p {
    color: #666;
    font-size: 18px;
}

.experience-section h1 {
    font-size: 36px;
    margin-top: 5px;
}

/* Experience Content Layout */
.experience-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Experience Boxes */
.experience-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.experience-box h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .about-info {
        flex-direction: column;
        /* Stack boxes vertically */
    }

    .info-box {
        width: 100%;
        /* Take full width */
        max-width: none;
    }
}

/* Skill Item */
.skill {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.skill i {
    font-size: 24px;
    color: #333;
    margin-right: 10px;
}

.skill p {
    font-weight: bold;
    margin: 0;
    color: #333;
}

.skill span {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px){
    .skill p{
        font-size: 17px;
    }
}

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

.projects-section {
    background-color: #FFF;
    padding: 40px 20px;
    text-align: center;
}

.projects-section h1 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #050505;
}

.timeline-navigation {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.timeline-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-arrow:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.right-arrow {
    right: 10px;
}

.timeline {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 0;
    gap: 20px;
    justify-content: flex-start;
    position: relative;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
}

.timeline-date {
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
    color: #222;
}

.timeline-content p {
    font-size: 1em;
    margin-bottom: 10px;
    color: #666;
}

.timeline-content a {
    font-size: 1em;
    color: #007BFF;
    text-decoration: none;
}

.timeline-content a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .timeline-arrow {
        width: 35px;
        height: 35px;
    }
    
    .right-arrow {
        right: 5px;
    }
}
/* Buttons */
.buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.btn {
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ddd;
}





/* Contact Section */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.contact-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px;
    gap: 40px;
}

.contact-left {
    max-width: 300px;
    text-align: center;
}

.contact-left p {
    color: #666;
    font-size: 18px;
}

.contact-left h1 {
    font-size: 36px;
    margin-top: 5px;
}

.contact-info {
    margin-top: 20px;
}

.contact-info a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.contact-info a .icon {
    margin-right: 10px;
}

.contact-info a:hover {
    background-color: #ddd;
}

/* Contact Form */
/* Centered Heading Section */
.contact-header {
    text-align: center;
    margin-bottom: 20px;
}

.contact-header p {
    color: #666;
    font-size: 18px;
}

.contact-header h1 {
    font-size: 36px;
    margin-top: 5px;
}

/* Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px;
    gap: 40px;
}

.contact-left {
    max-width: 300px;
    text-align: center;
}

.contact-info {
    margin-top: 20px;
}

.contact-info a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.contact-info a .icon {
    margin-right: 10px;
}

.contact-info a:hover {
    background-color: #ddd;
}

/* Contact Form */
.contact-right form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.contact-right label {
    font-size: 16px;
    color: #333;
}

.contact-right input, .contact-right textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.contact-right button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-right button:hover {
    background-color: #555;
}


/*POP UP CONTACT DETAILS*/
/* Modal Styles */
.contact-info-modal {
    display: none;  /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Close Button */
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Contact Info styling */
.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content p {
    margin: 10px 0;
}

.modal-content a {
    color: #0975f1;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}


/* Media Queries */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        /* Stack the sections vertically */
        align-items: center;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        /* Full width on mobile */
    }

    .contact-header h1 {
        font-size: 28px;
    }

    .contact-header p {
        font-size: 14px;
    }

    form {
        width: 100%;
    }

    button {
        font-size: 14px;
    }
}

.projects-section {
    background-color: #FFF;
    padding: 40px 20px;
    text-align: center;
}

.projects-section h1 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #050505;
}

.timeline {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 0;
    gap: 20px;
    justify-content: flex-start;
    position: relative;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
}

.timeline-date {
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
    color: #222;
}

.timeline-content p {
    font-size: 1em;
    margin-bottom: 10px;
    color: #666;
}

.timeline-content a {
    font-size: 1em;
    color: #007BFF;
    text-decoration: none;
}

.timeline-content a:hover {
    text-decoration: underline;
}


.animated-energy {
    font-weight: bold;
    font-size: 1.5rem;
    color: #007BFF; /* Primary blue */
    animation: float-energy 3s infinite ease-in-out;
    position: relative;
    display: inline-block;
}

@keyframes float-energy {
    0% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 5px rgba(0, 123, 255, 0.8);
    }
    25% {
        transform: translateY(-10px) scale(1.1);
        text-shadow: 0 0 15px rgba(0, 123, 255, 1);
    }
    50% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 10px rgba(0, 123, 255, 0.8);
    }
    75% {
        transform: translateY(10px) scale(0.9);
        text-shadow: 0 0 5px rgba(0, 123, 255, 0.6);
    }
    100% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 5px rgba(0, 123, 255, 0.8);
    }
}

.github-link {
    margin-top: auto; /* Push the link to the bottom */
    align-self: flex-start; /* Align it to the start or center as needed */
    font-size: 1rem;
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.footer-content {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.copyright {
    color: #ffffff;
    font-size: 0.9em;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 15px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer-photo {
        width: 35px;
        height: 35px;
    }

    .copyright {
        font-size: 0.8em;
        text-align: center;
        padding: 0 15px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .footer {
        padding: 12px 0;
    }

    .footer-photo {
        width: 60px;
        height: 60px;
    }

    .copyright {
        font-size: 0.75em;
    }
}

#chatbot {
    display: none;
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 300px;
    background-color: rgb(4, 34, 73);
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#chatbot-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-messages {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

#chatbot {
    display: none;
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 300px;
    background-color: rgb(4, 34, 73);
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#chatbot-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-messages {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

#chatbot-input {
    width: calc(100% - 60px);
    padding: 10px;
    border: none;
    border-top: 1px solid #ccc;
}

#send-chatbot {
    width: 50px;
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

#open-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: #007bff; /* Blue background */
    color: white; /* White icon */
    border: none; /* Remove border */
    border-radius: 50%; /* Make it circular */
    width: 50px; /* Width of the button */
    height: 50px; /* Height of the button */
    font-size: 24px; /* Font size of the icon */
    cursor: pointer; /* Pointer cursor on hover */
    display: flex; /* Flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow */
    transition: background-color 0.3s ease; /* Smooth transition */
}

#open-chatbot:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.message-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
}

.user-container {
    align-items: flex-end;
}

.message {
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    display: inline-block; /* Ensure the box fits the text */
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background-color: #6a0dad; /* Purple background for user messages */
    color: white;
    text-align: right;
}

.chatbot-message {
    background-color: #6b61f7; /* Dark blue background for chatbot messages */
    color: white;
    text-align: left;
}

.message-label {
    font-size: 0.8em;
    color: #007bff; /* Blue color for the label */
    margin-bottom: 2px;
}

#clear-chatbot {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #dc3545; /* Red background */
    color: white;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.3s ease;
}

#clear-chatbot:hover {
    background-color: #c82333; /* Darker red on hover */
}

#close-chatbot {
    background-color: #dc3545; /* Red background */
    color: white; /* White text */
    border: none; /* Remove border */
    border-radius: 50%; /* Make it circular */
    width: 30px; /* Width of the button */
    height: 30px; /* Height of the button */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    display: flex; /* Flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    position: absolute; /* Position it absolutely */
    top: 10px; /* Position from the top */
    right: 10px; /* Position from the right */
    transition: background-color 0.3s ease; /* Smooth transition */
}

#close-chatbot:hover {
    background-color: #c82333; /* Darker red on hover */
}