/* ========================================
   NovaProject - Premium Gaming Site
   ======================================== */

/* CSS Variables */
:root {
    --primary-pink: #ff44ff;
    --primary-pink-light: #ff88ff;
    --primary-pink-dark: #dd22dd;
    --neon-glow: 0 0 8px rgba(255, 68, 255, 0.6);
    --neon-glow-intense: 0 0 10px rgba(255, 68, 255, 0.7), 0 0 20px rgba(255, 68, 255, 0.3);
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --surface-dark: rgba(15, 15, 25, 0.85);
    --surface-glass: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --gradient-pink: linear-gradient(135deg, #ff00ff 0%, #ff66ff 50%, #cc00cc 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.8) 100%);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   Preloader Styles
   ======================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    z-index: 10;
}

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.loader-logo .nova-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-pink);
    text-shadow: 0 0 10px rgba(255, 68, 255, 0.5);
    letter-spacing: 0.3em;
}

.loader-logo .project-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.8em;
    margin-top: 10px;
}

@keyframes logoGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 68, 255, 0.5);
        filter: brightness(1);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 68, 255, 0.6);
        filter: brightness(1.1);
    }
}

.loader-bar-container {
    width: 300px;
    margin: 0 auto 20px;
}

.loader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-pink);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-pink), 0 0 20px var(--primary-pink);
}

.loader-percentage {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-pink);
    margin-top: 15px;
    text-shadow: 0 0 10px var(--primary-pink);
}

.loader-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
    letter-spacing: 0.1em;
}

/* Loader Particles */
.loader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-pink);
    animation: float 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }

    100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
}

/* ========================================
   Video Background - OPTIMIZED
   ======================================== */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    /* GPU hızlandırma */
    transform: translateZ(0);
    will-change: transform;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Daha hızlı transition */
    /* Video performans optimizasyonu */
    transform: translateZ(0);
    will-change: opacity;
    /* Daha agresif render optimizasyonu */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.video-container video.loaded {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(10, 10, 15, 0.4) 0%,
            rgba(10, 10, 15, 0.05) 30%,
            rgba(10, 10, 15, 0.05) 70%,
            rgba(10, 10, 15, 0.8) 100%);
    pointer-events: none;
}

/* ========================================
   Global Image Optimization
   ======================================== */
img {
    /* Lazy loading optimizasyonu */
    content-visibility: auto;
}

img[loading="lazy"] {
    /* Lazy loaded görseller için placeholder efekti */
    background: linear-gradient(135deg, rgba(255, 68, 255, 0.05) 0%, rgba(10, 10, 20, 0.3) 100%);
}


/* Decorative Corner Frames */
.corner-frame {
    position: absolute;
    width: 80px;
    height: 80px;
    border-color: rgba(255, 68, 255, 0.3);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
    z-index: 5;
}

.corner-frame.top-left {
    top: 30px;
    left: 30px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.corner-frame.top-right {
    top: 30px;
    right: 30px;
    border-top-width: 2px;
    border-right-width: 2px;
}

.corner-frame.bottom-left {
    bottom: 30px;
    left: 30px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.corner-frame.bottom-right {
    bottom: 30px;
    right: 30px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* Animated Scan Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 68, 255, 0.4) 50%,
            transparent 100%);
    animation: scanLine 4s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes scanLine {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ========================================
   Header Styles
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s var(--transition-smooth);
}

.header.scrolled {
    background: var(--surface-dark);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo Image Style */
.logo-image {
    height: 45px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-image {
    filter: brightness(1.1);
}

.logo-nova {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-pink);
    text-shadow: 0 0 8px rgba(255, 68, 255, 0.4);
    letter-spacing: 0.1em;
}

.logo-project {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-pink);
    box-shadow: 0 0 10px var(--primary-pink);
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.discord-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(88, 101, 242, 0.2);
    padding: 8px 12px 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    transition: all 0.3s ease;
}

.nav-link.discord-link:hover {
    background: rgba(88, 101, 242, 0.4);
    border-color: rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.3);
}

.nav-link.discord-link::after {
    display: none;
}

