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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #020617; /* slate-950-like */
    color: #e5e7eb; /* text-slate-200 */
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.section p {
    color: #9ca3af;
}

/* Header / navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
    color: #f9fafb;
}

.brand-title {
    font-size: 0.875rem;
    color: #9ca3af;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 0.95rem;
    color: #cbd5f5;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
    color: #38bdf8;
    border-color: #38bdf8;
}

/* Hero */
.hero {
    padding: 5rem 0 3rem;
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: 40vh;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    color: #f9fafb;
}

.hero p {
    font-size: 1rem;
    max-width: 640px;
    color: #9ca3af;
}

.hero-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.primary-btn {
    background: linear-gradient(to right, #0ea5e9, #22c55e);
    color: #0b1120;
}

.primary-btn:hover {
    background: linear-gradient(to right, #0284c7, #16a34a);
}

.secondary-btn {
    background-color: transparent;
    color: #e5e7eb;
    border-color: #475569;
}

.secondary-btn:hover {
    background-color: #020617;
    border-color: #e5e7eb;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-group {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.skill-group h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

.skill-group ul {
    list-style: none;
}

.skill-group li {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.skill-group:hover {
    border-color: #38bdf8;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent);
}

.skill-group.is-active {
    border-color: #22c55e;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.95);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.2), transparent);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.project-card {
    background-color: #020617;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
    border-color: #38bdf8;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #f9fafb;
}

.project-card p {
    font-size: 0.95rem;
    color: #9ca3af;
}

.project-meta {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.project-link {
    display: inline-flex;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #38bdf8;
}

.project-link:hover {
    color: #0ea5e9;
}

/* Contact */
.contact-section {
    text-align: center;
}

.contact-section p {
    margin-bottom: 1rem;
}

.contact-email {
    display: inline-block;
    font-weight: 500;
    color: #38bdf8;
}

.contact-email:hover {
    color: #0ea5e9;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.site-footer p {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-content {
        min-height: auto;
    }
}
