/* =====================
   ARSS Studio - Main Styles
   Brand Colors:
   - Primary: #2C4A6E (Dark Navy)
   - Accent: #E8712C (Orange)
   - Secondary: #6CB33F (Green)
   ===================== */

:root {
    --primary: #2C4A6E;
    --primary-dark: #1E3550;
    --primary-light: #3D6590;
    --accent: #E8712C;
    --accent-hover: #D4621F;
    --secondary: #6CB33F;
    --secondary-hover: #5A9A32;
    --white: #FFFFFF;
    --light: #F5F7FA;
    --gray: #8892A0;
    --dark: #1A1A2E;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FF8C42 100%);
    --gradient-animated: linear-gradient(270deg, #2C4A6E, #E8712C, #6CB33F, #2C4A6E);
    --shadow: 0 10px 40px rgba(44, 74, 110, 0.15);
    --shadow-hover: 0 20px 60px rgba(44, 74, 110, 0.25);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dark Mode Colors */
    --bg-light: #F5F7FA;
    --bg-dark: #0F1419;
    --card-light: #FFFFFF;
    --card-dark: #1A2332;
    --text-light: #1A1A2E;
    --text-dark: #E8E9ED;
}

/* Dark Mode */
body.dark-mode {
    --white: #0F1419;
    --light: #1A2332;
    --dark: #E8E9ED;
    --gray: #B0B8C4;
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.dark-mode .navbar {
    background: rgba(26, 35, 50, 0.95);
}

body.dark-mode .game-card,
body.dark-mode .social-btn {
    background: var(--card-dark);
}

body.dark-mode .games-section,
body.dark-mode .about-section {
    background: var(--bg-dark);
}

/* Animated Gradient Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero {
    background: var(--gradient-animated);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================
   SCROLL PROGRESS BAR
   ===================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-accent);
    z-index: 9999;
    transform-origin: left;
    transition: width 0.1s ease-out;
}

/* =====================
   NAVIGATION
   ===================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glass);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    transition: var(--transition);
}

.navbar .logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-play {
    background: var(--gradient-accent);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-play:hover::before {
    width: 300px;
    height: 300px;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(232, 113, 44, 0.4);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    transition: var(--transition);
}

/* Hamburger Animation */
.mobile-menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 11px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 22px;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 11px;
    transform: rotate(135deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-135deg);
}

/* =====================
   HERO SECTION
   ===================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-bg {
    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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: 100px 100px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content {
    color: var(--white);
}

.hero-logo {
    width: 200px;
    margin-bottom: 30px;
    /* Remove default filter - logo should be visible in light mode */
}

/* Only invert logo in dark mode */
body.dark-mode .hero-logo {
    filter: brightness(0) invert(1);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .highlight {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, #FF8C42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(232, 113, 44, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
}

.stat {
    text-align: center;
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =====================
   GAMES SECTION
   ===================== */

.games-section {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.game-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.game-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: var(--shadow-hover);
}

.game-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.game-card:hover .game-image img {
    transform: scale(1.1) rotate(2deg);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 74, 110, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    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.3), transparent);
    transition: left 0.5s;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(232, 113, 44, 0.6);
}

.coming-soon {
    background: var(--gray);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.game-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.game-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.game-meta span {
    font-size: 0.9rem;
    color: var(--gray);
}

.rating {
    color: var(--accent) !important;
    font-weight: 600;
}

.btn-playstore {
    display: inline-block;
    transition: var(--transition);
    position: relative;
}

.btn-playstore::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(10px);
}

.btn-playstore:hover::after {
    opacity: 0.5;
}

.btn-playstore img {
    height: 50px;
}

.btn-playstore:hover {
    transform: translateY(-3px) scale(1.05);
}

/* =====================
   ABOUT SECTION
   ===================== */

.about-section {
    padding: 100px 0;
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 500;
    color: var(--primary);
}

.about-image img {
    width: 100%;
    max-width: 400px;
}

/* =====================
   CONTACT SECTION
   ===================== */

.contact-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--white);
}

.contact-section .section-subtitle {
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    min-width: 200px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.social-btn.tiktok:hover {
    background: rgba(0, 0, 0, 0.3);
}

.social-btn.youtube:hover {
    background: rgba(255, 0, 0, 0.3);
}

.social-btn.email:hover {
    background: rgba(108, 179, 63, 0.3);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.social-name {
    font-weight: 600;
    font-size: 1.2rem;
}

.social-handle {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* =====================
   FOOTER
   ===================== */

.footer {
    background: var(--dark);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 35px;
    margin-bottom: 10px;
    /* No filter by default - visible in light mode */
}

/* Only invert in dark mode */
body.dark-mode .footer-logo img {
    filter: brightness(0) invert(1);
}

body.dark-mode .navbar .logo img {
    filter: brightness(0) invert(1);
}

.footer-logo p {
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 0;
        gap: 20px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    body.dark-mode .nav-links {
        background: rgba(26, 35, 50, 0.98);
    }

    .theme-toggle {
        margin: 20px 0;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo {
        width: 150px;
    }

    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        /* Disable 3D effect on mobile */
        transform-style: flat !important;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .about-features {
        align-items: center;
    }

    .social-links {
        flex-direction: column;
        gap: 20px;
    }

    .social-btn {
        min-width: 250px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero h1 {
        font-size: 3rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}