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

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

/* Navigation */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
}

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

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
}

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

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2b6cb0;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    max-width: 800px;
    margin: 4rem auto;
    text-align: left;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 3rem;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

.contact-info {
    background-color: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.contact-item {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-item a {
    color: #2b6cb0;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.cta-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #2b6cb0;
    color: white;
}

.btn-primary:hover {
    background-color: #2c5282;
}

.btn-secondary {
    background-color: transparent;
    color: #2b6cb0;
    border: 2px solid #2b6cb0;
}

.btn-secondary:hover {
    background-color: #2b6cb0;
    color: white;
}

/* Page Header */
.page-header {
    max-width: 800px;
    margin: 2rem auto 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Projects Grid */
.projects-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(43, 108, 176, 0.1), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

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

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.project-type {
    font-weight: 500;
}

.project-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.click-hint {
    color: #2b6cb0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .click-hint {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    color: #718096;
    float: right;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    padding: 1rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2d3748;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.modal-body {
    padding: 2rem;
}

.project-image-placeholder {
    margin-bottom: 2rem;
}

.image-placeholder {
    background-color: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    color: #718096;
    margin-bottom: 2rem;
}

.project-details h3 {
    color: #1a202c;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.project-details h3:first-child {
    margin-top: 0;
}

.project-details p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-details ul {
    margin: 1rem 0 1rem 1.5rem;
    color: #4a5568;
}

.project-details li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.project-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Experience Timeline */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.experience-date {
    min-width: 140px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #718096;
    padding-top: 0.25rem;
}

.experience-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.experience-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2b6cb0;
    margin-bottom: 1rem;
}

.experience-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.experience-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-content {
        margin-top: 120px;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .experience-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .experience-date {
        min-width: auto;
    }
    
    .cta-section {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .close {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
}
