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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
    position: relative;
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.lang-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #667eea;
    color: white;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    padding: 60px 40px;
    animation: fadeIn 0.6s ease-in;
}

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

header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-text {
    flex: 1;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

h1 {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.3em;
    color: #764ba2;
    font-weight: 500;
}

main {
    line-height: 1.8;
}

.about {
    margin-bottom: 40px;
}

.about p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #555;
}

.about strong {
    color: #667eea;
    font-weight: 600;
}

.project h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.project > p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

.game-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    margin-top: 20px;
}

.game-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.game-card p {
    font-size: 1em;
    margin-bottom: 25px;
    opacity: 0.95;
}

.game-info {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.game-info p {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.game-info p:last-child {
    margin-bottom: 0;
}

.carousel-container {
    margin: 30px 0;
    padding: 20px 0;
}

.carousel-container h4 {
    color: white;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.carousel-images {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-image.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2em;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.learn-more {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

.learn-more-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    width: 100%;
}

.learn-more-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.learn-more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 0;
}

.learn-more-content.expanded {
    max-height: 3000px;
    margin-top: 20px;
}

.learn-more-content h4 {
    color: white;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.learn-more-content h4:first-child {
    margin-top: 0;
}

.learn-more-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    color: #999;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 25px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        order: -1;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .project h2 {
        font-size: 1.6em;
    }

    .game-card h3 {
        font-size: 1.5em;
    }
}
