/* General styling */
body {
    font-family: 'Calibri', sans-serif;
    margin: 0;
    padding: 0;
    /* background: rgba(0, 0, 0, 0.7) url('images/about.jpg') center/cover; */
    background-color: #0a4b3d;
    color: white;
    scroll-behavior: smooth;
} 

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1px 0.1px;
    background: rgba(0, 0, 0, 0.7) url('images/images3.jpeg') center/cover;
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateY(-30px); 
}

/* Intro Section */
#intro {
    position: relative; /* Position relative for pseudo-element positioning */
    padding: 50px 20px;
    text-align: center; /* Center text on smaller screens */
    color: white; /* Ensure text is visible on dark background */
    overflow: hidden; /* Hide any overflow caused by the blur */
}

#intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7) url('images/1000_F_126657879_WuQLAcTcGKSoJvLObXUMVyXj4Ehjlog7.jpg') center/cover;
    filter: blur(10px); /* Adjust blur intensity as needed */
    z-index: -1; /* Place the blurred background behind the content */
}

.intro-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-section {
    display: flex;
    gap: 30px; /* Increased space between image and text */
    align-items: center; /* Vertically center content */
    max-width: 1200px; /* Limit the width of the section */
    margin: 0 auto; /* Center the section within the container */
    background: rgba(255, 255, 255, 0.1); /* Slight background to enhance visibility */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Inner padding for better spacing */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Deeper shadow for depth */
}

.profile-pic {
    border-radius: 50%; /* Circular profile picture */
    width: 500px; /* Fixed width */
    height: 500px; /* Fixed height */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Shadow for image */
}

.intro-text-container {
    text-align: left; /* Align text to the left */
    color: #fff; /* Ensure text color is white for contrast */
}

.intro-container h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin: 5px ; /* Remove default margin */
}

.intro-container h2 {
    font-size: 1.8rem; /* Adjust font size for better hierarchy */
    color: #ffcc00; /* Change color for emphasis */
    margin: 5px 0; /* Space between h2 and h1 */
}

.intro-text {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.2); /* Background for text */
    padding: 15px; /* Inner padding for better spacing */
    border-radius: 8px; /* Rounded corners */
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.intro-text:hover {
    transform: scale(0.98);
}


/* Responsive Styles */
@media (max-width: 768px) {
    .intro-section {
        flex-direction: column; /* Stack elements on smaller screens */
        text-align: center; /* Center align text on smaller screens */
    }

    .profile-pic {
        margin-bottom: 20px; /* Add space between image and text */
    }
}

/* About Section */
#about {
    background-color: #0a4b3d;
    padding: 40px 20px;
}

#about h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

/* About Section: Left-Right Layout */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-section {
    display: flex;
    gap: 20px;
    margin: 60px;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s; /* Move transition to about-section */
}

.about-image {
    width: 25%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.about-text {
    width: 60%;
    color: #fff; /* Text color for better visibility */
}

.about-section:nth-child(even) {
    flex-direction: row-reverse;
}

.about-section h3 {
    text-align: left; /* Change alignment for h3 */
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.about-section p {
    margin: 10px 0; /* Space between paragraphs */
    line-height: 1.6; /* Improved readability */
    font-size: 1.2rem;
    padding: 20px;
    border-radius: 8px;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-image {
        width: 100%;
        margin-bottom: 15px; /* Space between image and text */
    }

    .about-text {
        width: 100%;
    }

    .about-section h3 {
        text-align: center; /* Center text on smaller screens */
    }

    .about-section p {
        font-size: 1rem; /* Smaller text for better fit */
    }
}

@media (max-width: 480px) {
    #about h2 {
        font-size: 1.8rem; /* Smaller title */
    }

    .about-section h3 {
        font-size: 1.5rem; /* Slightly smaller heading on very small screens */
    }

    .about-section p {
        font-size: 0.9rem; /* Smaller text for better fit */
    }
}

/* Hover Effect */
.about-section:hover {
    transform: scale(0.98);
}

h2, .par {
    font-size: 2rem;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

h3, .par {
    font-size: 2rem;
    text-align: center;
    font-family: 'Arial', sans-serif;
}


/* Profile Picture */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #ffbb00c7;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    animation: float 3s ease-in-out infinite;
    position: relative;
    /* right: -50px; */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    font-size: 2rem;
}

nav ul li a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

nav ul li a:hover {
    background-color: #ffcc00;
    color: #0a4b3d;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center; /* Horizontally centers the icons */
    align-items: center; /* Vertically centers the icons */
    gap: 15px;
    margin-top: 20px; /* Optional: adds some space above the icons */
}

.social-icons a {
    font-size: 30px;
    color: white;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #3b5998;
}

/* Individual Icon Hover Effects */
.youtube-icon:hover {
    color: #ff0000;
}

.twitter-icon:hover {
    color: #00acee;
}

.facebook-icon:hover {
    color: #3b5998;
}

.gmail-icon:hover {
    color: #d44638;
}

.linkedin-icon:hover {
    color: #3b5998;
}
.github-icon:hover {
    color: #000000;
}



/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the entire form content */
    width: 100%; /* Ensures the form takes up the available width */
    max-width: 600px; /* Restricts form width to a reasonable size */
    margin: 0 auto; /* Centers the form horizontally on the page */
    padding: 20px;
    background-color: black;
    /* background-color: rgba(255, 255, 255, 0.1); Adds a subtle background */
    border-radius: 8px;
}

