/* --- Variables & Reset --- */
:root {
    --primary: #4f46e5; /* Indigo */
    --primary-dark: #4338ca;
    --accent: #8b5cf6;  /* Violet */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
}

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

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Hero Section (The "Catchy" Part) --- */
.hero {
    /* Gradient Background */
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}

.bio {
    max-width: 600px;
    margin: 0 auto 40px auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* --- Projects Section --- */
.section-light {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.project-card:hover {
    transform: translateY(-5px); /* Moves up slightly */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.status-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-desc {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Tech Stack Tags (Pills) */
.tech-stack-group {
    margin-bottom: 20px;
}

.tech-stack-group h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 9999px; /* Pill shape */
    font-weight: 600;
}

/* Tag Colors */
.tag-blue   { background: #e0e7ff; color: #3730a3; }
.tag-teal   { background: #ccfbf1; color: #115e59; }
.tag-purple { background: #f3e8ff; color: #6b21a8; }
.tag-orange { background: #ffedd5; color: #9a3412; }
.tag-red    { background: #fee2e2; color: #991b1b; }
.tag-green  { background: #dcfce7; color: #166534; }
.tag-gray   { background: #f3f4f6; color: #374151; }

/* Buttons */
.card-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    border: 2px solid #e5e7eb;
    color: var(--text-dark);
}
.btn-outline:hover { border-color: var(--text-dark); }

.btn-white {
    background: white;
    color: var(--primary);
}
.btn-white:hover { background: #f9fafb; transform: scale(1.05); }

/* --- Contact Section --- */
.section-dark {
    background: var(--text-dark);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.text-white { color: white; }

.contact-links {
    list-style: none;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-links a {
    color: #a5b4fc;
    text-decoration: none;
    font-size: 1.1rem;
}
.contact-links a:hover { color: white; text-decoration: underline; }

/* Footer */
footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .hero h2 { font-size: 2rem; }
    .nav-links { display: none; } /* Simplified mobile view */
    .card-actions { flex-direction: column; }
    .contact-links { flex-direction: column; gap: 10px; }
}