/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Oswald:wght@300;400;700&display=swap');

:root {
    --primary-color: #ff9900;
    /* Northdocks Orange */
    --text-color: #ffffff;
    --bg-color: #0b0b0b;
    --font-main: 'Oswald', sans-serif;
    --font-body: 'Oswald', sans-serif;
    --font-bold: 'Oswald', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    /* Oswald Regular for body - stronger than Light */
    letter-spacing: 0.5px;
    /* Improve readability */
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

p {
    /* Slightly larger for Oswald */
    margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
.nav-links a,
.logo {
    font-family: var(--font-main);
    font-weight: 700;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* Above bg, below content? No, needs to be subtle. z-index 1? */
    /* Wait, the hero-bg is z-index -1. info-bg is -2. 
       If I want it "fixed background", it should be low z-index.
       But if it's "wireframe style", maybe it overlays?
       Let's put it at z-index: -1, but maybe above the parallax bg images?
       Actually, if it's "Digital Twin" style, maybe it should be on top of the generic dark backgrounds but below text.
       Text is usually z-index 1 or auto.
       Let's try z-index: 0 or -1.
       If z-index is 0, it might cover inputs if not careful with pointer-events.
    */
    z-index: 1;
    /* Below navbar (1000) */
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 1;
    /* Managed in JS */
}

h1,

h1,
h2,
h3 {
    font-family: var(--font-bold);
    font-weight: 700;
    /* Oswald Bold handles weight */
    text-transform: uppercase;
}

p {
    font-weight: 300;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar .logo {
    font-family: var(--font-bold);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.navbar .nav-slogan {
    font-family: var(--font-bold);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0 20px;
    text-align: center;
    flex-grow: 1;
    /* Center it */
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-body);
    /* Match body font */
    font-weight: 400;
    /* Regular weight */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 10px 0;
    }
}

.cta-small {
    background: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: #000;
    font-weight: 600;
}

.cta-small:hover {
    background: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100svh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -1;
    will-change: transform;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    animation: text-glow 4s ease-in-out infinite alternate;
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 153, 0, 0.2), 0 0 20px rgba(255, 153, 0, 0.1);
    }

    25% {
        text-shadow: 0 0 15px rgba(255, 153, 0, 0.4), 0 0 30px rgba(255, 153, 0, 0.2);
    }

    50% {
        text-shadow: 0 0 10px rgba(255, 153, 0, 0.3), 0 0 20px rgba(255, 153, 0, 0.15);
    }

    75% {
        text-shadow: 0 0 20px rgba(255, 153, 0, 0.5), 0 0 40px rgba(255, 153, 0, 0.25);
    }

    100% {
        text-shadow: 0 0 12px rgba(255, 153, 0, 0.25), 0 0 25px rgba(255, 153, 0, 0.1);
    }
}

.highlight {
    color: var(--primary-color);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    /* Explicit white */
    opacity: 0.9;
    /* Slightly more visible */
    animation: bounce 2s infinite;
    z-index: 2;
    /* Ensure it is above particles/bg */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Verticals Grid */
.verticals-section {
    padding: 0;
    background: #000;
}

.section-header {
    text-align: center;
    padding: 60px 20px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
}

.impact-header {
    font-size: 4.5rem !important;
    text-shadow: 0 0 20px rgba(255, 153, 0, 0.4);
    letter-spacing: 5px;
    margin-bottom: 40px;
}

.verticals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    padding: 0 40px;
    /* Prevent edge clipping */
}

