/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #E6F1FF;
}

/* Backgrounds for Specific Pages */

.neural-networks-page {
    background: url('images/neural-network.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #E6F1FF; /* Ensures text is readable */
}

.language-models-page {
    background: url('images/llm-visual.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #E6F1FF; /* Ensures text is readable */
}

.robotic-movement-page {
    background: url('images/robot-movement.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #E6F1FF; /* Ensures text is readable */
}

.about-page {
    background-color: #0A192F; /* Matches the main page background color */
    color: #E6F1FF; /* Ensures text readability */
}

/* Typography and Text Styling */
p {
    font-size: 1.25em;
    color: #8892B0;
    line-height: 1.8;
    width: 90%; 
    max-width: 750px; 
    margin: 0 auto; 
    text-align: left;
    text-indent: 0; /* Removes indentation */
}

h2 {
    font-size: 2.5rem;
    color: #64FFDA;
    margin: 1rem auto;
    text-shadow: 2px 2px 8px rgba(100, 255, 218, 0.8);
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    color: #64FFDA;
    text-align: center;
    margin: 1.5rem auto 1rem;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0A192F;
    padding: 1rem;
    position: sticky;
    top: 0;
    max-width: 1200px;
    margin: 1rem auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Navigation List */
.nav-list {
    display: flex;
    list-style: none;
    flex-direction: row; /* Default horizontal layout */
    max-height: none; /* No restriction for large screens */
    overflow: hidden;
    transition: max-height 0.3s ease-in-out; /* Smooth toggle effect */
}

.nav-list.open {
    display: flex;
    flex-direction: column; /* Vertical layout for small screens */
    max-height: 300px; /* Allow content to expand */
}

/* Navigation Links */
.nav-list li {
    margin: 0 1rem;
}

.nav-list a {
    color: #64FFDA;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-list a:hover {
    background-color: #112240;
    transform: scale(1.1);
}

/* Hamburger Menu Button */
.navbar-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #64FFDA;
    cursor: pointer;
}

/* Responsive Styles for Hamburger Menu */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block; /* Show toggle button on smaller screens */
    }

    .nav-list {
        flex-direction: column; /* Stack items vertically on mobile */
        max-height: 0; /* Initially hidden */
        overflow: hidden; /* Prevent overflow when hidden */
    }

    .nav-list.open {
        max-height: 300px; /* Adjust height to show items */
    }

    .nav-list li {
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    padding: 2rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #64FFDA;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(100, 255, 218, 0.8);
}

.hero-content p {
    color: #ffffff; /* Brighter white for better contrast */
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Subtle shadow for readability */
}

/* Section Styling */
section {
    padding: 3rem 2rem;
    background-color: #112240;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 1000px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Content Section Styling */
.content-section {
    background-color: rgba(10, 25, 47, 0.95);
    padding: 2rem;
    border-radius: 8px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}