/* =========================================
   LEOCONS CORE STYLESHEET
   Theme: Clean Street (Dark / Industrial)
   Author: Sleep Studio
   Version: 1.0.0
   ========================================= */

:root {
    /* --- COLOR PALETTE --- */
    --bg-dark: #050505;       /* Deepest Black */
    --bg-panel: #0a0a0a;      /* Panel Background */
    --bg-light: #121212;      /* Lighter Panel */
    
    --text-main: #ffffff;
    --text-muted: #888888;
    --text-dark: #000000;

    /* --- ACCENTS (STREET NEON) --- */
    --accent-primary: #00ff9d; /* Toxic Green */
    --accent-secondary: #00d4ff; /* Cyber Blue */
    --accent-danger: #ff0055;  /* Street Red */
    --accent-warning: #ffcc00; /* Industrial Yellow */

    /* --- GLASSMORPHISM VARS --- */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.03);
    --blur-strength: 12px;

    /* --- DIMENSIONS & SPACING --- */
    --header-height: 70px;
    --sidebar-width: 280px;
    --container-max: 1240px;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* --- TRANSITIONS --- */
    --trans-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none; /* Custom focus styles used instead */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Oswald', 'Roboto Mono', sans-serif; /* Default stack */
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- CUSTOM SCROLLBAR (CHROME/SAFARI) --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary); 
}

/* --- TEXT SELECTION --- */
::selection {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* =========================================
   BACKGROUNDS & TEXTURES
   ========================================= */

/* The "Street" Grid Background */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    pointer-events: none;
}

/* Dark Overlay for Modals/Loaders */
.overlay-dark {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

/* =========================================
   GLASSMORPHISM PANELS
   ========================================= */

.glass-effect, 
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* A slightly darker/heavier glass for sidebars */
.glass-panel-b {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

/* Hover effect for glass cards */
.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 30, 30, 0.65);
    transition: var(--trans-fast);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.brand-icon {
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.logo-area:hover .brand-icon {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.special-link {
    color: var(--accent-secondary);
}

.nav-link.special-link:hover {
    text-shadow: 0 0 10px var(--accent-secondary);
}

/* Burger Menu (Mobile) */
.burger-menu {
    display: none; /* Shown in mobile.css */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* =========================================
   HERO SECTION STYLES
   ========================================= */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text-wrapper {
    max-width: 600px;
}

.hero-subtitle {
    color: var(--accent-primary);
    font-size: 0.9rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-desc {
    color: var(--text-muted);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 450px;
}

/* 3D Visual Area (Cube placeholder style) */
.hero-visual {
    width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* =========================================
   FEATURES SECTION
   ========================================= */

.features-section {
    padding: 100px 0;
    background: #080808;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.separator-line {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin: 20px auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border: 1px solid #222;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   MODAL SYSTEM
   ========================================= */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-danger);
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    border-top: 1px solid #222;
    padding: 60px 0 30px;
    background: #030303;
    margin-top: auto; /* Push to bottom if content is short */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover, 
.footer-links a.tg-link:hover {
    color: var(--accent-primary);
}

.footer-line {
    width: 100%;
    height: 1px;
    background: #222;
    margin: 40px 0 20px;
}

.code-stats {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #444;
    text-align: right;
}

.status-ok {
    color: var(--accent-primary);
}

/* =========================================
   HELPER CLASSES
   ========================================= */

.text-stroke {
    -webkit-text-stroke: 1px white; /* Fallback defined in typography */
    color: transparent;
}
