/* ============================================================
   305 Studio Homepage — Dark Minimal Theme
   ============================================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #10101a;
    --bg-card: #161620;
    --bg-card-hover: #1c1c2a;
    --accent: #e94560;
    --accent-dim: rgba(233, 69, 96, 0.15);
    --text-primary: #e8e8ec;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    --border: #222233;
    --radius: 12px;
    --font-sans: 'Pretendard Variable', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 80%, #141420 0%, var(--bg-primary) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
}

.hero-logo {
    width: 280px;
    max-width: 60vw;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    position: relative;
    z-index: 1;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    animation: pulse-down 2s ease-in-out infinite;
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    margin: 8px auto 0;
}

@keyframes pulse-down {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ───────────────────────────────────────────── */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ── Service Cards ──────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-card .subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Project Cards ──────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-secondary);
}

.project-info {
    padding: 20px;
}

.project-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Tech Stack ─────────────────────────────────────────── */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ── Team / About ───────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.team-photo-wrap {
    margin-bottom: 20px;
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 2px solid var(--border);
}

.team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 700;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 12px;
    transition: all 0.2s ease;
}

.team-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ── About Banner (homepage) ─────────────────────────────── */
.about-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 48px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.about-banner:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.about-banner-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-banner-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.about-banner-arrow {
    font-size: 2rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.about-banner:hover .about-banner-arrow {
    transform: translateX(6px);
}

/* ── About Page ─────────────────────────────────────────── */
.about-page {
    min-height: 100vh;
    padding: 48px 0 80px;
    background: var(--bg-primary);
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

.profile-header {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 64px;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.profile-links {
    display: flex;
    gap: 12px;
}

.profile-link-btn {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.profile-link-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.studio-section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.studio-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.studio-section > p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-services {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-service-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-service-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    flex-shrink: 0;
}

.about-service-icon svg {
    width: 100%;
    height: 100%;
}

.about-service-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-service-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-banner { padding: 28px 24px; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
    .profile-links { justify-content: center; }
    .profile-photo { width: 120px; height: 120px; }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    text-align: center;
}

.footer-email {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-email a {
    color: var(--accent);
    transition: opacity 0.2s;
}

.footer-email a:hover {
    opacity: 0.8;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Fade-in Animation ──────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-title { font-size: 1.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .hero-logo { width: 200px; }
    .hero-tagline { font-size: 1rem; }
    .service-card { padding: 24px 20px; }
}
