@import url("kola.css");

h1 {
    font-family: Kola-Regular !important;
}

:root {
    /* Color Palette */
    --midnight: #17070c;
    --crimson: #dd0f46;
    --highlight: #662030;
    --highlight-text: #ede4df;
    --darker-crimson: #9e0931;
    --burgundy: #8b0428;
    /* --orange: #fff; */
    /* --orange: rgb(254, 176, 142); */
    --orange: #ede4df;
    --peach: #8b0428;
    /* --peach: #ffffff; */

    /* Semantic Color Assignments */
    --bg-primary: #000000;
    --text-primary: var(--orange);
    --text-secondary: var(--peach);
    --heading-primary: var(--crimson);
    --heading-secondary: var(--darker-crimson);
    --accent-primary: var(--crimson);
    --accent-secondary: var(--peach);

    /* transparent variations - orange */
    --orange-alpha-50: rgba(254, 176, 142, 0.5);
    --orange-alpha-30: rgba(254, 176, 142, 0.3);

    /* transparent variations - midnight */
    --midnight-alpha-50: rgb(22, 7, 11, 0.2);
    --midnight-alpha-30: rgb(22, 7, 11, 0.1);

    /* Transparent Variations - Crimson */
    --crimson-alpha-5: rgba(255, 0, 68, 0.05);
    --crimson-alpha-8: rgba(255, 0, 68, 0.08);
    --crimson-alpha-15: rgba(255, 0, 68, 0.15);
    --crimson-alpha-20: rgba(255, 0, 68, 0.2);
    --crimson-alpha-30: rgba(255, 0, 68, 0.3);
    --crimson-alpha-40: rgba(255, 0, 68, 0.4);

    /* Transparent Variations - Burgundy */
    --burgundy-alpha-30: rgba(139, 4, 40, 0.3);
    --burgundy-alpha-60: rgba(139, 4, 40, 0.6);

    /* Transparent Variations - Peach */
    --peach-alpha-20: rgba(254, 176, 142, 0.2);
    --peach-alpha-40: rgba(254, 176, 142, 0.4);
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    overflow: hidden;
}
canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    transition: filter 1.5s ease, opacity 1.5s ease;
    filter: blur(20px);
    opacity: 0.3;
    position: fixed;
    top: 0;
    left: 0;
}
canvas.clear {
    filter: blur(0px);
    opacity: 1;
}
/* Enhanced Styles */
.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#scrollContainer {
    font-family: "IBM Plex Mono", "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
        sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    top: 0px;
    left: 0px;
    position: absolute;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: backdrop-filter 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: var(--heading-primary);
    position: relative;
    letter-spacing: 1px;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--heading-primary);
    transition: width 0.3s ease;
}
.logo:hover::after {
    width: 100%;
}
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}
.nav-links a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-links a:hover::before {
    width: 100%;
}
.nav-links a:hover {
    color: var(--text-primary);
}

.nav-button {
    margin-left: auto;
}

.btn {
    background-color: var(--darker-crimson);
    color: var(--orange);
    padding: 12px 28px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}
.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 72, 121, 0.5);

    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn:hover::before {
    width: 300px;
    height: 300px;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--midnight-alpha-50);
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

section {
    padding: 100px 0;
}
h1 {
    font-size: 100px;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.1;
    font-family: "IBM Plex Mono", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--heading-primary);
}
h2 {
    font-size: 48px;
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    color: var(--heading-primary);
}
/* This is the original H2 underline */
h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--heading-primary), transparent);
}
.contact-section h2 {
    display: block;
    text-align: center;
}
h3 {
    font-size: 26px;
    margin-bottom: 18px;
    font-weight: bold;
    color: var(--heading-secondary);
    letter-spacing: 0.5px;
}
p {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
}

