/* css/style.css */
/* Importing Inter (for reading) and Playfair Display (for classic, upright authority) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    /* "Elite Performance" Palette */
    --bg-main: #08101A; /* Deep Oxford Navy */
    --bg-card: rgba(255, 255, 255, 0.02); /* Extremely subtle sheer box */
    --text-main: #FDFBF7; /* Soft Cream */
    --text-muted: #A0ABC0; /* Elegant blue-grey */
    
    /* The Triadic Balance */
    --accent-gold: #C8B08A; /* Classic Champagne - USED SPARINGLY */
    --accent-red: #E63946; /* Performance Red - FOR ENERGY & HOVERS */
    
    --border-delicate: rgba(255, 255, 255, 0.08); /* Clean, neutral border */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother, high-end motion */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7; 
    scroll-behavior: smooth;
    font-weight: 300; 
    overflow-x: hidden;
}

/* Base Motion: Subtle Fade In */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    padding: 6rem 5%;
    max-width: 1100px; 
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out forwards; /* Applies motion to sections */
}

/* Clean, Upright Typography Hierarchy (No forced italics) */
h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

h1 { 
    font-size: 4.5rem; 
    margin-bottom: 1rem; 
    line-height: 1.1;
    font-weight: 700;
}

h2 { 
    font-size: 2.8rem; 
    margin-bottom: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Subtle gold line next to H2 instead of making the whole text gold */
h2::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem;
    font-weight: 600;
}

p { 
    color: var(--text-muted); 
    margin-bottom: 1.8rem; 
    font-size: 1.1rem; 
}

/* Navigation - Red for Active/Hover State */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(8, 16, 26, 0.98); 
    border-bottom: 1px solid var(--border-delicate);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.6rem;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-red); /* Active energy */
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px; 
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Performance Buttons (Red Accent) */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--accent-red);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--accent-red);
    border-radius: 3px; 
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--accent-red);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3); /* Subtle performance glow */
    transform: translateY(-2px);
}

/* The Interactive Blog Cards (Alive & Clickable) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-delicate);
    border-radius: 6px; 
    transition: var(--transition);
    cursor: pointer;
}

.card a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
    margin-top: 1rem;
}

/* Hover Motion & Red Glow Hook */
.card:hover {
    transform: scale(1.03) translateY(-5px); /* Smooth scale & lift */
    border-color: var(--accent-red); /* Red interactive border */
    background: rgba(230, 57, 70, 0.03); /* Faint red tint inside */
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.08); /* Deep, sophisticated glow */
}

.card:hover h3 {
    color: var(--text-main);
}

.card:hover a {
    letter-spacing: 1px; /* Subtle text animation on hover */
}

/* Lists */
ul {
    list-style-position: inside;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

li {
    margin-bottom: 0.8rem;
    padding-left: 5px;
    list-style-type: disc;
    color: var(--accent-gold); /* Keeping gold just for minimal bullets */
}

li span {
    color: var(--text-muted); 
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-delicate); 
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.1);
}

/* Admin Elements */
.admin-only {
    display: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 5%;
        border-bottom: 1px solid var(--border-delicate);
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        padding: 2rem 0;
        text-align: center;
        border-bottom: 1px solid var(--border-delicate);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.1rem;
    }

    section {
        padding: 4rem 5%;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .contact-form {
        width: 100%;
    }
}
/* --- IMAGE INTEGRATIONS --- */

/* 1. Hero Background Image */
#hero {
    position: relative;
    
    /* 1. The Vignette Blend: Dark at the edges, clearer in the middle */
    background: radial-gradient(circle at center, rgba(8, 16, 26, 0.4) 0%, rgba(8, 16, 26, 0.95) 100%), url('../images/hero-sailing.jpeg') no-repeat center 20%/cover;
    
    /* 2. The Box Shape & Positioning */
    max-width: 1200px; /* Keeps it from stretching too wide on massive monitors */
    margin: 2rem auto; /* Centers the box perfectly with breathing room on top */
    border-radius: 20px; /* Smooth, modern, Apple-style corners */
    
    /* 3. The Blend Effects */
    border: 1px solid rgba(255, 255, 255, 0.05); /* A barely visible, elegant border */
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8); /* A deep shadow that makes it float */
    
    /* 4. Internal Layout */
    min-height: 80vh; /* Slightly less than full height so you can see the background behind it */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    box-sizing: border-box;
}
/* --- THE FROSTED GLASS TEXT PLATE --- */
.hero-text-glass {
    background: rgba(8, 16, 26, 0.75); /* Dark background with 75% opacity */
    backdrop-filter: blur(16px); /* The magic blur effect */
    -webkit-backdrop-filter: blur(16px); /* Safari support */
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle glowing edge */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* Floats the plate off the image */
    max-width: 850px; /* Keeps the text contained */
}
/* Ensure text stays on top of the background */
#hero h1, #hero h2, #hero p, #hero .btn {
    position: relative;
    z-index: 2;
}
/* --- ADMIN MODAL STYLES --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(8, 16, 26, 0.9); /* Deep Navy Glass */
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-main);
    border: 1px solid var(--border-delicate);
    padding: 3rem;
    border-radius: 6px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
/* --- JOURNEY MASONRY GALLERY --- */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-card); /* Placeholder color while loading */
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(20%); /* Slight cinematic desaturation */
}

.masonry-item:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* Responsive columns */
@media (max-width: 900px) {
    .masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .masonry-grid { column-count: 1; }
}
/* --- GLASSMORPHIC JOURNEY MODAL --- */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 16, 26, 0.4); /* Dark semi-transparent */
    backdrop-filter: blur(12px); /* This creates the frosted glass effect! */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.glass-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glass-content {
    background: rgba(255, 255, 255, 0.03); /* Extremely faint white tint */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle glowing border */
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy pop-in */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.glass-overlay.active .glass-content {
    transform: translateY(0);
}

.glass-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.glass-close:hover {
    color: var(--accent-red);
}

.glass-btn {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.glass-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-main);
    box-shadow: 0 0 20px rgba(201, 169, 104, 0.3); /* Gold glow effect */
}
