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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-size: 16px;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    padding: 0;
}

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

.nav-brand a {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 20px 24px;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #f8f9fa;
}

/* Main Content */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px - 80px); /* Account for navbar and footer */
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 300;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.page-header p {
    font-size: 18px;
    color: #666;
    font-weight: 300;
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 40px 0;
}

.professional-section {
    margin-bottom: 40px;
}

.personal-section {
    margin-top: 20px;
}

.about-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #000;
}

.typewriter-name {
    font-family: 'Special Elite', 'Courier New', monospace !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    letter-spacing: 1px;
    color: #333 !important;
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

.skills-section h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #000;
}

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

.skills-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.skills-list li:last-child {
    border-bottom: none;
}

/* Photo Section */
.photo-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.main-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dog-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.dog-photo-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-caption {
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

/* Legacy styles for backwards compatibility */
.photo-placeholder {
    width: 200px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-frame {
    width: 100%;
    height: 100%;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
}

.photo-frame:hover {
    border-color: #999;
}

.photo-frame p {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.photo-note {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Contact Section */
.contact {
    padding: 40px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 40px;
}

.contact h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #000;
}

.contact p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 8px;
    color: #333;
}

/* Work Categories */
.work-categories {
    padding: 20px 0;
}

.work-category {
    margin-bottom: 50px;
}

.work-category h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.work-items {
    display: grid;
    gap: 30px;
}

.work-item {
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fff;
}

/* Preview Card Styles */
.preview-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.preview-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-preview {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 4px;
}

.work-content {
    flex: 1;
    min-width: 0;
}

.preview-card .work-content h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.preview-card .work-content p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #555;
}

.work-item h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #000;
}

.work-item p {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.work-links {
    display: flex;
    gap: 16px;
}

.doc-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.doc-link:hover {
    background-color: #333;
}

/* Note Section */
.note-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.note {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #000;
}

.note p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Timeline Styles */
.timeline-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e5e5e5;
}

.timeline-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #000;
    text-align: center;
}

.timeline-wrapper {
    position: relative;
    overflow-x: auto;
    padding: 20px 0;
    min-height: 120px;
}

.timeline-years {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 0;
    margin-bottom: 20px;
    min-width: 1080px;
}

.year-marker {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    position: relative;
    padding: 8px 4px;
}

.year-marker.current {
    color: #000;
    font-weight: 700;
}

.year-marker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    border: 2px solid #fff;
}

.year-marker.current::after {
    background: #000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.timeline-line {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #333 0%, #666 50%, #333 100%);
    z-index: 1;
}

.timeline-spans {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    grid-template-rows: 36px;
    gap: 2px;
    margin-top: 24px;
    min-width: 1080px;
    height: 50px;
}

.timeline-span {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    position: relative;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-span.education {
    background: #6b7280;
    color: white;
}

.timeline-span.recruiting {
    background: #7dd3fc;
    color: white;
}

.timeline-span.professional {
    background: #1e40af;
    color: white;
}

.timeline-span.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.timeline-span.clickable:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.span-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Row positioning */
.timeline-span.row-1 {
    margin-top: 0;
}

.timeline-span.row-2 {
    margin-top: 0;
}

.timeline-span.row-3 {
    margin-top: 0;
}

.timeline-span.row-4 {
    margin-top: 0;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .timeline-wrapper {
        overflow-x: scroll;
        padding: 20px 0;
    }
    
    .timeline-years,
    .timeline-spans {
        min-width: 700px;
    }
    
    .span-label {
        font-size: 11px;
    }
    
    .year-marker {
        font-size: 10px;
        padding: 6px 2px;
    }
}

/* Resume Styles */
.resume-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #000;
    margin-bottom: 40px;
}

.resume-header h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.contact-details {
    font-size: 16px;
    color: #666;
}

.resume-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.resume-section:last-of-type {
    border-bottom: none;
}

.resume-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #000;
}

.section-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
}

/* Job Experience */
.job {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.job:last-child {
    border-bottom: none;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.job-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: #000;
}

.job-period {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.company {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
    font-style: italic;
}

.company a {
    color: #1e40af;
    text-decoration: none;
}

.company a:hover {
    text-decoration: underline;
}

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

.job-responsibilities li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.job-responsibilities li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

/* Education */
.education-item {
    margin-bottom: 24px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.education-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: #000;
}

.education-period {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.institution {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.education-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

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

.skill-category h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #000;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 6px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 4px 0;
    font-size: 14px;
    color: #333;
}

/* Certifications and Achievements */
.certifications-list,
.achievements-list {
    list-style: none;
}

.certifications-list li,
.achievements-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.certifications-list li::before,
.achievements-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
}

.footer p {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-link {
        padding: 20px 16px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .preview-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .document-preview {
        align-self: center;
    }

    .photo-placeholder {
        width: 160px;
        height: 220px;
    }

    .typewriter-name {
        font-size: 26px !important;
    }

    .profile-photo {
        max-width: 250px;
        min-height: 300px;
    }

    .dog-photo-img {
        max-width: 250px;
        min-height: 120px;
    }

    .professional-section {
        margin-bottom: 30px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .resume-header h1 {
        font-size: 28px;
    }

    .contact-details {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 28px;
    }

    .main-content {
        padding: 20px 0;
    }

    .nav-link {
        padding: 20px 12px;
    }

    .work-item {
        padding: 20px;
    }
}

/* Print Styles for Career Page */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    .main-content {
        margin-top: 0;
    }

    body {
        font-size: 12px;
    }

    .resume-header h1 {
        font-size: 24px;
    }

    .resume-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .resume-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .job {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .page-break {
        page-break-before: always;
    }
}
