:root {
    --bg: #07111b;
    --bg-soft: rgba(13, 27, 42, 0.88);
    --panel: rgba(10, 20, 34, 0.82);
    --panel-strong: rgba(14, 24, 39, 0.95);
    --line: rgba(118, 183, 255, 0.18);
    --text: #eef6ff;
    --muted: #9eb6c9;
    --accent: #56c6ff;
    --accent-2: #5ef0c3;
    --live: rgba(231, 58, 70, 0.82);
    --live-soft: rgba(231, 58, 70, 0.18);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(86, 198, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(94, 240, 195, 0.12), transparent 24%),
        linear-gradient(180deg, #06111a 0%, #08131e 40%, #050b12 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.legacy-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.grid {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.grid-line {
    position: absolute;
    background-color: #48c4b7;
    opacity: 0.3;
}

.grid-line.horizontal {
    height: 1px;
    width: 100%;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

.circle-container {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.circle {
    position: absolute;
    border: 2px solid rgba(72, 196, 183, 0.5);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 5s infinite ease-in-out;
    z-index: 2;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #48c4b7;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 4;
}

.tooltip {
    display: none;
    position: absolute;
    background: rgba(72, 196, 183, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 5;
}

.dust-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(72, 196, 183, 0.5);
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

#dustCloud {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(6, 15, 24, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand img {
    width: 154px;
    height: auto;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.lang-switch {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
    border: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.lang-btn.is-active {
    background: linear-gradient(135deg, var(--accent), #3d8cff);
    color: #04131f;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 28px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(11, 24, 38, 0.88), rgba(7, 15, 24, 0.92));
    box-shadow: var(--shadow);
}

.eyebrow,
.section-heading > span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
    margin: 0;
    line-height: 1.02;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    font-weight: 800;
}

.hero-text,
.section-heading p,
.info-card p,
.contact-card p,
.project-card p,
.bullet-list,
.details-list,
.signal-list {
    color: var(--muted);
    line-height: 1.7;
}

.hero-text {
    max-width: 62ch;
    margin: 22px 0 0;
    font-size: 1.05rem;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), #3d8cff);
    color: #04131f;
}

.secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.primary-btn:hover,
.secondary-btn:hover,
.project-card:hover {
    transform: translateY(-2px);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-metrics article,
.panel-card,
.info-card,
.project-card,
.contact-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-metrics article {
    padding: 18px;
    border-radius: 24px;
}

.hero-metrics strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.hero-panel {
    display: flex;
}

.panel-card {
    width: 100%;
    padding: 24px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(14, 24, 39, 0.98), rgba(8, 15, 24, 0.95)),
        linear-gradient(135deg, rgba(86, 198, 255, 0.08), transparent);
}

.signal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #ffdede;
    font-size: 0.92rem;
    font-weight: 700;
}

.signal-dot,
.live-badge span:first-child {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 92, 92, 0.92);
    box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.55);
    animation: pulse 1.6s infinite;
}

.panel-card h2 {
    margin: 0 0 18px;
    font-size: 1.7rem;
    line-height: 1.2;
}

.signal-text {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.75;
}

.signal-list,
.bullet-list {
    padding-left: 18px;
    margin: 0;
}

.metrics-panel {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics,
.metrics2 {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    gap: 14px;
    color: #48c4b7;
    font-size: 1.05rem;
    text-shadow: 0 0 5px rgba(72, 196, 183, 0.8), 0 0 10px rgba(72, 196, 183, 0.5);
}

.metrics2 {
    margin-top: 16px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: metricPulse 5s ease-in-out infinite;
}

.metric-title {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
}

.content-section {
    margin-top: 24px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: rgba(8, 16, 25, 0.74);
    box-shadow: var(--shadow);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading p {
    margin: 14px 0 0;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card,
.contact-card {
    padding: 22px;
    border-radius: 28px;
}

.accent-card {
    background: linear-gradient(180deg, rgba(15, 27, 43, 0.98), rgba(10, 18, 30, 0.95));
}

.info-card h3,
.contact-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.details-list {
    margin: 0;
}

.details-list > div {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.details-list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.details-list dt {
    margin-bottom: 4px;
    color: var(--text);
    font-weight: 700;
}

.details-list dd {
    margin: 0;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(94, 240, 195, 0.2);
    border-radius: 16px;
    background: rgba(94, 240, 195, 0.06);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 250px;
    padding: 22px;
    border-radius: 28px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.project-card:hover {
    border-color: rgba(86, 198, 255, 0.36);
}

.project-card strong {
    margin-top: auto;
    color: var(--accent-2);
}

.project-card img {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 112px;
    height: 112px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
    opacity: 0.8;
}

.featured {
    background:
        linear-gradient(180deg, rgba(67, 16, 20, 0.86), rgba(23, 10, 14, 0.96)),
        radial-gradient(circle at top right, rgba(255, 117, 117, 0.18), transparent 40%);
    border-color: rgba(255, 116, 116, 0.26);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
}

.live-badge {
    background: var(--live-soft);
    color: #ffdcdc;
}

.primary-contact {
    background: linear-gradient(180deg, rgba(12, 30, 47, 0.98), rgba(10, 18, 29, 0.95));
}

.primary-contact a,
.link-list a,
.contact-chip a {
    color: var(--text);
}

.primary-contact a {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 0 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(255, 92, 92, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 92, 92, 0);
    }
}

@keyframes metricPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 1080px) {
    .site-header,
    .hero-section,
    .about-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: static;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero-copy h1 {
        max-width: 14ch;
    }

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

    .metrics,
    .metrics2 {
        flex-wrap: wrap;
    }

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

    .about-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100%, calc(100% - 18px));
        padding-top: 10px;
    }

    .site-header,
    .hero-section,
    .content-section {
        padding: 20px;
        border-radius: 24px;
    }

    .site-header {
        gap: 14px;
    }

    .brand img {
        width: 128px;
    }

    .site-nav {
        gap: 14px;
    }

    .site-nav a {
        font-size: 0.9rem;
    }

    .hero-copy h1,
    .section-heading h2 {
        font-size: clamp(2rem, 11vw, 3.3rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .about-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 220px;
    }

    .metrics,
    .metrics2 {
        flex-direction: column;
        align-items: center;
    }

    .site-footer {
        padding: 0;
        font-size: 0.84rem;
    }
}
