/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header - Banner */
header {
    position: relative;
    background: url('../images/bannerimage.png') no-repeat center center;
    background-size: cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 80px; /* Added space at the bottom for navbar */
}

/* Style for the banner text container */
.banner-text {
    color: rgba(0, 0, 0, 0.9);  /* Darker text color with more opacity */
    font-size: 24px;
    font-weight: 500;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8); /* Lighter background with more opacity */
    padding: 20px;
    border-radius: 8px;
    position: absolute;
    bottom: 70px;  /* Position the text container 20px from the bottom */
    left: 50%;
    transform: translateX(-50%); /* Center the text horizontally */
    width: 40%; /* Optional: adjust width to control the text container size */
    text-align: center; /* Center the text */
}

/* General text style */
#typedText, #typedDesc, #typedContact {
    overflow: hidden; /* Hide text that's not yet typed */
    white-space: nowrap; /* Prevent text wrapping */
    border-right: 2px solid black; /* Cursor effect */
    width: 0; /* Start with no visible text */
}

/* Typing animation */
@keyframes typing {
    100% {
        width: 100%;
    }
}

/* Cursor blinking */
@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Keyframe to hide the cursor */
@keyframes hideCursor {
    100% {
        border-color: transparent;
    }
}

/* Line-specific typing animation */
#typedText {
    animation: typing 3s steps(30) forwards, blink 0.75s step-end infinite 3s, hideCursor 1s 3s forwards;
}

#typedDesc {
    animation: typing 3s steps(30) forwards 3s, blink 0.75s step-end infinite 6s, hideCursor 1s 6s forwards;
}

#typedContact {
    animation: typing 3s steps(30) forwards 6s, blink 0.75s step-end infinite 9s, hideCursor 1s 9s forwards;
}

/* Style for the name and title in the banner */
.banner-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 18px;
    margin: 5px 0;
}

/* Navbar positioning and style */
.navbar {
    position: absolute; /* Position navbar absolutely within the header */
    bottom: 20px; /* 20px from the bottom of the header */
    right: 20px; /* 20px from the right edge of the header */
    background-color: rgba(0, 0, 0, 0.6); /* Transparent background */
    padding: 10px 20px;
    border-radius: 8px;
}

/* Style for the list inside the navbar */
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    margin-right: 10px;
    margin-bottom: 0px;
}

/* Style for navbar links */
.navbar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.navbar a:hover {
    color: #1e90ff;
    transition: color 0.3s ease;
}


/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9; /* Light grey background */
    color: #333; /* Default text color */
    margin: 0;
    padding: 0;
}

/* Container for the main content and sidebar */
.content-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px; /* Space between sidebar and content */
    margin-top: 20px; /* Space from top if needed */
}

/* Sidebar for contact info */
.sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    flex-shrink: 0; /* Prevent the sidebar from shrinking */
}

.sidebar h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    color: #333;
}

.contact-item i {
    font-size: 1.5em;
    color: #0077b6; /* Icon color */
}

.contact-item a {
    color: #0077b6;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    margin: 0;
}

/* Add responsive styles for smaller screens */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column; /* Stack the content and sidebar vertically */
        gap: 20px;
    }

    .sidebar {
        max-width: 100%; /* Allow sidebar to take full width on small screens */
    }

    .contact-item {
        font-size: 1em;
    }
}

/* Main Content */
.main-content {
    flex: 2;
    background-color: #fff;  /* White background for main content */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Soft shadow around content */
    padding: 20px;
    border-radius: 8px; /* Rounded corners for content */
}

.main-content h1,
.main-content h2,
.main-content h3 {
    color: #003366; /* Dark Blue for headings */
}

.main-content p {
    color: #555;  /* Soft grey for general text */
    font-size: 16px;
    line-height: 1.6;
}

/* Cards for Sections in Main Content */
.card {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Soft shadow for cards */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px; /* Rounded corners for cards */
}

.card h2 {
    font-size: 24px;
    color: #003366;  /* Dark blue for section titles */
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
    color: #555;  /* Soft grey for card content */
}

/* Lists */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
    color: #555;  /* Soft grey for list items */
}

/* Job Entries */
.job ul {
    padding-left: 20px;
}

.job li {
    margin-bottom: 8px;
    color: #555;  /* Soft grey for job descriptions */
}

/* Footer */
footer {
    background-color: #003366; /* Dark blue for footer */
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

footer a {
    color: #1e90ff; /* Bright blue links in footer */
    text-decoration: none;
}

footer a:hover {
    color: white; /* White on hover */
    text-decoration: underline;
}

/* Scroll to Top Button Styles */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #003366; /* Dark Blue */
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    z-index: 1000; /* Ensure it's above other content */
}

