/* ============================================
   AUTOPLAN Story - Green Theme Stylesheet
   Based on workation-story patterns
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2D5A27;
    --primary-dark: #1a3a18;
    --secondary: #4A7C43;
    --accent: #E8F5E9;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-muted: #666666;
    --bg-light: #FAFAFA;
    --bg-dark: #1a2e17;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(45, 90, 39, 0.1);
    --shadow-hover: 0 8px 30px rgba(45, 90, 39, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* --- Progress Bar --- */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
    background: transparent;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: width 0.1s ease;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(45, 90, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 32px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
}

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

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

/* --- Sections --- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 48px;
    color: var(--text-light);
}

.section-title.dark {
    color: var(--text-dark);
}

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

.section-light .section-label {
    color: var(--primary);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
}

.section-gradient-reverse {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2d5a27 0%, #1a3a18 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(74, 124, 67, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 245, 233, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #a8e6a3, #e8f5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-cta {
    margin-bottom: 60px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.1rem;
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-indicator p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Highlights --- */
.highlight {
    color: #a8e6a3;
}

.highlight-alt {
    color: var(--accent);
}

.highlight-dark {
    color: var(--primary);
}

/* --- Story Cards --- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.story-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(45, 90, 39, 0.08);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.story-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.story-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.story-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Quote Block --- */
.quote-block {
    text-align: center;
    padding: 40px;
    background: var(--accent);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.quote-block blockquote {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.8;
    font-style: italic;
}

.quote-block strong {
    color: var(--primary);
}

/* --- Discovery Timeline --- */
.discovery-timeline {
    position: relative;
    padding-left: 40px;
}

.discovery-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 3px solid var(--accent);
    z-index: 1;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 28px;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

.timeline-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* --- Community Section --- */
.community-intro {
    text-align: center;
    margin-bottom: 48px;
}

.intro-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
}

.intro-text strong {
    color: var(--accent);
}

.community-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}

.community-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.community-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.6;
    min-width: 50px;
}

.community-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
}

.community-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.community-quote {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.community-quote p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-light);
}

.community-quote strong {
    color: var(--accent);
}

/* --- Value Cards --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(45, 90, 39, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery-section {
    background: var(--bg-dark);
    color: var(--text-light);
}

.gallery-category {
    margin-bottom: 48px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-icon {
    font-size: 1.5rem;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.category-badge {
    background: rgba(74, 124, 67, 0.3);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(74, 124, 67, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-grid-small {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-note {
    text-align: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- Insight Table --- */
.insight-table {
    max-width: 700px;
    margin: 0 auto 48px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.insight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.insight-row.header {
    background: rgba(255, 255, 255, 0.1);
}

.insight-cell {
    padding: 18px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-row.header .insight-cell {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--accent);
}

.insight-cell.old {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.insight-cell.new {
    color: var(--accent);
    font-weight: 600;
}

/* --- Final Message --- */
.final-message {
    text-align: center;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.final-message p {
    font-size: 1.3rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
}

.final-message strong {
    color: var(--accent);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    padding: 100px 0;
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 36px;
}

.cta-buttons {
    margin-bottom: 24px;
}

.cta-contact {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.cta-contact a {
    color: var(--accent);
    text-decoration: underline;
}

.cta-contact a:hover {
    color: var(--text-light);
}

/* --- Footer --- */
.footer {
    background: var(--primary-dark);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

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

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in,
.slide-in-left,
.slide-in-right,
.slide-in-up,
.scale-in {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
    transform: translateY(20px);
}

.slide-in-left {
    transform: translateX(-40px);
}

.slide-in-right {
    transform: translateX(40px);
}

.slide-in-up {
    transform: translateY(40px);
}

.scale-in {
    transform: scale(0.95);
}

/* Visible state */
.fade-in.visible,
.slide-in-left.visible,
.slide-in-right.visible,
.slide-in-up.visible,
.scale-in.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

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

/* Tablet */
@media (max-width: 968px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .gallery-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(45, 90, 39, 0.98);
        flex-direction: column;
        padding: 20px 32px;
        gap: 16px;
        backdrop-filter: blur(10px);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 32px;
    }

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

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

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

    .gallery-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-wide {
        grid-column: span 1;
    }

    .insight-cell {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .quote-block {
        padding: 28px 20px;
    }

    .quote-block blockquote {
        font-size: 1.1rem;
    }

    .community-card {
        flex-direction: column;
        gap: 12px;
    }

    .community-number {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .final-message p {
        font-size: 1.1rem;
    }

    .discovery-timeline {
        padding-left: 32px;
    }

    .timeline-marker {
        left: -32px;
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .timeline-content {
        padding: 20px;
    }
}

/* Small Mobile */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .gallery-grid-small {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nav {
        padding: 12px 16px;
    }

    .nav.scrolled {
        padding: 10px 16px;
    }

    .container {
        padding: 0 16px;
    }
}
