:root {
    --primary: #b91c1c;
    --secondary: #eab308;
    --tertiary: #d4a574;
    --bg1: #0a0a0a;
    --bg2: #171717;
    --bg3: #262626;
    --text1: #fafafa;
    --text2: #e4e4e7;
    --text3: #a1a1aa;
    --border: #3f3f46;
    --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg1);
    color: var(--text1);
    line-height: 1.6;
}

h1, h2, h3 { font-weight: 600; margin-bottom: 1rem; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; color: var(--primary); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text2); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section:nth-child(even):not(.welcome) { background: var(--bg2); }

.grid { display: grid; gap: 2rem; margin-top: 3rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); }

.education-card, .project-card, .experience-details, .activity-category {
    background: var(--bg3);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.education-card:hover, .project-card:hover, .activity-category:hover, .experience-details:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.view-project-btn, .view-resume-btn, .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--mono);
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-project-btn::before,
.view-resume-btn::before,
.download-btn::before,
.contact button::before,
.project-info button::before {
    content: '> ';
}

.view-project-btn:hover, .view-resume-btn:hover, .download-btn:hover { transform: translateY(-2px); }

.hero-buttons { display: flex; gap: 1rem; margin-top: 2rem; justify-content: center; flex-wrap: wrap; }

.view-project-btn, .view-resume-btn { background: var(--primary); color: white; }
.view-project-btn:hover, .view-resume-btn:hover { background: #dc2626; }
.download-btn { background: var(--tertiary); color: white; }
.download-btn:hover { background: #e4bb8c; }

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.header .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }

.logo {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo::before { content: 'const '; color: var(--text3); }
.logo::after { content: ' = "portfolio";'; color: var(--text3); }

.navbar ul { display: flex; list-style: none; gap: 1rem; flex-wrap: nowrap; }
.navbar a {
    color: var(--text2);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.8rem;
    transition: color 0.3s;
    white-space: nowrap;
}
.navbar a::before { content: './'; color: var(--secondary); }
.navbar a:hover { color: var(--primary); }

.welcome {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/nature.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
}

.profile-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin-bottom: 2rem;
    object-fit: cover;
}

.subtitle {
    font-family: var(--mono);
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.subtitle::before { content: 'const title = "'; color: var(--text3); }
.subtitle::after { content: '";'; color: var(--text3); }

.highlight { color: var(--primary); font-weight: 600; }
.institution { color: var(--tertiary); font-weight: 600; font-family: var(--mono); }
.dates { color: var(--text3); font-family: var(--mono); }
.company { color: var(--tertiary); font-weight: 600; font-family: var(--mono); }
.company::before { content: '@company: '; color: var(--text3); font-size: 0.9rem; }

.contact form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg3);
    padding: 2rem;
    border-radius: 8px;
}

.contact label {
    display: block;
    color: var(--text1);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--mono);
}

.contact input, .contact textarea {
    width: 100%;
    background: var(--bg1);
    border: 1px solid var(--border);
    color: var(--text1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: var(--mono);
    transition: border-color 0.3s;
}

.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--primary); }
.contact textarea { min-height: 120px; }

.contact button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-family: var(--mono);
}

.contact button:hover { background: #dc2626; transform: translateY(-2px); }

.required { color: var(--primary); }
.error-message {
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: var(--mono);
}

.footer {
    background: var(--bg1);
    text-align: center;
    padding: 2rem;
    color: var(--text3);
    border-top: 1px solid var(--border);
    font-family: var(--mono);
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 1rem; padding: 1rem 2rem; }
    .navbar ul { gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .navbar a { font-size: 0.8rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .container { padding: 0 1rem; }
    .section { padding: 3rem 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .profile-image { width: 150px; height: 150px; }
    .welcome { background-attachment: scroll; }
    .logo::before, .logo::after, .navbar a::before, .subtitle::before, .subtitle::after { display: none; }
}
