:root {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --accent-color: #2f81f7;
    --secondary-bg: #161b22;
    --glass-bg: rgba(22, 27, 34, 0.7);
    --border-color: #30363d;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
}

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

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

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 0 5%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-left: auto;
    /* Anchors links to the right */
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: 0px 0px 9px rgb(0 0 0);
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: -1;
}

.hero-logo {
    width: 80%;
    max-width: 700px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0px 0px 9px rgb(0 0 0));
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #8b949e;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(47, 129, 247, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 129, 247, 0.6);
    color: #fff;
}

/* Sections */
section {
    padding: 5rem 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Cards (Services/Tech) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.full-width-card {
    grid-column: 1 / -1;
}

.card {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.tech-sub-item {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-bg-icon {
    position: absolute;
    right: 0px;
    bottom: -20px;
    width: 150px;
    height: auto;
    opacity: 0.1;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

.tech-sub-item h3,
.tech-sub-item p {
    position: relative;
    z-index: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: #8b949e;
    line-height: 1.6;
}

.contact-info .card {
    background: rgba(22, 27, 34, 0.85);
    backdrop-filter: blur(5px);
}



/* Footer */
/* Footer */
.footer-bridge {
    width: 100%;
    /* Responsive height to maintain aspect ratio and prevent clipping */
    height: 25vw;
    min-height: 150px;

    background: url('../images/yaquina_bay_bridge.png') no-repeat center bottom;
    background-size: 100% auto;

    pointer-events: none;

    margin-bottom: -1.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 10;
    /* Ensure bridge sits ON TOP of the footer */
}

footer {
    position: relative;
    z-index: 1;
    background: var(--secondary-bg);
    padding: 60px 5% 2rem;
    text-align: center;
    border-top: none;
    margin-top: 0;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
    letter-spacing: 0.5px;
}

.badge:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

footer p {
    color: #8b949e;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation TODO */
    }
}

/* Video Controls */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

/* Hide overlay when playing and not hovering (via JS class) */
.video-overlay.playing:not(.visible) {
    opacity: 0;
}

.play-pause-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, background 0.2s;
    backdrop-filter: blur(4px);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s linear;
}

.progress-container:hover {
    height: 10px;
}