/* 
   Resume Website Styles for Daniel Simon Jr.
   
   Design Philosophy:
   - Clean, professional aesthetic appropriate for defense/engineering industry
   - Responsive design that works on all screen sizes
   - Accessible color contrast ratios (WCAG AA compliant)
   - Smooth animations for modern feel without being distracting
   - Typography hierarchy that guides the eye through content
*/

/* CSS Variables for easy theming and consistency */
:root {
    /* Color Palette - Professional blues and greens suggest reliability and growth */
    --primary-color: #2C5F2D;      /* Deep forest green - stability, growth */
    --primary-dark: #1a3a1b;        /* Darker shade for hover states */
    --secondary-color: #2563eb;     /* Professional blue - trust, technology */
    --accent-color: #0ea5e9;        /* Bright blue for highlights */
    --text-primary: #1f2937;        /* Nearly black for main text */
    --text-secondary: #6b7280;      /* Gray for secondary text */
    --background: #ffffff;          /* Clean white background */
    --background-alt: #f9fafb;      /* Very light gray for sections */
    --border-color: #e5e7eb;        /* Light gray for borders */
    
    /* Typography - Inter is a modern, highly readable sans-serif font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing - Consistent rhythm throughout the design */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Container width - Optimal reading line length (~75 characters) */
    --container-width: 1200px;
    
    /* Transitions - Smooth interactions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Makes width/height calculations include padding and border */
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased; /* Better font rendering on Mac */
    -moz-osx-font-smoothing: grayscale;
}

/* Container - Centers content and sets max width */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation Bar */
.nav-bar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    z-index: 1000; /* Stays above all other content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

/* Underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section - First impression is critical */
.hero {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    padding: var(--spacing-2xl) 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
    font-size: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(44, 95, 45, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(44, 95, 45, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Section Styles */
.section {
    padding: var(--spacing-2xl) 0;
}

.section:nth-child(even) {
    background-color: var(--background-alt);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
    position: relative;
}

/* Decorative underline for section titles */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

/* Competencies Grid */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.competency-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.competency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.competency-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.competency-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.competency-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline for Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: var(--spacing-xl);
}

.timeline-marker {
    position: absolute;
    left: -8px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.job-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary-color);
}

.job-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.company-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.job-subtitle {
    font-size: 0.938rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.job-highlights {
    list-style-position: outside;
    padding-left: var(--spacing-md);
}

.job-highlights li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.skill-category {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill-tag {
    background-color: var(--background-alt);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Projects Section */
.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: -1rem auto var(--spacing-xl);
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.project-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.project-badges {
    display: flex;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-npm {
    background-color: #CB3837;
    color: white;
}

.badge-wasm {
    background-color: #654FF0;
    color: white;
}

.badge-typescript {
    background-color: #3178C6;
    color: white;
}

.badge-physics {
    background-color: #0ea5e9;
    color: white;
}

.badge-tensor {
    background-color: #2563eb;
    color: white;
}

.badge-open-source {
    background-color: var(--primary-color);
    color: white;
}

.badge-ai {
    background-color: #10B981;
    color: white;
}

.badge-control {
    background-color: #F59E0B;
    color: white;
}

.badge-research {
    background-color: #8B5CF6;
    color: white;
}

.badge-open {
    background-color: var(--primary-color);
    color: white;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.stat {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tech-tag {
    background-color: var(--background-alt);
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.813rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.project-link {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.project-link.github {
    background-color: var(--text-primary);
    color: white;
}

.project-link.github:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.project-link.npm {
    background-color: #CB3837;
    color: white;
}

.project-link.npm:hover {
    background-color: #a02d2d;
    transform: translateY(-2px);
}

.project-link.substack {
    background-color: #FF6719;
    color: white;
}

.project-link.substack:hover {
    background-color: #e55a15;
    transform: translateY(-2px);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.education-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    text-align: center;
}

.education-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.education-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.institution {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.year {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Certifications */
.certifications {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.certifications-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    text-align: center;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.cert-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Philosophy Section */
.philosophy-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.philosophy-section .section-title {
    color: white;
}

.philosophy-section .section-title::after {
    background-color: white;
}

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

.philosophy-quote {
    text-align: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.philosophy-quote p {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.philosophy-quote cite {
    font-size: 1rem;
    font-style: normal;
    opacity: 0.9;
}

.philosophy-text {
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    min-width: 120px;
}

.contact-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2rem;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.footer p {
    opacity: 0.9;
}

/* Responsive Design - Mobile optimization */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .nav-links a {
        font-size: 0.875rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: var(--spacing-lg);
    }
    
    .timeline-header {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

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

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-badges {
        margin-top: var(--spacing-xs);
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        width: 100%;
    }
}

/* Print Styles - For when someone wants to print the page */
@media print {
    .nav-bar,
    .hero-buttons,
    .contact-section {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
    }
}
