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

body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(20px) translateY(10px); }
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 2rem 1.5rem;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: patternMove 20s linear infinite;
    z-index: 1;
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(20px) translateY(20px); }
}

.sidebar > * {
    position: relative;
    z-index: 2;
}

.logo h2 {
    color: white;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5); }
    to { text-shadow: 3px 3px 10px rgba(255, 255, 255, 0.8); }
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 1rem;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover, .nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Content Styles */
.content {
    flex: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: contentSlideIn 0.8s ease-out;
}

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

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

.title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleBounce 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes titleBounce {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); opacity: 1; }
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    animation: subtitleFade 1s ease-out 0.3s both;
}

@keyframes subtitleFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Games Grid */
.games-section h2, .articles-section h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.games-section h2::after, .articles-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.game-card:hover::before {
    transform: scale(1);
}

.game-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #ff6b6b;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: iconBob 2s ease-in-out infinite;
}

@keyframes iconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.game-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: bold;
}

.game-card p {
    color: #666;
    line-height: 1.6;
}

/* Articles Section */
.articles-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.article-link:hover {
    transform: scale(1.02);
}

.article-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 20px;
    color: white;
    text-align: center;
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s;
}

.article-card:hover::before {
    left: 100%;
}

.article-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.article-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* About Page Styles */
.about-section {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 3rem;
    border-radius: 25px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
    animation: profileSlide 0.8s ease-out;
}

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

.profile-icon {
    font-size: 4rem;
    animation: profileIconSpin 3s linear infinite;
}

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

.profile-info h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-info h3 {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.work-info p {
    margin-bottom: 0.5rem;
    color: #555;
}

.social-links {
    margin-top: 2rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0077b5;
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.linkedin-link:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-icon {
    font-size: 1.2rem;
}

.passion-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    border-left: 5px solid #ff6b6b;
    animation: passionFade 1s ease-out 0.5s both;
}

@keyframes passionFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.passion-section h3 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.passion-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 0.5rem;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem;
    }
    
    .nav-menu {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .nav-menu li {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .articles-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .game-card, .article-card {
        padding: 1.5rem;
    }
}