:root {
    --bg: #111214;
    --panel: #17191d;
    --panel-2: #1f2127;
    --text: #f3f4f6;
    --muted: #bcc2cc;
    --red: #b31d24;
    --red-soft: #ea4b52;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 8%, rgba(234, 75, 82, 0.12), transparent 28rem),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.05), transparent 24rem),
        #0b0d11;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

body.loading .site-shell {
    display: none !important;
}

body.loading {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        radial-gradient(circle at 50% 42%, rgba(234, 75, 82, 0.1), transparent 30rem),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        #080a0e;
    background-size: auto, 38px 38px, 38px 38px, auto;
    z-index: 99999;
    transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s ease;
    animation: loaderBgMove 7s linear infinite;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.015);
}

.loader-card {
    width: min(430px, calc(100vw - 32px));
    padding: 1.85rem;
    border-radius: 18px;
    border: 1px solid rgba(234, 75, 82, 0.24);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 34%),
        rgba(15, 17, 22, 0.94);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.48),
        0 0 34px rgba(234, 75, 82, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    animation: loaderCardIn 0.6s ease both;
}

.loader-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 121, 127, 0.9), rgba(234, 75, 82, 0.8), transparent);
    animation: loaderScan 1.8s ease-in-out infinite;
}

.loader-card::after {
    content: '';
    position: absolute;
    width: 9rem;
    height: 9rem;
    right: -5rem;
    top: -5rem;
    border-radius: 999px;
    background: rgba(234, 75, 82, 0.16);
    filter: blur(18px);
}

.loader-brand {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #0f1117;
    box-shadow: 0 14px 28px rgba(234, 75, 82, 0.22);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.loader-brand span {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.loader-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-label {
    color: var(--red-soft);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
    margin: 0.2rem 0 -0.2rem;
    position: relative;
    z-index: 1;
}

.loader-card h2 {
    margin: 0;
    font-size: clamp(1.45rem, 4.5vw, 1.95rem);
    line-height: 1.08;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
    position: relative;
    z-index: 1;
}

.loader-files {
    display: flex;
    justify-content: flex-start;
    gap: 0.35rem;
    flex-wrap: wrap;
    min-height: 1.45rem;
    margin-top: -0.15rem;
    position: relative;
    z-index: 1;
}

.loader-files span {
    padding: 0.2rem 0.4rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #9fa7b4;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.2s;
}

.loader-files span.active {
    color: #ffd4d6;
    border-color: rgba(234, 75, 82, 0.2);
    background: rgba(234, 75, 82, 0.08);
}

.loader-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.loader-status strong {
    color: #fff;
    font-size: 1rem;
}

.loader-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.loader-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, #ffb1a8, #ff5f63 52%, #b31d24);
    transition: width 0.35s cubic-bezier(.4,1.7,.7,1.01);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(234, 75, 82, 0.8);
}

.loader-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.4) 48%, transparent 58% 100%);
    animation: loadPulse 1s linear infinite;
}

