/* Reset and Base Styles */
:root {
    --primary-color: #26A69A;
    --primary-hover: #2BBBAD;
    --dark: #1A2E35;
    --darker: #0F1C20;
    --text: #FFF;
    --text-light: #B0BEC5;
    --white: #FFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --radius-sm: 3px;
    --radius-md: 8px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: var(--darker);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: 'Cabin', 'Helvetica', 'Arial', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.logo a {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-outdoor {
    color: var(--text);
}

.logo-sync {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.login-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.login-link:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.login-link:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    background: url('/images/pnw-hero.png') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(26, 46, 53, 0.85) 0%,
        rgba(26, 46, 53, 0.75) 50%,
        rgba(26, 46, 53, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--text);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    min-height: 44px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

.hero-teaser {
    font-size: 1.25rem;
    color: var(--text);
    margin-top: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2P8//8/A7UwNDMwMjAwMLDAwMDIyMjAwMDAwMDIzMzAAMjAwMDM7OzgAZmZmYGBgYGZmZmbm5uYAAPz8/MDAwMDExMTAwMDExMTMwMDExMTMAAAAAElFTkSuQmCC');
    background-repeat: repeat;
    opacity: 0.1;
}

.features h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(15, 28, 32, 0.6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(38, 166, 154, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--darker);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 1s ease-out forwards;
}

.feature-item {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }
.feature-item:nth-child(4) { animation-delay: 0.8s; }
.feature-item:nth-child(5) { animation-delay: 1s; }

/* Tablet and larger */
@media (min-width: 768px) {
    .container {
        width: 85%;
        padding: 0 2rem;
    }

    .logo {
        font-size: 2rem;
    }

    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .feature-item {
        padding: 2.5rem;
    }
}

/* Desktop and larger */
@media (min-width: 1024px) {
    .container {
        width: 80%;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
    }

    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .login-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-teaser {
        font-size: 1rem;
    }

    .features {
        padding: 3rem 0;
    }

    .features h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-item h3 {
        font-size: 1.25rem;
    }

    footer {
        padding: 1.5rem 0;
    }
}