/* style.css */

:root {
    /* Colors derived from the logo (Teal/Green) */
    --primary-color: #008080; /* Main Teal/Green */
    --secondary-color: #4caf50; /* Accent Green */
    --text-color: #333;
    --background-color: #f7f7f7;
    --font-family: "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    /* Important for the fade effect to work properly */
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky; /* Makes the header stick to the top */
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; /* Slightly wider for better spacing */
    margin: auto;
}

.logo-container {
    width: 200px; /* Set a base width for the logo area */
    /* We will use JS to adjust the height/scale, but this sets the initial state */
}

.logo {
    width: 100%; /* Ensure the image scales within its container */
    height: auto;
    transition:
        opacity 0.5s ease-in-out,
        transform 0.5s ease-in-out; /* Define the transition for smooth fading/stretching */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 200;
    transition: color 0.3s ease;
    font-size: large;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Main Content Area */
main {
    padding: 40px 0;
    width: 90%;
    margin: auto;
}

#hero-section {
    background-image: url("inmotion-entrada.jpeg"); /* Replace 'hero_bg.jpg' with the actual path to your image */
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center; /* Centers the image */
    text-align: left;
}

h1,
h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.left-content-wrapper {
    /* Set the desired left margin and width */
    margin-top: 15%;
    margin-left: 6%;
    width: 35%;

    /* Ensure the text inside is readable */
    text-align: center;
    background-color: white;
    border-radius: 8px;

    /* Optional: You can add padding or background color here if you wish to style the wrapper itself */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    ); /* Creates a responsive grid */
    gap: 30px; /* Space between team members */
    margin-top: 20px;
}

.team-member {
    text-align: center; /* Center text within each member block */
    border: 1px solid #ddd; /* Optional: Adds a light border */
    padding: 20px;
    border-radius: 8px;
}

.team-photo {
    width: 100%;
    height: auto;
    max-height: 200px; /* Set a consistent height for photos */
    object-fit: cover; /* Ensures the photo covers the area without distortion */
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 40px;
}
