:root {
    --bg-base: #050505;
    --bg-surface: #111;
    --bg-glass: rgba(17, 17, 17, 0.7);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-primary: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --accent-secondary: #ff0055;
    --font-heading: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1px;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 0 0 10px var(--accent-glow);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--accent-primary);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 80px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 15px var(--accent-glow), inset 0 0 15px var(--accent-glow);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-primary);
    z-index: -1;
    transition: var(--transition);
}

.btn:hover {
    color: var(--bg-base);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn:hover::before {
    width: 100%;
}

/* Content Sections */
.content-section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
    background: var(--bg-base);
}

.content-section:nth-of-type(even) {
    background: linear-gradient(to right, #0a0a0a, #111, #0a0a0a);
}

.content-section h2 {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 80px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse > * {
    direction: ltr;
}

.text-content {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.text-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-content h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.text-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.image-content {
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: var(--transition);
    border-radius: 4px;
    overflow: hidden;
}

.image-content.visible {
    opacity: 1;
    transform: scale(1);
}

.image-content img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition);
}

.image-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

.image-content:hover img {
    filter: brightness(1) contrast(1.1);
    transform: scale(1.03);
}

/* Footer */
footer {
    background: #000;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 2;
}

footer p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-primary);
}

footer a:hover {
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Responsive */
@media (max-width: 992px) {
    .content-block, .content-block.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }
    
    .hero-content {
        text-align: center;
        margin: 80px auto 0;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* In a real app we'd have a hamburger menu, keeping it simple for static */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
