/* 
    WORLD FRONTIERS
    Style Variables & Resets 
*/
:root {
    /* Rugged, earthy color palette */
    --bg-dark: #0a0c0a; /* Very dark green/black */
    --text-main: #ffffff; /* White title text */
    --text-muted: #e2dfd8; /* Bone / off-white for regular text */
    --accent: #c95c32; /* Rust / burnt orange */
    --accent-hover: #e57245;
    --surface-dark: #141814;
    --surface-light: #1f241d;
    
    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-display: 'Anton', sans-serif;
    --font-body: 'Lora', serif;

    /* Transitions */
    --trans-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --trans-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Custom cursor */
}

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

/* Typography Base */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--trans-fast);
}

/* Custom Cursor – handled by liquid-cursor.js */

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.small-container {
    max-width: 800px;
}
.text-center {
    text-align: center;
}
.section {
    padding: 8rem 0;
}

/* ---------------------------------
   NAVBAR 
----------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background-color var(--trans-fast), padding var(--trans-fast);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar.scrolled {
    background: rgba(10, 12, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}
.logo .accent {
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-item {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width var(--trans-fast);
}
.nav-item:hover::after {
    width: 100%;
}
.menu-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.6rem 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--trans-fast);
}
.menu-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* ---------------------------------
   HERO SECTION 
----------------------------------- */
.hero {
    position: relative;
    height: 120vh; /* Vergroessert */ display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    background-image: url("hero_bg.png");
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: translateY(0);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,12,10,0.1) 0%, rgba(10,12,10,0.6) 100%);
    z-index: -1;
}
.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 5%;
    z-index: 1;
}
.hero-content .subtitle {
    font-family: var(--font-heading);
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}
.hero-caption {
    font-style: italic;
    font-size: 1.2rem;
    color: #a0a09e;
    margin-bottom: 3rem;
}
.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left var(--trans-fast);
}
.cta-btn:hover::before {
    left: 0;
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.7;
}
.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(226, 223, 216, 0.3);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-main);
    animation: scrollDown 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ---------------------------------
   MANIFEST SECTION
----------------------------------- */
.manifest {
    background-color: var(--bg-dark);
    position: relative;
}
.manifest .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-main);
    margin-bottom: 3rem;
    line-height: 1.3;
}
.manifest-text {
    font-size: 1.2rem;
    color: #a0a09e;
}
.manifest-text p {
    margin-bottom: 1.5rem;
}
.manifest-text strong {
    color: var(--text-main);
    font-style: italic;
}

/* ---------------------------------
   STORIES SECTION
----------------------------------- */
.stories {
    background-color: var(--surface-dark);
}
.stories-header {
    margin-bottom: 4rem;
}
.stories-header .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffffff !important;
}
/* 3D CAROUSEL */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    perspective: 1500px;
}
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}
.story-card.slide {
    position: absolute;
    width: 450px;
    max-width: 90vw;
    background: var(--surface-light);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
/* Center slide */
.story-card.slide.active {
    transform: translateX(0) translateZ(80px) scale(1.1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
}
/* Right slide */
.story-card.slide.next {
    transform: translateX(65%) translateZ(-150px) scale(0.85);
    opacity: 0.5;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}
/* Left slide */
.story-card.slide.prev {
    transform: translateX(-65%) translateZ(-150px) scale(0.85);
    opacity: 0.5;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}
/* Hidden slides */
.story-card.slide.slide-hidden {
    transform: translateX(0) translateZ(-300px) scale(0.7);
    opacity: 0;
    z-index: 1;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}
.carousel-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--trans-fast);
}
.carousel-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}
.story-img-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}
.story-img, .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}
.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--surface-light) 0%, transparent 50%);
    opacity: 0.8;
}
.story-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.story-card:hover .story-img {
    transform: scale(1.05);
}
.story-card:hover {
    transform: translateY(-10px);
}
.story-content {
    padding: 2.5rem 2rem;
}
.story-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
}
.story-excerpt {
    color: #a0a09e;
    font-size: 1rem;
    margin-bottom: 2rem;
}
.read-more {
    font-family: var(--font-heading);
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.read-more::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform var(--trans-fast);
}
.read-more:hover::after {
    transform: translateX(5px);
}

/* ---------------------------------
   CTA SECTION
----------------------------------- */
.cta-section {
    padding: 6rem 0;
    background: url('hero_bg.png') center/cover fixed;
    position: relative;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,12,10,0.85);
}
.glass-card {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 3rem;
    z-index: 1;
}
.cta-title {
    font-size: 2.5rem;
}
.cta-desc {
    color: #a0a09e;
    margin-bottom: 2rem;
}
.cta-form {
    display: flex;
    gap: 1rem;
}
.cta-form input {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 1.5rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--trans-fast);
}
.cta-form input:focus {
    border-color: var(--accent);
}
.cta-form button {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 0 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    transition: background-color var(--trans-fast);
}
.cta-form button:hover {
    background: var(--accent-hover);
}

@media (max-width: 768px) {
    .cta-form {
        flex-direction: column;
    }
    .cta-form button {
        padding: 1rem;
    }
}

/* ---------------------------------
   FOOTER
----------------------------------- */
.footer {
    background: var(--bg-dark);
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.footer-logo .accent { color: var(--accent); }
.footer-copy {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ---------------------------------
   ANIMATIONS & EFFECTS
----------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-text {
    opacity: 0;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(20px);
    transition: opacity 1.2s ease, clip-path 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-text.visible {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
}

/* ---------------------------------
   GEAR SECTION
----------------------------------- */
.gear-section {
    background-color: var(--surface-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.gear-item {
    background: var(--surface-light);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 2rem;
    text-align: center;
    transition: transform var(--trans-fast), border-color var(--trans-fast);
}
.gear-item:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 92, 50, 0.3);
}
.gear-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.gear-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.gear-rating {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}
.gear-desc {
    font-size: 1rem;
    color: #a0a09e;
    line-height: 1.5;
}

/* --- ACCESSIBILITY & VISUAL CLARITY ENHANCEMENTS --- */
/* Ensure card images are bright and clearly visible by default */
.story-card img {
    opacity: 0.95 !important;
    filter: grayscale(15%) brightness(1.15) !important;
}

/* Active and hovered cards display the image at full brightness and color */
.story-card:hover img, 
.story-card.active img {
    opacity: 1 !important;
    filter: grayscale(0%) brightness(1.25) !important;
}

/* Reduce the opacity of the black gradient overlay to prevent blacking out details */
.story-card .absolute.bg-gradient-to-t {
    opacity: 0.35 !important;
}

/* Lightbox/Modal Image Brightness Boost */
#modal-image {
    filter: brightness(1.25) contrast(1.05) !important;
}

/* Softer modal background to reduce contrast strain and make image details visible */
#image-modal {
    background-color: rgba(0, 0, 0, 0.88) !important;
}
