/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a237e 0%, #0d1421 50%, #0a0e1a 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #1565C0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #64B5F6, #42A5F5);
    object-fit: cover;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #64B5F6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #64B5F6;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #64B5F6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(13, 20, 33, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transition: left 0.3s ease;
    border-right: 2px solid #1565C0;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(21, 101, 192, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.sidebar-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #64B5F6, #42A5F5);
}

.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    color: #64B5F6;
    flex-grow: 1;
}

.close-btn {
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin: 10px 0;
}

.sidebar-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background-color: rgba(21, 101, 192, 0.3);
    color: #64B5F6;
    padding-left: 30px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #64B5F6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #E3F2FD;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, #64B5F6, #42A5F5);
    color: #0a0e1a;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.3);
}

/* Game Preview */
.game-preview {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #42A5F5, #1976D2);
}

/* Game Card Images */
.game-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, #42A5F5, #1976D2);
}

/* UI Icons */
.ui-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    object-fit: cover;
}

/* Game Scene Elements */
.barn {
    width: 60px;
    height: 80px;
    object-fit: cover;
}

.tractor {
    width: 40px;
    height: 30px;
    object-fit: cover;
}

.chicken-character {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.flame-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin: 0 2px;
    object-fit: cover;
}

/* Mini Game Elements */
.mini-ui-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    object-fit: cover;
}

.mini-barn {
    width: 20px;
    height: 25px;
    object-fit: cover;
}

.mini-chicken {
    width: 16px;
    height: 16px;
    object-fit: cover;
}

.mini-flame-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    margin: 0 1px;
    object-fit: cover;
}

/* Puzzle Game Gems */
.gem {
    width: 25px;
    height: 25px;
    object-fit: cover;
}

/* Adventure Game Elements */
.adventure-bg {
    width: 40px;
    height: 30px;
    object-fit: cover;
}

.adventure-chicken {
    width: 25px;
    height: 25px;
    margin: 10px 0;
    object-fit: cover;
}

.adventure-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin: 0 2px;
    object-fit: cover;
}

/* Featured Games Section */
.featured-games {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #64B5F6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: rgba(13, 20, 33, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(21, 101, 192, 0.5);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.game-screenshot {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-preview-small {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    height: 100%;
    padding: 15px;
    position: relative;
}

.mini-ui {
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.mini-scene {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    height: 60%;
    background: linear-gradient(to bottom, #87CEEB 0%, #90EE90 50%, #8B4513 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 10px;
    border-radius: 5px;
}

.game-preview-puzzle {
    background: linear-gradient(135deg, #4B0082, #8A2BE2);
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.puzzle-title {
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 16px;
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #64B5F6;
}

.game-description {
    color: #E3F2FD;
    margin-bottom: 20px;
    line-height: 1.5;
}

.play-button {
    background: linear-gradient(45deg, #4169E1, #1E90FF);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: rgba(21, 101, 192, 0.1);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #64B5F6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #E3F2FD;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-button {
    background: linear-gradient(45deg, #64B5F6, #42A5F5);
    color: #0a0e1a;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.3);
}

/* Footer */
.footer {
    background: rgba(10, 14, 26, 0.9);
    border-top: 2px solid #1565C0;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #64B5F6, #42A5F5);
}

.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #64B5F6;
}

.footer-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: #E3F2FD;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #64B5F6;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(21, 101, 192, 0.3);
    color: #B0BEC5;
}

/* Responsive Design */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .nav-menu {
        gap: 20px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .game-preview {
        height: 250px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
} 