/* ============================================
   2026 AI Summer Camp — Personal Website
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #FF6B35;
    --orange-light: #FF8F5E;
    --yellow: #FFD700;
    --teal: #00B4D8;
    --teal-dark: #0077B6;
    --cream: #FFF8F0;
    --dark: #1A1A2E;
    --gray: #6B7280;
    --white: #FFFFFF;

    --font-display: 'Baloo 2', cursive;
    --font-body: 'Noto Sans TC', sans-serif;

    --shadow-sm: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(255,107,53,0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------- SECTION COMMON ---------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(255,107,53,0.10);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--dark);
    letter-spacing: 1px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--yellow));
    border-radius: 4px;
    margin: 20px auto 0;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* Floating geometric shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatShape 20s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--orange), transparent);
    top: -10%; left: -5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape:nth-child(2) {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--yellow), transparent);
    bottom: -5%; right: -3%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.shape:nth-child(3) {
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--teal), transparent);
    top: 40%; left: 60%;
    animation-delay: -10s;
    animation-duration: 18s;
}

.shape:nth-child(4) {
    width: 150px; height: 150px;
    background: radial-gradient(circle, var(--orange-light), transparent);
    top: 20%; right: 15%;
    animation-delay: -3s;
    animation-duration: 22s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape:nth-child(5) {
    width: 180px; height: 180px;
    background: radial-gradient(circle, var(--teal-dark), transparent);
    bottom: 25%; left: 10%;
    animation-delay: -8s;
    animation-duration: 24s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -40px) rotate(5deg) scale(1.05); }
    50% { transform: translate(-20px, 30px) rotate(-3deg) scale(0.95); }
    75% { transform: translate(25px, 20px) rotate(4deg) scale(1.02); }
}

/* Sparkle particles */
.sparkle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 0.8; transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
}

.hero-suptitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 6px;
    opacity: 0.7;
    margin-bottom: 12px;
    animation: fadeUp 1s ease 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 12vw, 7rem);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--orange), var(--yellow), var(--orange-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    letter-spacing: 2px;
    animation: fadeUp 1s ease 0.4s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 8px;
    opacity: 0.8;
    margin-top: 20px;
    animation: fadeUp 1s ease 0.6s both;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--yellow);
    margin-top: 16px;
    letter-spacing: 4px;
    animation: fadeUp 1s ease 0.8s both;
}

.scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    animation: fadeUp 1s ease 1s both, bounceArrow 2s ease 2s infinite;
    cursor: pointer;
    transition: color 0.3s;
}

.scroll-hint:hover { color: var(--white); }

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

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--white);
}

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

.about-text {
    max-width: 750px;
    font-size: 1.1rem;
    color: #374151;
    text-align: center;
    line-height: 2;
}

.about-text p {
    margin-bottom: 18px;
}

.about-text strong {
    color: var(--orange);
    font-weight: 700;
}

.about-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-card {
    background: linear-gradient(135deg, var(--cream), #FFF);
    border: 2px solid rgba(255,107,53,0.15);
    border-radius: 20px;
    padding: 28px 40px;
    text-align: center;
    min-width: 140px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
    background: linear-gradient(180deg, var(--cream) 0%, #FFF 100%);
}

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

.project-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.05), rgba(0,180,216,0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

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

.project-card:hover::before {
    opacity: 1;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.project-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.project-link {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    padding: 10px 28px;
    border-radius: 30px;
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.project-card:hover .project-link {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255,107,53,0.4);
}

/* ============================================
   ACTIVITIES
   ============================================ */
.activities {
    background: var(--white);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.activity-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(255,107,53,0.08);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--cream), #FFF);
}

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

.activity-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.activity-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-title { font-size: 2rem; }
    .section-header { margin-bottom: 40px; }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .about-stats { gap: 16px; }
    .stat-card { padding: 20px 28px; min-width: 100px; }
    .stat-number { font-size: 2.2rem; }

    .hero-title { font-size: clamp(2.8rem, 15vw, 4.5rem); }
    .hero-subtitle { font-size: 0.95rem; letter-spacing: 4px; }
}

@media (max-width: 480px) {
    .activities-grid { grid-template-columns: 1fr; }
    .hero-suptitle { font-size: 0.9rem; }
    .hero-name { font-size: 1.1rem; }
    .about-text { font-size: 1rem; }
}