mark {
    background: linear-gradient(to right, var(--highlight) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    color: var(--highlight-text);
    padding: 2px 0;
    transition: none;
}

mark.visible {
    animation: highlightDraw 0.6s ease-out forwards;
}

@keyframes highlightDraw {
    to {
        background-position: 0 0;
    }
}

.hero {
    text-align: center;
    padding-top: 40px;
    margin-bottom: 40px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-description {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 20px;
    line-height: 1.7;
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.card {
    padding: 45px;
    border: 1px solid var(--burgundy-alpha-30);
    transition: all 0.4s ease;
    position: relative;
    background: var(--crimson-alpha-5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    isolation: isolate;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    pointer-events: none;
}
.card:hover {
    border-color: var(--burgundy-alpha-60);
    transform: translateY(-5px);
    background: var(--crimson-alpha-8);
    box-shadow: 0 10px 40px var(--crimson-alpha-15);
}
.card:hover::before {
    border-color: var(--peach-alpha-20);
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
}
.center {
    text-align: center;
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 90%;
    margin: 0 auto;
}
.team-grid .card {
    text-align: center;
}

.crew-bts > .faq-question {
    padding: 0 0;
    font-size: 26px;
    transition: none;
}

.crew-bts > .faq-question:hover {
    color: var(--heading-primary);
    padding-left: 0px;
}

.crew-bts.active > .faq-answer {
    padding-bottom: 0;
    padding-top: 10px;
}

.card:has(.crew-bts) {
    margin-top: 40px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.faq-container {
    max-width: 800px;
    margin: 0px auto 0;
    padding-left: 40px;
    padding-right: 40px;
    background: var(--crimson-alpha-8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--burgundy-alpha-30);
}

.faq-item {
    padding: 0;
    border-bottom: 1px solid var(--crimson-alpha-20);
    transition: all 0.3s ease;
}

.faq-item:last-of-type {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    padding: 30px 0;
    color: var(--heading-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    text-align: left;
}

.faq-question:hover {
    color: var(--heading-primary);
    padding-left: 10px;
}

.faq-icon {
    font-size: 28px;
    font-weight: bold;
    color: var(--heading-primary);
    transition: transform 0.3s ease;
    min-width: 28px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0;
    text-align: left;
}

.faq-answer > * {
    min-height: 0;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    opacity: 0.9;
    padding-bottom: 30px;
}

footer {
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid var(--crimson-alpha-20);
}
footer p {
    opacity: 0.7;
    font-size: 16px;
}

.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.contact-links a:first-child {
    justify-self: end;
}

.contact-links a:last-child {
    justify-self: start;
}

.contact-links a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
}

.contact-links a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-links a:hover {
    transform: translateY(-3px);
}

.contact-links a:hover::after {
    transform: scaleX(1);
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Smooth scroll offset for mobile anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    #scrollContainer {
        overflow-x: hidden;
        scroll-padding-top: 80px;
    }

    h1 {
        font-size: 72px !important;
        padding: 10px;
    }

    h2 {
        font-size: 42px !important;
        padding: 10px;
    }

    h3 {
        font-size: 22px;
    }

    p {
        font-size: 16px;
    }

    .hero-description {
        font-size: 20px !important;
    }

    .hamburger {
        display: flex;
        align-self: center;
    }

    nav {
        align-items: center;
    }

    nav > a:first-child {
        display: flex;
        align-items: center;
    }

    nav > .btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 80px 40px;
        gap: 30px;
        border-left: 1px solid var(--crimson-alpha-20);
        transition: right 0.3s ease;
        backdrop-filter: blur(20px);
        transform: none;
        left: auto;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-btn {
        text-align: center;
        align-self: center;
    }

    .what-we-do-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 20px;
        min-height: 70vh;
    }

    .container {
        padding: 0 15px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 25px;
    }

    .card > div {
        flex-direction: column !important;
        gap: 30px;
    }

    .card video {
        max-width: 100% !important;
        width: 100%;
    }

    .card > div > div {
        width: 100%;
    }

    /* Interactive section video above text on mobile */
    .interactive-content {
        flex-direction: column-reverse !important;
    }

    .interactive-video {
        order: -1;
    }

    .faq-container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }

    .faq-question {
        font-size: 18px;
        padding: 25px 0;
    }

    .faq-question:hover {
        padding-left: 0;
    }

    .faq-icon {
        font-size: 24px;
        min-width: 24px;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 25px;
    }

    .team-grid {
        max-width: fit-content;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card:has(.crew-bts) {
        max-width: fit-content;
    }

    .crew-bts > .faq-question {
        font-size: 18px;
    }

    .contact-links img {
        width: 60px !important;
        height: 60px !important;
    }

    .btn {
        padding: 14px 32px;
        font-size: 16px;
        min-height: 48px;
    }

    canvas.clear {
        opacity: 0.5;
        filter: blur(0px);
    }

    .video-text {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 56px !important;
    }

    h2 {
        font-size: 36px !important;
    }

    .contact-links {
        gap: 30px;
    }
}

.video-text {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.blur-background {
    background: var(--crimson-alpha-8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border: 1px solid var(--crimson-alpha-15);
}
/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-animate.from-left {
    transform: translateX(-50px) translateY(20px);
}
.scroll-animate.from-right {
    transform: translateX(50px) translateY(20px);
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}
#mission p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}
/* --- NEW: Text Reveal Animation --- */
/* 1. Base style for the text to be revealed */
.reveal-text {
    position: relative;
    display: inline-block;
    /* Start with the text hidden */
    color: transparent;
    padding: 20px;
}
/* 2. This is the "bar" that slides */
/* It overrides the default h2::after underline */
.reveal-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Style your bar */
    background: var(--heading-primary);

    /* Start hidden and grow from the left */
    transform: scaleX(0);
    transform-origin: left;

    /* Clear properties from the default h2::after */
    bottom: auto;
    transform-origin: left;
    background: var(--heading-primary);
}
/* 3. Trigger text animation when .visible is added by JS */
.reveal-text.visible {
    animation: reveal-text-content 0.1s forwards;
    /* This delay syncs with the bar animation */
    animation-delay: 0.8s;
}
/* 4. Trigger bar animation when .visible is added by JS */
.reveal-text.visible::after {
    animation: reveal-bar 1.3s cubic-bezier(0.77, 0, 0.175, 1);
    animation-delay: 0.1s; /* Small delay to start */
}
/* 5. Keyframes for the BAR's animation */
@keyframes reveal-bar {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    45% {
        /* Grows to full width */
        transform: scaleX(1);
        transform-origin: left;
    }
    55% {
        /* Pauses, then switches origin to the right */
        transform: scaleX(1);
        transform-origin: right;
    }
    100% {
        /* Shrinks to the right, "un-revealing" */
        transform: scaleX(0);
        transform-origin: right;
    }
}
/* 6. Keyframes for the TEXT's animation */
@keyframes reveal-text-content {
    from {
        color: transparent;
        /* scale: .9;   */
    }
    to {
        /* This should be your final text color */
        color: var(--heading-primary);
        display: show;
        padding: 20px;
        text-shadow: 0 0 3px var(--heading-primary);
        /* scale: .9;   */
    }
}

.blog-post {
    max-width: 75%;
    margin: 0 auto;
}

.blog-post p {
    text-align: left;
}

.blog-post li {
    margin-left: 50px;
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
}

.blog-post ul,
.blog-post ol {
    margin-bottom: 20px;
}

#contact {
    isolation: isolate;
    position: relative;
    z-index: 1;
}
.card {
    isolation: isolate;
}