/* ===== Color Palette ===== */
:root {
    --primary-color: #005F73; /* Deep Teal */
    --secondary-color: #0A9396; /* Turquoise Green */
    --text-color: #ffffff; /* White for contrast */
    --background-color: #002B36; /* Dark Cyan Blue */
}

/* ===== Reset Default Styles ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* ===== Body Styling ===== */
body {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* ===== Navigation Bar ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 10px 20px;
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* ===== Logo Styling ===== */
.logo img {
    max-width: 150px;
    height: auto;
}

/* ===== Navigation Links ===== */
.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #005F73;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* ===== Sections Styling ===== */
.section {
    padding: 100px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* ===== Background Images for Sections ===== */
#home {
    background-image: url('/home/images/Section1.jpeg');
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center;
    gap: 20px; /* Add spacing between elements */
}



#about {
    background-image: url('/home/images/Section2.jpeg');
}

#research {
    background-image: url('/home/images/Section3.jpeg');
}

/* ===== Background Overlay for Readability ===== */
.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

/* ===== Ensure Content is Visible Above Overlay ===== */
.section h1, .section p, .section .btn {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* ===== Text Box for About & Research Sections ===== */
.content-box {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black to improve text contrast */
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(10px); /* Blurred effect for readability */
    position: relative;
    z-index: 2; /* Ensure it's above the dark overlay */
}

/* Ensure all text inside the content box is pure white */
#about .content-box,
#research .content-box {
    color: #ffffff !important; /* Force text to pure white */
    text-shadow: none !important; /* Remove unnecessary shadow */
}

#about .content-box *,
#research .content-box * {
    color: #ffffff !important; /* Force all elements inside to be white */
}

/* Fix the dark overlay issue */
.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Make it lighter */
    z-index: 1; /* Keep it behind the content */
}

/* Ensure text is positioned above the overlay */
.section h1, 
.section p, 
.section ul,
.section li {
    position: relative;
    z-index: 2;
    color: #ffffff !important; /* Ensure readability */
}



/* ===== Research List Styling ===== */
#research ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

#research ul li {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Button Styling ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease-in-out;
    border: 2px solid transparent;
}

.btn:hover {
    background: #00865A;
    border-color: white;
}

/* ===== Image Slider ===== */
.slider {
    width: 80%;
    height: 300px;
    margin: auto;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.slides {
    display: flex;
    width: 500%;
    animation: slide 10s infinite;
}

.slides img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ===== Slider Animation ===== */
@keyframes slide {
.slider {
    position: relative;
    max-width: 80%;
    margin: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    max-width: 100%;
    height: auto; /* Ensures original aspect ratio */
    object-fit: contain;
}

/* Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}


/* ===== Footer ===== */
footer {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 90px 60px; /* Increase padding for better spacing */
    position: relative;
    width: 100%;
    min-height: 480px; /* Set minimum height */
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    text-align: center;
    font-size: 16px; /* Adjust text size */
    font-weight: bold; /* Make text stand out */
}


/* ===== Smooth Scrolling Effect ===== */
html {
    scroll-behavior: smooth;
}
.section::before {
    background: rgba(0, 0, 0, 0.3); /* Change from 0.5 to 0.3 to make it lighter */
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
