/* =========================================
   VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    --accent: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after,
*:hover,
*:active,
*:focus {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    /* Hide default cursor */
}

::selection {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: none;
    /* Custom cursor handles this */
}

ul {
    list-style: none;
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 100000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    mix-blend-mode: normal;
}

button {
    cursor: none;
}

/* =========================================
   PRELOADER
   ========================================= */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    animation: pulseGlow 2s infinite ease-in-out;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: #ffffff;
    text-transform: uppercase;
    animation: pulseText 2s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* =========================================
   BACKGROUND ORBS (GLASSMORPHISM EFFECT)
   ========================================= */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: rgba(255, 255, 255, 0.15);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 30vw;
    height: 30vw;
    background: rgba(200, 200, 200, 0.1);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 20vw;
    height: 20vw;
    background: rgba(255, 255, 255, 0.08);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

/* =========================================
   UTILITIES & TYPOGRAPHY
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
}

.w-100 {
    width: 100%;
}

/* =========================================
   NAVIGATION
   ========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.glass-nav.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.logo-light {
    font-weight: 400;
}

.logo-separator {
    color: var(--text-secondary);
    margin: 0 5px;
}

.logo-bold {
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 3rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.stat-item h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.about-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.visual-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: var(--transition);
}

.visual-card:hover .about-logo {
    transform: scale(1.05);
    opacity: 1;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--text-primary);
    font-size: 0.8rem;
}

/* Center the 4th card (Void Store) */
@media (min-width: 992px) {
    .store-card-centered {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 400px;
        width: 100%;
    }
}

/* =========================================
   STORE PAGE
   ========================================= */
.store-header {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: left;
}

.store-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.store-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 24px;
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    border-color: #00bfff;
    /* Light blue border */
    color: #00bfff;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.store-item {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-item-image {
    width: 100%;
    height: 150px;
    background: repeating-linear-gradient(45deg, #111, #111 5px, #1a1a1a 5px, #1a1a1a 10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.store-item-info h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.store-item-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-item-price {
    font-family: var(--font-display);
    color: #00bfff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: auto;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    display: block;
    overflow: hidden;
    group: hover;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.project-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-overlay i {
    transform: translateY(0);
}

.project-info {
    padding: 2rem;
}

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

.project-tags span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Locked Project */
.locked-project {
    cursor: not-allowed;
}

.locked-project:hover {
    transform: none;
    border-color: var(--glass-border);
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.lock-overlay span {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================
   FOOTER
   ========================================= */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--glass-blur);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .about-visual {
        min-height: 300px;
    }
}

/* =========================================
   DYNAMIC ITEM VIEW
   ========================================= */
.item-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* =========================================
   MAINTENANCE PAGE
   ========================================= */
.maintenance-card {
    padding: 4rem;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
}

.maintenance-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-icon-wrapper i {
    font-size: 3rem;
    color: var(--text-primary);
    z-index: 2;
}

.spin-ring {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.spin-ring.ring-1 {
    top: 0; left: 0; right: 0; bottom: 0;
    border: 3px solid transparent;
    border-top-color: #00bfff;
    border-bottom-color: #00bfff;
    animation: spin 2s linear infinite;
}

.spin-ring.ring-2 {
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 2px solid transparent;
    border-left-color: rgba(255,255,255,0.4);
    border-right-color: rgba(255,255,255,0.4);
    animation: spin 3s linear infinite reverse;
}

.maintenance-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    /* Hamburger Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: -1;
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 2;
    }

    /* Typography & Spacing */
    .hero-title {
        font-size: 3rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Grids to 1 Column */
    .about-grid,
    .contact-wrapper,
    .item-view-grid,
    .projects-grid,
    .services-grid,
    .store-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-wrapper {
        padding: 1.5rem;
    }

    .contact-info, .contact-form {
        width: 100%;
        text-align: left;
    }

    /* Maintenance Page Fixes */
    .maintenance-card {
        padding: 2rem;
    }

    .maintenance-title {
        font-size: 2rem;
    }
}

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

@media (max-width: 768px) {
    /* Hide Custom Cursor on Mobile */
    .custom-cursor {
        display: none !important;
    }
    
    body, a, button, .project-card, .service-card, .filter-btn, .btn {
        cursor: auto !important;
    }
}