@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("share_buttons.css");

:root {
    /* People Power Party Colors */
    --primary-red: #E61E2B;
    --primary-dark: #C40E1A;
    --accent-blue: #004EA2;
    /* Keep for subtle accents if needed */

    /* Neutral Colors */
    --text-main: #111111;
    --text-sub: #444444;
    --text-muted: #888888;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #EEEEEE;

    /* Sizing & Spacing */
    --container-width: 1200px;
    --header-height: 70px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.text-red {
    color: var(--primary-red);
}

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

/* Container */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-slogan {
    font-size: 0.8rem;
    color: var(--text-sub);
    font-weight: 500;
}

.logo-name {
    color: var(--text-main);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background: url('../assets/hero_bg.png') center/cover no-repeat;
    overflow: hidden;
}

/* Gradient Overlay to make text readable */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.hero-party {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-slogan {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-sub);
}

.hero-name {
    display: block;
    font-weight: 900;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-sub);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

.hero-image {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.profile-img {
    max-height: 90vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.1));
}

/* Sections General */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-sub);
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-message {
    flex: 1;
}

.greeting-text {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.greeting-text strong {
    font-weight: 700;
}

.name-text {
    color: var(--text-main);
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-profile {
    flex: 1;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-title {
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(230, 30, 43, 0.1);
    padding-bottom: 0.5rem;
}

.profile-list {
    list-style: none;
}

.profile-list li {
    font-size: 1rem;
    color: var(--text-sub);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.profile-list li::before {
    content: "•";
    color: var(--primary-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Goals Grid */
.goals {
    background: var(--bg-light);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.goal-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.goal-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.goal-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 30, 43, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-red);
}

.goal-icon svg {
    width: 28px;
    height: 28px;
}

.goal-value {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.goal-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.goal-unit {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.goal-title {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    color: var(--text-main);
}

.goal-desc {
    color: var(--text-sub);
    font-size: 1rem;
}

/* Pledges */
.pledges {
    background: var(--bg-white);
}

.pledges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.pledge-card {
    position: relative;
    padding: 0;
    /* Clear padding for image */
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    background: white;
    /* Ensure bg is white */
}

.pledge-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.pledge-content {
    padding: 1.5rem;
}

/* Pledge Details Toggle */
.pledge-details {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #555;
    text-align: left;
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
}

.pledge-details.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.pledge-details h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.pledge-details ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.pledge-details li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.btn-toggle-details {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--primary-red);
    /* Fixed: primary-color -> primary-red */
    color: var(--primary-red);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-details:hover {
    background: var(--primary-red);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pledge-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.pledge-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    opacity: 0;
    /* Hide big number for image cards, or adjust */
    display: none;
}

.pledge-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pledge-icon {
    color: var(--primary-red);
}

.pledge-icon svg {
    width: 32px;
    height: 32px;
}

.pledge-title {
    font-size: 1.3rem;
    color: var(--text-main);
}

.pledge-desc {
    position: relative;
    z-index: 1;
    color: var(--text-sub);
    line-height: 1.6;
}

/* Vision Section Removed */

/* Activity Slider Section */
.activity-slider-section {
    background: var(--bg-light);
    padding: 60px 0 80px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.slider-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 좌우 페이드 효과 */
.slider-wrapper::before,
.slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, transparent 100%);
}

.slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 0%, transparent 100%);
}

.slider-track {
    display: flex;
    gap: 20px;
    animation: slideLoop 10s linear infinite;
    width: max-content;
}

.slide-item {
    flex: 0 0 auto;
    width: 350px;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 슬라이드 애니메이션 */
@keyframes slideLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 호버 시 애니메이션 일시정지 */
.slider-track:hover {
    animation-play-state: paused;
}

/* 슬라이드 반응형 */
@media (max-width: 768px) {
    .activity-slider-section {
        padding: 40px 0 60px;
    }

    .slider-header {
        margin-bottom: 30px;
    }

    .slide-item {
        width: 280px;
        height: 200px;
    }

    .slider-track {
        gap: 15px;
        animation-duration: 7s;
    }

    .slider-wrapper::before,
    .slider-wrapper::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .slide-item {
        width: 240px;
        height: 170px;
    }

    .slider-track {
        gap: 12px;
        animation-duration: 6s;
    }
}

/* Life-Touching Pledges Section */
.life-pledges-section {
    background: #fdfdfd;
    padding: 80px 0;
}

.life-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.life-tab {
    padding: 12px 24px;
    border: 2px solid #eee;
    background: white;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.life-tab:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.life-tab.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.life-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.life-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.voice-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.voice-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
}

.voice-text::before {
    content: '"';
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-right: 4px;
}

.voice-text::after {
    content: '"';
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-left: 4px;
}

.solution-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.solution-title {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

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

/* CTA & Footer */
.cta-section {
    background: var(--primary-red);
    color: white;
    text-align: center;
    padding: 5rem 0;
    background-image: url('../assets/hero_bg.png');
    /* Reuse pattern subtly */
    background-blend-mode: multiply;
    background-size: cover;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.footer {
    background: #000;
    color: #666;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer .logo-name {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid #eee;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 0 !important;
        /* Force remove bottom padding */
        height: auto;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }

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

    .hero-slogan {
        font-size: 1.8rem;
    }

    .hero-image {
        width: 100%;
        height: auto;
        margin-top: 2rem;
        display: flex;
        align-items: flex-end;
        /* Align bottom */
        justify-content: center;
    }

    .profile-img {
        max-width: 80%;
        /* Don't take full width if too tall */
        max-height: 500px;
        width: auto;
        display: block;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

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

    .vision-item.large {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

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