/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: url('images/humanoid-robot.jpg') no-repeat center center fixed;
    background-size: 50%;
    background-color: #1F3346;
    color: #E6F1FF;
    line-height: 1.6;
}

/* Typography and Text Styling */
h1 {
    font-size: 3.5rem;
    color: #64FFDA;
    text-align: center;
    margin: 1rem 0;
    text-shadow: 3px 3px 10px rgba(100, 255, 218, 0.8);
    line-height: 1.2;
    font-weight: bold;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        text-shadow: 2px 2px 8px rgba(100, 255, 218, 0.6);
    }
}

p {
    font-size: 1.25rem;
    color: #8892B0;
    line-height: 1.8;
    max-width: 800px;
    margin: 1.5rem auto;
    text-align: center;
}

section.content-section p {
    text-align: left;
    text-indent: 1.5rem;
    max-width: 750px;
}

.hero-content p {
    color: #ffffff; /* Bright white for high contrast */
    font-size: 1.2rem; /* Optional: Slightly larger font for readability */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Optional: Add a subtle shadow to enhance readability */
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.grid-item {
    background-color: #1D3557;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.grid-item h3 {
    font-size: 1.8rem;
    color: #64FFDA;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(100, 255, 218, 0.8);
}

.grid-item p {
    font-size: 1rem;
    color: #E6F1FF;
    line-height: 1.6;
    text-align: left;
    margin: 0.5rem 0 1rem;
    text-indent: 1rem;
}

/* Responsive Adjustments for Grid */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
        padding: 0.5rem;
    }

    .grid-item {
        padding: 1rem; /* Adjust padding for smaller screens */
    }
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0A192F;
    padding: 1rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.nav-list {
    display: flex;
    list-style: none;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
    max-height: none;
}

.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 Mobile */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        max-height: 0;
        opacity: 0;
    }

    .nav-list.open {
        max-height: 300px; /* Adjust based on menu items */
        opacity: 1;
    }

    .nav-list li {
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* 3D Model Embed Container */
.responsive-embed-container {
    padding: 2rem;
    background-color: rgba(10, 25, 47, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    margin: 2rem auto;
    max-width: 900px;
    text-align: center;
}

.embed-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px; /* Matches the container's rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.embed-wrapper .attribution {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #8892B0;
}

.embed-wrapper .attribution a {
    text-decoration: none;
    color: #64FFDA;
    font-weight: bold;
    transition: color 0.3s ease;
}

.embed-wrapper .attribution a:hover {
    color: #1CAAD9;
}

/* Footer */
footer {
    background-color: rgba(10, 25, 47, 0.5);
    color: #64FFDA;
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
}