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

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

:root {
    /* Dark theme colors */
    --primary-bg: #0A0A0B;
    --secondary-bg: #111114;
    --card-bg: #1A1A1F;
    --accent-primary: #00D084;
    --accent-secondary: #7C3AED;
    --accent-tertiary: #F59E0B;
    --accent-success: #10B981;
    --accent-danger: #EF4444;
    --accent-warning: #F59E0B;
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-muted: #71717A;
    --border-color: #27272A;
    --hover-bg: #18181B;
    --glass-bg: rgba(10, 10, 11, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.3);
    
    /* Font sizes and spacing */
    --subtext-font-size: 18px;
    --subtitle-font-size: 18px;
    --section-spacing: 60px;
}

[data-theme="light"] {
    --primary-bg: #FAFAFA;
    --secondary-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --accent-primary: #059669;
    --accent-secondary: #7C3AED;
    --accent-tertiary: #D97706;
    --accent-success: #10B981;
    --accent-danger: #EF4444;
    --accent-warning: #F59E0B;
    --text-primary: #1A1A1A;
    --text-secondary: #000000;
    --text-muted: #999999;
    --border-color: #E5E5E5;
    --hover-bg: #F5F5F5;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

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

/* Header Navigation - Same as other pages */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    opacity: 0.98;
}
/* 
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
} */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    position: relative;
}

/* .logo {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
} */

.logo {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* .nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
} */


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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: -0.2px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(0, 208, 132, 0.1);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--text-primary);
    background: rgba(0, 208, 132, 0.15);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
} */
/* 
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
} */

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    margin-top: 5px;
    margin-bottom: 5px;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

[data-theme="light"] .theme-toggle::before {
    transform: translateX(30px);
}

.theme-toggle:hover {
    background: var(--accent-primary);
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn:hover span {
    background: var(--text-primary);
}

/* Page Content */
.page-content {
    padding-top: 80px;
}

/* Hero Section */
.hero-alt {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 208, 132, 0.08) 0%, transparent 70%);
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        linear-gradient(var(--accent-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-primary) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Sections */
.section {
    padding: var(--section-spacing) 0;
}

.section-alt {
    background: var(--secondary-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.about-glow {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-secondary);
    border-color: rgba(124, 58, 237, 0.2);
}

.mission-glow {
    background: rgba(0, 208, 132, 0.1);
    color: var(--accent-primary);
    border-color: rgba(0, 208, 132, 0.2);
}


.vision-glow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-tertiary);
    border-color: rgba(245, 158, 11, 0.2);
}

.values-glow {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border-color: rgba(16, 185, 129, 0.2);
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Interactive Text Elements */
.highlight-text {
    color: var(--accent-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

/* .highlight-text:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 15px rgba(0, 208, 132, 0.4);
} */

.accent-hover {
    color: var(--accent-primary);
    transition: all 0.3s ease;
    cursor: default;
    font-weight: 500;
}

.accent-hover:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

.hover-highlight {
    transition: all 0.3s ease;
    cursor: default;
}

.hover-highlight:hover {
    background: linear-gradient(90deg, transparent, rgba(0, 208, 132, 0.1), transparent);
    border-radius: 4px;
    padding: 2px 4px;
    /* margin: -2px -4px; */
}

.hover-lift {
    transition: all 0.3s ease;
    cursor: default;
}

.hover-lift:hover {
    transform: translateY(-2px);
    color: var(--text-primary);
}

.interactive-heading {
    transition: all 0.3s ease;
    cursor: default;
}

.interactive-heading:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.warning-text {
    color: var(--accent-warning);
    font-weight: 600;
    transition: all 0.3s ease;
}

.warning-text:hover {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* About Content */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Mission Section */
.mission-section {
    text-align: center;
}

.mission-text p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.warning-text {
    color: var(--accent-warning);
    font-weight: 600;
    transition: all 0.3s ease;
}

.warning-text:hover {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Goshen Story Section */
.goshen-story {
    max-width: 900px;
    margin: 0 auto;
}

.story-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.story-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.goshen-story:hover .story-icon {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 208, 132, 0.3);
}

.story-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.story-subtitle {
    font-size: 16px;
    color: var(--accent-primary);
    font-weight: 600;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.biblical-reference,
.modern-application {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.biblical-reference:hover,
.modern-application:hover {
    border-color: rgba(0, 208, 132, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.biblical-reference p,
.modern-application p {
    font-size: var(--subtext-font-size);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.text-reference {
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

/* Vision Section */
.vision-section {
    text-align: center;
}

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

.vision-statement {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-card-hover:hover {
    border-color: rgba(0, 208, 132, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 25px 50px var(--shadow-color);
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.05), rgba(124, 58, 237, 0.05));
}

.enhanced-card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.enhanced-card-hover:hover::before {
    left: 100%;
}

.value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.enhanced-card-hover:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(0, 208, 132, 0.3);
}

.value-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

/* FOSS Philosophy Section */
.foss-section {
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.02), rgba(124, 58, 237, 0.02));
}

.philosophy-section {
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 48px;
    justify-content: center;
}

.philosophy-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-warning));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.philosophy-section:hover .philosophy-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.philosophy-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-align: center;
}

.philosophy-subtitle {
    font-size: 20px;
    color: var(--accent-tertiary);
    font-weight: 600;
    text-align: center;
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.foss-principle,
.privacy-principle {
    text-align: center;
}

.foss-principle p,
.privacy-principle p {
    font-size: var(--subtext-font-size);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.foss-benefits {
    margin-top: 48px;
}

.benefits-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.benefit-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-warning));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}

.enhanced-card-hover:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.benefit-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 208, 132, 0.3);
}

.pulse-button {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 208, 132, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 208, 132, 0.4); }
}

/* Contact Card */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    margin: 48px auto 0;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-card-enhanced:hover {
    border-color: rgba(0, 208, 132, 0.4);
    box-shadow: 0 20px 40px var(--shadow-color);
    transform: translateY(-4px);
}

.contact-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 16px;
}

.cta-main {
    font-size: 18px;
    padding: 16px 32px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    background: var(--secondary-bg);
    font-size: 14px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 8px;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .story-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .philosophy-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .story-content {
        gap: 20px;
    }

    .biblical-reference,
    .modern-application {
        padding: 24px;
    }
}