:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --spacing-unit: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
}

header.hidden {
    transform: translateY(-100%);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

main {
    margin-top: 80px;
}

.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-unit);
    background-image: url('images/header.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    padding-left: 8%;
    max-width: 60%;
    animation: fadeInLeft 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.avatar-container {
    position: relative;
    z-index: 2;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInRight 1s ease-out;
    overflow: hidden;
}

.avatar-container:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.avatar-container:hover .avatar-image {
    transform: scale(1.1);
}

.avatar-container i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.avatar-container:hover i {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-unit);
    margin-top: 2rem;
}

.project-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.project-card .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-card .read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.project-card .read-more i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.project-card .read-more:hover i {
    transform: translateX(3px);
}

.contact-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: var(--light-gray);
}

.contact-links a i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-links a:hover i {
    transform: scale(1.1);
}

/* Specific styles for different social platforms */
.contact-links a[href*="github"]:hover {
    background: #24292e;
    color: white;
}

.contact-links a[href*="twitch"]:hover {
    background: #9146ff;
    color: white;
}

.contact-links a[href^="mailto"]:hover {
    background: #ea4335;
    color: white;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    margin-top: 4rem;
}

/* Add a mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.5rem;
    }
    
    .avatar-container {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links a {
        margin-left: 0;
        padding: 0.5rem 0;
    }
    
    .project-card img {
        height: 150px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
        min-height: 50vh;
    }

    .hero-content {
        padding-left: 0;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .avatar-container {
        margin-right: 0;
        width: 180px;
        height: 180px;
    }

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

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

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-links a {
        width: 100%;
        justify-content: center;
    }
}

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

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

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

    .avatar-container {
        width: 150px;
        height: 150px;
    }
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.placeholder-image i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.placeholder-image span {
    font-size: 1rem;
    font-weight: 500;
}

/* Loading state styles */
.project-card.loading {
    background: #f5f5f5;
    min-height: 300px;
}

.loading-placeholder {
    padding: 20px;
}

.loading-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 15px;
}

.loading-title {
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.loading-text {
    height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error state styles */
.project-card.error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
}

.error-message {
    text-align: center;
    padding: 20px;
}

.error-message i {
    font-size: 48px;
    color: #f44336;
    margin-bottom: 15px;
}

.error-message p {
    color: #d32f2f;
    margin-bottom: 15px;
}

.retry-button {
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.retry-button:hover {
    background: #d32f2f;
}

/* Refresh button styles */
.refresh-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.refresh-button:hover {
    background: #1976d2;
}

.refresh-button i {
    margin-right: 8px;
}

/* Card image container */
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

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