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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: url('../images/new.png') fixed center bottom / cover no-repeat;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #8b0000 0%, #000000 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand h2 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s;
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(139,0,0,0.8) 0%, rgba(0,0,0,0.9) 100%), url('../images/new.png');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10rem;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffd700, #ff6b35, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #ffd700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-secondary:hover {
    background: #ffd700;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-visual {
    position: relative;
    width: 500px;
    height: 400px;
}

.game-characters {
    position: relative;
    width: 100%;
    height: 100%;
}

.character {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,215,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.character.char3 {
    width: 100px;
    height: 100px;
}

.character.char3 .game-bubble {
    padding: 0.7rem 0.3rem;
}

.character.char3 .game-bubble span {
    font-size: 0.6rem;
    line-height: 1.2;
}

.char1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.char2 {
    top: 10%;
    right: 20%;
    animation-delay: 0.5s;
}

.char3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 1s;
}

.char4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

.game-bubble {
    text-align: center;
    color: white;
    padding: 0.5rem;
}

.game-bubble i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.game-bubble.ludo i {
    color: #ffd700;
}

.game-bubble.snake-ladder i {
    color: #32cd32;
}

.game-bubble.water-sort i {
    color: #00bfff;
}

.game-bubble.tic-tac-toe i {
    color: #ff6347;
}

.game-bubble span {
    font-size: 0.7rem;
    font-weight: 600;
}

.central-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.phone-frame {
    width: 120px;
    height: 200px;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 3px solid #ffd700;
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b0000 0%, #000000 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.game-preview {
    text-align: center;
    color: white;
}

.game-preview i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.game-preview p {
    font-size: 0.8rem;
    font-weight: 600;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.game-element {
    position: absolute;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
    animation: gameFloat 4s ease-in-out infinite;
}

.game-element i {
    font-size: 1.2rem;
    color: #000;
}

.element1 {
    top: 5%;
    left: 35%;
    animation-delay: 0s;
}

.element2 {
    top: 40%;
    right: 5%;
    animation-delay: 1s;
}

.element3 {
    bottom: 5%;
    left: 25%;
    animation-delay: 2s;
}

.element4 {
    bottom: 45%;
    right: 35%;
    animation-delay: 3s;
}

.trophy-float {
    position: absolute;
    bottom: 5%;
    left: 55%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: trophyBounce 3s ease-in-out infinite;
}

.trophy-float i {
    font-size: 1.5rem;
    color: #000;
}

.coin i {
    font-size: 1.2rem;
    color: #000;
    font-weight: 900;
}

.coin1 {
    top: 5%;
    left: 35%;
    animation-delay: 0s;
}

.coin2 {
    top: 40%;
    right: 5%;
    animation-delay: 1s;
}

.coin3 {
    bottom: 5%;
    left: 25%;
    animation-delay: 2s;
}

.coin4 {
    top: 1%;
    left: 55%;
    animation-delay: 0s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes gameFloat {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    25% { transform: translateY(-12px) scale(1.1) rotate(90deg); }
    50% { transform: translateY(-8px) scale(0.9) rotate(180deg); }
    75% { transform: translateY(-15px) scale(1.05) rotate(270deg); }
}

@keyframes trophyBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

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

@keyframes coinFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(90deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

/* Games Section */
.games-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(248,249,250,0.9) 0%, rgba(233,236,239,0.9) 100%);
    position: relative;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(139,0,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.games-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #333;
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #8b0000, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.game-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    border: 1px solid rgba(139,0,0,0.1);
    position: relative;
    overflow: hidden;
}

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

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

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

.game-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
}

.game-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(5deg);
}

.game-icon.ludo {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

.game-icon.snake-ladder {
    background: linear-gradient(135deg, #228b22 0%, #32cd32 100%);
}

.game-icon.water-sort {
    background: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
}

.game-icon.tic-tac-toe {
    background: linear-gradient(135deg, #dc143c 0%, #ff6347 100%);
}

.game-icon i {
    font-size: 2.5rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

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

.game-card p {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.game-card small {
    color: #888;
    margin-bottom: 2rem;
    display: block;
    font-weight: 500;
}

.play-btn {
    background: linear-gradient(135deg, #8b0000 0%, #000000 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    width: 100%;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.play-btn::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.5s;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    background: linear-gradient(135deg, #a00000 0%, #333333 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #333;
    background: linear-gradient(45deg, #8b0000, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid rgba(139,0,0,0.1);
}

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

.feature-card i {
    font-size: 4rem;
    color: #8b0000;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(139,0,0,0.2));
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b0000, #ffd700, #8b0000);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.download-apps {
    margin-bottom: 2rem;
}

.download-apps h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.app-buttons {
    display: flex;
    gap: 1rem;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid #ffd700;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.app-btn:hover {
    background: #ffd700;
    color: #000;
    transform: translateY(-2px);
}

.app-btn i {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #8b0000, #000000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

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

.footer-column ul li a:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.badge {
    background: linear-gradient(45deg, #8b0000, #000000);
    color: #ffd700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Shared Page Styles */
.page-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(248,249,250,0.9) 0%, rgba(233,236,239,0.9) 100%);
    min-height: 100vh;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.page-content h1 {
    color: #8b0000;
    margin-bottom: 1rem;
    text-align: center;
}

.page-content h2 {
    color: #8b0000;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 0.5rem;
}

.page-content p,
.page-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    margin-left: 2rem;
}

.back-btn {
    display: inline-block;
    padding: 1rem;
    background: #8b0000;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 1;
}

.back-btn:hover {
    background: #ffd700;
    color: #000;
}

.highlight-box {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
}

.coin {
    position: absolute;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: coinFloat 4s ease-in-out infinite;
    box-shadow: 0 4px 8px rgba(255,215,0,0.3);
}