/* ============================================
   CAPPY STUDIOS - Custom Theme
   Matte Black + Purple/Pink-Blue Glassmorphism
   ============================================ */

:root {
    /* Core Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    
    /* Accent Gradient - Purple to Pink-Blue */
    --accent-purple: #9333ea;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-gradient: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-blue));
    --accent-gradient-hover: linear-gradient(135deg, var(--accent-blue), var(--accent-pink), var(--accent-purple));
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   BASE OVERRIDES
   ============================================ */

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

#page-wrapper {
    background: var(--bg-primary);
}

/* Remove HTML5UP watermark styling */
.copyright li:last-child {
    display: none;
}

/* ============================================
   RIPPLE EFFECT CANVAS
   ============================================ */

#ripple-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* ============================================
   NAVIGATION
   ============================================ */

#header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

#header.alt {
    background: transparent;
    border-bottom: none;
}

#header #logo {
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#header nav ul li a {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

#header nav ul li a:hover {
    color: var(--text-primary);
}

#header nav ul li a.button.primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

#header nav ul li a.button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient-hover);
    transition: var(--transition-smooth);
}

#header nav ul li a.button.primary:hover::before {
    left: 0;
}

/* ============================================
   HERO BANNER WITH SLIDING BACKGROUND
   ============================================ */

#banner {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.85) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

#banner .content {
    position: relative;
    z-index: 2;
}

#banner .content header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

#banner .content header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 
        var(--glass-shadow),
        0 0 40px rgba(147, 51, 234, 0.1);
}

/* Glow effect on hover */
.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(147, 51, 234, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.glass-card:hover::after {
    opacity: 1;
}

/* ============================================
   GAME SHOWCASE SECTION
   ============================================ */

.games-showcase {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.game-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.game-card:hover .overlay {
    transform: translateY(0);
}

.game-card .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.game-card .status.live {
    background: linear-gradient(135deg, #10b981, #059669);
}

.game-card .status.development {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.game-card .status.planned {
    background: linear-gradient(135deg, var(--accent-blue), #0ea5e9);
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media screen and (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 980px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-item {
    text-align: center;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
}

.skill-item i,
.skill-item .skill-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   PARTNERSHIP CAROUSEL
   ============================================ */

.partners-section {
    background: var(--bg-tertiary);
    padding: 4rem 0;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: scroll 20s linear infinite;
}

.partners-track img {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.partners-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   ABOUT / HERO SECTION
   ============================================ */

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-hero .image-container {
    position: relative;
}

.about-hero .image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--accent-purple);
    border-radius: 20px;
    z-index: -1;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: var(--accent-gradient);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: white;
    color: var(--accent-purple);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--accent-purple);
}

/* ============================================
   FOOTER
   ============================================ */

#footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
}

#footer .icons li a {
    color: var(--text-muted);
    border-color: var(--glass-border);
    transition: var(--transition-smooth);
}

#footer .icons li a:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background: rgba(147, 51, 234, 0.1);
}

/* ============================================
   PIXEL ART GALLERY
   ============================================ */

.pixel-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.pixel-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.pixel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    transition: var(--transition-smooth);
}

.pixel-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 980px) {
    #banner .content header h2 {
        font-size: 2.5rem;
    }
    
    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 736px) {
    #banner .content header h2 {
        font-size: 1.75rem;
        letter-spacing: 2px;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   SPOTLIGHT SECTION OVERRIDES
   ============================================ */

.spotlight {
    background-color: var(--bg-secondary);
}

.spotlight .content {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

/* Section styling */
.wrapper.style1 {
    background: var(--bg-secondary);
}

.wrapper.style2 {
    background: var(--bg-tertiary);
}

.wrapper.style1.special.fade-up {
    background: var(--bg-secondary);
}

.wrapper.style1.special.fade-up .box.alt section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.wrapper.style1.special.fade-up .box.alt section:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
}

.wrapper.style1.special.fade-up .box.alt section .icon {
    color: var(--accent-purple);
}

/* Form styling */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

input[type="submit"],
button,
.button {
    background: var(--accent-gradient);
    border: none;
    color: white;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

input[type="submit"]:hover,
button:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

.loader-mascot {
    margin-top: 1.5rem;
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    opacity: 0.9;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   LOGO STYLES
   ============================================ */

/* Header Logo */
.header-logo {
    height: 2.5rem;
    width: auto;
    margin-right: 0.75rem;
    vertical-align: middle;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 8px rgba(147, 51, 234, 0.3));
}

#header #logo a:hover .header-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(147, 51, 234, 0.5));
}

/* Loader Main Logo */
.loader-main-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: logoEntrance 1s ease-out, float 2s ease-in-out infinite 1s;
    filter: drop-shadow(0 4px 20px rgba(147, 51, 234, 0.4));
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Footer Logo */
.footer-logo {
    height: 3rem;
    width: auto;
    margin: 0 auto 2rem;
    display: block;
    opacity: 0.7;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 8px rgba(147, 51, 234, 0.2));
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(147, 51, 234, 0.4));
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 736px) {
    .header-logo {
        height: 2rem;
        margin-right: 0.5rem;
    }

    .loader-main-logo {
        width: 100px;
    }

    .footer-logo {
        height: 2.5rem;
    }
}
