/* CoHunt Landing Page Styles */

:root {
    /* Dark nature-inspired color palette */
    --primary-green: #2d5016;
    --accent-green: #4a7c2e;
    --dark-brown: #1a0f0a;
    --medium-brown: #2e1f1a;
    --light-brown: #4a3429;
    --warm-amber: #d4a574;
    --soft-beige: #e8dcc6;
    --text-light: #f5f0e8;
    --text-muted: #b8a898;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-darker: rgba(0, 0, 0, 0.85);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Bebas Neue', cursive;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 15, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.nav-brand h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--warm-amber);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--warm-amber);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--warm-amber);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Background Layers */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.5s ease;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Mobile fix for background images */
@media (max-width: 768px) {
    .bg-layer {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        /* Ensure images are visible on mobile */
        min-height: 100vh;
        position: fixed;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .bg-layer {
        background-attachment: scroll;
    }
}

#bg-forest {
    background-image: linear-gradient(var(--overlay-dark), var(--overlay-dark)), 
                      url('../img/photo-1511497584788-876760111969.jpeg');
}

#bg-mountain {
    background-image: linear-gradient(var(--overlay-darker), var(--overlay-dark)), 
                      url('../img/photo-1506905925346-21bda4d32df4.jpeg');
}

#bg-meadow {
    background-image: linear-gradient(var(--overlay-dark), var(--overlay-dark)), 
                      url('../img/photo-1519904981063-b0cf448d479e.jpeg');
}

#bg-sunset {
    background-image: linear-gradient(var(--overlay-dark), var(--overlay-darker)), 
                      url('../img/photo-1495616811223-4d98c6e9c869.jpeg');
}

#bg-night {
    background-image: linear-gradient(var(--overlay-darker), var(--overlay-darker)), 
                      url('../img/photo-1516339901601-2e1b62dc0c45.jpeg');
}

.bg-layer.active {
    opacity: 1;
}

/* Sections */
.section-transition {
    padding: var(--section-padding);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--warm-amber);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-green);
    color: white;
    border: 2px solid var(--accent-green);
}

.btn-primary:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 80, 22, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--warm-amber);
    border: 2px solid var(--warm-amber);
}

.btn-outline:hover {
    background-color: var(--warm-amber);
    color: var(--dark-brown);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--warm-amber);
    opacity: 0.7;
}

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--warm-amber);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Features Section */
.features {
    background-color: rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: rgba(46, 31, 26, 0.8);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(74, 52, 41, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: var(--warm-amber);
    margin-bottom: 1.5rem;
}

.feature-card.expandable .feature-icon i {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card.expandable.animating .feature-icon i {
    transform: rotate(360deg) scale(1.2);
}

.feature-card.expandable:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Expandable Feature Card */
.feature-card.expandable {
    cursor: pointer;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.expandable:hover {
    transform: translateY(-5px);
    background-color: rgba(74, 52, 41, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card.expandable.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 90%;
    max-width: 800px;
    z-index: 1000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    background-color: rgba(46, 31, 26, 0.98);
    margin: 0;
}

.expand-btn {
    display: none;
}

.expanded-features {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.feature-card.expanded .expanded-features {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.feature-card.expanded .feature-preview {
    display: none;
}

.feature-card.expanded h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--warm-amber);
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    background-color: rgba(26, 15, 10, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background-color: rgba(74, 52, 41, 0.6);
    transform: translateX(5px);
}

.feature-list i {
    color: var(--warm-amber);
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Overlay for expanded card */
.feature-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.feature-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Close button for expanded card */
.feature-card.expanded .feature-icon {
    position: relative;
}

.close-expanded {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    transition: all 0.3s ease;
    display: none;
    z-index: 1001;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.feature-card.expanded .close-expanded {
    display: flex;
}

.close-expanded:hover,
.close-expanded:active,
.close-expanded:focus {
    color: var(--warm-amber);
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--warm-amber);
    transform: scale(1.1);
    outline: none;
}

/* Mobile-specific styles for better touch targets */
@media (max-width: 768px) {
    .close-expanded {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.75rem;
        padding: 1rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Benefits Section */
.benefits {
    background-color: rgba(0, 0, 0, 0.4);
}

.benefits-container {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.benefit-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--warm-amber);
    opacity: 0.5;
    min-width: 80px;
}

.benefit-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.benefit-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* CTA Section */
.cta {
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--warm-amber);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    background-color: rgba(0, 0, 0, 0.6);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--warm-amber);
    font-size: 1.25rem;
}

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

.contact-item a:hover {
    color: var(--warm-amber);
}

/* Early Access Form */
.early-access-form {
    background-color: rgba(46, 31, 26, 0.8);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
}

.early-access-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--warm-amber);
}

.early-access-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.early-access-form input[type="email"] {
    padding: 14px 20px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    background-color: rgba(26, 15, 10, 0.8);
    color: var(--text-light);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.early-access-form input[type="email"]:focus {
    outline: none;
    border-color: var(--warm-amber);
    background-color: rgba(26, 15, 10, 1);
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: var(--dark-brown);
    padding: 3rem 0;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--warm-amber);
    letter-spacing: 2px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--warm-amber);
}

.footer-links .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 15, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-number {
        min-width: auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-card.expandable.expanded {
        width: 95%;
        max-height: 85vh;
        padding: 2rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}