:root {
    /* Base Palette - Deep Navy */
    --bg-color: #131b26;
    --surface-color: #1e2a38;
    --surface-hover: #2a3848;

    /* Text Colors */
    --text-primary: #e6eef5;
    /* Slightly cooler white */
    --text-secondary: #aabdd1;
    /* Blue-tinted gray */
    --text-muted: #6b7a8f;

    /* Accent Colors - Richer Blues */
    --accent-base: #3b82f6;
    /* Brighter, true blue */
    --accent-light: #60a5fa;
    --accent-dark: #1e40af;
    --accent-hovers: #1d4ed8;
    /* Darker blue for hover states */
    --accent-glow: rgba(59, 130, 246, 0.25);

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --max-width: 900px;
    --border-radius: 12px;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-glow);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

/* Typography Utilities */
h1,
h2,
h3 {
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
}

h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-dark), transparent);
    margin-left: 1rem;
    opacity: 0.5;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.section {
    margin-bottom: 5rem;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Stagger Animations */
.hero {
    animation-delay: 0.1s;
}

.summary-section {
    animation-delay: 0.2s;
}

.competencies-section {
    animation-delay: 0.3s;
}

.experience-section {
    animation-delay: 0.4s;
}

.education-section {
    animation-delay: 0.5s;
}

.projects-section {
    animation-delay: 0.6s;
}

.tech-skills-section {
    animation-delay: 0.7s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeIn 0.8s ease-out forwards;
}

.profile-image-container {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    border: 4px solid var(--surface-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
    /* Double-layer neon glow */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: #60a5fa;
    /* Brighter blue */
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.4);
    /* Intensified glow */
}

.name {
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: var(--spacing-xs);
}

.separator {
    color: var(--accent-dark);
}

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

.skill-card {
    background: var(--surface-color);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.skill-card:before {
    content: '▹';
    color: var(--accent-light);
    margin-right: 0.75rem;
    font-size: 1.2em;
}

.skill-card:hover {
    background: var(--surface-hover);
    border-color: #60a5fa;
    /* Brighter blue (accent-light) */
    transform: translateY(-2px);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
    /* Double-layer neon glow */
}

/* Experience Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
    border-left: 2px solid var(--surface-hover);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 3px solid var(--accent-base);
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--accent-base);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--accent-base);
    /* Glow on timeline dots */
}

.timeline-header {
    margin-bottom: 1rem;
}

.role {
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}

.company {
    font-weight: 500;
    font-size: 1.1rem;
}

.date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-top: 0.25rem;
}

.job-details {
    list-style: none;
    color: var(--text-secondary);
}

.job-details li {
    margin-bottom: 0.5rem;
    position: relative;
}

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

.project-card {
    background: linear-gradient(180deg, var(--surface-color) 0%, rgba(28, 34, 41, 0.5) 100%);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #60a5fa;
    /* Brighter blue */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
    /* Stronger double-layer glow */
}

.project-title {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Education */
.education-grid {
    display: grid;
    gap: 1.5rem;
}

.education-item {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-dark);
}

.degree {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.school {
    color: var(--accent-light);
    font-weight: 500;
}

/* Tech Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: var(--surface-hover);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag:hover {
    background: rgba(76, 99, 129, 0.15);
    /* Accent with low opacity */
    color: var(--accent-light);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--surface-color);
    padding-top: 2rem;
    margin-top: 4rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        margin-bottom: 3rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
        margin-left: 0.5rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 2rem 1.5rem;
    }
}
