:root {
    --bg: #0d0d0d;
    --code-bg: #000;
    --text: #e0e0e0;
    --accent: #00ff9d;
    --gray: #888;
    --card-bg: #111;
    --border: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('img/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 2.2rem;
    transition: color 0.3s, transform 0.2s;
}

.social-links svg {
    height: 60px;
    width: 60px;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

main {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

h2.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,255,157,0.12);
}

.project-image-container {
    height: 240px;
    overflow: hidden;
    background: #000;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-content {
    padding: 1.8rem 2rem 2.2rem;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: white;
}

.project-period {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: block;
}

.project-description {
    margin-bottom: 1.4rem;
    color: #ccc;
}

.project-tech {
    margin: 1.4rem 0;
    color: var(--accent);
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace;
}

.project-tech ul {
    list-style: none;
    margin-top: 0.6rem;
}

.project-tech li {
    margin-bottom: 0.4rem;
}

.project-tech li:before {
    content: "+ ";
    color: var(--accent);
}

.project-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.project-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.project-links a:hover {
    color: #00ffb3;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 3rem 1rem 2rem;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .hero h1 { font-size: 3.2rem; }
    .hero .subtitle { font-size: 1.3rem; }
    .projects-grid { grid-template-columns: 1fr; }
}