@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #1a1a1a;
    --accent-color: #9d4edd;
    --background-light: #fafafa;
    --text-color: #2d2d2d;
    --text-light: #666666;
    
    /* Spacing System */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-xxl: 4rem;     /* 64px */
    --spacing-unit: clamp(var(--spacing-lg), 5vw, var(--spacing-xxl));
    --container-width: min(1200px, 90vw);
    --section-spacing: clamp(var(--spacing-xl), 8vw, 6rem);
    --grid-gap: var(--spacing-lg);
    
    /* Typography Scale - Based on 1.25 ratio */
    --font-size-xs: 0.85rem;     /* 15.3px at 18px base */
    --font-size-sm: 0.95rem;     /* 17.1px at 18px base */
    --font-size-base: 1.05rem;   /* 18.9px */
    --font-size-md: 1.25rem;     /* 22.5px */
    --font-size-lg: 1.563rem;    /* 28.13px */
    --font-size-xl: 1.953rem;    /* 35.16px */
    --font-size-xxl: 2.441rem;   /* 43.94px */
    --font-size-xxxl: 3.052rem;  /* 54.94px */
    
    /* Line Heights */
    --line-height-tight: 1.3;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    
    /* Font Families */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.03em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.05em;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-tight);
    margin-top: 0;
    color: var(--primary-color);
}

h1 {
    font-size: clamp(var(--font-size-xxl), 8vw, var(--font-size-xxxl));
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-medium);
}

h2 {
    font-size: clamp(var(--font-size-xl), 5vw, var(--font-size-xxl));
    font-weight: var(--font-weight-regular);
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    padding-bottom: var(--spacing-md);
}

h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

h3 {
    font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-xl));
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
}

p {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
    max-width: 70ch;
    line-height: var(--line-height-relaxed);
}

.container {
    width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.main-nav {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-unit);
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Header Typography */
.logo {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3vw, 1.5rem);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color 0.3s ease;
    letter-spacing: var(--letter-spacing-tight);
}

.logo:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link, .nav-cta {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-cta:hover {
    color: var(--accent-color);
}

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

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

.hero {
    min-height: 90vh;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7)),
                url('heroImage.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
    will-change: background-position;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, var(--background-light));
}

.hero-content {
    padding: var(--spacing-unit);
    max-width: 800px;
    position: relative;
    z-index: 1;
    margin-top: -2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: white;
}

.hero .tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: var(--font-weight-light);
    opacity: 0.9;
    margin-top: 0;
    letter-spacing: var(--letter-spacing-normal);
    color: white;
}

.story-section {
    padding: var(--section-spacing) 0;
    background-color: var(--background-light);
}

.story-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    text-align: center;
    padding: 0 var(--spacing-md);
}

.story-content p {
    margin-bottom: var(--spacing-md);
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    font-size: var(--font-size-md);
    color: var(--text-color);
}

blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(var(--font-size-lg), 4vw, var(--font-size-xl));
    line-height: var(--line-height-tight);
    margin: var(--spacing-lg) auto;
    max-width: 800px;
    padding: var(--spacing-md) var(--spacing-lg);
    position: relative;
    text-align: center;
    color: var(--primary-color);
    font-weight: var(--font-weight-regular);
    width: 100%;
}

blockquote::before,
blockquote::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 1px;
    background: rgba(0,0,0,0.2);
}

blockquote::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

blockquote::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

blockquote p {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 0;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading-container {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-top: var(--spacing-sm);
}

.beliefs-section .section-heading-container {
    margin-bottom: var(--spacing-md);
}

.section-subheading {
    display: none;
}

.beliefs-section {
    padding: var(--section-spacing) 0;
    background: white;
}

.beliefs-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: var(--spacing-md);
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    width: 100%;
    max-width: 1000px;
}

.belief-card {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 8px;
    background: var(--background-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.belief-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.3s ease;
    opacity: 0.7;
}

.belief-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.belief-card:hover::before {
    height: 100%;
}

.belief-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    font-family: var(--font-serif);
    text-align: left;
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1.4;
}

.belief-card p {
    margin-bottom: 0;
    line-height: var(--line-height-normal);
    font-size: var(--font-size-base);
    text-align: left;
    font-weight: var(--font-weight-light);
    color: var(--text-color);
    max-width: 100%;
}

.belief-card:hover h3 {
    color: var(--accent-color);
}

.details-section {
    padding: var(--section-spacing) 0;
    background: white;
}

.details-content {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.details-text {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-xxl);
}

.details-text p {
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
}

.details-text p:last-child {
    border-bottom: none;
}

.details-text strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin-right: 1rem;
    min-width: 120px;
    display: inline-block;
}

.video-section h3 {
    font-family: var(--font-serif);
    font-size: var(--font-size-md);
    margin-bottom: 2rem;
    font-weight: var(--font-weight-regular);
}

.video-subtitle {
    font-family: var(--font-serif);
    color: var(--text-light);
    margin: 2rem 0;
    font-size: var(--font-size-base);
    font-style: italic;
}

