/* CSS Reset */
body, h1, h2, h3, p, ul, li, form, input, textarea, button {
 margin: 0;
 padding: 0;
 border: 0;
 font-size: 100%;
 font: inherit;
 vertical-align: baseline;
 box-sizing: border-box;
}

body {
 font-family: 'Poppins', sans-serif;
 line-height: 1.6;
 background-color: #F5F7FA;
 color: #333;
}

/* Colors */
:root {
 --navy-blue: #1D2A4D;
 --vibrant-blue: #1C8BDF;
 --light-gray: #F5F7FA;
 --white: #FFFFFF;
}

/* General Styles */
.container {
 width: 90%;
 max-width: 1200px;
 margin: 0 auto;
 padding: 20px;
}

/* Header */
header {
 background-color: var(--white);
 padding: 20px 0;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 position: sticky;
 top: 0;
 z-index: 100;
}

header .container {
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.logo {
 color: var(--navy-blue);
 font-size: 1.5em;
 font-weight: 600;
 text-decoration: none;
}

nav ul {
 list-style: none;
 display: flex;
}

nav ul li {
 margin-left: 20px;
}

nav a {
 text-decoration: none;
 color: var(--navy-blue);
 font-weight: 500;
 transition: color 0.3s ease;
}

nav a:hover {
 color: var(--vibrant-blue);
}

/* Hero Section */
#hero {
 position: relative;
 overflow: hidden;
 height: 600px; /* Adjust as needed */
 display: flex;
 flex-direction: column; /* Changed to column */
 align-items: center;
 justify-content: center;
 color: white; /* Ensure text is visible on the video */
 margin-bottom: 0px; /* Add margin to the bottom of the hero section */
 text-align: center; /* Center content horizontally */
}

.hero-video-container {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 overflow: hidden;
 z-index: -1; /* Place video behind content */
}

.hero-video {
 width: 100%;
 height: 100%;
 object-fit: cover; /* Cover the entire container */
 opacity: 1.0; /* Adjust video opacity */
}

/* filepath: c:\Users\javie\Documents\BPOvate\style.css */
.hero-content {
position: absolute;
bottom: 0;
left: 0;
z-index: 1;
width: 100%;
padding: 20px;
box-sizing: border-box;
background-color: rgba(0, 0, 0, 0.7); /* Add a semi-transparent background for readability */
}

#hero h1 {
 color: #fdfafa;
 font-size: 2.5em;
 margin-bottom: 20px;
}

#hero p {
 font-size: 1.2em;
 color: #fdfafa;
 margin-bottom: 30px;
}

#secondary-hero {
 background-color: var(--light-gray);
 padding: 60px 0;
 text-align: center;
}

#secondary-hero h2 {
 color: var(--navy-blue);
 font-size: 2em;
 margin-bottom: 20px;
}

#secondary-hero p {
 font-size: 1.1em;
 color: #555;
 margin-bottom: 30px;
}

.cta-button {
 display: inline-block;
 background-color: var(--vibrant-blue);
 color: var(--white);
 padding: 12px 30px;
 text-decoration: none;
 border-radius: 5px;
 font-weight: 600;
 transition: background-color 0.3s ease;
}

.cta-button:hover {
 background-color: #116799;
}

/* About Us Section */
#about {
 background-color: var(--white);
 padding: 60px 0;
}

#about h2 {
 color: var(--navy-blue);
 font-size: 2em;
 margin-bottom: 30px;
 text-align: center;
}

#about p {
 color: #555;
 font-size: 1.1em;
 line-height: 1.7;
}

/* Services Section */
#services {
 background-color: var(--light-gray);
 padding: 60px 0;
}

#services h2 {
 color: var(--navy-blue);
 font-size: 2em;
 margin-bottom: 40px;
 text-align: center;
}

.services-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}

.service-card {
 background-color: var(--white);
 padding: 30px;
 border-radius: 5px;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
 color: var(--navy-blue);
 font-size: 1.5em;
 margin-bottom: 15px;
}

.service-card p {
 color: #555;
}

.service-card .service-image {
 width: 100%; /* Make images responsive */
 max-height: 250px; /* Limit image height */
 object-fit: cover; /* Maintain aspect ratio and cover the area */
 margin-bottom: 15px; /* Add spacing between image and heading */
}

/* Why Choose Us Section */
#why-choose-us {
 background-color: var(--white);
 padding: 60px 0;
}

#why-choose-us h2 {
 color: var(--navy-blue);
 font-size: 2em;
 margin-bottom: 40px;
 text-align: center;
}

.advantage-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}

.advantage-item {
 text-align: center;
 padding: 20px;
 border-radius: 5px;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.advantage-item i {
 font-size: 3em;
 color: var(--vibrant-blue);
 margin-bottom: 15px;
}

.advantage-item h3 {
 color: var(--navy-blue);
 font-size: 1.3em;
 margin-bottom: 10px;
}

.advantage-item p {
 color: #555;
}

/* Testimonials Section */
#testimonials {
 background-color: var(--light-gray);
 padding: 60px 0;
}

#testimonials h2 {
 color: var(--navy-blue);
 font-size: 2em;
 margin-bottom: 40px;
 text-align: center;
}

.testimonials-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
 gap: 30px;
}

.testimonial-card {
 background-color: var(--white);
 padding: 30px;
 border-radius: 5px;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 font-style: italic;
 color: #555;
}

.testimonial-card p::before {
 content: '"';
}

.testimonial-card p::after {
 content: '"';
}

/* Contact Form Section */
#contact {
 background-color: var(--white);
 padding: 60px 0;
 text-align: center;
}

#contact h2 {
 color: var(--navy-blue);
 font-size: 2em;
 margin-bottom: 40px;
 text-align: center;
}

#contact form {
 display: flex;
 flex-direction: column;
 max-width: 600px;
 margin: 0 auto;
}

#contact label {
 margin-bottom: 8px;
 color: var(--navy-blue);
 font-weight: 500;
}

#contact input,
#contact textarea {
 padding: 12px;
 margin-bottom: 20px;
 border: 1px solid #ccc;
 border-radius: 5px;
 font-family: 'Poppins', sans-serif;
}

#contact textarea {
 resize: vertical;
}

#contact button {
 background-color: var(--vibrant-blue);
 color: var(--white);
 padding: 12px 30px;
 border: none;
 border-radius: 5px;
 font-size: 1em;
 font-weight: 600;
 cursor: pointer;
 transition: background-color 0.3s ease;
}

#contact button:hover {
 background-color: #116799;
}

/* Footer */
footer {
 background-color: var(--navy-blue);
 color: var(--white);
 padding: 30px 0;
 text-align: center;
}

footer p {
 margin-bottom: 10px;
}

footer a {
 color: var(--white);
 text-decoration: none;
 transition: color 0.3s ease;
}

footer a:hover {
 color: var(--vibrant-blue);
}

.social-links {
 margin-top: 10px;
}

.social-links a {
 display: inline-block;
 margin: 0 10px;
 font-size: 1.5em;
}

/* Accessibility improvements */
input:focus, textarea:focus, button:focus {
 outline: 2px solid var(--vibrant-blue);
 outline-offset: 2px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
 header .container {
 flex-direction: column;
 align-items: flex-start;
 }

nav ul {
 margin-top: 10px;
 flex-direction: column;
 }

nav ul li {
 margin-left: 0;
 margin-bottom: 10px;
 }

#hero {
 padding: 60px 0;
 }

#hero h1 {
 font-size: 2em;
 }

.services-grid,
.testimonials-grid {
 grid-template-columns: 1fr;
 }
}