:root {
    --bg: #050505;
    --text: #ffffff;
    --gray: #888888;
    --p-purple: #c48dfc;
    --p-dark: #1a1b2e;
    --p-blue: #0084ff;
    --p-orange: #ffb648;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 30px 0;
    background: rgba(5, 5, 5, 0.7); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
}
header.scrolled { padding: 15px 0; border-bottom: 1px solid #222; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--p-blue); }
.nav-links a { margin-left: 25px; text-decoration: none; color: var(--gray); font-size: 14px; transition: 0.3s; }
.nav-links a:hover { color: #fff; }
.menu-toggle { display: none; cursor: pointer; color: white; }

/* Hero */
.hero { padding: 180px 0 80px; }
.hero h1 { font-size: clamp(3rem, 10vw, 7.5rem); line-height: 0.9; font-weight: 800; margin-bottom: 60px; }
.hero-footer { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 30px; }
.email-link { color: white; text-decoration: none; font-size: 1.2rem; border-bottom: 1px solid #444; }
.scroll-tag { border: 1px solid #333; padding: 12px 24px; border-radius: 40px; font-size: 11px; }
.intro-text { max-width: 320px; font-size: 14px; color: var(--gray); }

/* Projects Grid */
.projects { padding: 100px 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-top: 50px; }
.card { 
    height: 450px; border-radius: 30px; padding: 40px; text-decoration: none;
    display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.4s ease;
}
.card:hover { transform: translateY(-10px); }
.full-width { grid-column: span 2; } /* EL 서버는 아래쪽에 길게 배치 */

.purple-card { background: var(--p-purple); color: #000; }
.dark-card { background: var(--p-dark); color: #fff; }
.blue-card { background: var(--p-blue); color: #fff; }

.mockup-area { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 100px; position: relative; }
.community-tag { position: absolute; bottom: 0; font-size: 14px; background: rgba(0,0,0,0.2); padding: 5px 15px; border-radius: 20px; }
.text-mockup h4 { font-size: 24px; margin-bottom: 10px; }

/* Expertise */
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 50px; }
.exp-item h3 { margin-bottom: 15px; }
.exp-item p { color: var(--gray); font-size: 14px; }

/* CTA & Footer */
.cta { padding: 100px 0; text-align: center; }
.cta h2 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 40px; }
.cta-button { background: #fff; color: #000; padding: 20px 40px; border-radius: 50px; text-decoration: none; font-weight: bold; }
.footer-flex { padding: 40px 0; border-top: 1px solid #222; display: flex; justify-content: space-between; color: #555; font-size: 12px; }

/* Responsive */
@media (max-width: 900px) {
    .project-grid, .exp-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .hero h1 { font-size: 4rem; }
}
@media (max-width: 600px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

/* 로고 이미지 공통 스타일 */
.project-logo {
    max-width: 150px; /* 로고의 최대 너비 (원하는 크기로 조절 가능) */
    max-height: 150px; /* 로고의 최대 높이 */
    border-radius: 20%;
    object-fit: contain; /* 이미지 비율 유지 */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); /* 살짝 그림자 효과 */
    transition: transform 0.3s ease;
}

/* EL 서버 같은 커뮤니티 로고를 둥글게 만들고 싶을 때 */
.project-logo.circle {
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.1);
}

/* 마우스 올렸을 때 로고 애니메이션 */
.card:hover .project-logo {
    transform: scale(1.1);
}

/* 모바일 환경에서 로고 크기 조정 */
@media (max-width: 600px) {
    .project-logo {
        max-width: 100px;
        max-height: 100px;
    }
}