/* Global Styles */
:root {
    --primary-color: #4A6FA5;
    --secondary-color: #FF6B6B;
    --accent-color: #FFD166;
    --dark-color: #293241;
    --light-color: #F8F9FA;
    --success-color: #06D6A0;
    --danger-color: #EF476F;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    background-image: 
        radial-gradient(#e5e7eb 1px, transparent 1px),
        radial-gradient(#e5e7eb 1px, transparent 1px),
        radial-gradient(circle at -20% 50%, rgba(74, 111, 165, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 120% 20%, rgba(255, 209, 102, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 90%, rgba(255, 107, 107, 0.05) 0%, transparent 60%);
    background-size: 50px 50px, 50px 50px, 400px 400px, 500px 500px, 600px 600px;
    background-position: 0 0, 25px 25px, -100px 100px, 100% 0, 50% 100%;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Glows */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 40% 50%, rgba(74, 111, 165, 0.03) 0%, transparent 70%),
                radial-gradient(circle at 60% 30%, rgba(255, 209, 102, 0.03) 0%, transparent 70%),
                radial-gradient(circle at 20% 70%, rgba(255, 107, 107, 0.03) 0%, transparent 70%);
    animation: floatGlows 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes floatGlows {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(-5%, 5%);
    }
    66% {
        transform: translate(5%, -5%);
    }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-large {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3d5a80;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-large {
    background-color: var(--secondary-color);
    color: white;
    padding: 16px 32px;
    font-size: 1.25rem;
}

.btn-large:hover {
    background-color: #e55a5a;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.menu-btn {
    width: 30px;
    height: 22px;
    position: relative;
}

.menu-btn::before,
.menu-btn::after,
.menu-btn span {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-btn::before {
    top: 0;
}

.menu-btn span {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn::after {
    bottom: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4A6FA5 0%, #1D3557 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 20px, transparent 20px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 15px, transparent 15px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.1) 10px, transparent 10px);
    background-size: 60px 60px;
}

.hero .container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: rotate(3deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0) scale(1.02);
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Features Section */
.features {
    background-color: white;
}

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

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* How to Play Section */
.how-to-play {
    background-color: var(--light-color);
}

.gameplay-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    background-color: var(--accent-color);
    color: var(--dark-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.4);
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Stats Section */
.stats {
    background-color: white;
}

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

.stat-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 500;
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Testimonials Section */
.testimonials {
    background-color: #f0f4f8;
    position: relative;
    overflow: hidden;
}

.testimonials::before,
.testimonials::after {
    content: '"';
    position: absolute;
    font-size: 20rem;
    color: rgba(74, 111, 165, 0.1);
    font-weight: 700;
}

.testimonials::before {
    top: -5rem;
    left: -5rem;
}

.testimonials::after {
    bottom: -15rem;
    right: -5rem;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
    height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-rating {
    color: var(--accent-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-slide,
.next-slide {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.prev-slide:hover,
.next-slide:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e55a5a 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 30px, transparent 30px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 20px, transparent 20px);
}

.cta .container {
    position: relative;
}

.cta h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo h2 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

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

.link-group h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.5rem;
}

.link-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

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

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Game Page Styles */
.game-container {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    max-width: 95vw;
    margin: 20px auto;
    overflow-x: auto;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.difficulty-selector {
    display: flex;
    gap: 1rem;
}

.difficulty-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.difficulty-btn.active,
.difficulty-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.reset-btn {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.reset-btn:hover {
    background-color: #e6c158;
    transform: translateY(-2px);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.info-panel {
    background-color: var(--dark-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
}

.smileys {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.smileys:active {
    border: 2px inset #808080;
    transform: scale(0.95);
}

.board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    background-color: #c0c0c0;
    border: 3px outset #ffffff;
    padding: 10px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.board {
    display: grid;
    gap: 1px;
    background-color: #808080;
    padding: 5px;
    border-radius: 5px;
    margin: 0 auto;
}

.cell {
    min-width: 25px;
    min-height: 25px;
    width: clamp(20px, 4vw, 35px);
    height: clamp(20px, 4vw, 35px);
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-size: clamp(0.75rem, 2vw, 1.25rem);
}

.cell:hover:not(.revealed):not(.flagged) {
    background-color: #d0d0d0;
}

.cell.revealed {
    background-color: #ffffff;
    border: 1px solid #808080;
    cursor: default;
}

.cell.mine.revealed {
    background-color: var(--danger-color);
    color: white;
}

.cell.flagged {
    background-color: #c0c0c0;
}

.cell.number-1 { color: blue; }
.cell.number-2 { color: green; }
.cell.number-3 { color: red; }
.cell.number-4 { color: #800080; }
.cell.number-5 { color: #8B0000; }

/* Responsive adjustments for game board */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
        margin: 10px auto;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .difficulty-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-info {
        gap: 1.5rem;
    }
    
    .info-panel {
        padding: 8px 16px;
        font-size: 1.25rem;
        min-width: 80px;
    }
    
    .cell {
        min-width: 20px;
        min-height: 20px;
        width: clamp(18px, 5vw, 30px);
        height: clamp(18px, 5vw, 30px);
        font-size: clamp(0.6rem, 3vw, 1rem);
    }
}

@media (max-width: 480px) {
    .board-container {
        padding: 5px;
    }
    
    .board {
        padding: 3px;
        gap: 0.5px;
    }
    
    .cell {
        min-width: 18px;
        min-height: 18px;
        width: clamp(16px, 6vw, 25px);
        height: clamp(16px, 6vw, 25px);
        border-width: 1px;
    }
    
    .game-instructions {
        margin-top: 1rem;
    }
}
.cell.number-6 { color: #008B8B; }
.cell.number-7 { color: #000000; }
.cell.number-8 { color: #808080; }

/* Result Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* About Page Styles */
.about-container {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.about-content {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

/* Contact Page Styles */
.contact-container {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.contact-content {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.contact-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-info {
    max-width: 500px;
    margin: 0 auto;
}

.contact-email {
    display: inline-block;
    background-color: var(--light-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.contact-email:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Privacy Policy & Terms of Service */
.legal-container {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.legal-content {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legal-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h3 {
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.legal-content h4 {
    margin: 1.5rem 0 0.75rem;
    color: var(--primary-color);
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .game-controls {
        flex-direction: column;
    }
    
    .game-info {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .cell {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-content,
    .contact-content,
    .legal-content {
        padding: 2rem;
    }
    
    .cell {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
}