.loader-tip {
    color: var(--muted);
    font-size: 0.86rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

@keyframes loaderBgMove {
    0% { background-position: center, 0 0, 0 0, center; }
    100% { background-position: center, 38px 38px, 38px 38px, center; }
}

@keyframes loaderCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loaderScan {
    0%, 100% {
        opacity: 0.35;
        transform: translateX(-30%);
    }

    50% {
        opacity: 1;
        transform: translateX(30%);
    }
}

.site-shell {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.site-shell.visible {
    opacity: 1;
    pointer-events: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 13, 17, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.navbar {
    width: min(1040px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.9rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #fff;
}

.logo-image {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo-text span {
    color: var(--red-soft);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

main {
    width: min(1040px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
}

.hero-shell {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.hero-card,
.info-card,
.footer-shell {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(23, 25, 29, 0.98), rgba(17, 19, 24, 0.96));
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 1.55rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(2rem, 3.6vw, 3.05rem);
    line-height: 1.02;
    color: #fff;
}

.hero-description,
.hero-panel p,
.section-heading p,
.info-card p {
    color: var(--muted);
    margin: 0;
}

.eyebrow {
    color: var(--red-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 800;
    margin: 0 0 0.7rem;
}

.hero-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    background: linear-gradient(180deg, #ff766d, #d92835);
    color: #fff;
    box-shadow: 0 14px 26px rgba(217, 40, 53, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, transparent 60%, #fff2 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    filter: brightness(1.08) saturate(1.2);
    transform: scale(1.04);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: transparent;
    border: 1.5px solid var(--red-soft);
    color: var(--red-soft);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--red-soft);
    color: #fff;
    border-color: #fff;
    transform: scale(1.04);
}

.hero-panel {
    padding: 1.55rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.05rem;
}

.panel-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-pill,
.panel-tag {
    display: inline-flex;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
}

.status-pill {
    background: rgba(234, 75, 82, 0.16);
}

.panel-tag {
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.hero-panel h2 {
    margin: 0;
    font-size: 1.34rem;
    line-height: 1.18;
    color: #fff;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.panel-grid div {
    padding: 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.panel-grid strong {
    color: #fff;
    font-size: 1.2rem;
}

.panel-grid span {
    color: var(--muted);
    font-size: 0.85rem;
}

.content-section {
    margin-top: 2.2rem;
    scroll-margin-top: 5rem;
}

.section-heading {
    margin-bottom: 1rem;
    max-width: 760px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
    color: #fff;
    line-height: 1.15;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.about-card,
.about-stack div {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(23, 25, 29, 0.98), rgba(17, 19, 24, 0.96));
    box-shadow: var(--shadow);
}

.about-card {
    padding: 1.35rem;
}

.about-card p {
    color: var(--muted);
    margin: 0;
}

.about-lead {
    color: #fff !important;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.55;
}

.about-card p + p {
    margin-top: 1rem;
}

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

.about-highlights span {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.62rem 0.75rem;
    border: 1px solid rgba(234, 75, 82, 0.18);
    border-radius: 12px;
    background: rgba(234, 75, 82, 0.08);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.about-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.about-stack div {
    padding: 1rem 1rem 1rem 1.15rem;
    position: relative;
    overflow: hidden;
}

.about-stack div::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #ff766d, #d92835);
}

.about-stack span {
    display: block;
    color: var(--red-soft);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.about-stack strong {
    display: block;
    color: #fff;
    line-height: 1.35;
    font-size: 0.98rem;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.info-card {
    padding: 1.2rem;
}

.service-card {
    min-height: 190px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 310px;
}

.info-card h3 {
    margin: 0 0 0.45rem;
    color: #fff;
}

.service-card i {
    font-size: 1.55rem;
    color: var(--red-soft);
    margin-bottom: 0.7rem;
    display: inline-block;
}

.project-tag {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(234, 75, 82, 0.14);
    color: #ffd8da;
    font-size: 0.8rem;
    margin: 0 0 0.7rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    margin-top: auto;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 118, 109, 0.58);
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 118, 109, 0.95), rgba(217, 40, 53, 0.95));
    box-shadow: 0 14px 28px rgba(217, 40, 53, 0.22);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover {
    filter: brightness(1.08) saturate(1.15);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(217, 40, 53, 0.3);
}

.project-tech {
    width: 100%;
    margin-top: 0.2rem;
    padding: 0.9rem;
    border: 1px solid rgba(234, 75, 82, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
        rgba(234, 75, 82, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-tech-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    color: #ffd8da;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-tech-label i {
    color: var(--red-soft);
    font-size: 0.82rem;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.95rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(255, 118, 109, 0.34);
    border-radius: 999px;
    background: rgba(255, 118, 109, 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.footer-shell {
    width: min(1040px, calc(100% - 2rem));
    margin: 0 auto 2rem;
    padding: 1.45rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.footer-shell h2 {
    margin: 0 0 0.45rem;
    color: #fff;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

@keyframes loadPulse {
    from {
        transform: translateX(-10%);
    }

    to {
        transform: translateX(90%);
    }
}

@media (max-width: 900px) {
    .hero-shell,
    .card-grid,
    .about-layout,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .panel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .navbar,
    .footer-shell,
    .footer-actions {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy,
    .hero-panel,
    .info-card,
    .footer-shell {
        padding: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

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