/* --- Global Styles & Reset --- */
:root {
    --primary-color: #007bff; /* Blue accent */
    --secondary-color: #ff9900; /* Orange/Gold accent */
    --dark-blue: #023e8a;
    --font-family: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: #fff; /* Main content background */
}

/* ------------------------------------------------------------------- */
/* 1. SIMPLE PARALLAX CORE */
/* We use the simple background-attachment: fixed technique for quick setup */
/* ------------------------------------------------------------------- */

.blog-hero-parallax, .main-footer-parallax {
    background-image: url('https://picsum.photos/1920/1080?random=10'); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* *** The Parallax Magic Line *** */
    background-attachment: fixed;
    position: relative;
    /* Add a dark overlay to make text pop, similar to the image */
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: darken;
}

/* ------------------------------------------------------------------- */
/* 2. NAVIGATION BAR */
/* ------------------------------------------------------------------- */

.main-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff; /* White nav */
    color: var(--dark-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.social-icons span {
    margin-left: 10px;
    font-size: 1.2em;
}

/* ------------------------------------------------------------------- */
/* 3. HERO SECTION STYLING (The Top Parallax) */
/* ------------------------------------------------------------------- */

.blog-hero-parallax {
    height: 60vh; /* Viewport height for the hero area */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Ensure the yacht image is visible and the top/bottom curves are visible */
    padding-bottom: 100px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%); /* Simulating the bottom curve */
}

.hero-content {
    color: white;
    max-width: 700px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 10px;
    /* Gradient Color for Heading */
    background-image: linear-gradient(to right, #ffffff, #80c7ff); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1em;
    font-weight: 400;
    color: #ccc;
}

/* ------------------------------------------------------------------- */
/* 4. ARTICLE GRID SECTION (Main Content) */
/* ------------------------------------------------------------------- */

.article-grid-section {
    padding: 50px 5%;
    background-color: #fff;
}

.article-grid {
    display: grid;
    /* Responsive 3-column layout, shrinking to 1 column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.post-image-container {
    position: relative;
    overflow: hidden;
}

.post-image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-post:hover img {
    transform: scale(1.05);
}

.date-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.2em;
}

.blog-post h3 {
    font-size: 1.4em;
    color: var(--dark-blue);
    padding: 15px 15px 5px;
}

.blog-post p {
    font-size: 0.95em;
    color: #555;
    padding: 0 15px 10px;
}

.learn-more {
    display: inline-block;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    padding: 0 15px 15px;
}

/* ------------------------------------------------------------------- */
/* 5. FOOTER SECTION (The Bottom Parallax) */
/* ------------------------------------------------------------------- */

.main-footer-parallax {
    background-image: url('https://picsum.photos/1920/1080?random=11');
    color: white;
    padding: 80px 5% 20px;
    /* Simulating the top curve */
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%); 
    margin-top: -100px; /* Pull it up to overlap the content section */
    position: relative;
    z-index: 10;
}

.footer-content-wrap {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo-section {
    max-width: 300px;
}

.footer-logo-section .logo {
    color: white;
}

.footer-links-container {
    display: flex;
    gap: 50px;
}

.footer-col h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.footer-contact {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    padding: 20px 0;
}

.footer-contact span {
    font-weight: 700;
}

.copyright {
    text-align: center;
    font-size: 0.8em;
    padding-top: 20px;
}

/* ------------------------------------------------------------------- */
/* 6. RESPONSIVENESS */
/* ------------------------------------------------------------------- */

@media (max-width: 992px) {
    .main-nav .nav-links {
        display: none; /* Hide nav links on smaller screens (would use a hamburger menu in production) */
    }
    .main-nav {
        justify-content: space-between;
    }
    .footer-content-wrap {
        flex-direction: column;
        gap: 30px;
    }
    .footer-links-container {
        gap: 30px;
        flex-wrap: wrap;
    }
    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
    .blog-hero-parallax {
        height: 40vh;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 600px) {
    .main-nav {
        padding: 15px 20px;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .article-grid {
        /* Already handled by auto-fit, but can ensure padding is consistent */
        padding: 0;
    }
    .main-footer-parallax {
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    }
}