/* Copyright (c) CanadaWebDeveloper. All rights reserved. */
/* Main stylesheet - Xbox UWP-inspired design with glassmorphism */

/* === CSS Reset and Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* === Layout === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

/* === Sidebar Navigation === */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--color-border);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.sidebar-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item, .nav-subitem {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--color-text);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover, .nav-subitem:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-primary);
    transform: translateX(5px);
}

.nav-item.active {
    background: rgba(0, 217, 255, 0.1);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

.nav-icon {
    margin-right: 1rem;
    font-size: 1.25rem;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
}

.nav-item-group {
    margin-bottom: 0.5rem;
}

.nav-submenu {
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--color-border);
    margin-left: 1.5rem;
}

.nav-subitem {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

/* === Theme Toggle === */
.theme-toggle {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text);
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* === Language Selector === */
.language-selector {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex: 1;
}

.language-selector:hover {
    border-color: var(--color-primary);
}

.language-selector:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* === Mobile Menu Toggle === */
.menu-toggle {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* === Sidebar Overlay === */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === Sections === */
.section {
    min-height: 100vh;
    padding: 6rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.1) 0%,
        rgba(123, 104, 238, 0.1) 50%,
        rgba(255, 0, 110, 0.1) 100%);
    animation: parallaxFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes parallaxFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, -2%) rotate(1deg); }
    50% { transform: translate(-2%, 2%) rotate(-1deg); }
    75% { transform: translate(2%, 2%) rotate(1deg); }
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === Hero Section === */
.section-hero {
    background: radial-gradient(circle at 30% 50%,
        rgba(0, 217, 255, 0.15) 0%,
        transparent 50%),
        radial-gradient(circle at 70% 50%,
        rgba(123, 104, 238, 0.15) 0%,
        transparent 50%);
}

/* === Showcase Section - Animated Gradient === */
.section-showcase .parallax-bg {
    background: linear-gradient(
        -45deg,
        rgba(0, 217, 255, 0.15),
        rgba(123, 104, 238, 0.15),
        rgba(255, 0, 110, 0.15),
        rgba(0, 217, 255, 0.1)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Work Section - Parallax Image Background === */
.section-work .parallax-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="g1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(0,217,255);stop-opacity:0.05"/><stop offset="50%" style="stop-color:rgb(123,104,238);stop-opacity:0.05"/><stop offset="100%" style="stop-color:rgb(255,0,110);stop-opacity:0.05"/></linearGradient></defs><rect width="1920" height="1080" fill="url(%23g1)"/><circle cx="300" cy="200" r="150" fill="rgba(0,217,255,0.1)"/><circle cx="1600" cy="800" r="200" fill="rgba(123,104,238,0.1)"/><circle cx="900" cy="500" r="100" fill="rgba(255,0,110,0.1)"/></svg>');
    background-size: cover;
    background-position: center;
    animation: parallaxScroll 30s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes parallaxScroll {
    0%, 100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-3%) scale(1.15); }
}

/* === Contact Section - Video Background === */
.section-contact {
    position: relative;
}

.section-contact .parallax-bg {
    background: linear-gradient(
        135deg,
        rgba(0, 217, 255, 0.08),
        rgba(123, 104, 238, 0.08),
        rgba(255, 0, 110, 0.08)
    );
    animation: videoGlow 8s ease-in-out infinite;
}

@keyframes videoGlow {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.1);
    }
}

/* Video background element */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.15;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Social Section - 3D Tilt Effect (Facebook 3D Photo style) === */
.section-social {
    perspective: 1000px;
}

.section-social .parallax-bg {
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 217, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(123, 104, 238, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 110, 0.08) 0%, transparent 60%);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.section-social .parallax-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateZ(30px);
    transition: transform 0.1s ease-out;
}

.section-social .parallax-bg::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(123, 104, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateZ(50px);
    transition: transform 0.1s ease-out;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

/* === Glitch Effect === */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    animation: glitch-anim 2s infinite;
    color: var(--color-primary);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-anim 2s infinite reverse;
    color: var(--color-accent);
    z-index: -2;
}

@keyframes glitch-anim {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* === Particles Container === */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
}

/* === Glassmorphism Cards === */
.glass-panel, .glass-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 217, 255, 0.3);
    border-color: rgba(0, 217, 255, 0.3);
}

/* === Showcase Grid === */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

.showcase-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.4);
    border-color: var(--color-primary);
}

.showcase-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-image {
    transform: scale(1.1);
}

.showcase-content {
    padding: 1.5rem;
}

.showcase-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.showcase-author {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.showcase-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.showcase-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
}

.showcase-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    
}

.minecoin-icon {
    width: 20px;
    height: 20px;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(0, 217, 255, 0.2);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.showcase-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--color-primary);
    color: #000;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.showcase-link:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

/* === Loading State === */
.showcase-loading {
    text-align: center;
    padding: 4rem 0;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-surface);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.showcase-error {
    text-align: center;
    padding: 4rem 0;
    color: var(--color-accent);
}

/* === Forms === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-actions {
    margin-top: 2rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid rgba(0, 255, 127, 0.3);
    color: #00ff7f;
    display: block;
}

.form-message.error {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    color: var(--color-accent);
    display: block;
}

/* === Social Links === */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    min-width: 120px;
    text-align: center;
}

.social-icon {
    font-size: 2rem;
}

.social-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* === Legal Links === */
.legal-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-link {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.legal-link:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* === Footer === */
.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

/* === Responsive Design === */
@media (min-width: 1024px) {
    .sidebar {
        left: 0;
    }

    .main-content {
        margin-left: 320px;
    }

    .menu-toggle {
        display: none;
    }

    .sidebar-close {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .section-title { font-size: 2rem; }

    .showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .container {
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-logo,
    .sidebar-logo {
        max-width: 90vw;
    }

    .glitch-title {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
}

/* === Smooth Scrolling Utility === */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* === Print Styles === */
@media print {
    .sidebar, .menu-toggle, .sidebar-overlay {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}

/* === Glitch Effect for Titles === */
.glitch-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    
}



/* === End of main.css === */


/* Parallax Image Background */
.section-showcase .parallax-bg {
     background-image: url('../images/bg0002.jpg');
  
    background-size: cover;
    background-position: center;
    animation: parallaxScroll 30s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes parallaxScroll {
    0%, 100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-3%) scale(1.15); }
}
