/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a2b3c 0%, #2c3e50 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: rgba(26, 43, 60, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #7FFF00;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #7FFF00;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7FFF00;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: url('gaming_background.png') center/cover;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 43, 60, 0.7);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #7FFF00, #32CD32);
    color: #1a2b3c;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 255, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 255, 0, 0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    animation: float 6s ease-in-out infinite;
}

.icon {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

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

/* Games Section */
.games-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a2b3c;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.game-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-thumbnail {
    height: 200px;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a2b3c;
}

.game-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.play-button {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

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

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
}

/* Footer */
.footer {
    background: #1a2b3c;
    color: #fff;
    padding: 40px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: #7FFF00;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #7FFF00;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
}

.footer-bottom a {
    color: #7FFF00;
    text-decoration: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(45deg, #1a2b3c, #2c3e50);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

.close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #7FFF00;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Game Styles */
.game-container {
    text-align: center;
    padding: 20px;
}

.game-board {
    display: inline-block;
    margin: 20px 0;
}

.tic-tac-toe-board {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 5px;
    background: #1a2b3c;
    padding: 10px;
    border-radius: 10px;
}

.tic-tac-toe-cell {
    background: #fff;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tic-tac-toe-cell:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.rps-choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.rps-choice {
    background: #fff;
    border: 3px solid #1a2b3c;
    border-radius: 15px;
    padding: 20px;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rps-choice:hover {
    background: #7FFF00;
    transform: scale(1.1);
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.memory-card {
    width: 80px;
    height: 80px;
    background: #1a2b3c;
    border: none;
    border-radius: 10px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.memory-card.flipped {
    background: #7FFF00;
    color: #1a2b3c;
}

.puzzle-board {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 5px;
    justify-content: center;
    margin: 20px 0;
    background: #1a2b3c;
    padding: 10px;
    border-radius: 10px;
}

.puzzle-tile {
    width: 80px;
    height: 80px;
    background: #7FFF00;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a2b3c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.puzzle-tile:hover {
    transform: scale(1.05);
}

.puzzle-tile.empty {
    background: transparent;
    cursor: default;
}

.game-status {
    margin: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a2b3c;
}

.game-controls {
    margin: 20px 0;
}

.game-button {
    background: linear-gradient(45deg, #7FFF00, #32CD32);
    color: #1a2b3c;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 255, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 43, 60, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .floating-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .icon {
        font-size: 2rem;
        padding: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .tic-tac-toe-board {
        grid-template-columns: repeat(3, 60px);
        grid-template-rows: repeat(3, 60px);
    }

    .tic-tac-toe-cell {
        font-size: 1.5rem;
    }

    .rps-choice {
        font-size: 2rem;
        min-width: 80px;
        min-height: 80px;
        padding: 15px;
    }

    .memory-board {
        grid-template-columns: repeat(4, 60px);
    }

    .memory-card {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .puzzle-board {
        grid-template-columns: repeat(3, 60px);
    }

    .puzzle-tile {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }
}


/* Chess Game Styles */
.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 400px;
    height: 400px;
    margin: 20px auto;
    border: 3px solid #8B4513;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chess-square {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.chess-square.light {
    background-color: #f0d9b5;
}

.chess-square.dark {
    background-color: #b58863;
}

.chess-square:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.chess-square.selected {
    background-color: #7FFF00 !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.chess-square.valid-move {
    background-color: #90EE90 !important;
}

.chess-piece {
    font-size: 2.5rem;
    user-select: none;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.chess-info {
    text-align: center;
    margin-top: 20px;
    color: #fff;
}

.chess-info .current-player {
    font-weight: bold;
    color: #7FFF00;
    text-transform: capitalize;
}

.reset-btn {
    background: linear-gradient(45deg, #7FFF00, #32CD32);
    color: #1a2b3c;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 255, 0, 0.3);
}

/* Kids Chess Theme */
.chess-board.kids-theme {
    border: 5px solid #FF6B6B;
    background: linear-gradient(45deg, #FFE66D, #FF6B6B);
    border-radius: 15px;
}

.chess-board.kids-theme .chess-square.light {
    background-color: #FFE66D;
}

.chess-board.kids-theme .chess-square.dark {
    background-color: #FF6B6B;
}

.chess-board.kids-theme .chess-square:hover {
    transform: scale(1.1);
    border-radius: 10px;
}

.chess-board.kids-theme .chess-piece {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Adult Chess Theme */
.chess-board.adult-theme {
    border: 3px solid #8B4513;
    background: #2C1810;
}

.chess-board.adult-theme .chess-piece {
    font-size: 2.8rem;
    color: #2C1810;
}

/* Responsive chess board */
@media (max-width: 768px) {
    .chess-board {
        width: 320px;
        height: 320px;
    }
    
    .chess-piece {
        font-size: 2rem;
    }
    
    .chess-board.kids-theme .chess-piece {
        font-size: 1.5rem;
    }
    
    .chess-board.adult-theme .chess-piece {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .chess-board {
        width: 280px;
        height: 280px;
    }
    
    .chess-piece {
        font-size: 1.8rem;
    }
    
    .chess-board.kids-theme .chess-piece {
        font-size: 1.3rem;
    }
    
    .chess-board.adult-theme .chess-piece {
        font-size: 2rem;
    }
}


/* Hero Visual Section */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    min-height: 300px;
}

.floating-icons {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-right: 3rem;
}

.floating-icons .icon {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-icons .icon:nth-child(1) {
    animation-delay: 0s;
}

.floating-icons .icon:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-icons .icon:nth-child(3) {
    animation-delay: 1s;
}

.floating-icons .icon:nth-child(4) {
    animation-delay: 1.5s;
}

.floating-icons .icon:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 12px 40px rgba(127, 255, 0, 0.3);
    background: rgba(127, 255, 0, 0.2);
}

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

.coming-soon-notice {
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.1), rgba(50, 205, 50, 0.1));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem 3rem;
    text-align: center;
    border: 2px solid rgba(127, 255, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.coming-soon-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(127, 255, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.coming-soon-notice h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #7FFF00;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(127, 255, 0, 0.3);
    position: relative;
    z-index: 1;
}

.coming-soon-notice p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Responsive Design for Hero Visual */
@media (max-width: 768px) {
    .hero-visual {
        flex-direction: column;
        margin-top: 2rem;
        min-height: auto;
    }
    
    .floating-icons {
        margin-right: 0;
        margin-bottom: 2rem;
        gap: 1rem;
    }
    
    .floating-icons .icon {
        font-size: 3rem;
        padding: 1rem;
    }
    
    .coming-soon-notice {
        padding: 1.5rem 2rem;
    }
    
    .coming-soon-notice h2 {
        font-size: 1.5rem;
    }
    
    .coming-soon-notice p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .floating-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .floating-icons .icon {
        font-size: 2.5rem;
        padding: 0.8rem;
    }
    
    .coming-soon-notice {
        padding: 1rem 1.5rem;
    }
    
    .coming-soon-notice h2 {
        font-size: 1.3rem;
    }
}

