/* GLOBAL RESET & TYPOGRAPHY */
body {
    margin: 0;
    padding: 0;
    /* Added padding-top to prevent content from hiding behind fixed header */
    padding-top: 80px; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f0f8ff; /* Very light blue (AliceBlue) background */
    color: #333;
}

/* HEADER & NAVIGATION */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0077be; /* Brand Color: Pool Blue */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links li a:hover {
    color: #0077be;
}

/* SECTION STYLING */
section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
}

h2 {
    color: #0077be; /* Consistent Brand Color */
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 85vh; /* Full viewport height minus header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Remove standard padding/margin to let image bleed */
    padding: 0; 
    margin: 0;
    max-width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* High-quality pool image */
    background-image: url('https://images.unsplash.com/photo-1575429198097-0414ec08e8cd?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7); /* Darkens image slightly for text readability */
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* CTA BUTTON */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #0077be;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid #0077be;
}

.cta-button:hover {
    background-color: transparent;
    transform: translateY(-3px);
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden; /* Ensures image stays within corners */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Ensures images don't stretch */
}

.service-card h3 {
    margin: 1.5rem 0 0.5rem;
    color: #0077be;
}

.service-card p {
    padding: 0 1.5rem;
    color: #666;
}

/* CONTACT SECTION */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

footer {
    background: #0077be;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .nav-links { display: none; } /* You would ideally add a hamburger menu JS here */
    
    .hero h1 { font-size: 2.5rem; }
    
    .service-card { margin: 0 auto; }
}