/* Cosmic Dolphin Portfolio 
    Theme: Deep Space / Frontier Exploration
    Colors: Space Black (#05080c), Silver (#bdc3c7), Accent Blue (#3498db)
*/

/* --- 1. VARIABLES & RESET --- */
:root {
    --bg-light: #05080c;         /* Deep Space Black */
    --space-coast-blue: #bdc3c7; /* Silver headings */
    --white: #ffffff;
    --dark-slate: #020406;       /* Pitch black footer/sections */
    --accent-blue: #1c538e;      /* UPDATED: Deep Ocean Blue for buttons */
    --text-main: #a0aab2;        /* Soft grey for body text */
}

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

body.dark-theme {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.125rem; 
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0; 
}

.nav-toggle-btn {
    display: none;
}

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

h2 {
    font-size: 2.5rem;
    color: var(--space-coast-blue);
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

/* --- 3. TRANSPARENT NAVIGATION (Absolute & Clear) --- */
.transparent-nav {
    background-color: transparent; 
    position: absolute; 
    width: 100%;
    top: 0;
    border-bottom: none; 
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-title {
    font-size: 2.2rem;    
    color: var(--white);
    letter-spacing: 1px;
    /* Removed 'font-weight: 800;' so the span classes control the weight */
}

.site-title .fw-heavy {
    font-weight: 800; /* The heavy anchor */
}

.site-title .fw-light {
    font-weight: 300; /* The razor-sharp contrast */
}

.nav-links a {
    color: var(--white);
    margin-left: 25px;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-button {
    border: 1px solid var(--white); /* Swapped from accent-blue for maximum contrast */
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--white) !important; /* Forces the text to be stark white */
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--white);
    color: var(--bg-light) !important; /* Text turns deep space black on hover */
    text-decoration: none;
}

/* --- 4. VIDEO HERO SECTION (Lower-Third Alignment) --- */
.hero-video-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end; /* Keeps it at the bottom */
    justify-content: flex-end; /* THE FIX: Pushes the entire container to the right */
    padding-bottom: 12vh; 
    padding-right: 5%; /* Gives it a clean margin off the right edge of the screen */
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Pins the focal point near the top for the moon/milky way */
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Linear gradient: clear at the top, fading to dark at the bottom for text readability */
    background: linear-gradient(to bottom, rgba(5,8,12,0) 0%, rgba(5,8,12,0.2) 40%, rgba(5,8,12,0.95) 100%);
    z-index: 1;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    text-align: right; /* THE FIX: Right-aligns the text for a sharp, sophisticated edge */
    max-width: 750px;
    margin: 0 !important; /* Keeps the centering spring dead */
}

.hero-content-centered h3 {
    color: var(--accent-blue);
    letter-spacing: 3px;
    font-size: 1rem;
    text-transform: uppercase;
}


.hero-content-centered h1 {
    font-size: 3.0rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-content-centered p {
    font-size: 1.8rem !important; /* THE FIX: Scaled up from 1.4rem to act as a sub-headline */
    font-weight: 300; /* A lighter weight gives it that sleek, aerospace contrast against the heavy H1 */
    letter-spacing: 1px; /* Slight breathing room between letters */
    color: #e0e6ed;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 30px; /* Gives the blue button below it proper breathing room */
}

/* --- 5. SECTIONS & GRIDS --- */
.section {
    padding: 80px 0;
}

.dark-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.deepest-dark-section {
    background-color: var(--dark-slate);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.text-center {
    text-align: center;
}

.subtitle {
    color: var(--space-coast-blue);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* --- 6. BUTTONS & EFFECTS --- */
.cta-group {
    margin-top: 30px;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: var(--accent-blue);
    color: var(--white);
    border: 2px solid var(--accent-blue);
}

/* --- Icon Button Layout --- */
.btn-icon-layout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Controls the exact spacing between the dolphin and the text */
}

.btn-icon {
    height: 1.6em;
    width: auto;
    display: block;
    transform: rotate(-30deg); /* Rotates the icon 45 degrees counterclockwise */
}

.primary-button:hover {
    background-color: transparent;
    color: var(--white);
}

/* The Hand-Off CTA */
.hand-off-section {
    background: linear-gradient(180deg, var(--dark-slate) 0%, #010203 100%);
    padding: 80px 0;
}

.hand-off-section p {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.pulse-effect {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* --- 7. PLACEHOLDERS --- */
.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.border-glow {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.1);
}

.widget-placeholder {
    padding: 60px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--space-coast-blue);
}

/* --- 8. FOOTER --- */
.footer-section {
    background-color: var(--dark-slate);
    color: #eee;
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-section .copyright {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* --- 9. RESPONSIVE DESIGN (Mobile Optimization) --- */
@media (max-width: 768px) {
    
    /* Header Layout */
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }

    .site-title {
        font-size: 1.5rem; 
        white-space: nowrap; /* Keeps brand on one line */
        z-index: 2005; 
        position: relative;
    }

    /* The Hamburger Icon */
    .hamburger-menu {
        display: flex;
        align-items: center;
        cursor: pointer;
        width: 30px;
        height: 24px;
        position: relative;
        z-index: 2005; /* Keeps icon above the dark menu */
    }

    .hamburger-menu span, 
    .hamburger-menu span::before, 
    .hamburger-menu span::after {
        display: block;
        background: var(--white);
        height: 2px;
        width: 100%;
        position: absolute;
        transition: all 0.3s ease;
    }

    .hamburger-menu span::before { content: ''; top: -8px; }
    .hamburger-menu span::after { content: ''; top: 8px; }

    /* Hamburger Animation (When JS adds the 'open' class) */
    .hamburger-menu.open span { background: transparent; }
    .hamburger-menu.open span::before { transform: rotate(45deg); top: 0; }
    .hamburger-menu.open span::after { transform: rotate(-45deg); top: 0; }

    /* The Menu Drawer (Hidden off-screen by default) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: rgba(5, 8, 12, 0.98); 
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 2000;
        visibility: hidden;
        pointer-events: none;
    }

    /* Slide Menu In (When JS adds the 'show' class) */
    .nav-links.show {
        right: 0; 
        visibility: visible;
        pointer-events: auto;
    }

    /* Big Clickable Links inside Drawer */
    .nav-links a {
        margin: 20px 0;
        font-size: 1.8rem;
        display: block;
        text-align: center;
    }
    
    /* Center the Hero Content */
    .hero-content-centered {
        text-align: center;
        max-width: 95%;
        margin: 0 auto !important;
        padding: 0 15px;
    }

    .hero-content-centered h1 {
        font-size: 3.2rem;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero-content-centered p {
        font-size: 1.4rem !important;
        margin-bottom: 30px;
    }
}