:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --primary-red: #E30613; /* River Plate Redish */
    --accent-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glow-color: rgba(227, 6, 19, 0.5);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.btn-primary {
    border: 1px solid var(--primary-red);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-primary:hover {
    background: var(--primary-red);
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../assets/chaos_background.png') no-repeat center center/cover;
    opacity: 0.2;
    filter: blur(5px);
    z-index: -1;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
}

.glitch {
    position: relative;
    color: var(--accent-white);
}

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    4.16% { clip: rect(91px, 9999px, 43px, 0); }
    /* ... shortened for brevity, usually more keyframes ... */
    100% { clip: rect(67px, 9999px, 62px, 0); }
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #ccc;
}

.btn-cta {
    background: var(--primary-red);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.4);
}

/* Sections General */
section {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-white);
}

/* Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.text-block {
    flex: 1;
}

.image-block {
    flex: 1;
}

.image-block img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

/* Chaos Section */
.chaos-list, .solution-list {
    list-style: none;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.chaos-list li, .solution-list li {
    margin-bottom: 0.8rem;
}

.tilt-effect {
    transform: rotate(-3deg);
    border: 2px solid #ff4444;
}

.glow-effect {
    border: 2px solid #44ff44;
    box-shadow: 0 0 30px rgba(68, 255, 68, 0.2);
}

/* Services Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, background 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.btn-submit {
    padding: 1rem;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-red);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    color: #555;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .split-layout.reverse {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}
