/* Local Font Imports */
@font-face {
    font-family: 'Aldrich';
    src: url('../assets/fonts/Aldrich-Regular.woff2') format('woff2'),
        url('../assets/fonts/Aldrich-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../assets/fonts/DMSans-Regular.woff2') format('woff2'),
        url('../assets/fonts/DMSans-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../assets/fonts/DMSans-Medium.woff2') format('woff2'),
        url('../assets/fonts/DMSans-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../assets/fonts/DMSans-Bold.woff2') format('woff2'),
        url('../assets/fonts/DMSans-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    --c-bg-top: #010812;
    --c-bg-bot: #01050E;
    --c-accent: #2AB8FF;
    --c-yellow: #FFFF00;
    --c-white: #FFFFFF;
    --font-heading: 'Aldrich', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --padding-x: 3rem;
}

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

body {
    background: linear-gradient(180deg, var(--c-bg-top) 0%, var(--c-bg-bot) 100%);
    color: #ffffff;
    font-family: var(--font-body);
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

a, button { cursor: pointer; }

#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

/* Header & Hover Logic */
.main-header {
    padding: 2rem var(--padding-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

.logo {
    height: 24px;
    transition: filter 0.3s ease, opacity 0.3s ease;
    opacity: 0.3;
}

.logo-container:hover .logo {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--c-white));
}

.header-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    opacity: 0.3;
}

.social-link:hover {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--c-white));
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 var(--padding-x);
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: blurIn 1s ease-out;
}

.highlight-text {
    color: var(--c-accent);
    border-right: 2px solid var(--c-accent);
    padding-right: 4px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #dadada;
    max-width: 720px;
    line-height: 1.6;
    animation: fadeIn 1.5s ease-out;
}

/* Footer always visible at bottom */
.main-footer {
    opacity: 0.5;
    padding: 1.5rem var(--padding-x);
    text-align: center;
    font-size: 0.5rem;
    color: #acacac;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    flex-shrink: 0;
    margin-top: auto;
}

/* --- Alien Logic --- */
.alien-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Robust centering */
    width: 600px;
    z-index: -1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alien-bg {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
}

/* Monochrome Subtle but Conspicuous Glitch */
.glitch-active .alien-bg {
    animation: mono-glitch 0.6s steps(1) forwards;
    filter: brightness(4) contrast(2) grayscale(1);
}

@keyframes mono-glitch {
    0% { clip-path: inset(80% 0 1% 0); transform: translateX(-40px) scaleY(1.2); }
    15% { clip-path: inset(10% 0 80% 0); transform: translateX(40px) scaleY(0.8); }
    30% { clip-path: inset(40% 0 45% 0); transform: translateX(-60px); }
    45% { clip-path: inset(0% 0 90% 0); transform: translateX(20px); }
    60% { clip-path: inset(50% 0 5% 0); transform: translateX(-30px) skewX(15deg); }
    80% { clip-path: inset(15% 0 15% 0); transform: translateX(50px) skewX(-15deg); }
    100% { clip-path: inset(0 0 0 0); transform: translateX(0); filter: brightness(1) grayscale(0); }
}

@keyframes blurIn { from { filter: blur(10px); opacity: 0; } to { filter: blur(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    :root { --padding-x: 1.5rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .alien-container { width: 85%; }
    .hero-section { justify-content: flex-start; padding-top: 20vh; }
}