/* Hover effect for the button */
#scrollToTopBtn:hover {
    background-color: #0056b3;
}

/* Floating Action Button for Download */
#downloadBtn {
    position: fixed; /* Fixes the button's position on the screen */
    bottom: 20px; /* Same bottom as scroll to top */
    left: 80px; /* 60px to the right of the scroll to top button (adjust if needed) */
    background-color: #1e90ff; /* Blue background color */
    color: white; /* White text */
    border: none;
    border-radius: 50%; /* Make it a circle */
    padding: 15px;
    font-size: 24px; /* Size of the icon */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Shadow effect */
    cursor: pointer;
    z-index: 9999; /* Ensure it's on top of other elements */
    display: inline-flex; /* Make sure it's displayed */
    justify-content: center;
    align-items: center;
    visibility: visible;
}

#downloadBtn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transition: background-color 0.3s ease; /* Smooth transition */
}

#material-icons {
    font-size: 30px; /* Adjust the icon size */
}

#material-icons {
    font-size: 30px; /* Adjust the icon size */
}


/* Custom Carousel Styles */
.custom-carousel {
    position: relative;
    width: 80%;  /* Adjust based on how wide you want it */
    margin: 0 auto;
    overflow: hidden; /* Hide overflowing images */
  }
  
.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth transition */
}
  
.carousel-slide {
    min-width: 100%; /* Each image takes up 100% width of the container */
    display: flex;
    justify-content: center; /* Center the image */
    align-items: center;
    position: relative;
  }

.carousel-caption {
    position: absolute;
    bottom: 10px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
}

  
.carousel-slide img {
    width: 100%;  /* Adjust as needed */
    height: auto;
    object-fit: cover;
  }
  
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
.carousel-prev {
    left: 20px;
  }
  
.carousel-next {
    right: 20px;
  }
  
.carousel-prev:hover,
.carousel-next:hover {
    background-color: #0056b3;
    transform: scale(1.1);
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #717171;
}

/* Skill Section Styles */
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill {
    margin-bottom: 10px;
}

/* Progress Bar Container */
.progress-bar {
    position: relative;
    background-color: #e0e0e0;
    border-radius: 8px;
    height: 20px;
    width: 100%;
    margin-top: 5px;
}

/* Progress Bar Styles */
.progress {
    position: relative;
    height: 100%;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: bold;
}

.progress.high {
    background-color: #4CAF50; /* Green for high proficiency */
}

.progress.intermediate {
    background-color: #FFEB3B; /* Yellow for intermediate proficiency */
}

.progress.low {
    background-color: #F44336; /* Red for low proficiency */
}

/* Tooltip Styles */
.progress:hover::after {
    content: attr(data-proficiency);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Tooltip Transition */
.progress:hover::after {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out;
}

.education-section {
    padding: 40px;
    background-color: #f5f5f5;
}

.education-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.timeline {
    position: relative;
    margin: 0 auto;
    padding: 10px 0;
    max-width: 600px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #ccc;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 20px 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 30px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-item:nth-child(odd)::before {
    right: -6px;
}

.timeline-item:nth-child(even)::before {
    left: -6px;
}

.timeline-date {
    font-weight: bold;
    color: #007bff;
}

.timeline-content h3 {
    margin: 0;
    font-size: 1.2em;
}

.timeline-content p {
    margin: 5px 0;
    color: #555;
}

.work-history {
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 10px;
}

.work-history h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: scale(1.02);
}

.timeline-item img {
    max-width: 80px;
    margin-bottom: 10px;
}

.timeline-item h3 {
    margin: 10px 0 5px;
    font-size: 1.5em;
    color: #333;
}

.timeline-item span {
    display: block;
    color: #777;
    margin-bottom: 15px;
}

.details {
    display: none;
    margin-top: 10px;
}

.details ul {
    padding-left: 20px;
}

.details ul li {
    margin-bottom: 10px;
    color: #555;
}

.details-toggle-button {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.details-toggle-button:hover {
    background-color: #0056b3;
}

.timeline-item img,
.timeline-item h3,
.timeline-item span {
    cursor: pointer;
}

.professional-profile {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.professional-profile h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #333;
}

.profile-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.profile-text {
    flex: 1;
    min-width: 320px;
    font-size: 1.1em;
    color: #555;
}

.profile-text p {
    margin-bottom: 12px;
}

.profile-text ul {
    padding-left: 20px;
    list-style-type: disc;
    margin-bottom: 15px;
}

.profile-text ul li {
    margin-bottom: 8px;
    color: #555;
}

.profile-image {
    flex: 0 0 250px;
    min-width: 250px;
    text-align: center;
}

.profile-image img {
    width: 90%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

/* Matching the style of the Download Resume button */
#speakButton, #stopButton {
    position: fixed;
    bottom: 20px;
    left: 145px; /* Adjust the left position for space between buttons */
    background-color: #1e90ff; /* Same blue background as your download button */
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 25px; /* Larger font size for better visibility */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9999; /* Make sure it's on top of other elements */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
}

#stopButton {
    left: 210px; /* Place the Stop button next to Speak button */
    background-color: #dc3545; /* Red background for Stop button */
}

