/* Base Styles & Variables */
html {
    scroll-behavior: smooth;
}

:root {
    --oxi-orange: #FF6B35;
    --oxi-dark: #0F0A1E;
    --oxi-purple: #5E2BFF;
    --oxi-blue: #00C2FF;
    --oxi-pink: #FF2D75;
    --oxi-text: rgba(255,255,255,0.9);
}

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

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: var(--oxi-dark);
    color: var(--oxi-text);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(94, 43, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(15, 10, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.oxigames-logo {
    text-decoration: none;
    color: linear-gradient(90deg, var(--oxi-orange), var(--oxi-pink));
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--oxi-orange), var(--oxi-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(255,107,53,0.3);
}

/* Navigation */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--oxi-orange);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at center, rgba(255,107,53,0.1) 0%, transparent 70%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, white, var(--oxi-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--oxi-orange);
    color: white;
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* Games Section */
.games-section {
    padding: 8rem 10%;
    background: rgba(0,0,0,0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--oxi-orange), var(--oxi-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Game Cards */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.game-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.game-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.08);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
    z-index: 1;
}

.game-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.game-icon {
    position: absolute;  /* Positions the icon over the game image */
    top: -70px;          /* Distance from top of card */
    left: 3px;         /* Distance from left of card */
    width: 80px;        /* Icon size */
    height: 80px;
    border-radius: 15px; /* Slightly rounded corners like app icons */
    border: 0px solid rgba(255,255,255,0.9); /* White border */
    box-shadow: 0px 10px 20px rgb(0, 7, 73);
    object-fit: cover;  /* Ensures icon image fills container */
    z-index: 2;         /* Keeps icon above other elements */
    transition: all 0.3s ease;
}

.game-page-btn {
    color: inherit;          /* Inherits text color from parent */
    text-decoration: none;   /* Removes underline */
}

.game-page-btn:hover {
    text-decoration: underline;
}

.game-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.game-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-content p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.game-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--oxi-purple);
    color: white;
}

.badge-secondary {
    background: rgba(255,255,255,0.1);
}

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

.game-actions .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

/* Contact Footer Styles */
.contact-footer {
    text-align: center;
    padding: 2rem 0;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-label {
    color: #888;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.contact-label a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-label a:hover {
    color: var(--oxi-orange);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero {
        padding: 0 5%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .floating-character {
        display: none;
    }
}

/* About Section Styles */
.about-section {
    padding: 8rem 10%;
    background: rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255,107,53,0.1) 0%, transparent 50%);
    z-index: -1;
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--oxi-blue);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.philosophy-list {
    list-style: none;
    margin: 2rem 0;
}

.philosophy-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.philosophy-list i {
    color: var(--oxi-orange);
    margin-top: 0.2rem;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
    background: rgba(15, 10, 30, 0.8);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--oxi-orange), var(--oxi-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 1rem;
    }
}