.video-container {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 2;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.video-wrapper:hover::before {
    opacity: 1;
}

.join-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-serif);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
}

.join-content p {
    margin-bottom: var(--spacing-md);
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    font-size: var(--font-size-md);
}

.deadline, .note {
    color: var(--text-light);
    font-style: italic;
    margin: var(--spacing-xs) 0;
    font-size: var(--font-size-sm);
}

.note {
    margin-bottom: var(--spacing-lg);
}

.cta-button {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-serif);
    font-size: var(--font-size-md);
    text-decoration: none;
    padding: 0.9rem 2.25rem;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 2px;
    transition: all 0.3s ease;
    background: transparent;
    margin-top: var(--spacing-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: var(--letter-spacing-normal);
    max-width: 300px;
    width: 100%;
    text-align: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(157, 78, 221, 0.2);
}

.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(157, 78, 221, 0.4);
}

.cta-button.secondary {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.cta-button.secondary:hover {
    background-color: rgba(157, 78, 221, 0.1);
}

.join-section {
    position: relative;
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    color: var(--text-color);
}

.join-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.join-details {
    display: none;
}

.footer-content {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.footer-content p {
    font-family: var(--font-serif);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    margin: 0 auto;
    max-width: 600px;
}

.emoji {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-left: 0.25rem;
    letter-spacing: -0.05em;
}

footer {
    padding: var(--spacing-xxl) 0;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: var(--text-color);
}

footer p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    opacity: 0.9;
}

section {
    position: relative;
    z-index: 1;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
    z-index: -1;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-link, 
    .nav-cta {
        font-size: var(--font-size-md);
        margin: var(--spacing-xs) 0;
    }
    
    .nav-links.active {
        right: 0;
    }

    .beliefs-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .belief-card {
        padding: var(--spacing-md);
        max-width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .belief-card h3 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
        line-height: 1.5;
    }
    
    .belief-card p {
        font-size: var(--font-size-base);
        line-height: var(--line-height-normal);
    }
    
    .section-intro {
        font-size: var(--font-size-sm);
        padding: 0 var(--spacing-sm);
        max-width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .detail-item {
        padding: 1.5rem;
    }

    .section-heading-container {
        margin-bottom: var(--spacing-xl);
    }
    
    h2 {
        padding-bottom: 1rem;
    }
    
    h2::after {
        width: 40px;
    }
    
    blockquote {
        padding: var(--spacing-sm) var(--spacing-md);
        margin: var(--spacing-md) auto;
        font-size: var(--font-size-lg);
        max-width: 100%;
    }
    
    .details-text {
        font-size: var(--font-size-base);
    }
    
    .details-text p {
        display: flex;
        flex-direction: column;
    }
    
    .details-text strong {
        margin-bottom: var(--spacing-xs);
        display: block;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: var(--font-size-base);
        width: 100%;
        max-width: 300px;
    }
    
    .story-content {
        font-size: var(--font-size-base);
        padding: 0 var(--spacing-md);
        max-width: 100%;
    }
    
    .story-content p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-sm);
    }
    
    .join-content {
        font-size: var(--font-size-base);
        padding: 0 var(--spacing-sm);
    }
    
    .join-content p {
        font-size: var(--font-size-base);
    }
    
    .emoji {
        font-size: 1rem;
    }

    .footer-content p {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        margin-bottom: 0.75rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    .belief-card h3 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }
    
    .belief-card p {
        font-size: var(--font-size-base);
        line-height: var(--line-height-normal);
    }
    
    .section-intro {
        padding: 0;
        font-size: var(--font-size-base);
    }
    
    .cta-options {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-button {
        margin-bottom: var(--spacing-xs);
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .join-content p {
        text-align: center;
        font-size: var(--font-size-base);
        max-width: 100%;
    }
    
    .footer-content p {
        text-align: center;
    }

    .story-content {
        padding: 0;
    }
    
    .story-content p {
        font-size: var(--font-size-base);
        max-width: 100%;
    }
    
    .join-content {
        padding: 0;
    }
}

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

.hero-content, .story-content, .belief-card, .detail-item {
    animation: fadeUp 0.6s ease forwards;
}

.belief-card:nth-child(2) { animation-delay: 0.2s; }
.belief-card:nth-child(3) { animation-delay: 0.4s; }
.belief-card:nth-child(4) { animation-delay: 0.6s; }
.belief-card:nth-child(5) { animation-delay: 0.8s; }

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Enhanced Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Prevent scrolling when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Lazy loading image styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: reduce) {
    .hero {
        background-attachment: scroll;
    }
    
    .belief-card:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .scroll-progress {
        display: none;
    }
    
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

/* Contact form styles */
.cta-options {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

/* Section Typography */
.section-intro {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    font-family: var(--font-serif);
    font-weight: var(--font-weight-light);
    color: var(--text-color);
    font-style: italic;
    letter-spacing: var(--letter-spacing-normal);
}
