:root {
    --bg-base: #0b0c10;
    --bg-panel: rgba(31, 40, 51, 0.4);
    --bg-panel-hover: rgba(40, 50, 65, 0.6);
    --neon-accent: #00f2fe;
    --neon-gradient: linear-gradient(90deg, #00f2fe, #4facfe);
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --error-color: #ff4a4a;
    --success-color: #00e676;
    
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-40: 40px;
    --space-64: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background visual enhancement */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.05), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, .brand-name, .main-nav {
    overflow-wrap: anywhere;
}

h1, h2, h3 {
    margin-top: 0;
    color: #fff;
    line-height: 1.2;
}

a {
    color: var(--neon-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4facfe;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--neon-accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-24);
}

.section {
    padding: var(--space-64) 0;
}

/* Typography Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-12) var(--space-24);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-primary {
    background: var(--neon-gradient);
    color: #0b0c10;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: #0b0c10;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--neon-accent);
    color: var(--neon-accent);
}

.w-full {
    width: 100%;
}

/* Header */
.site-header {
    height: 64px;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-24);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.brand-icon {
    width: 24px;
    height: 24px;
}

.main-nav {
    display: flex;
    gap: var(--space-24);
}

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--neon-accent);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-8);
    color: var(--text-main);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Hero Section */
.hero {
    margin: var(--space-40) var(--space-24);
    padding: var(--space-64) var(--space-24);
    text-align: center;
    border-radius: 8px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--space-24);
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-40) auto;
}

/* Glassmorphism Panel Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Card Styles (Border Accent) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-40);
    min-width: 0;
}

.card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-left: 4px solid var(--neon-accent);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, background 0.3s;
    min-width: 0;
}

.card:hover {
    transform: translateY(-4px);
    background: var(--bg-panel-hover);
}

.card-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-12);
}

.card-body p {
    color: var(--text-muted);
    margin-bottom: var(--space-24);
    flex-grow: 1;
}

/* Supporting section */
.support-section {
    margin: var(--space-64) var(--space-24);
    padding: var(--space-64) var(--space-24);
    border-left: 4px solid var(--neon-accent);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-40);
}

/* Articles and Pages */
.page-content {
    padding: var(--space-40) var(--space-24);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-40);
    border-radius: 8px;
    border-top: 4px solid var(--neon-accent);
    border-left: none;
}

.article-header {
    margin-bottom: var(--space-40);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-8);
}

.meta-data {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: var(--space-24);
}

.hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: var(--space-40);
    border-radius: 4px;
}

.article-body h2 {
    font-size: 1.75rem;
    margin: var(--space-40) 0 var(--space-16) 0;
    color: var(--neon-accent);
}

.article-body h3 {
    font-size: 1.25rem;
    margin: var(--space-24) 0 var(--space-12) 0;
}

.article-body p {
    margin-bottom: var(--space-16);
}

.article-body ul {
    margin-bottom: var(--space-24);
    padding-left: var(--space-24);
}

.article-body li {
    margin-bottom: var(--space-8);
}

/* Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-40);
    min-width: 0;
}

.contact-info, .contact-form-wrapper {
    padding: var(--space-40);
    border-top: 4px solid var(--neon-accent);
    border-radius: 8px;
}

.address-block {
    margin: var(--space-24) 0;
}

.map-block {
    width: 100%;
    height: 250px;
    background: 
        linear-gradient(rgba(11, 12, 16, 0.8), rgba(11, 12, 16, 0.8)),
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(0, 242, 254, 0.1) 19px, rgba(0, 242, 254, 0.1) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(0, 242, 254, 0.1) 19px, rgba(0, 242, 254, 0.1) 20px);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    border-radius: 4px;
    margin-top: var(--space-24);
}

.map-pin {
    width: 20px;
    height: 20px;
    background: var(--neon-accent);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    box-shadow: 0 0 10px var(--neon-accent);
}

.form-group {
    margin-bottom: var(--space-24);
}

label {
    display: block;
    margin-bottom: var(--space-8);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: var(--space-12);
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-accent);
    background: rgba(0,0,0,0.5);
}

.error-msg {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: var(--space-4);
    display: block;
}

.is-invalid input, .is-invalid select, .is-invalid textarea {
    border-color: var(--error-color);
}

.is-invalid .error-msg {
    display: block !important;
}

.form-success {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: var(--space-16);
    margin-top: var(--space-24);
    border-radius: 4px;
}

[hidden] {
    display: none !important;
}

/* Footer */
.site-footer {
    background: #050608;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-64);
    margin-top: var(--space-64);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-40);
    margin-bottom: var(--space-40);
    min-width: 0;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: var(--space-16);
}

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

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.footer-nav a {
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--neon-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-24) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-24);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.cookie-actions {
    display: flex;
    gap: var(--space-16);
    flex-wrap: wrap;
}

.is-hidden {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .site-header {
        height: 52px;
    }
    
    .header-cta {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-base);
        flex-direction: column;
        padding: var(--space-40) var(--space-24);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 900;
    }
    
    .main-nav.is-visible {
        transform: translateX(0);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        margin: var(--space-24) 0;
        padding: var(--space-40) var(--space-16);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 399px) {
    .card {
        border-left: none;
        border-top: 4px solid var(--neon-accent);
    }
    
    .article-body {
        padding: var(--space-24) var(--space-16);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-actions .btn {
        width: 100%;
    }
}