/* Root Variables */
:root {
    /* Colors */
    --color-black: #050505;
    --color-offblack: #0a0a0a;
    --color-darkgrey: #1a1a1a;
    --color-lightgrey: #a3a3a3;
    --color-white: #f5f5f5;

    /* Fonts */
    --font-serif: 'Cinzel', serif;
    --font-mono: 'Space Mono', monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-standard: all 0.3s ease;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: sans-serif;
    /* Fallback */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--color-white);
    color: var(--color-black);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

/* Utilities */
.container {
    max-width: 80rem;
    /* 7xl equivalent */
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

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

.uppercase {
    text-transform: uppercase;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:text-sm {
        font-size: 0.875rem;
    }

    .md\:text-base {
        font-size: 1rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }

    .md\:mt-0 {
        margin-top: 0;
    }

    .md\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg\:text-8xl {
        font-size: 6rem;
        line-height: 1;
    }
}

/* Animations included from original file */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    /* Adjusted based on visual estimation of previous config */
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%) translateX(-50%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0) translateX(-50%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Effects (Moved from Internal CSS) */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 50;
    opacity: 0.3;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 150px rgba(0, 0, 0, 0.9) inset;
    pointer-events: none;
    z-index: 49;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-offblack);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Border Gradient */
.border-gradient {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.border-gradient:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Semantic Classes */

/* Network Background */
.network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    opacity: 0.3;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 40;
    background-color: rgba(5, 5, 5, 0.8);
    /* black/80 */
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    /* xl */
    letter-spacing: 0.1em;
    /* widests */
    color: var(--color-white);
}

.nav-links {
    display: none;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    /* xs */
    letter-spacing: 0.1em;
    /* widest */
    color: var(--color-lightgrey);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link:hover {
    color: var(--color-white);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #22c55e;
    /* green-500 */
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    /* 10px */
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--color-lightgrey);
    font-size: 0.75rem;
    /* xs */
    letter-spacing: 0.2em;
    /* Slightly reduced tracking for mobile prevent breaking */
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.025em;
    /* tight */
    color: var(--color-white);
    font-size: 2.5rem;
    /* Smaller mobile base font */
    line-height: 1.1;
    text-align: center;
}

@media(min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media(min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-divider {
    height: 1px;
    width: 6rem;
    /* 24 */
    background-color: rgba(255, 255, 255, 0.3);
    margin: 2rem auto;
}

.hero-text {
    font-family: var(--font-mono);
    color: var(--color-lightgrey);
    max-width: 32rem;
    /* lg */
    margin: 0 auto;
    line-height: 1.625;
    /* relaxed */
    font-size: 0.875rem;
    /* sm */
    text-align: center;
    padding: 0 1rem;
}

@media(min-width: 768px) {
    .hero-text {
        font-size: 1rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    /* transform handled by animate-bounce mixed with absolute positioning in CSS is tricky, simpler to keep utility or make specific class */
    /* Using specific class adjustment in @keyframes bounce or override here */
    transform: translateX(-50%);
    opacity: 0.5;
}

/* About Section */
.section-about {
    padding: 6rem 1.5rem;
    /* Reduced vertical padding on mobile from 8rem */
    background-color: var(--color-offblack);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

@media(min-width: 768px) {
    .section-about {
        padding: 8rem 2rem;
    }
}

.glow-orb {
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    /* 96 */
    height: 24rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    filter: blur(100px);
    pointer-events: none;
}

.about-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
}

@media(min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    /* 3xl */
    color: var(--color-white);
    margin-bottom: 2rem;
}

@media(min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.text-body {
    font-family: var(--font-mono);
    color: var(--color-lightgrey);
    font-size: 0.875rem;
    /* sm */
    line-height: 1.75;
}

.border-l-accent {
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    background-color: var(--color-darkgrey);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.feature-card.mt-offset {
    margin-top: 2rem;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    /* lg */
}

.feature-desc {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    /* 10px */
    color: var(--color-lightgrey);
    text-transform: uppercase;
}

/* Projects Section */
.section-projects {
    padding: 8rem 1.5rem;
}

.projects-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 5rem;
    /* space-y-20 roughly */
}

@media(min-width: 768px) {
    .projects-header {
        flex-direction: row;
    }
}

.projects-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    /* 4xl */
    color: var(--color-white);
}

@media(min-width: 768px) {
    .projects-title {
        font-size: 3rem;
    }
}

.projects-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    /* xs */
    color: var(--color-lightgrey);
    margin-top: 1rem;
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

@media(min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.project-card {
    background-color: rgba(26, 26, 26, 0.5);
    /* darkgrey/50 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    transition: all 0.5s ease;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    /* xs */
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
}

.card-icon {
    transition: transform 0.3s ease;
}

.project-card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    /* 2xl */
    color: var(--color-white);
    margin-bottom: 0.5rem;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.project-card:hover .card-title {
    text-decoration: underline;
}

.card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    /* xs */
    color: var(--color-lightgrey);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    /* wide */
}

.card-desc {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    /* sm */
    color: #9ca3af;
    /* gray-400 */
    line-height: 1.625;
}

/* Footer */
.footer {
    background-color: var(--color-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media(min-width: 768px) {
    .footer {
        padding-top: 5rem;
        padding-bottom: 2.5rem;
    }
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.btn-contact {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    overflow: hidden;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: -0.05em;
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.625rem;
    /* 10px */
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media(min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* Semantic Icons */
.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--color-white);
    color: var(--color-white);
    transform: rotate(180deg);
}

/* Logo Images */
.brand-logo-img {
    height: 2rem;
    /* Adjusted to fit navbar */
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 4rem;
    width: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.scroll-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-white);
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-white);
    stroke-width: 1;
}

.project-icon-base {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-white);
}

.footer-icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-white);
    fill: var(--color-white);
    display: block;
    margin: 0 auto 1.5rem auto;
    transform: rotate(180deg);
}

/* Trusted By / Marquee Section */
.section-trusted {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--color-black);
    overflow: hidden;
    position: relative;
    z-index: 10;
    --marquee-gap: 4rem;
    /* Define gap here */
    /* Masking for fade effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    user-select: none;
    gap: var(--marquee-gap);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    gap: var(--marquee-gap);
    min-width: 100%;
    animation: scroll 40s linear infinite;
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: default;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--color-white);
}

.partner-logo-img {
    height: 2.5rem;
    /* Slightly larger than icons */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Ensure logos are white/grayscale initially if they aren't already */
}

.partner-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    letter-spacing: 0.1em;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - var(--marquee-gap)));
    }
}