* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

:root {
    --primary-color: #101418;
    --secondary-color: #7996ab;
    --accent: #5eead4;
    --accent-dim: rgba(94, 234, 212, 0.16);
    --background-color: #0a0d10;
    --primary-text: #e4e7ea;
    --secondary-text: #8a94a0;
    --card-background: #14191e;
    --card-border: #232a30;
    --card-border-soft: rgba(255, 255, 255, 0.06);
    --card-shadow: rgba(0, 0, 0, 0.35);
    --page-color: #0c0f12;
    --panel-background: #10141a;
    --mono-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-color: var(--page-color);
    background-image:
        radial-gradient(circle, rgba(94, 234, 212, 0.10) 1px, transparent 1.2px),
        linear-gradient(90deg, rgba(121, 150, 171, 0.025) 1px, transparent 1px),
        linear-gradient(0deg, rgba(121, 150, 171, 0.025) 1px, transparent 1px);
    background-size: 32px 32px, 32px 32px, 32px 32px;
    background-position: 0 0, 0 0, 0 0;
    background-attachment: fixed;

    color: var(--primary-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Top Menu */

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(10, 13, 16, 0.85);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
}

.nav-inner {
    width: min(1000px, calc(100% - 40px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Bitcount Single", system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: normal;
    color: #fafafa;
    text-decoration: none;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px 1px var(--accent-dim);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

    .nav-links a {
        position: relative;
        text-decoration: none;
        color: var(--primary-text);
        font-weight: 500;
        transition: color 0.2s ease-in-out;
        border-radius: 7px;
        padding: 8px 12px;
    }

        .nav-links a:hover {
            color: var(--page-color);
            background: var(--accent);
        }

        .nav-links a.active {
            color: var(--accent);
            font-weight: 600;
        }

        .nav-links a.active::after {
            content: "";
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: 2px;
            height: 2px;
            background: var(--accent);
            border-radius: 2px;
        }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 7px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
    border-color: var(--accent);
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Font */

.tiny5-regular {
    font-family: "Tiny5", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.bitcount-single-title {
    font-family: "Bitcount Single", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: normal;
}

.normal-text {
    font-family: Inter, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--primary-text);
}

.bold-text {
    font-family: Inter, system-ui, sans-serif;
    font-weight: 900;
    font-style: normal;
}

.eyebrow {
    display: block;
    font-family: var(--mono-font);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

    .eyebrow::before {
        content: "// ";
        color: var(--secondary-text);
    }

/* content */

.content-container {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 10px 100px 60px;
    background: transparent;
    flex-grow: 1;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    position: relative;
    background: var(--card-background);
    border: 1px solid var(--card-border-soft);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--card-shadow);
    padding: 20px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

    .project-card:hover {
        transform: translateY(-4px);
        border-color: var(--accent);
        box-shadow: 0 8px 20px var(--card-shadow);
    }

.projects-section {
    margin-top: 40px;
}

/* team */

.team {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.member-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}

.member {
    position: relative;
    text-align: center;
    padding: 25px 12px;
    background: var(--card-background);
    border: 1px solid var(--card-border-soft);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.member-link:hover .member,
.member-link:focus-visible .member {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 24px var(--card-shadow), 0 0 0 1px var(--accent-dim);
}

.member-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.avatar-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 15px;
    border-radius: 8px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

.member-link:hover .avatar-image {
    transform: scale(1.03);
}

.member h3 {
    margin: 8px 0;
    color: #e0e0e0;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.5vw, 1.15rem);
    white-space: nowrap;
}

.member p {
    margin: 0;
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.35;
}

.view-profile {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--mono-font);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.view-profile::after {
    content: " \2192";
}

.header-title {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 15px 20px 5px;
    color: var(--primary-text);
}

.about-us p,
.ambitions p {
    color: var(--secondary-text);
    margin-top: 5px;
    font-size: 1rem;
    line-height: 1.5;
}

.ambitions h3,
.about-us h3 {
    color: var(--primary-text);
    margin-bottom: 5px;
    padding-bottom: 5px;
    font-weight: 500;
    text-decoration: none;
    width: fit-content;
    border-bottom: 2px solid var(--secondary-color);
}

/* Hero (index) */

.hero {
    padding: 60px 0 30px;
    text-align: center;
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-text);
}

.hero-subtitle {
    max-width: 560px;
    margin: 14px auto 0;
    color: var(--secondary-text);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--card-border);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #06201b;
    border-color: var(--accent);
}

.btn-primary:hover {
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.btn-ghost {
    color: var(--primary-text);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Section panels — background + a slight hint of color per section */

.section-panel {
    position: relative;
    z-index: 0;
    overflow: hidden;
    margin: 30px 0;
    background: var(--panel-background);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 44px clamp(20px, 6vw, 56px);
}

.section-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 18% 15%, var(--panel-tint, transparent) 0%, transparent 55%);
    pointer-events: none;
}

.section-panel--accent {
    --panel-tint: rgba(94, 234, 212, 0.10);
}

.section-panel--muted {
    --panel-tint: rgba(121, 150, 171, 0.10);
}

/* Section divider */

.section-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin: 10px 0 4px;
    color: var(--secondary-text);
}

.section-divider span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: var(--card-border);
}

/* Company logos */

.logos-section {
    margin: 50px 0 30px;
    text-align: center;
}

.logo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.logo-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 10px;
    background: var(--card-background);
    border: 1px dashed var(--card-border-soft);
    border-radius: 10px;
    color: var(--secondary-text);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.logo-tile:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.logo-tile svg {
    width: 26px;
    height: 26px;
    opacity: 0.8;
}

.logo-tile img {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 8px 14px;
}

.logo-tile span {
    font-family: var(--mono-font);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

/* Value sections (Why pick us / Core values) */

.value-section {
    margin: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 1.6rem;
    margin: 6px 0 14px;
    color: var(--primary-text);
}

.section-lead {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--secondary-text);
    line-height: 1.6;
}

.feature-grid,
.values-grid {
    text-align: left;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.feature-card {
    background: var(--card-background);
    border: 1px solid var(--card-border-soft);
    border-radius: 10px;
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.feature-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-dim);
    color: var(--accent);
    margin-bottom: 14px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--primary-text);
}

.feature-card p {
    margin: 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.value-card {
    padding: 4px 0 4px 16px;
    border-left: 2px solid var(--card-border-soft);
}

.value-index {
    font-family: var(--mono-font);
    color: var(--accent);
    font-size: 0.8rem;
}

.value-card h3 {
    margin: 8px 0 6px;
    color: var(--primary-text);
    font-size: 1rem;
}

.value-card p {
    margin: 0;
    color: var(--secondary-text);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Scroll-triggered underline reveal */

.reveal-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.reveal-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-underline.in-view::after {
    transform: scaleX(1);
}

/* Footer */

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--card-border);
    background: rgba(10, 13, 16, 0.6);
}

.footer-inner {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-tagline {
    max-width: 280px;
    margin-top: 10px;
    color: var(--secondary-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-family: var(--mono-font);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
}

.footer-col a {
    display: block;
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
    border-top: 1px solid var(--card-border);
    color: var(--secondary-text);
    font-family: var(--mono-font);
    font-size: 0.78rem;
}

.footer-bottom .dots {
    display: flex;
    gap: 6px;
}

.footer-bottom .dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.footer-bottom .dots span:nth-child(2) {
    background: var(--accent);
}

/* Profile page */

.breadcrumb {
    margin-top: 18px;
    font-family: var(--mono-font);
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--secondary-text);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.profile-hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
    margin: 30px 0 40px;
    padding: 30px;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 14px;
}

.profile-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.profile-name {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--primary-text);
}

.profile-role {
    margin: 6px 0 18px;
    color: var(--secondary-text);
}

.profile-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    color: var(--primary-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.profile-section {
    margin: 34px 0;
}

.profile-section h2 {
    font-size: 1.05rem;
    color: var(--primary-text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.skills-tags li {
    font-family: var(--mono-font);
    font-size: 0.82rem;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 5px;
    padding: 6px 10px;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px dashed var(--card-border);
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    overflow: hidden;
}

.video-embed iframe,
.video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed .video-placeholder-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--mono-font);
    font-size: 0.8rem;
    text-align: center;
    padding: 0 20px;
}

.video-embed .play-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--secondary-text);
    text-decoration: none;
    font-family: var(--mono-font);
    font-size: 0.85rem;
}

.back-link:hover {
    color: var(--accent);
}

/* Mobile */

@media (max-width: 768px) {
    .team {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-container {
        padding: 10px 20px;
    }

    .section-panel {
        padding: 32px 20px;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }

    .profile-avatar {
        max-width: 220px;
        margin: 0 auto;
    }

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

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 0 20px;
        background: var(--background-color);
        border-bottom: 1px solid var(--card-border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    }

    .nav-links.is-open {
        max-height: 300px;
        opacity: 1;
        padding: 12px 20px 20px;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .team {
        grid-template-columns: 1fr;
    }
}
