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

:root {
    --bg-primary: #0a0c0f;
    --bg-section: #0e1014;
    --bg-card: rgba(124, 198, 232, 0.04);
    --bg-card-hover: rgba(124, 198, 232, 0.08);
    --text-primary: #e3e6e8;
    --text-muted: #8a94a0;
    --accent: #7cc6e8;
    --accent-light: #a0daf0;
    --accent-glow: rgba(124, 198, 232, 0.3);
    --font-body: 'Quicksand', sans-serif;
    --font-accent: 'Pacifico', cursive;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

/* ===== NAV ===== */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(10, 12, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: var(--accent);
}

.mascot-icon { font-size: 1.4rem; }

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a {
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.nav-home { color: var(--accent); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    gap: 2rem;
}

.hero-mascot { animation: float 3s ease-in-out infinite; }

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.accent {
    font-family: var(--font-accent);
    color: var(--accent);
}

.hero-tagline {
    color: var(--text-muted);
    font-size: 1.15rem;
    letter-spacing: 1px;
}

/* ===== DUDU (LARGE) ===== */
.panda-face.large {
    position: relative;
    width: 140px;
    height: 140px;
}

.panda-face.large .panda-head {
    position: absolute;
    width: 126px;
    height: 115px;
    background: #f0f0f0;
    border-radius: 50% 50% 48% 48%;
    top: 25px;
    left: 7px;
}

.panda-face.large .panda-ear {
    position: absolute;
    width: 42px;
    height: 42px;
    background: #1a1a2e;
    border-radius: 50%;
    top: 6px;
    z-index: -1;
}

.panda-face.large .panda-ear-l { left: 4px; }
.panda-face.large .panda-ear-r { right: 4px; }

.panda-face.large .panda-eye-patch {
    position: absolute;
    width: 36px;
    height: 30px;
    background: #1a1a2e;
    border-radius: 50%;
    top: 30px;
}

.panda-face.large .panda-eye-patch-l { left: 16px; transform: rotate(5deg); }
.panda-face.large .panda-eye-patch-r { right: 16px; transform: rotate(-5deg); }

.panda-face.large .panda-eye {
    position: absolute;
    width: 16px;
    height: 18px;
    background: #f0f0f0;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.panda-face.large .panda-pupil {
    width: 8px;
    height: 9px;
    background: #1a1a2e;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.panda-face.large .panda-nose {
    position: absolute;
    width: 16px;
    height: 12px;
    background: #1a1a2e;
    border-radius: 50%;
    top: 62px;
    left: 50%;
    transform: translateX(-50%);
}

.panda-face.large .panda-mouth {
    position: absolute;
    width: 24px;
    height: 10px;
    border-bottom: 3px solid #1a1a2e;
    border-radius: 0 0 50% 50%;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-section);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section-alt > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ===== ABOUT GRID ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
}

.about-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.about-icon { font-size: 2rem; margin-bottom: 1rem; }

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--accent-light);
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.project-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.project-card.featured {
    border-color: rgba(124, 198, 232, 0.2);
}

.project-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent);
    color: var(--bg-primary);
    margin-bottom: 1rem;
}

.project-badge.soon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--accent-light);
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(124, 198, 232, 0.1);
    color: var(--accent);
}

/* ===== CONNECT ===== */
.connect-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.connect-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.connect-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
    color: var(--accent-light);
}

.connect-icon { font-size: 1.3rem; }

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-footer a { color: var(--accent); }

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .about-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 { font-size: 2.2rem; }
    .topnav { padding: 0.8rem 1.2rem; }
    .nav-links { gap: 1rem; font-size: 0.8rem; }

    .panda-face.large { transform: scale(0.8); }
}