/* Hover effects for the buttons */
#speakButton:hover, #stopButton:hover {
    background-color: #0056b3; /* Darker blue for Speak button on hover */
}

#stopButton:hover {
    background-color: #a71d2a; /* Darker red for Stop button on hover */
}

#material-icons {
    font-size: 30px;
}

/* Style for the high contrast mode button inside the navigation bar */
.contrast-btn {
    background-color: transparent;
    color: white;
    font-size: 15px;
    border: none;
    padding: 0px 0px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.contrast-btn:hover {
    background-color: #555;
    color: white;
}

/* High contrast mode styles */
.high-contrast {
    background-color: black;
    color: white;
    border: 2px solid yellow;
}

/* Style for the text size toggle */
.text-size-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: transparent;
    padding: 5px 15px;
    border-radius: 5px;
}

.text-size-toggle select {
    font-size: 16px;
    padding: 5px;
    background-color: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 4px;
}

.text-size-toggle select:focus {
    outline: none;
    border-color: #bbb;
}

/* Add this to your CSS */
.icon, i, .fas, .far, .fa, .fab {
    font-family: "Font Awesome 5 Free", "Arial", sans-serif !important;
}

/* General Widget Container */
#accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #003366; /* Dark blue background */
    border: 1px solid #0077b6; /* Light blue border */
    padding: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 10px;
    color: white;
    font-family: Arial, sans-serif;
}

/* Toggle Button Styles */
#toggle-widget {
    background: linear-gradient(45deg, #1e90ff, #0077b6); /* Gradient blue background */
    color: white;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover effect for the toggle button */
#toggle-widget:hover {
    background: linear-gradient(45deg, #0056b3, #003f74); /* Darker gradient */
    transform: translateY(-5px);
}

/* Widget Content Styles */
#widget-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

/* Button Styles inside the Widget */
#widget-content button {
    background-color: #ffffff;
    color: #003366; /* Dark blue text */
    border: 2px solid #0077b6; /* Thicker border for definition */
    padding: 14px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

/* Hover effect for buttons */
#widget-content button:hover {
    background-color: #f1f1f1; /* Light gray background */
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Active effect for buttons */
#widget-content button:active {
    background-color: #e6e6e6; /* Darker gray when pressed */
    transform: translateY(0);
}

/* Focus effect for buttons */
#widget-content button:focus {
    outline: none;
    box-shadow: 0 0 10px #0077b6; /* Glow effect on focus */
}

/* High contrast mode styles */
.high-contrast {
    background-color: black;
    color: white;
    border: 2px solid yellow;
    filter: none; /* Remove unwanted inversion */
}

/* Fix button styles for high contrast */
.high-contrast #speakButton, 
.high-contrast #stopButton {
    background-color: #dc3545; /* Red for Stop button */
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Specific button hover effect for high contrast */
.high-contrast #speakButton:hover, 
.high-contrast #stopButton:hover {
    background-color: #a71d2a; /* Darker red for stop button on hover */
}

.high-contrast #speakButton {
    background-color: #1e90ff; /* Blue for Speak button */
}

.high-contrast #speakButton:hover {
    background-color: #0056b3; /* Darker blue for Speak button on hover */
}

/* High contrast mode text in sidebar */
.high-contrast .sidebar {
    background-color: #333;
    color: #fff;
    border: 2px solid yellow;
}

/* Modify links and other elements inside high contrast mode */
.high-contrast a {
    color: #ffcc00; /* Bright yellow for links */
}

.high-contrast a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Make sure text in the banner is visible */
.high-contrast .banner-text {
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for text container */
    color: white;
}

.high-contrast .navbar {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.high-contrast .navbar a {
    color: #ffcc00; /* Bright yellow links in navbar */
}

/* Footer for high contrast mode */
.high-contrast footer {
    background-color: black;
    color: white;
}

.high-contrast footer a {
    color: #ffcc00; /* Bright yellow footer links */
}

/* Adjust progress bars for high contrast */
.high-contrast .progress-bar {
    background-color: #333; /* Dark background for progress bars */
}

.high-contrast .progress {
    background-color: yellow; /* Yellow progress bar */
}

/* Adjust tooltip for better visibility */
.high-contrast .progress:hover::after {
    background-color: #333;
    color: #ffcc00;
}

.websiteembed {
    width: 100%;
    height: 750px;
    border: none;
    padding-top: 40px;
}