/* Add this CSS to highlight the headings on hover */
h2:hover {
    color: #ffd700; /* Gold color when hovered */
    transition: color 0.3s;
}

/* Add this CSS to highlight the headings on hover */
h3:hover {
    color: #ffd700; /* Gold color when hovered */
    transition: color 0.3s;
}

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

body {
    font-family: Georgia,  sans-serif;
    line-height: 1.6;
    background: #f5f8fa; /* Light grey background */
    color: #333; /* Dark grey text color */
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 2rem 1rem; /* Added padding for white space */
}


/* Styling for the right container in the home section */
.right-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #004680;
}

.right-container h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0.5em 0;
    font-family: 'Playfair Display', serif;
}



/* Header background image */
header {
    background: url('Rivera-panamerican.jpg') no-repeat center center;
    background-size: cover;
    color: #000; /* Change font color to black */
    height: 70vh; /* Adjust header section to fit entire background image */
    display: flex;
    align-items: center;
}


/* Styling for the header containers */
.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 2rem;
}

.left-container h1, .left-container h2 {
    font-size: 3.5em;
    font-weight: 1000;
    margin: 0.5em 0;
    font-family: 'Playfair Display', serif;
    color: #000; /* Ensure text color is black */
}

.right-container nav ul {
    display: flex;
    list-style: none;
    padding: 1em;
}

.right-container nav ul li {
    margin: 0 10px;
}

.right-container nav ul li a {
    color: #000; /* Change navigation link color to black */
    text-decoration: none;
    font-weight: 900;
    transition: color 0.3s;
}

.right-container nav ul li a:hover, .right-container nav ul li a.active {
    color: #ffd700; /* Gold color for active and hover state */
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 700;
}

nav ul {
    list-style: none;
    padding: 1em 0; /* Added padding for white space */
    display: flex;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #ffd700; /* Gold color for active and hover state */
}

section {
    padding: 4em 0; /* Added padding for white space */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out; /* Slower and more deliberate */
}

section.in-view {
    opacity: 1;
    transform: translateY(0);
}
section#home {
    background: #e0f3ff; /* Light blue background */
}

section#services {
    background: #e0f3ff; /* Light blue background */
}


footer {
    background: #0569a7; /* Dark blue background */
    color: #6acde8;
    text-align: center;
    padding: 1em 0;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
    font-weight: 600;
}

form input, form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
input:invalid {
    border-color: red;
}

input:valid {
    border-color: green;
}
form button {
    padding: 10px;
    border: none;
    background: #004680; /* Dark blue background */
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
}

form button:hover {
    background: #003366; /* Darker blue on hover */
}

#form-message {
    margin-top: 10px;
    color: green;
}

h2 {
    color: #004680; /* Dark blue heading color */
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 2.0em;
    font-weight: 700;
    transition: color 0.3s;
}


h3 {
    color: #004680; /* Dark blue heading color */
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 4.0em;
    font-weight: 700;
    transition: color 0.3s;
}

p {
    margin-bottom: 20px;
}

/* Placeholder for photos */
.photo-placeholder {
    width: 100%;
    height: 200px;
    background: #ccc;
    margin-top: 1rem;
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .container {
        width: 80%;
    }

    header h1 {
        font-size: 2em;
    }

    nav ul li {
        margin: 0 20px;
    }

    .content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .text {
        width: 100%;
    }

    .text2 {
        width: 50%;
    }

    .photo-placeholder {
        width: 35%;
        height: 300px;
        margin-top: 0;
    }

    section#about .content, section#contact .content {
        flex-direction: row;
    }

    /* Responsive YouTube video embed */
    .video-container {
        position: relative;
        padding-bottom: 56.25%; /* Maintains 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        max-width: 50%;
  }
  
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
  }
  
}