/* Input and Textarea Styling */
.contact-form input, .contact-form textarea {
    border: 1px solid #ffcc00;
    padding: 10px;
    width: 100%; /* Makes input fields responsive */
    background-color: #f9f9f9;
    margin-bottom: 15px; /* Adds space between input fields */
    border-radius: 5px;
    font-size: 16px;
}

/* Button Styling */
.contact-form button {
    background-color: #ffcc00;
    color: #0a4b3d;
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
    width: 50%; /* Makes the button 50% of the form width */
    text-align: center; /* Ensures the text inside the button is centered */
}

.contact-form button:hover {
    background-color: #0a4b3d;
    color: #ffcc00;
}
/* Projects */
#projects {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.project {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px; /* Adjust bottom margin for separation */
    transition: transform 0.3s;
}

.project-left .project-image {
    order: -1; /* Image on the left */
}

.project img {
    max-width: 350px; /* Max width for images */
    height: auto;
    margin: 0 15px;
    border-radius: 8px;
}

.project-content {
    flex: 1;
    margin-left: 5px;
}

.project h3 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.project-description {
    display: none; /* Hide description by default */
}

.project-details {
    margin-top: 5px;
}

/* Hover effect */
.project:hover {
    transform: scale(0.98);
}

/* Responsive styles */
@media (max-width: 768px) {
    .project {
        flex-direction: column; /* Stack on small screens */
        align-items: flex-start;
    }

    .project img {
        max-width: 100%; /* Full width on small screens */
        margin-bottom: 10px; /* Space below image */
    }

    .project-content {
        width: 100%;
        margin-left: 0;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #06362c;
    color: #ffcc00;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    .profile-pic {
        margin-top: 20px;
        width: 120px;
        height: 120px;
    }

    section {
        margin: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
        margin: 15px 0;
    }

    section {
        margin: 10px;
        padding: 15px;
    }

    nav ul li a {
        padding: 8px 15px;
        font-size: 16px;
    }
}
/* Chatbot Window with Slide and Fade-In */
.chatbot-window {
    display: none;      
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-width: 90vw;
    height: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.chatbot-window.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Chatbot Icon with Smooth Color Transition */
.chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffcc00;  
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.chatbot-icon:hover {
    background-color: #06362c;
    transform: scale(1.05);
}

/* Edit Text with Fade-In */
.edit-text {
    position: fixed;
    bottom: 90px;
    right: 20px;
    font-size: 1rem;
    background-color: #06362c;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.chatbot-icon:hover + .edit-text {
    display: block;
    opacity: 1;
}

/* Chatbot Header Styling */
.chatbot-header {
    background-color: white;
    color: #06362c;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Close Button Styling */
.close-btn {
    background: none;
    border: none;
    color: #06362c;
    font-size: 20px;
    cursor: pointer;
}

/* Chatbot Messages */
.chatbot-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: #06362c;
}

/* Message Styling */
.message {
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
    color: #06362c;
}

.bot-message {
    background-color: white;
    color: #06362c;
    align-self: flex-start;
}

.user-message { 
    background-color: gray;
    align-self: flex-end;
}

/* Chatbot Input Styling */
.chatbot-input {
    display: flex;
    padding: 10px;
    background-color: #f7f7f7;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid gray;
    outline: none;
}

.chatbot-input button {
    background-color: #06362c;
    color: gray;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
}

/* Transitioned Color for Send Button */
.chatbot-input button:hover {
    background-color: #ffcc00;
}

 

