/*
  KWK-Network Modern Stylesheet
  Focus: Dark theme, Glassmorphism, Micro-animations, Custom Cursor
*/

:root {
    --bg-color: #0b0c10;
    --bg-secondary: #12141c;
    --text-primary: #ffffff;
    --text-secondary: #b0bfcb;
    --accent-primary: #00f2fe;
    /* Cyan */
    --accent-secondary: #4facfe;
    /* Blue */
    --accent-tertiary: #9b51e0;
    /* Purple */

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-slow: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Hide default cursor globally */
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* Hover effect for Custom Cursor */
.cursor-outline.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Background Animated Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-tertiary), transparent 60%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary), transparent 60%);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 60%);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

/* Typography Utilities */
.highlight {
    color: var(--accent-primary);
}

.text-white {
    color: var(--text-primary);
}

.highlight-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-medium);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Layout Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--accent-primary);
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    outline: none;
    transition: var(--transition-medium);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.btn-primary.interactive-btn {
    width: 250px;
    /* Fixed width to prevent jumping */
    justify-content: center;
}

.btn-primary .ip-text {
    display: none;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: .5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(0, 242, 254, 0.1);
}

/* Cards & Sections */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card,
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
}

.glass-card {
    transition: var(--transition-medium);
}

.card-hover:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.glass-card p {
    color: var(--text-secondary);
}

/* Services */
.services-content {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 50px;
}

.service-icon-large {
    font-size: 6rem;
    color: var(--accent-tertiary);
    flex-shrink: 0;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(155, 81, 224, 0.2));
    }

    100% {
        filter: drop-shadow(0 0 30px rgba(155, 81, 224, 0.8));
    }
}

.service-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
}

.text-highlight {
    color: var(--accent-primary);
}

.action-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-primary);
}

.ip-display {
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.link-group a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Brand Logo */
.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo {
    height: 60px;
}

/* Form Styles */
.form-panel {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b0bfcb%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

select.form-control option {
    background: var(--bg-secondary);
    color: white;
}

textarea.form-control {
    resize: vertical;
}

/* Reveal Animations on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: auto;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--accent-primary);
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-primary);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
    z-index: 3000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    bottom: 40px;
}

.toast i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Could add hamburger menu here for full implementation */
    .title {
        font-size: 3rem;
    }

    .services-content {
        flex-direction: column;
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .action-box {
        border-left: none;
        border-top: 4px solid var(--accent-primary);
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- Phase 2: Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* --- Top Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 0.1s ease-out;
}

/* --- Glowing Orbs in Background --- */
.glowing-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -3;
    opacity: 0.15;
    animation: floatOrb 20s infinite alternate ease-in-out;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: 10%;
    left: 10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-tertiary);
    bottom: 0%;
    right: 5%;
    animation-delay: -5s;
    animation-duration: 25s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(150px, 80px) scale(1.1);
    }
}

/* --- Games Grid Area --- */
.games-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    filter: grayscale(0.6) opacity(0.7);
}

.game-item:hover {
    transform: translateY(-15px) scale(1.05);
    filter: grayscale(0) opacity(1);
}

.game-icon-box {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.game-icon-box i {
    z-index: 2;
    /* Keep icon above the inner glow */
}

.game-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

/* Subtle glow inside the game box on hover */
.game-icon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.game-item:hover .game-icon-box::before {
    opacity: 1;
}

.game-item:hover .game-icon-box {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.2);
}

/* Specific Game Colors for Hover Glows */
.game-item.lol:hover .game-icon-box {
    border-color: #ffd700;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.game-item.lol:hover .game-title {
    color: #ffd700;
}

.game-item.csgo:hover .game-icon-box {
    border-color: #f59e0b;
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.3);
}

.game-item.csgo:hover .game-title {
    color: #f59e0b;
}

.game-item.minecraft:hover .game-icon-box {
    border-color: #10b981;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
}

.game-item.minecraft:hover .game-title {
    color: #10b981;
}

.game-item.ark:hover .game-icon-box {
    border-color: #ef4444;
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.3);
}

.game-item.ark:hover .game-title {
    color: #ef4444;
}

/* Disable default TiltGlare border radius if it interferes */
.js-tilt-glare {
    border-radius: 20px;
}