/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5B87FF;
    --secondary-color: #7B68EE;
    --accent-color: #FF6B6B;
    --bg-dark: #0d0d0d;
    --bg-card: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --border-color: rgba(255, 255, 255, 0.08);
    --success-color: #4CAF50;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo {
    display: inline-block;
    vertical-align: middle;
}

.site-name:hover {
    color: var(--primary-color);
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-nav a,
.header-nav button {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav button:hover {
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 1.5rem;
}

/* Statement */
.statement {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.6;
}

.statement .highlight {
    color: var(--text-primary);
    font-weight: 400;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    grid-column: span 4;
}

.project-card:hover {
    background: #1a1a1a;
    border-color: #333;
}

.project-card.featured {
    grid-column: span 6;
}

.project-card.featured:hover {
    background: #181818;
}

.project-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.project-badge.live {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
}

.project-badge.development {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.project-icon {
    margin-bottom: 0.75rem;
    margin-left: -0.5rem;
}

.project-icon img {
    border-radius: 10px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* Footer */
.site-footer {
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-primary);
}

.footer-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--text-primary);
}

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

/* Tablet (601px - 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    .statement {
        font-size: 1.35rem;
        margin-bottom: 2.5rem;
    }

    .header-nav {
        gap: 1.25rem;
    }

    .header-nav a,
    .header-nav button {
        font-size: 0.85rem;
    }

    .main-content {
        padding-top: 5.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.125rem;
    }

    .project-card,
    .project-card.featured {
        grid-column: span 1;
        padding: 1.5rem;
    }

    .container {
        padding: 0 32px;
    }
}

/* Mobile (max 600px) */
@media (max-width: 600px) {
    .statement {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .header-nav {
        gap: 1rem;
    }

    .header-nav a,
    .header-nav button {
        font-size: 0.8rem;
    }

    .main-content {
        padding-top: 5rem;
    }

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

    .project-card,
    .project-card.featured {
        grid-column: span 1;
    }
}

/* Touch devices — disable hover transforms */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover {
        transform: none;
        border-color: var(--border-color);
    }

    .footer-link:hover {
        color: var(--text-secondary);
    }
}
