:root {
    --bg-color: #050505;
    /* Obsidian Black */
    --text-color: #e0e0e0;
    --gold: #d4af37;
    /* Antique Gold */
    --gold-dim: #8a7020;
    --blue-kemet: #1a2b4c;
    /* Lapis Lazuli dark */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

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

/* HERO */
/* HERO & VIDEO BG */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    /* No filters, pure video color */
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Very subtle gradient just for bottom text readability, mostly transparent */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* MINIMAL NAV */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

/* HERO TEXT VISIBILITY */
.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #fff;
    margin-right: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.brand-sub {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #e0e0e0;
    /* Whiter */
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding-left: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.nav-right a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    margin-left: 2rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    font-weight: 600;
}

.nav-right a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    margin-left: 2rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    font-weight: 600;
}

.nav-right a:hover {
    color: var(--gold);
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 0;
    /* Centered */
}

.logo-container {
    margin-bottom: 2rem;
    perspective: 1000px;
}

.main-logo {
    max-width: 300px;
    width: 80%;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2));
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.tagline {
    font-family: var(--font-body);
    /* Lynch style: cleaner */
    font-weight: 300;
    font-size: 4rem;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
}

.sub-tagline {
    font-size: 1rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
    color: var(--gold-dim);
    font-size: 2rem;
}

/* PHILOSOPHY */
.philosophy {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #050505, #0a0a0a);
    border-top: 1px solid #222;
}

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

.section-title {
    position: relative;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    /* Tech border */
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    padding-bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -1px 0 red;
    top: 0;
    color: var(--text-color);
    background: var(--bg-color);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 16px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(12px, 9999px, 98px, 0);
    }

    60% {
        clip: rect(55px, 9999px, 2px, 0);
    }

    80% {
        clip: rect(82px, 9999px, 45px, 0);
    }

    100% {
        clip: rect(33px, 9999px, 6px, 0);
    }
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-block p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #ccc;
}

.text-block strong {
    color: var(--gold);
}

.artifact-3d {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.rotating {
    animation: slowRotate 20s linear infinite;
}

/* SHOWCASE */
.showcase {
    padding: 5rem 2rem;
    background: #080808;
}

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

.card {
    background: #111;
    border: 1px solid #222;
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-dim);
}

.card-image {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #222, #111);
    padding: 1rem;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 1.5rem;
    text-align: center;
}

.card-info p {
    color: #999;
    /* Was #666 - increased contrast */
    font-size: 0.95rem;
    /* Slightly larger */
    line-height: 1.5;
}

/* FOOTER */
footer {
    padding: 2rem;
    text-align: center;
    background: #000;
    color: #666;
    font-size: 0.8rem;
    border-top: 1px solid #111;
}

/* CONCEPTUAL FOOTER (Cierre + Respiración) */
.conceptual-footer {
    padding: 8rem 2rem;
    /* Much space */
    background: #050505;
    text-align: center;
    border-top: 1px solid #111;
}

.closure-text {
    font-size: 1.15rem;
    /* Larger for readability */
    color: #888;
    /* Was #666, lighter */
    line-height: 2;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    /* Adjusted for better reading */
    font-weight: 400;
}

.closure-link a {
    text-decoration: none;
    color: #ddd;
    /* Brighter link */
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 0.5rem;
    transition: all 0.3s;
}

.closure-link a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ANIMATIONS */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* GLITCH WRAPPER */
.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.soul-text {
    border-left: 2px solid var(--gold-dim);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    /* Tech font mix */
    font-size: 1rem;
    color: #a0a0a0;
}

.soul-text strong {
    color: #fff;
    text-shadow: 0 0 5px var(--gold);
}

.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* HERO TEXT VISIBILITY */
.hero-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

/* IDENTITY (3 Cols) */
.identity {
    padding: 5rem 2rem;
    background: #0a0a0a;
    border-top: 1px solid #111;
}

.three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.identity-col {
    background: #0e0e0e;
    padding: 2rem;
    border-left: 1px solid var(--gold-dim);
    transition: background 0.3s;
}

.identity-col:hover {
    background: #141414;
}

.col-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}

.col-num {
    font-family: var(--font-heading);
    color: var(--gold-dim);
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.5;
}

.col-header h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

/* IDENTITY Text adjustments */
.identity-col p {
    color: #ccc;
    /* Was #aaa, brighter */
    line-height: 1.7;
    /* More breathing room */
    margin-bottom: 1rem;
    font-size: 1rem;
    /* Standard readable size */
}

/* CONTACT */
.contact {
    padding: 6rem 2rem;
    background: url('../assets/contact_bg.jpg') no-repeat center center;
    background-size: cover;
    text-align: center;
    position: relative;
    /* Dark overlay to ensure text readability */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.2);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-intro {
    color: #ddd;
    /* Brighter for contrast against bg */
    margin-bottom: 2rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.6);
    /* Semi-transparent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    /* Glassmorphism effect */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(10, 10, 10, 0.8);
}

.submit-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* RESPONSIVE */
.content-grid.two-cols {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {

    .content-grid,
    .three-cols,
    .content-grid.two-cols {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .identity-col {
        border-left: none;
        border-top: 1px solid var(--gold-dim);
    }

    .text-block {
        text-align: center;
    }

    .tagline {
        font-size: 1.5rem;
    }
}