/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.2;
}

/* Navigation Bar */
header {
    background-color: #1e1e1e;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between; /* Space between logo and nav links */
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav {
    display: flex;
    width: 100%;
    padding: 10px 20px;
    justify-content: center;
}

.logo {
    margin-right: auto;
}

.logo a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center; /* Center the navigation links */
    align-items: center;
    margin-left: auto;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a:hover {
    color: #0070c0;
}

/* Hover underline effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #0070c0;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Active link highlighting */
.nav-links a.active {
    color: #0070c0;
    font-weight: 700;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Menu Toggle Animation */
.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Fade-In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-To-Top Button */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99;
    background-color: #0070c0;
    color: white;
    padding: 15px 24px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#scrollToTopBtn.show-btn {
    display: block;
    opacity: 1;
}

#scrollToTopBtn:hover {
    background-color: #0070c0;
}

/* Button Hover Effects */
button {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #0288d1;
    transform: translateY(-3px);
}

/* Parallax Background for Home Section */
.header {
    background: url('images/back.png') no-repeat center center/cover;
    background-attachment: fixed;
    color: #0070c0;
    padding-top: 200px;
    padding-bottom: 200px;
    text-align: center;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-logo {
    max-height: 200px;
    margin-right: 20px;
}

.header h1, .project-header h1 {
    background-color: rgba(18, 18, 18, 0.9);
    font-size: 4rem;
    margin-bottom: 0px;
}

.header p, .project-header p {
    padding-top: 20px;
    padding-bottom: 10px;
    background-color: rgba(18, 18, 18, 0.9);
    font-size: 1.5rem;
}

#about p {
    max-width: 800px;
    margin: auto;
    text-align: left;
    padding: 0 20px;
    font-size: 1.0rem;
    color: #ffffff;
}

#about ul {
    max-width: 800px;
    margin: auto;
    /* list-style-type: none; */
    padding-top: 10px;
    text-align: left;
    padding-left: 60px;
}

#references p {
    max-width: 800px;
    margin: auto;
    text-align: left;
    padding: 5px 0;
    text-indent:-2rem;
}

/* Sections */
section {
    padding: 60px 20px;
    text-align: center;
}

section h1 {
    font-size: 4rem;
    color: #0070c0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0070c0;
}

/* Team Members */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.team-member {
    background-color: #1e1e1e;
    margin: 15px;
    padding: 20px;
    border-radius: 8px;
    width: 250px;
}

.team-member p {
    font-size: 10pt;
}

.team-member img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    max-height: 173px;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    object-fit: cover;
}

.team-member h3 {
    /* border-bottom: #ffffff 1px solid; */
    margin-bottom: 3px;
    font-size: 1.2rem;
    padding-bottom: 2px;
}

/* Projects */
#projects, #courses {
    text-align: center;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card img, .course-card img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    max-height: 200px;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    object-fit: contain;
}

.project-card, .course-card {
    background-color: #1e1e1e;
    margin: 15px;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
}

.project-card h3, .course-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-card p, .course-card p {
    margin-bottom: 20px;
}

.project-card a, .course-card a {
    text-decoration: none;
    color: #0070c0;
    font-weight: 500;
}

.project-card span::before {
    content: "Status: ";
}

span.project-active::after {
    content: "Active";
    color: #00ff00;
}

span.project-ended::after {
    content: "Ended";
    color: #ff0000;
}

.project-card a:hover {
    text-decoration: underline;
}

/* Contact Form */
#contact form {
    max-width: 600px;
    margin: 0 auto;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #1e1e1e;
    border: none;
    border-radius: 4px;
    color: #ffffff;
}

#contact button {
    padding: 15px 30px;
    background-color: #0070c0;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #0288d1;
}

/* Footer */
footer {
    background-color: #1e1e1e;
    padding: 20px 0;
    text-align: center;
}

footer p {
    color: #757575;
}

/* Responsive Design */

/* Responsive Styles */
@media (max-width: 1000px) {
    /* Hide navigation links on small screens */
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        height: calc(100vh - 60px);
        width: 200px;
        flex-direction: column;
        background-color: #1e1e1e;
        transition: right 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
    }

    .nav-links li {
        margin: 20px 0;
        text-align: center;
    }

    /* Display the menu toggle button */
    .menu-toggle {
        display: flex;
    }

    .team-member,
    .project-card {
        width: 80%;
    }
}

/* Mobile Menu - Prevent body scrolling when nav is active */
.no-scroll {
    overflow: hidden;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
    outline: 2px dashed #0070c0;
    outline-offset: 3px;
}

/* Accessibility - High Contrast for Links */
a {
    color: #ffffff;
}

a:hover,
a:focus {
    color: #0070c0;
}

/* Navigation Bar Style on Scroll */
.nav-scrolled {
    background-color: rgba(18, 18, 18, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Additional Styles */
/* Parallax effect for high-resolution screens */
@media (min-resolution: 192dpi) {
    .header {
        background-attachment: scroll;
    }
}

.repository-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Defines two equal columns */
    gap: 10px; /* Space between the columns */
}

.repository-grid p {
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.repository-text {
    text-align: right;
}

.repository-links {
    text-align: left;
}

/* Floating Socials Bar */
.socials-bar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 5px 5px;
    border-radius: 0 28px 28px 0;
    z-index: 1000;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 5px 5px;
    color: #ffffff;
    background-color: #0070c0;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.social-icon i {
    font-size: 20px;
}

.social-icon:hover {
    background-color: #a2dfff;
    transform: scale(1.1);
}

.project-subheader {
    text-align: left;
    font-size: 1.0rem;
    color: #ffffff;
    max-width: 800px;
    margin: auto;
    align-items: center;
}

.project-subheader ol {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 40px;
}

.project-header {
    background: url('images/back.png') no-repeat center center/cover;
    background-attachment: fixed;
    color: #0070c0;
    padding-top: 250px;
    padding-bottom: 200px;
    text-align: center;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table td {
    border-bottom: 1px solid #ffffff;
    vertical-align: middle;
    padding: 10px;
}

.custom-table .no-border td {
    border-bottom: none;
}

.right-align {
    width: 30%;
    text-align: right;
    font-weight: 700;
}

.left-align {
    width: 70%;
    text-align: left;
}

.left-align p {
    padding-bottom: 7px;
}

.slick-dots li button:before {
    color: lightgray !important; /* Change this to your desired dot color */
}

.slick-dots li.slick-active button:before {
    color: white !important; /* Change this to the color of the active dot */
}

.slick-dots li button:hover:before {
    color: white !important;
}