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

:root {
    --primary: #2d3748;
    --primary-dark: #1a202c;
    --secondary: #4a5568;
    --accent: #718096;
    --accent-light: #a0aec0;
    --success: #48bb78;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --grey-50: #f7fafc;
    --grey-100: #edf2f7;
    --grey-200: #e2e8f0;
    --grey-300: #cbd5e0;
    --grey-400: #a0aec0;
    --grey-500: #718096;
    --grey-600: #4a5568;
    --grey-700: #2d3748;
    --grey-800: #1a202c;
    --grey-900: #171923;
    --gradient-1: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    --gradient-2: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    --gradient-3: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--grey-300);
    background: var(--grey-900);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 800;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--white);
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--grey-400);
    margin: 1rem auto 0;
    border-radius: 2px;
}

#competencies h2::after,
#education h2::after {
    background: var(--grey-600);
}

h3 {
    font-size: 1.75rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Clean grey theme - no animated backgrounds */

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(26, 32, 44, 0.95);
}

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

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

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

nav a {
    text-decoration: none;
    color: var(--grey-300);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, var(--grey-900) 0%, var(--grey-800) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-image {
    flex-shrink: 0;
}

.headshot {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.headshot:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-text {
    flex: 1;
    text-align: left;
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero .hero-text h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

#hero .hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--grey-300);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

#hero .hero-text .tagline {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--grey-400);
    margin-bottom: 1.5rem;
}

.hero-cta-section {
    text-align: center;
    margin-top: 2rem;
}

.hero-cta-section .cta-button {
    margin: 0 auto;
    display: inline-block;
}

.hero-cta-section .contact-info {
    display: flex;
    gap: 1rem;
    margin: 0 0 2rem;
    flex-wrap: nowrap;
    justify-content: center;
}

#hero .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--grey-300);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

#hero .contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

#hero .contact-item .contact-label {
    font-weight: 600;
    color: var(--grey-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

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

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--white);
    color: var(--grey-900);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    text-align: center;
}

.cta-button:hover {
    background: var(--grey-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Stats Section */
#summary {
    background: var(--grey-100);
    position: relative;
}

#summary h2 {
    color: var(--grey-900);
    text-align: center;
    margin-bottom: 3rem;
}

.summary-content {
    max-width: 950px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--grey-700);
}

.summary-content p {
    margin-bottom: 1.5rem;
}

.highlight-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.highlight-stats .stat-card:nth-child(4):last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--grey-300);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--grey-400);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--grey-900);
    display: block;
    margin-bottom: 0.75rem;
}

.stat-label {
    color: var(--grey-600);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Competencies Section */
#competencies {
    background: var(--grey-900);
    position: relative;
}

#competencies h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 4rem;
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.competency-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.competency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--white);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.competency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.competency-card:hover::before {
    transform: scaleX(1);
}

.competency-card h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.competency-list {
    list-style: none;
}

.competency-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.competency-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--grey-400);
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.competency-list li:hover {
    padding-left: 2.5rem;
    color: var(--white);
}

.competency-list li:hover::before {
    transform: translateX(5px);
}

/* Experience */
#experience {
    background: var(--grey-100);
    position: relative;
}

#experience h2 {
    color: var(--grey-900);
    text-align: center;
    margin-bottom: 4rem;
}

.experience-header {
    background: var(--white);
    border: 2px solid var(--grey-300);
    border-left: 6px solid var(--grey-900);
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.experience-header:hover {
    border-left-color: var(--grey-700);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.experience-header h3 {
    color: var(--grey-900);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.experience-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
    color: var(--grey-600);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.experience-meta .role {
    color: var(--grey-900);
    font-weight: 700;
}

.experience-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--grey-700);
    margin-top: 1.5rem;
}

.projects-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.projects-section h3 {
    color: var(--grey-900);
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.projects-grid .project-card:nth-child(4):last-child {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}

.project-card {
    background: var(--white);
    border: 2px solid var(--grey-300);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--grey-900);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    border-color: var(--grey-400);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.project-card:hover::before {
    transform: scaleY(1);
}

.project-client {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--grey-900);
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.15rem;
    color: var(--grey-600);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-description {
    color: var(--grey-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-impact {
    background: var(--grey-50);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--grey-700);
}

.project-impact strong {
    color: var(--grey-900);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.project-impact p {
    margin: 0;
    font-size: 1rem;
    color: var(--grey-700);
    line-height: 1.6;
}

/* Hidden project cards */
.project-card.project-hidden {
    display: none;
}

/* Toggle Experience Button */
.toggle-experience {
    text-align: center;
    margin: 4rem 0;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: var(--grey-900);
    color: var(--white);
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toggle-btn:hover {
    background: var(--grey-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.toggle-btn .arrow {
    transition: transform 0.4s ease;
    font-size: 1.2rem;
}

.toggle-btn.active .arrow {
    transform: rotate(180deg);
}

.previous-experience {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.previous-experience.expanded {
    max-height: 5000px;
}

.experience-item {
    background: var(--white);
    border: 2px solid var(--grey-300);
    border-left: 6px solid var(--grey-700);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-left-color: var(--grey-900);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.experience-item h4 {
    color: var(--grey-900);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.experience-period {
    color: var(--grey-600);
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: block;
    font-size: 1.05rem;
}

.experience-highlights {
    list-style: none;
    margin-top: 1.5rem;
}

.experience-highlights li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--grey-700);
    line-height: 1.7;
    transition: all 0.3s ease;
}

.experience-highlights li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--grey-500);
    font-weight: 700;
    font-size: 1.1rem;
}

.experience-highlights li:hover {
    padding-left: 2.5rem;
    color: var(--grey-900);
}

/* Education Section */
#education {
    background: var(--grey-900);
    padding: 5rem 0;
}

#education h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 4rem;
}

.education-content {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-left: 6px solid var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.education-content h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.education-meta {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.achievements-section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.achievements-section h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.achievements-list {
    list-style: none;
}

.achievements-list li {
    padding: 1rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.achievements-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--grey-400);
    font-weight: 700;
    font-size: 1.5rem;
}

.achievements-list li:hover {
    padding-left: 3rem;
    color: var(--white);
}

/* Contact Section */
#contact {
    background: var(--grey-100);
    color: var(--grey-900);
    position: relative;
    overflow: hidden;
}

#contact h2 {
    color: var(--grey-900);
    text-align: center;
    margin-bottom: 2.5rem;
}

#contact h2::after {
    background: var(--grey-400);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-content p {
    color: var(--grey-700);
    font-size: 1.3rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

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

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    background: var(--grey-900);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--grey-900);
    letter-spacing: 0.5px;
}

.contact-button:hover {
    background: var(--grey-800);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--grey-900);
    color: var(--grey-400);
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    #hero .hero-text h1 {
        text-align: center;
    }

    #hero .hero-text .tagline {
        text-align: center;
    }

    .hero-cta-section {
        text-align: center;
    }

    .hero-cta-section .contact-info {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .headshot {
        width: 200px;
        height: 200px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid .project-card:nth-child(4):last-child {
        grid-column: 1;
        max-width: 100%;
    }

    .competencies-grid {
        grid-template-columns: 1fr;
    }

    .highlight-stats {
        grid-template-columns: 1fr;
    }

    .highlight-stats .stat-card:nth-child(4):last-child {
        grid-column: 1;
        max-width: 100%;
    }

    #hero .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-methods {
        flex-direction: column;
    }

    section {
        padding: 4rem 0;
    }
}
