/*
 * Dead Planet Stylesheet
 * Direction: moody, cinematic, atmospheric sci-fi chronicle.
 * Near-black void background, a single restrained glow accent (not
 * full neon-arcade), a warm rust/amber counterpoint for the
 * "endurance/hope" theme, serif display type for an ancient-chronicle
 * feel paired with a clean sans body face.
 */
:root {
    --color-accent: #3ad6c9;       /* muted teal glow — restrained, not neon */
    --color-accent-warm: #d98a4a;  /* rust/amber — hope, endurance, dust */
    --color-bg: #05070a;           /* near-black void */
    --color-bg-alt: #0c1015;
    --color-card-bg: #10141b;
    --color-text: #e7e3da;         /* warm off-white, not cold blue-white */
    --color-text-dim: #93938c;
    --font-display: 'Cinzel', 'Georgia', serif;
    --font-body: 'Inter', 'Arial', sans-serif;
}

/* General Reset and Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    scroll-behavior: smooth;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2vw;
}

.section-padding {
    padding: 6rem 0;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5vw;
    background: rgba(5, 7, 10, 0.88);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(58, 214, 201, 0.15);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--color-accent);
    text-shadow: 0 0 14px rgba(58, 214, 201, 0.35);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 5px 0;
}

nav a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(58, 214, 201, 0.5);
}

/* Hero Section */
#hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.75) brightness(0.55);
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        linear-gradient(180deg, rgba(5,7,10,0.55) 0%, rgba(5,7,10,0.75) 55%, rgba(5,7,10,0.95) 100%),
        radial-gradient(ellipse at 30% 40%, rgba(58,214,201,0.08), transparent 60%);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    max-width: 640px;
    padding: 0 5vw;
}

h1 {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
    animation: fadeInDown 1s ease-out;
}

h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.5px;
}

p {
    font-size: 1.15rem;
    color: var(--color-text-dim);
    margin-bottom: 2rem;
}

/* Only elements explicitly marked for entrance animation start hidden —
   otherwise ordinary body copy without data-animation would stay
   invisible forever, since main.js only un-hides [data-animation]. */
[data-animation] {
    opacity: 0;
}

.hero-section .content p {
    color: var(--color-text);
    opacity: 0.85;
}

/* Call to Action Button Styling */
.cta-button {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-warm));
    color: #08110f;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse-glow 3s infinite ease-in-out;
}

.cta-button:hover {
    box-shadow: 0 0 24px rgba(58, 214, 201, 0.45);
    transform: translateY(-2px);
}

/* Content Sections */
.dark-text-bg {
    background-color: var(--color-bg);
}

.light-text-bg {
    background-color: var(--color-bg-alt);
}

.video-showcase {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.footage-placeholder {
    flex: 1;
    min-width: 280px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(160deg, #17202b 0%, #0c1015 100%);
    border: 1px solid rgba(58, 214, 201, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.footage-placeholder img,
.footage-placeholder video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    filter: saturate(0.8) brightness(0.75);
}

figcaption {
    display: block;
    padding: 14px 16px;
    color: var(--color-text-dim);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Card Grid (Chronicle section) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2.5rem;
}

.card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 6px;
    border-left: 3px solid var(--color-accent);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.card h3 {
    font-family: var(--font-display);
    color: var(--color-accent-warm);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.card p {
    opacity: 1;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Footer and CTA */
footer {
    text-align: center;
    padding: 2.5rem 0;
    background-color: #030507;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.cta-section {
    text-align: center;
}

.cta-section .subheading {
    opacity: 0.7;
}

#contact form {
    max-width: 420px;
    display: flex;
    gap: 10px;
    margin: 20px auto 0;
}

#contact input[type="email"] {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-grow: 1;
    background-color: var(--color-card-bg);
    color: var(--color-text);
    font-family: var(--font-body);
}

#contact input[type="email"]::placeholder {
    color: var(--color-text-dim);
}

#contact button {
    cursor: pointer;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(58, 214, 201, 0); }
    50% { box-shadow: 0 0 16px rgba(58, 214, 201, 0.35); }
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    #hero { flex-direction: column; text-align: center; height: auto; min-height: 65vh; }
    .content { max-width: 100%; }
    h1 { font-size: 2.4rem; }
    nav ul { padding-top: 10px; gap: 20px; }
    #technology .video-showcase { flex-direction: column; align-items: stretch; }
}
