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

:root {
    /* Updated color palette - warmer and brighter */
    --bg-primary: #101820;
    --bg-secondary: #181f2a;
    --bg-card: #1e2530;
    --text-primary: #f0f6fc;
    --text-secondary: #9ca3af;

    /* Primary accent (blue) */
    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --accent-glow: rgba(88, 166, 255, 0.3);

    /* Secondary accent (coral/orange) */
    --accent-warm: #f97316;
    --accent-warm-hover: #fb923c;
    --accent-warm-glow: rgba(249, 115, 22, 0.3);

    /* Tertiary accent (purple) */
    --accent-purple: #a78bfa;
    --accent-purple-hover: #c4b5fd;
    --accent-purple-glow: rgba(167, 139, 250, 0.3);

    --border: #30363d;
    --border-hover: #454d58;
    --status-current: #22c55e;
    --status-completed: #a78bfa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #141c26 50%, var(--bg-primary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Accent strip at top of page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple), var(--accent-warm));
    z-index: 1000;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Navigation */
body > header {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(24, 31, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.nav-links a.active {
    color: var(--accent);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Hero section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}

#hero h1 {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* About section */
#about p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
}

/* Projects section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(30, 37, 48, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
}

.project-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.project-status.current {
    background: linear-gradient(135deg, var(--status-current), #16a34a);
    color: white;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

.project-status.completed {
    background: linear-gradient(135deg, var(--status-completed), #8b5cf6);
    color: white;
    box-shadow: 0 2px 10px var(--accent-purple-glow);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    font-size: 0.8rem;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.project-tech span:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-links a:hover {
    text-shadow: 0 0 15px var(--accent-glow);
}

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

#contact h2 {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#contact p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-links a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, transparent, rgba(30, 37, 48, 0.5));
}

.contact-links a:hover {
    background: linear-gradient(145deg, var(--bg-card), rgba(30, 37, 48, 0.8));
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: linear-gradient(180deg, transparent, rgba(16, 24, 32, 0.5));
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    section {
        padding: 4rem 0;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}
