/* 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: #e8e8e8;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f8f8;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    background: #2d3748;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: #f0f0f0;
    border-bottom: 1px solid #e9ecef;
    padding: 0 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    color: #2d3748;
    background: rgba(45, 55, 72, 0.05);
}

.tab-btn.active {
    color: #2d3748;
    border-bottom-color: #2d3748;
}

/* Tab Content */
.tab-content {
    padding: 0;
    position: relative;
    z-index: 1;
    background: #f8f8f8;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
}

.tab-panel.active {
    display: block;
    background: #fafafa;
}

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

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

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

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Work Experience Section */
.work-content {
    max-width: 800px;
    margin: 0 auto;
}

.work-item {
    background: #f0f0f0;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.work-header {
    margin-bottom: 1rem;
}

.work-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.company {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 500;
    margin-right: 1rem;
}

.duration {
    font-size: 0.9rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.work-description {
    list-style: none;
}

.work-description li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.work-description li::before {
    content: "•";
    color: #4a5568;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #fafafa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    background: #e9ecef;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.project-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #4a5568;
}

/* Footer */
.footer {
    background: #f0f0f0;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.25rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background: #495057;
}

.footer p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
        max-width: 100%;
    }
    
    .header {
        padding: 2rem 1rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .nav-tabs {
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
    }
    
    .tab-content {
        padding: 1.5rem 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .work-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .work-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .work-header h3 {
        font-size: 1.25rem;
    }
    
    .company, .duration {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-tech {
        gap: 0.25rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    
    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .tab-content {
        padding: 1rem 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .work-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .work-header h3 {
        font-size: 1.1rem;
    }
    
    .company {
        font-size: 1rem;
    }
    
    .duration {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    
    .project-image {
        height: 100px;
        font-size: 2.5rem;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 360px) {
    .name {
        font-size: 1.75rem;
    }
    
    .tab-content {
        padding: 0.75rem 0.25rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .work-item {
        padding: 0.75rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
    
    .project-content {
        padding: 0.75rem;
    }
    
    .footer {
        padding: 1rem 0.5rem;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .container {
        min-width: 320px;
    }
    
    .nav-tabs {
        padding: 0 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .projects-grid {
        gap: 1rem;
    }
}
