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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #161616;
    --bg-card: #1a1a1a;
    --border: #2a2a2a;
    --text-primary: #e5e5e5;
    --text-secondary: #888;
    --text-muted: #666;
    --accent: #00d4ff;
    --accent-secondary: #0077b5;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #0077b5 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 60px 20px;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 64px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 16px auto 28px;
    max-width: 420px;
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.linkedin-btn {
    background: var(--accent-secondary);
}

.linkedin-btn:hover {
    background: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 119, 181, 0.4);
}

.email-btn {
    background: var(--bg-card);
    border-color: var(--border);
}

.email-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

/* Sections */
.section {
    margin-bottom: 48px;
}

h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.summary-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.1);
}

.summary-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.summary-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.skill-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.skill-group:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.skill-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

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

.skill {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.skill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

/* Experience Items */
.experience-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.experience-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
}

.experience-item:hover::before {
    opacity: 1;
}

.experience-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.years {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--accent);
}

.experience-item .company {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.experience-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .experience-item h3 {
        flex-direction: column;
        align-items: flex-start;
    }

    .years {
        order: -1;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 48px 0 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Print styles */
@media print {
    body {
        background: #fff;
        color: #000;
        padding: 20px;
        font-size: 11pt;
    }

    body::before {
        display: none;
    }

    .container {
        max-width: 100%;
        animation: none;
    }

    h1 {
        font-size: 20pt;
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
    }

    h2 {
        color: #333;
        font-size: 11pt;
    }

    h2::after {
        background: #ccc;
    }

    .tagline, .bio {
        color: #444;
    }

    .summary-card,
    .skill-group,
    .experience-item {
        background: #fff;
        border-color: #ddd;
        break-inside: avoid;
        transform: none !important;
        box-shadow: none !important;
    }

    .experience-item::before {
        display: none;
    }

    .skill {
        background: #f5f5f5;
        border-color: #ddd;
        color: #333;
    }

    .btn {
        background: #333 !important;
        color: #fff;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .years {
        color: #666;
    }

    .experience-item .company,
    .experience-item p,
    .summary-card p {
        color: #444;
    }

    footer {
        display: none;
    }
}
