@font-face {
    font-family: 'Enchanted Land';
    src: url('Enchanted Land.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent-red: #8a0303;
    --border-color: #333;
    --font-heading: 'Enchanted Land', serif;
    --font-body: 'Share Tech Mono', monospace;
    --concrete-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' fill='%23050505'/%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

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

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

h1, h2, h3, h4, .glitch-text {
    font-family: var(--font-heading);
    letter-spacing: 3px;
    word-spacing: 15px;
    text-transform: uppercase;
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(138, 3, 3, 0.4), 0 0 20px rgba(138, 3, 3, 0.2);
}

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

a:hover {
    color: var(--accent-red);
}

/* Nav Menu */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    height: 140px;
    width: auto;
    transition: transform 0.3s ease;
    mix-blend-mode: lighten; /* Using lighten to try avoiding non-pure-black boxes */
    /* Removed filter if any, strictly ensuring blend mode works */
}
.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s;
}

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

.nav-links li a.active {
    color: var(--accent-red);
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    font-family: var(--font-body);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-color);
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color); /* Overlaps main text momentarily */
    color: var(--accent-red); /* Ensure glitch ghosts are ALSO blood red */
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip-path: inset(44px 0 calc(100% - 56px) 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 cyan;
    clip-path: inset(44px 0 calc(100% - 56px) 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0%   { clip-path: inset(21px 0 calc(100% - 86px) 0); }
    10%  { clip-path: inset(61px 0 calc(100% - 84px) 0); }
    20%  { clip-path: inset(32px 0 calc(100% - 67px) 0); }
    30%  { clip-path: inset(57px 0 calc(100% - 57px) 0); }
    40%  { clip-path: inset(84px 0 calc(100% - 49px) 0); }
    50%  { clip-path: inset(26px 0 calc(100% - 73px) 0); }
    60%  { clip-path: inset(59px 0 calc(100% - 86px) 0); }
    70%  { clip-path: inset(82px 0 calc(100% - 85px) 0); }
    80%  { clip-path: inset(78px 0 calc(100% - 16px) 0); }
    90%  { clip-path: inset(89px 0 calc(100% - 35px) 0); }
    100% { clip-path: inset(46px 0 calc(100% - 9px)  0); }
}

@keyframes glitch-anim2 {
    0%   { clip-path: inset(72px 0 calc(100% - 95px) 0); }
    10%  { clip-path: inset(10px 0 calc(100% - 68px) 0); }
    20%  { clip-path: inset(50px 0 calc(100% - 32px) 0); }
    30%  { clip-path: inset(41px 0 calc(100% - 91px) 0); }
    40%  { clip-path: inset(27px 0 calc(100% - 81px) 0); }
    50%  { clip-path: inset(98px 0 calc(100% - 12px) 0); }
    60%  { clip-path: inset(46px 0 calc(100% - 73px) 0); }
    70%  { clip-path: inset(55px 0 calc(100% - 60px) 0); }
    80%  { clip-path: inset(32px 0 calc(100% - 99px) 0); }
    90%  { clip-path: inset(11px 0 calc(100% - 42px) 0); }
    100% { clip-path: inset(80px 0 calc(100% - 45px) 0); }
}

/* Sections */
main {
    padding-top: 180px; /* Vastly increased to prevent overlap with the newly enlarged logo */
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 0 15px var(--accent-red);
    transform: translateY(-3px);
}

/* Footer / Global Contact */
footer {
    background: rgba(0, 0, 0, 0.7); /* Lighter and slightly transparent to blend smoothly */
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    backdrop-filter: blur(10px);
}

.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
}

.contact-quick {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Utilities */
.en { display: block; }
.es { display: none; }
body.lang-es .en { display: none; }
body.lang-es .es { display: block; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5,5,5,0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        border-bottom: 1px solid var(--accent-red);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
}