.grid-item {
    position: relative;
    height: 300px;
    /* OR aspect-ratio */
    overflow: hidden;
    background: #111;
    z-index: 2;
    /* Keep above particles */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the tile to remove black bars */
    transition: transform 0.4s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.grid-item:hover .overlay {
    transform: translateY(0);
}

/* Info Sections (Full Screen Scroll vibe) */
.info-section {
    position: relative;
    padding: 100px 40px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Smooth Transitions / Black Falloff */
.info-section::before,
.info-section::after,
.image-break::before,
.image-break::after,
.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: -1;
    /* Behind particles (0), above bg (-2) */
    pointer-events: none;
}

/* Top Gradient (Fade in from black) */
.info-section::before,
.image-break::before {
    top: 0;
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
}

/* Bottom Gradient (Fade out to black) */
.info-section::after,
.image-break::after,
.hero-section::after {
    bottom: 0;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}

/* Z-Index Layering:
   - BG Images: -2
   - Overlay: -1
   - Particles: 0
   - Text/Content: 2
   - Navbar: 1000
*/

.hero-bg,
.info-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    z-index: -1;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.info-content {
    max-width: 600px;
}

.info-content.right-aligned {
    margin-left: auto;
    text-align: right;
}

.right-aligned .info-overlay {
    background: linear-gradient(-90deg, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
}

h1,
.hero-content,
.info-content,
.section-header,
.image-break .break-content,
.contact-wrapper {
    position: relative;
    z-index: 2;
}

.info-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.key-terms {
    list-style: none;
}

.key-terms li {
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

/* Image Break */
.image-break {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.5);
    z-index: -1;
}

.break-content h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    position: relative;
    z-index: 10;
    background: #000;
    padding: 60px 40px;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer-links a {
    margin-left: 30px;
    color: #888;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #444;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .verticals-grid {
        grid-template-columns: 1fr;
    }

    .info-content h2 {
        font-size: 2rem;
    }

    .info-section {
        padding: 60px 20px;
    }

    /* Mobile Menu Links */
    .mobile-only {
        display: block !important;
    }

    /* Mobile Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-links a {
        margin-left: 0;
        font-size: 1.1rem;
        padding: 10px;
        display: block;
    }
}

/* Helper Class */
.mobile-only {
    display: none;
}

/* Page Headers */
.page-header {
    height: 60vh;
    min-height: 400px;
}

/* Legal Content */
.legal-content {
    padding: 120px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: 40px;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #ccc;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Contact Form Styles */
.contact-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

#contact-form label {
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 5px;
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-main);
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

#contact-form button {
    background-color: var(--primary-color);
    color: #000;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

#contact-form button:hover {
    background-color: #fff;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    color: #ccc;
}

.contact-info a {
    color: #fff;
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    font-family: var(--font-bold);
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* News List Styles */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-item {
    background: #1a1a1a;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease, background 0.2s ease;
}

.news-item:hover {
    transform: translateX(10px);
    background: #222;
}

.news-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #fff;
    font-family: var(--font-bold);
    text-transform: none;
    /* Keep original case for readability if needed, or uppercase as per design */
}

.news-item p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.news-link:hover {
    color: var(--primary-color);
}

.news-source {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
    color: #aaa;
    vertical-align: middle;
}

/* Funding Grid */
.funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 40px;
    width: 100%;
}

.funding-item {
    background: #1a1a1a;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.funding-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.funding-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.funding-content p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 20px;
}

.funding-link {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color 0.2s;
}

.funding-link:hover {
    color: var(--primary-color);
}

.funding-logos {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: auto;
}

.logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #444;
    min-width: 100px;
    text-align: center;
}

.funding-text {
    display: block;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
    margin-top: 10px;
    font-style: italic;
}

/* Awards List */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
    border-left: 2px solid #333;
    margin-left: 20px;
}

.award-item {
    position: relative;
    padding: 30px 0 30px 40px;
}

.award-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 38px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.award-year {
    display: block;
    font-family: var(--font-bold);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.award-details h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-family: var(--font-bold);
    text-transform: none;
}

.award-details p {
    color: #ccc;
    margin-bottom: 10px;
}

.award-details a {
    color: #fff;
    text-decoration: underline;
    font-size: 0.9rem;
}

.award-details a:hover {
    color: var(--primary-color);
}