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

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

.project-image img {
    will-change: transform;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --background: #000000;
    --surface: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border: #333333;
    --shadow: rgba(0, 255, 136, 0.1);
    --gradient-1: linear-gradient(135deg, #00ff88 0%, #4ecdc4 100%);
    --gradient-2: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    --gradient-3: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Container with max-width and centering */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Section - Clean and Simple */
.about {
    padding: 2rem 0 1.5rem;
    position: relative;
    text-align: left;
}

.name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 450;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 0.9;
}

.description {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    max-width: 600px;
    line-height: 1.4;
    font-weight: 400;
}

/* Social Links - Simple */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: center;
}

.social-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.separator {
    color: var(--text-primary);
    font-weight: 300;
    font-size: 1.2rem;
}

/* Filters Section - Clean */
.filters {
    margin: 2rem 0 1.5rem;
}

.filter-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    position: relative;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary-color);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Projects Grid with Advanced Animations - Made Visible Immediately */
.projects {
    margin: 4rem 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    animation: slideInUp 0.8s ease-out 1s both; /* Faster */
}

/* Project Images */
.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Project Action Links */
.project-action-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    z-index: 4;
}

.project-action-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Updated Project Meta */
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.project-year {
    background: var(--gradient-1);
    color: var(--background);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Project Cards - Clean */
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.project-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-card:hover {
    border-color: var(--primary-color);
}



/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .name {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .description {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .filter-list {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem 0;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease-out; /* Faster */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.4s ease-out; /* Faster */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Reduced distance */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for all interactive elements - Optimized */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Faster transitions */
} 

 