/* Base Styles & CSS Variables */
:root {
    --primary-blue: #0077b6;
    --light-blue: #90e0ef;
    --dark-bg: #03045e;
    --darker-bg: #02033b;
    --text-dark: #333;
    --text-light: #f4f4f9;
    --bg-gray: #f4f7f6;
    
    /* Edge-to-edge with a safe 5% text buffer */
    --side-padding: 5%; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: var(--text-dark); line-height: 1.6; background-color: #ffffff; overflow-x: hidden; }
.bg-light { background-color: var(--bg-gray); }
a { text-decoration: none; color: inherit; }

/* Typography */
h1, h2, h3 { color: var(--dark-bg); margin-bottom: 1rem; line-height: 1.2; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
p { margin-bottom: 1rem; font-size: 1.15rem; color: #555; }

/* Let the section headers run wider if needed */
.section-header { text-align: center; max-width: 1000px; margin: 0 auto 4rem auto; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-primary { background: var(--primary-blue); color: white; }
.btn-primary:hover { background: var(--dark-bg); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-discord { background: #5865F2; color: white; display: inline-flex; align-items: center; gap: 8px; }
.btn-discord:hover { background: #4752C4; transform: translateY(-2px); }

/* Navigation - Full Width */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--side-padding);
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo-img { max-height: 90px; width: auto; display: block; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; font-weight: 600; }
.nav-links a:not(.btn):hover { color: var(--primary-blue); }

/* Layout Sections - Full Width Spacing */
section { 
    padding: 8rem var(--side-padding); 
    width: 100%;
}

/* Hero Section - Let it breathe */
/* Hero Section - Strict 50/50 Split */
.hero { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    min-height: 85vh; 
    background: linear-gradient(135deg, #e0fbfc 0%, #ffffff 100%); 
    gap: 4rem; 
}

.hero-content { 
    /* Forces exactly 50% width minus half the gap space */
    width: calc(50% - 2rem); 
}

.hero-image { 
    /* Forces exactly 50% width minus half the gap space */
    width: calc(50% - 2rem); 
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    object-fit: cover; 
}

.hero-buttons { 
    display: flex; 
    gap: 1rem; 
    margin-top: 2.5rem; 
}

/* AI Education Section - Fluid Grid */
.education-section { background: var(--dark-bg); color: white; }
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; width: 100%; }
.ed-card { background: var(--darker-bg); padding: 3rem; border-radius: 12px; border-top: 4px solid var(--light-blue); }
.ed-icon { font-size: 3rem; color: var(--light-blue); margin-bottom: 1.5rem; }
.ed-card h3 { color: white; }
.ed-card p { color: #d0d0d0; font-size: 1rem; }

/* 4 Video Gallery - Fluid Grid */
.video-gallery { background: var(--bg-gray); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 3rem; width: 100%; }
.video-wrapper { text-align: center; width: 100%; }
.video-box { 
    width: 100%; height: 350px; background: #1a1a2e; border-radius: 12px; 
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 2px solid #ddd;
    transition: transform 0.3s;
}
.video-box:hover { transform: translateY(-5px); border-color: var(--primary-blue); }
.play-button { font-size: 4rem; color: var(--light-blue); cursor: pointer; transition: transform 0.3s; }
.play-button:hover { transform: scale(1.1); color: white; }

/* Philosophy Split Layout - Edge to Edge */
.philosophy-section { background: white; }
.split-layout { display: flex; align-items: center; gap: 5rem; width: 100%; }
.split-text { flex: 1; }
.split-image { flex: 1; display: flex; justify-content: center; }

/* Deep Dive Features - Edge to Edge */
.feature-row { display: flex; align-items: center; gap: 6rem; width: 100%; margin-bottom: 8rem; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 2rem; }
.feature-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.badge { display: inline-block; padding: 5px 15px; border-radius: 50px; font-weight: 800; font-size: 0.9rem; margin-bottom: 1.5rem; }
.badge-high-pay { background: #ffebee; color: #c62828; }
.badge-mid-pay { background: #e3f2fd; color: #1565c0; }

/* Vertical Timeline */
.timeline-section { background: white; }
.timeline { position: relative; width: 100%; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--primary-blue); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px; }
.timeline-item { padding: 10px 5%; position: relative; background-color: inherit; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot { position: absolute; width: 40px; height: 40px; right: -20px; background-color: var(--dark-bg); color: white; border: 4px solid var(--light-blue); top: 15px; border-radius: 50%; z-index: 1; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 1.2rem; }
.timeline-item:nth-child(even) .timeline-dot { left: -20px; }
.timeline-content { padding: 3rem; background-color: var(--bg-gray); position: relative; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.timeline-content h3 { margin-bottom: 0.5rem; font-size: 1.5rem; }

/* Expanded FAQ Section */
.faq-section { background: var(--bg-gray); }
.faq-container { width: 100%; max-width: 1400px; margin: 0 auto; background: white; padding: 4rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.faq-item { border-bottom: 1px solid #ddd; padding: 1.5rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { font-size: 1.3rem; font-weight: 600; color: var(--dark-bg); cursor: pointer; list-style: none; position: relative; padding-right: 2rem; outline: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary-blue); }
.faq-item[open] summary::after { content: '−'; }
.faq-content { padding-top: 1.5rem; color: #444; font-size: 1.1rem; line-height: 1.8; }

/* Bottom CTA */
.bottom-cta { background: var(--primary-blue); color: white; text-align: center; padding: 10rem var(--side-padding); }
.bottom-cta h2, .bottom-cta p { color: white; }
.bottom-cta p { max-width: 800px; margin: 0 auto 2.5rem auto; font-size: 1.2rem; }

/* Footer */
footer { background: #0a0a1a; color: white; padding: 4rem var(--side-padding) 2rem; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 3rem; margin-bottom: 2rem; }
.footer-links a:hover { color: var(--primary-blue); }

/* --- Advanced Scroll Animation Classes --- */
.slide-up { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide-left { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide-right { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.in-view { opacity: 1; transform: translate(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.3s; }
.stagger-3 { transition-delay: 0.5s; }

/* --- Strict Mobile Restriction --- */
@media (max-width: 1024px) {
    body { overflow: hidden; }
    body > * { display: none !important; }
    body::before {
        content: "OceanSourceAI requires a desktop environment. Please access this platform on a laptop or desktop computer to view available opportunities and complete tasks.";
        display: flex; align-items: center; justify-content: center; text-align: center; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--dark-bg); color: var(--text-light); font-size: 1.5rem; font-weight: 600; padding: 3rem; z-index: 9999; box-sizing: border-box; line-height: 1.6;
    }
}