/* Nova Logo in Discord Button */
.discord-nova-logo {
    height: 28px;
    width: auto;
    border-radius: 6px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-link.discord-link:hover .discord-nova-logo {
    transform: scale(1.1);
}

.discord-icon {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
}

/* Hero Title */
.hero-title-container {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.hero-title-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.neon-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.neon-nova {
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 68, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.2em;
    -webkit-text-stroke: 1px var(--primary-pink);
}

.neon-project {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.6em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes neonPulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 68, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 68, 255, 0.7);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 20px;
}

/* ========================================
   Animated Buttons - 2x2 Grid Layout
   ======================================== */
.buttons-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 480px;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 28px;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 68, 255, 0.15);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.5s var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    /* Görünmeden tıklanamaz */
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 0, 255, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    transform: translateX(-10px) !important;
    border-color: var(--primary-pink);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3), inset 0 0 20px rgba(255, 0, 255, 0.1);
}

.hero-btn.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    /* Görünür olduğunda tıklanabilir */
}

.btn-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-pink);
    filter: drop-shadow(0 0 5px var(--primary-pink));
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-text {
    flex: 1;
}

.btn-arrow {
    font-size: 1.2rem;
    color: var(--primary-pink);
    transition: transform 0.3s ease;
}

.hero-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Discord Button Special Style */
.hero-btn.discord-btn {
    border-color: rgba(88, 101, 242, 0.3);
}

.hero-btn.discord-btn .btn-icon {
    color: #5865F2;
    filter: drop-shadow(0 0 5px #5865F2);
}

.hero-btn.discord-btn:hover {
    border-color: #5865F2;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.3), inset 0 0 20px rgba(88, 101, 242, 0.1);
}

.hero-btn.discord-btn .btn-arrow {
    color: #5865F2;
}

/* Animation delays for buttons */
.hero-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.hero-btn:nth-child(2) {
    transition-delay: 0.2s;
}

.hero-btn:nth-child(3) {
    transition-delay: 0.3s;
}

.hero-btn:nth-child(4) {
    transition-delay: 0.4s;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(0deg, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0) 100%);
    z-index: 100;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .buttons-container {
        right: 40px;
    }

    .neon-nova {
        font-size: 4rem;
    }

    .neon-project {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 30px;
        transition: right 0.4s var(--transition-smooth);
        border-left: 1px solid rgba(255, 0, 255, 0.2);
    }

    .nav.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-section {
        padding: 100px 20px 60px;
    }

    .neon-nova {
        font-size: 2.5rem;
    }

    .neon-project {
        font-size: 1.2rem;
        letter-spacing: 0.4em;
    }

    .buttons-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
        padding: 0 15px;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-btn {
        min-width: auto;
        padding: 16px 12px;
        font-size: 0.85rem;
    }

    .hero-btn.visible {
        transform: translateX(0);
    }

    .hero-btn:hover {
        transform: translateY(-5px) !important;
    }

    .loader-logo .nova-text {
        font-size: 2.5rem;
    }

    .loader-logo .project-text {
        font-size: 1rem;
    }

    .loader-bar-container {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .logo-nova {
        font-size: 1.4rem;
    }

    .logo-project {
        font-size: 0.7rem;
    }

    .neon-nova {
        font-size: 2rem;
    }

    .neon-project {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 15px 25px;
        min-width: auto;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.no-scroll {
    overflow: hidden;
}

/* Selection */
::selection {
    background: var(--primary-pink);
    color: var(--bg-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-pink-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}

/* ========================================
   Music Control Button
   ======================================== */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: rgba(15, 15, 30, 0.9);
    border: 1px solid rgba(255, 68, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.music-control:hover {
    background: rgba(255, 68, 255, 0.15);
    border-color: var(--primary-pink);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 68, 255, 0.3);
}

.music-control svg {
    width: 24px;
    height: 24px;
    color: var(--primary-pink);
    transition: all 0.3s ease;
}

.music-control .music-icon-on {
    display: block;
}

.music-control .music-icon-off {
    display: none;
}

.music-control.muted .music-icon-on {
    display: none;
}

.music-control.muted .music-icon-off {
    display: block;
    color: rgba(255, 255, 255, 0.5);
}

.music-control.muted {
    border-color: rgba(255, 255, 255, 0.2);
}

.music-control.muted:hover {
    border-color: var(--primary-pink);
}

/* Pulse animation when playing */
.music-control:not(.muted)::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-pink);
    animation: musicPulse 2s ease-out infinite;
}

@keyframes musicPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .music-control {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .music-control svg {
        width: 20px;
        height: 20px;
    }
}