:root {
    --bg: #0b0b0b;
    --red: #8b0000;
    --red-soft: rgba(139, 0, 0, 0.35);
    --text: #f5f5f5;
    --muted: #b5b5b5;
}

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

body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* SECTIONS */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
}

.section.dark {
    background: linear-gradient(180deg, #0b0b0b, #120000);
}

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

.content.narrow {
    max-width: 800px;
}

/* HERO */
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
}

.hero h1 span {
    color: var(--red);
}

.tagline {
    margin-top: 1rem;
    font-size: 1.9rem;
    color: var(--muted);
}

.tagline.fade-in {
    font-size: 2rem;
}

/* HEADINGS */
h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h2 span {
    color: var(--red);
}

h3 {
    margin-bottom: 0.5rem;
    color: var(--red);
}

/* PILLARS */
.pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.pillars span {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--red-soft);
    border-radius: 30px;
    font-size: 0.9rem;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    border: 1px solid var(--red-soft);
    background: rgba(255, 255, 255, 0.02);
}

/* CONTACT */
.contact-block {
    margin-bottom: 2rem;
}

a {
    color: var(--red);
    text-decoration: none;
}

/* FOOTER */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--red-soft);
}

footer .small {
    color: var(--muted);
    font-size: 0.85rem;
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.logo {
    width: 130px;
    max-width: 40vw;
    filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.35));
}

/* HERO */
.hero {
    justify-content: center;
    text-align: center;
}

.typing {
    color: #ffffff !important;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.10em;
}

.cursor {
    color: var(--red);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.fade-in {
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 2.5s;
}

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

/* ABOUT */
.about h2 {
    font-size: 2.6rem;
}

.about .lead {
    font-size: 1.25rem;
    margin: 2rem 0;
    color: #e0e0e0;
}

/* ABOUT DARK PANEL */
.about.dark {
    background: linear-gradient(180deg,
            rgba(15, 0, 0, 0.95),
            rgba(10, 0, 0, 0.95));
    border-top: 1px solid rgba(139, 0, 0, 0.25);
    border-bottom: 1px solid rgba(139, 0, 0, 0.25);
}

.about.dark .content {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.015);
    box-shadow: inset 0 0 60px rgba(139, 0, 0, 0.08);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.pillars div {
    padding: 1.2rem;
    border-left: 3px solid var(--red);
    background: rgba(255, 255, 255, 0.03);
}

/* SERVICES */
.card {
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--red);
}

/* TEXT LOGO */
.text-logo {
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.text-logo .moaa {
    color: #8b0000;
    text-shadow: 0 0 12px rgba(139, 0, 0, 0.6);
}

.text-logo .tech {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.text-logo:hover {
    opacity: 0.85;
}

/* ENHANCED ANIMATED BACKGROUND LINES */
.bg-lines {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        repeating-linear-gradient(115deg,
            rgba(139, 0, 0, 0.18),
            rgba(139, 0, 0, 0.18) 1.5px,
            transparent 1.5px,
            transparent 90px),
        repeating-linear-gradient(115deg,
            rgba(139, 0, 0, 0.08),
            rgba(139, 0, 0, 0.08) 1px,
            transparent 1px,
            transparent 160px);

    animation: moveLinesPrimary 45s linear infinite;
}

@keyframes moveLinesPrimary {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 1200px 0, 600px 0;
    }
}

/* CONTACT FORM */
.contact-form {
    display: grid;
    gap: 1.2rem;
    margin: 2rem 0;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 0, 0, 0.3);
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form button {
    background: #8b0000;
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #a30000;
}

.contact-info {
    margin-top: 2rem;
    color: #ccc;
}

.icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #8b0000;
    filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.6));
}

.section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    width: 3px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #8b0000, transparent);
    opacity: 0.4;
}

/* SVG ICON STYLE */
.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.service-icon path,
.service-icon circle,
.service-icon line {
    stroke: #8b0000;
    stroke-width: 2;
    fill: none;
    filter: drop-shadow(0 0 6px rgba(139, 0, 0, 0.6));
}

/* SERVICE SECTIONS */
.service {
    position: relative;
}

.service h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.service .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e5e5e5;
}

.service p {
    margin-bottom: 1.5rem;
    color: #cfcfcf;
}