/* 
======================================================
  UNWIND GAME STUDIOS - CORE STYLES
======================================================
*/

:root {
    /* Color Palette - Relaxing & Premium */
    --clr-bg-dark: #120b22;       /* Deep slate purple */
    --clr-bg-card: rgba(255, 255, 255, 0.04); /* Glass base */
    --clr-primary: #8b5cf6;       /* Vibrant Lavender */
    --clr-accent: #f59e0b;        /* Warm Amber */
    --clr-text-main: #f8fafc;     /* Off-white */
    --clr-text-muted: #94a3b8;    /* Slate grey */
    
    --clr-border: rgba(255, 255, 255, 0.08);
    --clr-glow: rgba(139, 92, 246, 0.4);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --border-radius: 16px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Soft gradient background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--clr-text-main);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

/* =========================================================================
   UTILITIES & GLOBAL CLASSES
   ========================================================================= */

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--clr-glow);
    border-radius: 30px;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--clr-primary), #6d28d9);
    color: white;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(109, 40, 217, 0.6);
}

/* =========================================================================
   NAVIGATION (Navbar)
   ========================================================================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(18, 11, 34, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 5px 0;
    background: rgba(18, 11, 34, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
    padding: 12px var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

.logo-icon {
    font-size: 1.2rem;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: white;
}

.nav-btn {
    padding: 8px 20px;
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    background: var(--clr-bg-card);
}

.nav-btn:hover {
    background: white;
    color: var(--clr-bg-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    transition: var(--transition-smooth);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--clr-bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link, .mobile-btn {
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px var(--space-lg) 60px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--clr-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
    filter: blur(80px);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, #c4b5fd, var(--clr-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-inline: auto;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.05);
    animation: float 20s infinite ease-in-out alternate;
}

.s1 { width: 150px; height: 150px; top: 20%; left: 15%; animation-delay: 0s; }
.s2 { width: 80px; height: 80px; top: 60%; right: 20%; animation-delay: -5s; border-radius: 30%; transform: rotate(45deg); }
.s3 { width: 200px; height: 200px; bottom: 10%; left: 30%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(20deg); }
}

/* =========================================================================
   FEATURES (ABOUT) SECTION
   ========================================================================= */

.features-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-inline: auto;
}

.section-header p {
    color: var(--clr-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid var(--clr-border);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* =========================================================================
   GAMES SHOWCASE SECTION
   ========================================================================= */

.games-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.game-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.game-image-placeholder {
    height: 250px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    background-size: cover;
    background-position: center;
}

/* Gradients as image placeholders until real images are added */
.mmm-bg { background: linear-gradient(200deg, #4c1d95, #1e1b4b); }
.secret-bg { background: linear-gradient(200deg, #064e3b, #022c22); filter: grayscale(0.5); }

.glass-overlay {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

.glass-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.game-genre {
    font-size: 0.8rem;
    color: var(--clr-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-details p {
    color: var(--clr-text-muted);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
    flex-grow: 1;
}

.game-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--clr-border);
}

.store-badge.development {
    color: var(--clr-text-muted);
    border-style: dashed;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.footer {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #0a0614;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: 60px;
}

.footer-bio {
    color: var(--clr-text-muted);
    margin: var(--space-md) 0;
    max-width: 300px;
}

.contact-email {
    color: var(--clr-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.contact-email:hover {
    color: white;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: var(--space-md);
    color: white;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* =========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================= */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .desktop-menu { display: none; }
    .menu-toggle { display: flex; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .hero { padding-top: 150px; }
}
