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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.role {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Main Content */
.main {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

/* Loading and Error States */
.loading, .error-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: #666;
}

.error-message {
    color: #e74c3c;
    background-color: #fdf2f2;
    border: 1px solid #fadbd8;
    border-radius: 8px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

/* Project Thumbnail */
.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #f8f9fa;
    padding: 20px; /* Adds space around the image */
}



/* Project Content */
.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.project-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: 2.2rem;
    }
    
    .role {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 0;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .main {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
}

/* Accessibility improvements */
.project-card:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

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

.custom-link {
    text-decoration: none;  /* Removes underline */
    color: inherit;         /* Uses parent element's color */
}
