/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #eaeaea;
    --text-secondary: #b8b8b8;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --card-bg: #16213e;
    --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #333;
    --text-secondary: #666;
    --accent-primary: #4a90e2;
    --accent-secondary: #357abd;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand a .brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-brand a:hover {
    color: var(--accent-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: rotate(180deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 0.9rem;
    width: 16px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    z-index: -1;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-decoration {
    position: absolute;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.hero-decoration.palm-tree {
    bottom: -100px;
    right: 3%;
    width: 450px;
    height: 750px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><!-- Palmiye gövdesi --><path d="M200 350 Q198 400 200 580 Q202 580 200 580 Q200 400 200 350" fill="%23ffffff" opacity="0.85"/><path d="M195 350 Q197 400 195 580" stroke="%23ffffff" stroke-width="4" fill="none" opacity="0.8"/><path d="M205 350 Q203 400 205 580" stroke="%23ffffff" stroke-width="4" fill="none" opacity="0.8"/><path d="M200 350 Q200 380 200 400" stroke="%23ffffff" stroke-width="6" fill="none" opacity="0.7"/><!-- Palmiye yaprakları - merkezden çıkan --><path d="M200 350 L280 200 L260 180 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L300 220 L280 200 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L310 250 L290 230 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L290 280 L270 260 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L120 200 L140 180 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L100 220 L120 200 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L90 250 L110 230 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L110 280 L130 260 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L200 150 L190 160 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L200 150 L210 160 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L220 160 L200 150 L200 350 Z" fill="%23ffffff" opacity="0.7"/><path d="M200 350 L180 160 L200 150 L200 350 Z" fill="%23ffffff" opacity="0.7"/><!-- Yaprak detayları --><path d="M200 350 L240 190" stroke="%23ffffff" stroke-width="2" opacity="0.5" fill="none"/><path d="M200 350 L160 190" stroke="%23ffffff" stroke-width="2" opacity="0.5" fill="none"/><path d="M200 350 L250 240" stroke="%23ffffff" stroke-width="2" opacity="0.5" fill="none"/><path d="M200 350 L150 240" stroke="%23ffffff" stroke-width="2" opacity="0.5" fill="none"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration.unity-logo {
    top: 20%;
    left: 5%;
    width: 200px;
    height: 200px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="%23ffffff" stroke-width="2" opacity="0.6"/><path d="M30 50 L50 30 L70 50 L50 70 Z" fill="%23ffffff" opacity="0.4"/><path d="M35 50 L50 35 L65 50 L50 65 Z" fill="%23ffffff" opacity="0.6"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: rotate 20s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Section Styles */
section {
    position: relative;
    padding: 80px 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease, pulse 2s ease-in-out infinite;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1.4s ease 0.4s both;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--accent-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    animation: fadeInUp 1.6s ease 0.6s both;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

/* Section Styles - moved to section backgrounds */

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 50px;
}

/* Games Section */
.games {
    background: var(--bg-primary);
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card-1 {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .game-card-1 {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(74, 144, 226, 0.08));
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.game-card-2 {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.1), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(118, 75, 162, 0.2);
}

[data-theme="light"] .game-card-2 {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.15), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(118, 75, 162, 0.3);
}

.game-card-3 {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    border: 1px solid rgba(52, 152, 219, 0.2);
}

[data-theme="light"] .game-card-3 {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.08));
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.game-gallery {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.game-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image-wrapper,
.game-trailer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-image-wrapper {
    display: none;
}

.gallery-image-wrapper.active,
.game-trailer.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.game-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    cursor: pointer;
}

.game-trailer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-trailer iframe,
.game-trailer video {
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
    position: relative;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
    cursor: pointer;
}

.gallery-image-wrapper:hover .gallery-item-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Video için özel overlay ayarları */
.game-trailer iframe {
    pointer-events: auto;
    z-index: 1;
}

.game-trailer:hover .gallery-item-overlay {
    opacity: 1;
    pointer-events: none;
    /* Overlay video üzerinde tıklamayı engellemez */
}

/* Overlay'in sadece ikon kısmına tıklanabilir */
.game-trailer .gallery-item-overlay i {
    pointer-events: auto;
    z-index: 3;
}

.gallery-item-overlay i {
    color: white;
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.game-gallery-image.active,
.game-trailer.active {
    opacity: 1;
    transform: scale(1);
}

.game-gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.gallery-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 12px;
    height: 12px;
}

.game-info {
    padding: 30px;
}

.game-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.game-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.game-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .game-details {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.game-engine,
.game-platforms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-engine i,
.game-platforms i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.game-platforms {
    gap: 1rem;
}

.game-platforms span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.game-platform:not(:last-child)::after {
    content: "•";
    margin: 0 8px;
    color: #999;
}

.platform-download-link {
    margin-left: 8px;
    text-decoration: none;
}

.platform-download-link i {
    font-size: 0.9em;
}

.platform-playable-link {
    margin-left: 8px;
    text-decoration: none;
}

.platform-playable-link i {
    font-size: 0.9em;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    padding: 15px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item>a {
    color: white;
    text-decoration: none;
}

.contact-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-item strong {
    color: var(--accent-primary);
    margin-right: 10px;
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-align: center;
    padding: 2rem 0;
}

.footer-updated {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: white;
    color: black;
    transform: rotate(90deg);
}

.lightbox-media {
    width: 100%;
    height: 100%;
}

.lightbox-media img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-media iframe,
.lightbox-media video {
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 675px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {

    .lightbox-media iframe,
    .lightbox-media video {
        width: 95vw;
        height: 50vh;
    }

    .lightbox-close {
        top: -40px;
        width: 35px;
        height: 35px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.scroll-to-top:hover {
    background: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow);
}

/* Team Section */
.team {
    background: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member-image {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.team-member:hover .team-member-image {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.1);
}

.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover .team-member-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #667eea;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(20px);
    opacity: 0;
}

.team-member:hover .social-link {
    transform: translateY(0);
    opacity: 1;
}

.team-member:hover .social-link:nth-child(1) {
    transition-delay: 0.1s;
}

.team-member:hover .social-link:nth-child(2) {
    transition-delay: 0.2s;
}

.social-link:hover {
    transform: scale(1.2) rotate(360deg);
    background: #667eea;
    color: white;
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: white;
}

.social-link.github:hover {
    background: #333;
    color: white;
}

.team-member-info {
    margin-top: 1rem;
}

.team-member-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-member-role {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
        gap: 0;
        transform: translateX(0);
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .hero-decoration.palm-tree {
        width: 300px;
        height: 500px;
        right: 2%;
        bottom: -60px;
    }

    .hero-decoration.unity-logo {
        width: 120px;
        height: 120px;
        left: 2%;
    }

    .nav-menu.active {
        left: 0;
        animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .nav-menu.active li {
        animation: fadeInRight 0.5s ease forwards;
        opacity: 0;
    }

    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .games-list {
        gap: 3rem;
    }

    .game-gallery {
        height: 350px;
    }

    .game-images {
        gap: 8px;
        padding: 10px;
    }

    .game-image {
        height: 180px;
        min-width: calc(100% - 16px);
        flex-shrink: 0;
    }

    section {
        padding: 60px 0;
    }

    .about-text {
        font-size: 1rem;
    }

    .contact-info {
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-member-image {
        width: 200px;
        height: 200px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .game-image {
        height: 150px;
    }

    .game-info {
        padding: 20px;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .game-description {
        font-size: 0.9rem;
    }
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}