/* ========================================
   CampFlow - Campfront-inspired Design
   Clean, Modern, Minimal
   ======================================== */

:root {
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    --accent: #10B981;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-subtle: #F3F4F6;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

/* ========================================
   Header / Hero
   ======================================== */

.header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease-out;
}

.hero p {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeUp 0.8s ease-out 0.1s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg), 0 0 0 0 rgba(79, 70, 229, 0.4);
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    animation: bounce 2s infinite;
}

.scroll-indicator div:last-child {
    font-size: 20px !important;
    opacity: 0.6;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ========================================
   Features Section - Alternating Blocks
   ======================================== */

.features {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-block:first-child {
    padding-top: 40px;
}

.feature-block:last-child {
    padding-bottom: 40px;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-content {
    max-width: 520px;
}

.feature-content h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.feature-content p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
}

.feature-image {
    position: relative;
}

.feature-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover .feature-image img {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.2);
}

/* ========================================
   About Section
   ======================================== */

.about-section {
    padding: 120px 24px;
    background: var(--bg-light);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.about-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-text h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-image {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease 0.2s;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stat {
    text-align: left;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.contact-section > p {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 60px;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 48px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.success-message {
    display: none;
    background: var(--accent);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 48px 24px;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 968px) {
    .nav {
        padding: 16px 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .features {
        padding: 40px 20px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0;
    }

    .feature-block.reverse {
        direction: ltr;
    }

    .feature-block:first-child {
        padding-top: 24px;
    }

    .feature-image {
        order: -1;
    }

    .feature-content {
        max-width: 100%;
    }

    .about-section {
        padding: 80px 20px;
    }

    .contact-section {
        padding: 80px 20px;
    }

    .contact-form {
        padding: 32px 24px;
    }
}

/* ========================================
   Animations
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
