/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
    animation: fadeIn 1s ease-in;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: #000000;
}

.name {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 16px;
    animation: slideDown 0.8s ease-out;
}

.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.toggle-link {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.toggle-link:hover {
    color: #000000;
}

.toggle-link.active {
    color: #000000;
    font-weight: 500;
}

.toggle-separator {
    color: #cccccc;
}

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

.tagline {
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.contact {
    font-size: 14px;
    color: #666666;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-link {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

.contact-link:hover {
    color: #000000;
}

.separator {
    color: #cccccc;
    margin: 0 4px;
}

.location {
    color: #666666;
}

/* Sections */
.section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }

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

.section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: #000000;
}

/* About Section */
.about {
    margin-bottom: 80px;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    max-width: 800px;
    font-weight: 300;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.expertise-item {
    padding: 24px;
    background-color: #fafafa;
    border-left: 2px solid #000000;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background-color: #f5f5f5;
    transform: translateX(4px);
}

/* Experience Section */
.experience-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.job-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.company {
    font-size: 16px;
    color: #666666;
    font-weight: 400;
    margin-bottom: 16px;
}

.company-link {
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.company-link:hover {
    color: #000000;
}

.company-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.company-link:hover::after {
    width: 100%;
}

.date-inline {
    color: #999999;
    font-size: 14px;
    font-weight: 400;
}

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

.achievements li {
    padding-left: 16px;
    margin-bottom: 12px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    border-left: 2px solid #e0e0e0;
    padding-top: 4px;
    padding-bottom: 4px;
}

.achievements li::before {
    display: none;
}

/* Case Study Triggers */
.case-study-trigger {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.05) 100%);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
}

.case-study-trigger:hover {
    border-bottom-color: #000000;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%);
    opacity: 0.8;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.education-item {
    padding: 24px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.education-item:hover {
    background-color: #f5f5f5;
    transform: translateY(-4px);
}

.degree {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 4px;
}

.field {
    font-size: 15px;
    color: #666666;
    margin-bottom: 6px;
}

.school {
    font-size: 14px;
    color: #999999;
}

/* Skills Section */
.skills-section {
    background-color: #fafafa;
    padding: 40px;
    margin-bottom: 80px;
}

.skills-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
}

/* Epic Certifications Section */
.epic-section {
    background-color: #fafafa;
    padding: 40px;
    margin-bottom: 80px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 60px 50px;
    border-radius: 0;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #000000;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 1;
}

/* Case Study Modal Content */
#modal-body h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

#modal-body .case-meta {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 32px;
    font-weight: 400;
}

#modal-body .case-section {
    margin-bottom: 28px;
}

#modal-body .case-section h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    opacity: 0.8;
}

#modal-body .case-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #333333;
}

#modal-body .case-section p:last-child {
    margin-bottom: 0;
}

#modal-body .case-impact {
    list-style: none;
    font-size: 14px;
    line-height: 1.8;
    color: #333333;
}

#modal-body .case-impact li {
    margin-bottom: 10px;
    padding-left: 16px;
    position: relative;
}

#modal-body .case-impact li:before {
    content: "•";
    position: absolute;
    left: 0;
    opacity: 0.4;
}

#modal-body .case-feedback {
    font-style: italic;
    opacity: 0.75;
    padding: 20px;
    background-color: #fafafa;
    border-left: 2px solid #e0e0e0;
    margin: 24px 0;
    color: #333333;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    margin-top: 80px;
}

.footer p {
    font-size: 13px;
    color: #999999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 60px 24px;
    }
    
    .name {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .contact {
        flex-direction: column;
        gap: 12px;
    }
    
    .separator {
        display: none;
    }
    
    .section {
        margin-bottom: 60px;
    }
    
    .expertise-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-section {
        padding: 24px;
    }
    
    .modal-content {
        padding: 40px 24px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 20px;
    }
    
    .name {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 12px;
    }
    
    .job-title {
        font-size: 18px;
    }
    
    .modal-content {
        padding: 30px 16px;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        max-width: 100%;
        padding: 20px;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .contact-link::after {
        display: none;
    }
    
    .expertise-item:hover,
    .education-item:hover {
        transform: none;
    }
    
    .modal,
    .modal-content {
        display: none !important;
    }
    
    .case-study-trigger {
        border-bottom: none;
        text-decoration: underline;
        background: none;
    }
}

/* Fitness Page Styles */
.fitness-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    margin-top: 40px;
}

.fitness-image-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.8s ease-out;
}

.fitness-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.fitness-content {
    max-width: 600px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.fitness-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
}

.fitness-details {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.credential {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #000000;
}

.workplace {
    font-size: 16px;
    margin-bottom: 8px;
}

.workplace-link {
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.workplace-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.workplace-link:hover {
    color: #000000;
}

.workplace-link:hover::after {
    width: 100%;
}

.location-fitness {
    font-size: 14px;
    color: #999999;
}

.fitness-bio {
    margin-bottom: 40px;
}

.fitness-bio p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    font-weight: 300;
}

.fitness-links {
    display: flex;
    justify-content: center;
}

.fitness-cta {
    display: inline-block;
    padding: 12px 32px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.fitness-cta:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .toggle-container {
        font-size: 12px;
        gap: 8px;
    }
    
    .fitness-hero {
        gap: 32px;
    }
    
    .fitness-title {
        font-size: 28px;
    }
    
    .fitness-image-container {
        max-width: 100%;
    }
}
