/* index.css */
:root {
    /* Colors */
    --primary: #d31421;
    /* 국민의힘 레드 */
    --primary-dark: #b00d18;
    --primary-light: #e63946;
    --secondary: #f9d5d2;
    /* 소프트 핑크 */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f2f5;

    /* Variables */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Shadows - Glassmorphism & Soft */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(211, 20, 33, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
}

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

html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 130px;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography Mixins */
h1,
h2,
h3,
h4,
.outfit {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    padding: 0 24px;
    margin: 0 auto;
}

/* Desktop sizing constraints applied on container */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
}

.section {
    padding: 80px 0;
    position: relative;
}

.bg-soft-pink {
    background-color: var(--secondary);
}

.bg-white {
    background-color: var(--bg-white);
}

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

.bg-primary {
    background-color: var(--primary);
}

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

.text-white {
    color: var(--bg-white);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    font-weight: 700;
    font-size: 0.945rem;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 8px 16px rgba(211, 20, 33, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(211, 20, 33, 0.35);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(211, 20, 33, 0.1);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--primary);
}

/* Header/Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 12px;
}

.logo-container {
    margin-bottom: 0;
}

.party-logo {
    height: 40px;
    object-fit: contain;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 20, 33, 0.25);
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn.share-copied {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.nav {
    display: flex;
    gap: 20px;
    background: var(--glass-bg);
    padding: 8px 24px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

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

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

/* Glassmorphism Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
}

/* Animations */
.opacity-0 {
    opacity: 0;
    transform: translateY(30px);
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* Section specific margins */
.mr-2 {
    margin-right: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 24px;
}

.mt-5 {
    margin-top: 40px;
}

.mb-3 {
    margin-bottom: 16px;
}

/* -------------------------------------
   Component: HERO SECTION
------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(306deg, #d1d1d1 0%, var(--bg-white) 100%);
    z-index: -2;
}

.hero-image-wrap {
    position: absolute;
    top: 0;
    right: -19%;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); */
    -webkit-mask-image: linear-gradient(to left, black 54%, transparent 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 48%;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.badges {
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.red-badge {
    background-color: var(--primary);
    color: white;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.main-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.main-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--secondary);
    z-index: -1;
    border-radius: 4px;
}

.slogan {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.sub-text {
    font-size: 0.945rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 480px) {
    .cta-group {
        flex-direction: row;
    }

    .cta-group .btn {
        flex: 1;
    }
}

/* -------------------------------------
   Component: SECTION HEADERS
------------------------------------- */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.98rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--primary);
    border-radius: 2px;
}

.underline.center {
    margin: 0 auto;
}

.underline.white {
    background: white;
}

/* -------------------------------------
   Component: IDENTITY (Features)
------------------------------------- */
.grid-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

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

.icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background-color: rgba(211, 20, 33, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.26rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.feature-card p {
    font-size: 0.855rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* -------------------------------------
   Component: PROMISES
------------------------------------- */
.promise-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.promise-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.promise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.promise-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.promise-card:hover .promise-img-wrap img {
    transform: scale(1.05);
}

.promise-num {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.08rem;
    padding: 4px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.promise-content {
    padding: 24px;
}

.promise-content h3 {
    font-size: 1.215rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.promise-content p {
    font-size: 0.855rem;
    color: var(--text-muted);
}

/* -------------------------------------
   Component: TIMELINE
------------------------------------- */
.timeline {
    position: relative;
    padding: 20px 0;
    margin-left: 16px;
    /* Offset for mobile */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: rgba(211, 20, 33, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 32px;
}

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

.timeline-dot {
    position: absolute;
    top: 8px;
    left: -6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(211, 20, 33, 0.2);
}

.timeline-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.99rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content {
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: none;
}

.border-red {
    border-top: 4px solid var(--primary);
}

.timeline-content h4 {
    font-size: 1.08rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.timeline-content p {
    font-size: 0.81rem;
    color: var(--text-muted);
}

.timeline-content ul {
    margin-top: 8px;
}

.timeline-content li {
    font-size: 0.81rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.book-promo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, white, var(--secondary));
    border: 1px solid rgba(255, 255, 255, 1);
}

.book-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.book-text h4 {
    font-weight: 800;
    margin-bottom: 4px;
}

.book-text p {
    font-size: 0.765rem;
    color: var(--text-muted);
    font-style: italic;
}

/* -------------------------------------
   Component: COMMUNITY (Slider placeholder)
------------------------------------- */
.slider-section {
    position: relative;
    overflow: hidden;
}

.slider-slogan {
    font-size: 1.08rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 16px;
}

.gallery-slider {
    margin: 32px 0;
    /* width: 100vw; */
    /* margin-left: -24px;  */
    padding-left: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.gallery-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

.gallery-track {
    display: inline-flex;
    gap: 16px;
}

.gallery-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    scroll-snap-align: start;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* -------------------------------------
   Component: FOOTER
------------------------------------- */
.footer {
    background-color: var(--bg-white);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-title {
    font-size: 0.99rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.footer-address,
.footer-phone {
    font-size: 0.81rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-main);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.72rem;
    color: #999;
}