/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.nav-left .logo {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

.nav-center {
    display: flex;
    gap: 1.5rem;
}

.nav-center a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    font-size: 0.95rem;
}

.nav-center a:hover,
.nav-center a.active {
    color: #333;
}

.nav-center a.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.lang-btn.active {
    color: #333;
    font-weight: 600;
}

/* Main content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 5rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero .description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn.primary {
    background: #333;
    color: #fff;
}

.btn.primary:hover {
    background: #000;
    transform: translateY(-1px);
}

.btn.secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e5e5e5;
}

.btn.secondary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.btn.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.btn.disabled:hover {
    transform: none;
}

/* Skills section */
.skills {
    padding: 3rem 0;
    text-align: center;
}

.skills h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: #555;
}

/* Page header */
.page-header {
    text-align: center;
    padding: 3rem 0;
}

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

.page-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.project-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card.coming-soon {
    opacity: 0.7;
}

.project-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

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

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-links .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Project detail page */
.project-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.project-status {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.project-overview {
    margin-bottom: 3rem;
}

.project-overview h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.project-overview p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-features,
.project-status-section {
    margin-bottom: 3rem;
}

.project-features h2,
.project-status-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.status-item {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.status-item.completed {
    background: #f0f8f0;
    border-left-color: #28a745;
}

.status-item.in-progress {
    background: #fff8e1;
    border-left-color: #ffc107;
}

.status-item.pending {
    background: #f8f9fa;
    border-left-color: #ddd;
}

.status-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.status-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-actions {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e5e5e5;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Legal pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #333;
}

.legal-content p {
    color: #666;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1rem 2rem;
    color: #666;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

footer p {
    color: #666;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a.active {
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 0 1rem;
    }

    nav {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }

    .nav-center {
        gap: 1.5rem;
    }

    main {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

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

    .hero h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .project-header h1 {
        font-size: 2rem;
    }
}