/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Headings and highlights use Fira Code */
h1, h2, h3, .tagline .nav-links {
    font-family: 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

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

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

nav a {
    text-decoration: none;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7c3aed;
    transition: color 0.3s ease;
}

nav a:hover h1 {
    color: #6d28d9;
}

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

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #7c3aed;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 50%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-image {
    flex: 0 0 300px;
}

.headshot {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6b7280;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tagline {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Skills Pills */
.skills-container {
    margin-bottom: 2.5rem;
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.skill-pill {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.skill-pill:nth-child(1) { animation-delay: 0.1s; }
.skill-pill:nth-child(2) { animation-delay: 0.2s; }
.skill-pill:nth-child(3) { animation-delay: 0.3s; }
.skill-pill:nth-child(4) { animation-delay: 0.4s; }
.skill-pill:nth-child(5) { animation-delay: 0.5s; }
.skill-pill:nth-child(6) { animation-delay: 0.6s; }
.skill-pill:nth-child(7) { animation-delay: 0.7s; }

.skill-pill:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

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

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: #7c3aed;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.cta-button.primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #7c3aed;
    border-color: #7c3aed;
}

.cta-button.secondary:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #ffffff;
}

.about h3 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.professional-statement {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: center;
    font-weight: 400;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background: #ffffff;
}

.experience h3 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #7c3aed, #a855f7, #c084fc);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: calc(50% + 30px);
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: calc(50% + 30px);
    text-align: right;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 16px;
    height: 16px;
    background: #7c3aed;
    border: 4px solid #ffffff;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.timeline-content {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-item:nth-child(even) .company-info {
    flex-direction: row-reverse;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.company-details h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.company-details .position {
    font-size: 1.1rem;
    font-weight: 500;
    color: #7c3aed;
    margin-bottom: 0.25rem;
}

.company-details .duration {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 400;
}

/* Experience Details Expansion */
.experience-details {
    width: 100%;
}

.experience-details summary {
    list-style: none;
    cursor: pointer;
    position: relative;
}

.experience-details summary::-webkit-details-marker {
    display: none;
}

.experience-details summary::marker {
    display: none;
}

.experience-details summary::-moz-list-bullet {
    list-style-type: none;
}

.experience-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.timeline-item:nth-child(even) .experience-summary {
    flex-direction: row-reverse;
}

.expand-icon {
    color: #7c3aed;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.timeline-item:nth-child(even) .expand-icon {
    margin-left: 0;
    margin-right: 1rem;
}

.experience-details[open] .expand-icon {
    transform: rotate(180deg);
}

.experience-expanded {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.achievements {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}

.achievements li::before {
    content: "•";
    color: #7c3aed;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact h3 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.social-link.linkedin:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.social-link.github:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Footer */
footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image {
        flex: none;
    }
    
    .headshot {
        width: 250px;
        height: 250px;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .about,
    .experience,
    .contact {
        padding: 60px 0;
    }
    
    .about h3,
    .experience h3,
    .contact h3 {
        font-size: 2rem;
    }
    
    /* Timeline mobile styles */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-item:nth-child(even) .company-info {
        flex-direction: row;
    }
    
    .timeline-item:nth-child(even) .experience-summary {
        flex-direction: row;
    }
    
    .timeline-item:nth-child(even) .expand-icon {
        margin-left: 1rem;
        margin-right: 0;
    }
    
    .company-logo {
        width: 50px;
        height: 50px;
    }
    
    .professional-statement {
        font-size: 1.1rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    /* Hero mobile responsive */
    .skills-pills {
        justify-content: center;
    }
    
    .skill-pill {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .headshot {
        width: 200px;
        height: 200px;
    }
    
    .about h3,
    .contact h3 {
        font-size: 1.8rem;
    }
    
    .professional-statement {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading state for headshot */
.headshot {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d1d5db'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-repeat: no-repeat;
    background-position: center;
}