@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Orbitron:wght@400;500;700;900&family=Play:wght@400;700&display=swap');

:root {
    /* Primary color: Vibrant blue - trustworthy, professional */
    --primary: #2196F3;
    /* Secondary color: Energetic orange */
    --secondary: #FF9800;
    /* Accent: Playful purple */
    --accent: #9C27B0;
    /* Background tones */
    --light-bg: #F5F7FA;
    --dark-bg: #1A237E;

    /* Font families */
    --title-font: 'Orbitron', sans-serif;
    --heading-font: 'Russo One', sans-serif;
    --body-font: 'Play', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
}

h1, h2, h3, .section-title {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero {
    position: relative;
    height: 100vh;
    background-color: var(--dark-bg);
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--title-font);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cta-button, .trailer-button, .submit-btn {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.cta-button:hover {
    transform: scale(1.05);
}

.main-content {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.features {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 35, 126, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-brand {
    font-family: var(--title-font);
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-item:hover, 
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

h1::after,
h2::after,
.section-title::after {
    display: none;
}

.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a,
.social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.social-link:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Games Page Styles */

.games-showcase {
    padding: 6rem 2rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    color: white;
    border: 1px solid #333;
}

.game-card h2 {
    font-family: var(--title-font);
    font-weight: 700;
    letter-spacing: 1px;
    color: #00a8e8;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-thumbnail {
    position: relative;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-button {
    padding: 0.8rem 1.5rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.game-info {
    padding: 1.5rem;
}

.game-info h2 {
    color: #00a8e8;
    margin-bottom: 1rem;
}

.game-tags {
    margin-top: 1rem;
}

.game-tags span {
    font-family: var(--body-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.close-modal {
    position: absolute;
    right: 0;
    top: -40px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#youtubePlayer {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

#youtubePlayer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.trailer-button {
    padding: 0.8rem 1.5rem;
    background: #e63946;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.trailer-button:hover {
    transform: scale(1.05);
    background: #ff4d5e;
}

/* About Page Styles */
.about-section {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
}

.skill-bars {
    margin-top: 2rem;
}

.skill {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-bar {
    height: 10px;
    background: var(--light-bg);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-level {
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    border-radius: 5px;
}

/* Contact Page Styles */
.contact-section {
    padding: 6rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    font-family: var(--body-font);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.submit-btn {
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.05);
}

/* Enhanced Contact Page Styles */
.contact-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.contact-header p {
    color: #666;
    font-size: 1.2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0 0.5rem;
    color: #666;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.2);
    outline: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary);
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* Honeypot field styling */
.honeypot-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

@keyframes gradient {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Media queries for responsiveness */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Navigation */
    .navbar {
        padding: 0.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-item {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Main Content */
    .main-content {
        padding: 2rem 1rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* About Page */
    .about-section {
        padding: 4rem 1rem 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image img {
        max-width: 100%;
        height: auto;
    }

    /* Games Showcase */
    .games-showcase {
        padding: 4rem 1rem 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-card {
        margin: 0 1rem;
    }

    /* Contact Form */
    .contact-section {
        padding: 4rem 1rem 2rem;
    }

    .contact-container {
        padding: 1rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-nav,
    .social-links {
        align-items: center;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 10px;
    }

/* Animation for headings */
h1, h2, .section-title {
    position: relative;
    overflow: hidden;
}

h1::after,
h2::after,
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 50%, 
        transparent 100%
    );
    transform: translateX(-100%);
    animation: slideIn 2s ease-out forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}
}

/* Add subtle glow effect to main headings */
.section-title {
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

/* Additional Small Screen Adjustments */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .game-thumbnail img {
        height: 150px;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .submit-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }
}

/* Fix for notched phones */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-top: calc(env(safe-area-inset-top) + 0.5rem);
    }
    
    .hero-content {
        padding-top: env(safe-area-inset-top);
    }
}