/* ===================================
   GamesMelter - Main Styles
   Dark & Red Gaming Theme
   =================================== */

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

:root {
    --primary-red: #ff0000;
    --dark-red: #cc0000;
    --light-red: #ff3333;
    --bg-dark: #0a0a0a;
    --bg-dark-secondary: #1a1a1a;
    --bg-dark-tertiary: #2a2a2a;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-dark-gray: #999999;
    --border-color: #333333;
    --accent-glow: rgba(255, 0, 0, 0.3);
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-dark);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--light-red);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--text-light);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: var(--text-light);
}

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

.btn-secondary:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    color: var(--text-light);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
    border-bottom: 2px solid var(--primary-red);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo i {
    color: var(--primary-red);
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
    background: rgba(255, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #2d0000 50%, #0a0a0a 100%);
    padding: 6rem 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--accent-glow);
    animation: fadeInDown 1s ease;
}

.hero-title i {
    color: var(--primary-red);
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.features-section, .games-section, .about-section, .info-section, .games-listing-section, .content-section, .contact-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: var(--primary-red);
}

.section-description {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

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

.feature-card {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: var(--bg-dark-secondary);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.game-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--bg-dark-tertiary);
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.btn-play {
    background: var(--primary-red);
    color: var(--text-light);
    padding: 0.875rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: var(--light-red);
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.game-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark-gray);
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.game-meta i {
    color: var(--primary-red);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-text h2 i {
    color: var(--primary-red);
}

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

.about-features {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.about-feature i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15rem;
    color: var(--primary-red);
    opacity: 0.1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, #2d0000 100%);
    padding: 5rem 0;
    text-align: center;
    border-top: 2px solid var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cta-section h2 i {
    color: var(--primary-red);
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, #2d0000 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 2px solid var(--primary-red);
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.page-header h1 i {
    color: var(--primary-red);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-gray);
}

/* Content Sections */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.content-block h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.styled-list {
    list-style: none;
    margin: 1.5rem 0;
}

.styled-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.styled-list i {
    color: var(--primary-red);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.highlight-box {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%);
    border-left: 4px solid var(--primary-red);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 5px;
}

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

.value-card {
    background: var(--bg-dark-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.value-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.value-card h4 {
    margin-bottom: 0.75rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, #2d0000 100%);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--primary-red);
    margin-top: 3rem;
}

.cta-box h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cta-box h3 i {
    color: var(--primary-red);
}

.cta-box p {
    margin-bottom: 2rem;
}

.about-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.about-hero i {
    font-size: 5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: var(--bg-dark-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary-red);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.age-restriction {
    background: rgba(255, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--primary-red);
    text-align: center;
    font-weight: 700;
    color: var(--text-light);
    margin-top: 2rem;
}

.age-restriction i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-dark-secondary);
    padding: 2.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-form label i {
    color: var(--primary-red);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px var(--accent-glow);
}

.contact-form textarea {
    resize: vertical;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}

/* Info Card */
.info-card {
    background: var(--bg-dark-secondary);
    padding: 3rem;
    border-radius: 10px;
    border: 2px solid var(--primary-red);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.info-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.no-games {
    text-align: center;
    padding: 5rem 0;
}

.no-games i {
    font-size: 5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
    border-top: 2px solid var(--primary-red);
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3 i {
    color: var(--primary-red);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-red);
    font-size: 1.25rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-red);
    padding-left: 0.5rem;
}

.footer-section ul li i {
    font-size: 0.75rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-dark-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-dark-gray);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.disclaimer-link a {
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-link a:hover {
    color: var(--light-red);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%);
    padding: 3rem;
    border-radius: 10px;
    border: 2px solid var(--primary-red);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-red);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--light-red);
    transform: rotate(90deg);
}

.modal-content h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.modal-content h2 i {
    color: var(--primary-red);
}

.disclaimer-text h3 {
    color: var(--primary-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.disclaimer-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark-secondary);
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 1rem;
        display: flex;
        border-radius: 5px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-red);
    color: var(--text-light);
}

