@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

:root {
    --bg-color: #0f0f0f;
    --text-color: #f0f0f0;
    --accent-color: #388e3c; /* Brighter, cleaner green */
    --highlight-color: #ffffff; 
    --font-main: 'Montserrat', sans-serif;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-main);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

/* Layout */
.container {
    width: 100%;
    max-width: 900px; /* Restrict width for vertical stack */
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navigation */
.main-nav {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #222;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-wrapper {
    display: flex;
    flex-direction: row; /* Explicitly override .container's column direction */
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.nav-logo {
    flex-shrink: 0;
    font-family: var(--font-heading);
    color: var(--highlight-color);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1; /* Tighten logo height */
}

.nav-links {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Project Path Navigation */
.project-path-container {
    width: 100%;
    background: #111;
    border-bottom: 1px solid #222;
    padding: 1rem 0;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.project-path-container::-webkit-scrollbar {
    display: none;
}

.project-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-width: max-content;
    padding: 0 2rem;
}

.path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: none;
}

.path-step.active {
    color: var(--accent-color);
}

.step-num {
    font-size: 0.7rem;
    background: #222;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.25rem;
}

.path-step.active .step-num {
    background: var(--accent-color);
    color: #fff;
}

.step-name {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.path-divider {
    color: #333;
    font-weight: bold;
}

@media (max-width: 768px) {
    .project-path {
        justify-content: flex-start;
    }
}


/* Global Links */
a {
    color: #a5d6a7; /* Brightest light green for visibility */
    text-decoration: underline;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/wildBearTooth.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--accent-color);
    width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-color);
}

/* Content Sections */
section {
    padding: 4rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about {
    max-width: 800px;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Mailing List */
.newsletter {
    background-color: #111;
    border: 1px solid #222;
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
}

.newsletter input[type="text"],
.newsletter input[type="email"] {
    padding: 0.8rem 1.5rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid #444;
    background: #000;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.newsletter button {
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

/* Grid & Cards (Actually a Stack now) */
.grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    align-items: center !important;
    width: 100% !important;
}

.card {
    background-color: #111;
    border: 1px solid #222;
    padding: 2rem;
    border-radius: 8px;
    transition: border-color 0.3s, transform 0.3s;
    width: 100% !important;
    max-width: 700px !important;
}

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

.card p {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid #222;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.status-log {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.visitor-count, #todayis {
    font-family: monospace;
    color: var(--accent-color);
}

/* Tooltips */
.abbr-tooltip {
    border-bottom: 1px dotted var(--accent-color);
    position: relative;
    cursor: help;
    display: inline-block;
    color: var(--highlight-color);
}

.abbr-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--accent-color);
    width: 250px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-weight: normal;
}

.abbr-tooltip:hover::after, a:hover .abbr-tooltip::after {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .abbr-tooltip::after {
        left: auto;
        right: 0;
        transform: none;
        width: 200px;
    }
}

    .nav-logo {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .nav-links {
        gap: 1.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    .nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
    .nav-links a {
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .container {
        padding: 0 1rem;
    }
}

/* Search Bar */
.search-form {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 0.25rem 1rem;
    margin-left: 2rem;
}

.mobile-search-item {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .mobile-search-item {
        margin-left: 1rem;
    }
    .search-form {
        margin-left: 0;
    }
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.4rem;
    outline: none;
    font-size: 0.85rem;
    width: 120px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 180px;
}

.search-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.search-btn:hover {
    color: var(--accent-color);
}

.search-result-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: left;
    transition: border-color 0.3s;
}

.search-result-card:hover {
    border-color: var(--accent-color);
}

.search-result-card h3 {
    text-align: left;
    margin-bottom: 0.5rem;
}

/* Image Modal (Lightbox) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.modal-zoom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    cursor: grab;
    transition: transform 0.1s;
    transform-origin: center;
}

.modal-content.zoomed {
    cursor: grabbing;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    z-index: 10000;
}

.clickable-img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.clickable-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-color) !important;
}

