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

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

/* Header Styles */
header {
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #d6d6d6;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.site-title {
    font-size: 52px;
    font-weight: 600;
    text-transform: uppercase;
    color: #3C3C3C;
    text-decoration: none;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
}

.social-links a {
    color: rgba(0, 0, 0, 0.32);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #211e1d;
}

/* Main Content */
main {
    flex: 1;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #333;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center;
}

.project-item {
    max-width: 280px;
    width: 100%;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item a {
    display: block;
    text-decoration: none;
}

.project-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.project-item:hover img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background: #ffffff;
    border-top: 1px dotted #d6d6d6;
    padding: 20px;
    margin-top: auto;
}

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

.footer-text {
    font-size: 13px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.39);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }
    
    .header-container {
        gap: 15px;
    }
    
    .site-title {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .social-links {
        gap: 30px;
    }
    
    .social-links a {
        font-size: 20px;
        padding: 10px;
    }
    
    main {
        padding: 40px 15px;
    }
    
    .content-section {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .project-item {
        max-width: 100%;
    }
    
    footer {
        padding: 20px 15px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .projects-grid {
        gap: 20px;
    }
    
    .social-links {
        gap: 25px;
    }
    
    .social-links a {
        font-size: 18px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .project-item {
        transform: none !important;
    }
    
    .project-item img {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .social-links a {
        padding: 12px;
        margin: -12px;
    }
}