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

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00a8e8;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00a8e8 100%);
    --gradient-hero: linear-gradient(135deg, #0066cc 0%, #004d99 50%, #00a8e8 100%);
    --hero-bg-dark: #0a1a2e;
    --hero-bg-blue: #1a3a5c;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* Logos Bar */
.logos-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.logos-bar.top-logos {
    position: relative;
    border-bottom: 1px solid var(--border-color);
    margin-top: 80px;
}

.logos-bar.bottom-logos {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    margin-bottom: 24px;
}

.footer .logo-img {
    opacity: 1;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 1;
}

.logo-img-choe {
    height: 72px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-spacer {
    height: 80px;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a1a2e;
    z-index: -1;
}

.wafer-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.225;
    mix-blend-mode: screen;
    filter: brightness(1.5) contrast(1.3);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 168, 232, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.3) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.hero-details-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 500;
}

.detail-item .icon {
    width: 24px;
    height: 24px;
    opacity: 0.9;
    flex-shrink: 0;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-light);
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
}

.cta-button.large {
    padding: 20px 48px;
    font-size: 1.2rem;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Value Proposition Section */
.value-proposition {
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.feature-icon.icon-1 {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
}

.feature-icon.icon-2 {
    background: linear-gradient(135deg, #00a8e8 0%, #0088c7 100%);
}

.feature-icon.icon-3 {
    background: linear-gradient(135deg, #7b68ee 0%, #5a4fcf 100%);
}

.feature-icon.icon-4 {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

.feature-icon.icon-5 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

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

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

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Format Section */
.format {
    background: white;
}

.format-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.format-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

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

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Who Should Apply Section */
.who-should-apply {
    background: white;
}

.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.eligibility-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.eligibility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: var(--transition);
}

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

.eligibility-card:hover::before {
    transform: scaleY(1);
}

.eligibility-card.highlight {
    background: var(--gradient-primary);
    color: white;
    border: none;
    display: flex;
    flex-direction: column;
}

.eligibility-card.highlight::before {
    display: none;
}

.eligibility-card.highlight h3,
.eligibility-card.highlight p {
    color: white;
}

.eligibility-icon {
    width: 152px;
    height: 152px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 0;
    color: white;
}

.eligibility-icon svg {
    width: 96px;
    height: 96px;
}

.eligibility-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1;
    opacity: 0.2;
}

.eligibility-card.highlight .eligibility-number {
    color: white;
    opacity: 0.3;
}

.eligibility-card.highlight .eligibility-icon {
    background: rgba(255, 255, 255, 0.25);
}

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

.eligibility-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Schedule Section */
.schedule {
    background: white;
}

.schedule-content {
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-phase {
    margin-bottom: 64px;
}

.schedule-phase:last-child {
    margin-bottom: 0;
}

.phase-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-dark);
    text-align: center;
}

.schedule-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    min-width: 600px;
}

.schedule-row.three-columns {
    grid-template-columns: 200px 1fr 1fr;
    min-width: 600px;
}

.schedule-row.four-columns {
    grid-template-columns: 180px 1fr 1fr 1fr;
    min-width: 800px;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row.header {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.schedule-row.header .schedule-day,
.schedule-row.header .schedule-time {
    color: white;
}

.schedule-day {
    padding: 20px;
    font-weight: 600;
    color: var(--text-dark);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    min-width: 0;
}

.schedule-time {
    padding: 20px;
    color: var(--text-light);
    line-height: 1.6;
    border-right: 1px solid var(--border-color);
    min-width: 0;
    word-wrap: break-word;
}

.schedule-row .schedule-time:last-child {
    border-right: none;
}

.schedule-row:not(.header):hover {
    background: var(--bg-light);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

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

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 48px;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-placeholder {
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-placeholder span {
    font-size: 0.875rem;
    font-weight: 600;
}

.qr-label {
    font-size: 0.95rem;
    font-weight: 500;
}

.deadline-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.deadline-notice .icon {
    width: 20px;
    height: 20px;
}

.deadline-notice strong {
    font-weight: 700;
}

/* Footer */
.footer {
    background: white;
    color: var(--text-dark);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

.footer-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links:not(.active) {
        display: none;
    }

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


    .logos-container {
        gap: 32px;
    }

    .logo-img {
        height: 50px;
    }


    .logos-bar.top-logos {
        margin-top: 70px;
    }

    .logo-img-choe {
        height: 60px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-details {
        flex-direction: column;
        gap: 24px;
    }

    .detail-item {
        justify-content: center;
    }

    section {
        padding: 60px 0;
    }

    .features-grid,
    .eligibility-grid {
        grid-template-columns: 1fr;
    }

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

    .timeline-marker {
        left: -24px;
    }

    .schedule-day {
        font-size: 0.95rem;
        padding: 16px;
    }

    .schedule-time {
        font-size: 0.9rem;
        padding: 16px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 32px;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .logos-container {
        gap: 24px;
    }

    .logo-img {
        height: 40px;
    }

    .logos-bar.top-logos {
        margin-top: 60px;
    }

    .logo-img-choe {
        height: 50px;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

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

    .feature-card,
    .eligibility-card {
        padding: 32px 24px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .cta-button.large {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .eligibility-card,
    .cta-button {
        animation: fadeInUp 0.6s ease-out;
    }

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