/* ===================================
   HOMEPAGE STYLES - index.html
   =================================== */

:root {
    --primary: #1A365D;
    --primary-light: #2C5282;
    --accent: #ED8936;
    --accent-light: #F6AD55;
    --success: #38A169;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #1A202C;
    --text-muted: #718096;
    --border: #E2E8F0;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Header */
.header {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(237,137,54,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.header-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
}

.header-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
    position: relative;
}

.header-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
}

.meta-item span {
    font-weight: 600;
    color: var(--primary);
}

/* Main Content Grid */
.content {
    display: grid;
    gap: 30px;
}

/* Section */
.section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent);
    flex-wrap: wrap;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 32px;
}

.section-title {
    font-size: 24px;
    color: var(--primary);
    font-weight: 600;
}

.section-count {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
    transition: width 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--accent-light);
}

.project-card:hover::before {
    width: 12px;
}

.project-card:active {
    transform: translateY(-2px);
}

.project-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(237,137,54,0.3);
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-subtitle::before {
    content: "📍";
    font-size: 12px;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.talent-kange {
    background: linear-gradient(135deg, #FED7AA 0%, #FBC78F 100%);
    color: #C05621;
    box-shadow: 0 2px 8px rgba(192,86,33,0.15);
}

.talent-yune {
    background: linear-gradient(135deg, #C6F6D5 0%, #9AE6B4 100%);
    color: #276749;
    box-shadow: 0 2px 8px rgba(39,103,73,0.15);
}

.duration-badge {
    background: linear-gradient(135deg, #E6FFFA 0%, #B2F5EA 100%);
    color: #234E52;
    box-shadow: 0 2px 8px rgba(35,78,82,0.15);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26,54,93,0.25);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "→";
    position: absolute;
    right: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,54,93,0.35);
}

.btn:hover::before {
    opacity: 1;
    right: 15px;
}

/* Schedule Card */
.schedule-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(26,54,93,0.3);
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: "📅";
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 150px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.schedule-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    position: relative;
    font-weight: 600;
}

.schedule-card p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
    position: relative;
}

.schedule-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 13px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-schedule {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(237,137,54,0.4);
    position: relative;
    overflow: hidden;
}

.btn-schedule::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-schedule:hover::before {
    width: 300px;
    height: 300px;
}

.btn-schedule:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(237,137,54,0.5);
}

.btn-schedule span {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 35px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 4px solid var(--accent);
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-icon {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer strong {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile First - Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px 10px;
    }

    .header {
        padding: 30px 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .header-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .header h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .header-subtitle {
        font-size: 15px;
    }

    .header-meta {
        gap: 15px;
    }

    .meta-item {
        font-size: 13px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 20px;
    }

    .project-title {
        font-size: 17px;
    }

    .project-subtitle {
        font-size: 13px;
    }

    .schedule-card {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .schedule-card h3 {
        font-size: 22px;
    }

    .schedule-card p {
        font-size: 14px;
    }

    .schedule-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .btn-schedule {
        padding: 14px 30px;
        font-size: 15px;
        width: 100%;
    }

    .section {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .section-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .section-icon {
        font-size: 28px;
    }

    .section-title {
        font-size: 20px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .footer {
        padding: 20px 15px;
        margin-top: 30px;
        border-radius: 12px;
    }

    .footer p {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Extra Small Devices */
@media (max-width: 380px) {
    .header h1 {
        font-size: 20px;
    }

    .header-icon {
        font-size: 40px;
    }

    .header-meta {
        flex-direction: column;
        gap: 10px;
    }

    .schedule-card h3 {
        font-size: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .project-title {
        font-size: 16px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn, .btn-schedule {
        min-height: 48px;
        font-size: 16px;
    }

    .project-card {
        padding: 25px 20px;
    }

    .meta-badge {
        padding: 8px 14px;
        font-size: 13px;
    }
}
