:root {
    --bg-color: #0E1013;
    --bg-soft: rgba(17, 21, 26, 0.9);
    --panel: #1A1D24;
    --panel-strong: #11151A;
    --yellow-primary: #EED452;
    --yellow-soft: #F5E68A;
    --yellow-dim: #B9A33D;
    --green: #A7B7A5;
    --text-main: #FFFFFF;
    --text-muted: #A3A9B6;
    --line: rgba(238, 212, 82, 0.24);
    --shadow-offset: 4px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text-main);
    background: var(--bg-color);
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    display: block;
}

button, input, textarea {
    font: inherit;
}

.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.2);
    z-index: 0;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 19, 16, 0.45), rgba(10, 10, 8, 0.76));
    z-index: 1;
}

.main-shell {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.loaded .main-shell {
    opacity: 1;
    transform: translateY(0);
}

.navbar {
    width: min(1200px, calc(100% - 32px));
    margin: 20px auto 0;
    padding: 16px 22px;
    background: rgba(17, 21, 26, 0.78);
    border: 1px solid rgba(238, 212, 82, 0.46);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 16px;
    backdrop-filter: blur(14px);
    z-index: 10;
    animation: navFloat 0.9s ease-out both;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

@keyframes navFloat {
    0% { opacity: 0; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(216, 179, 106, 0.6);
    background: rgba(255,255,255,0.02);
    padding: 4px;
    border-radius: 999px;
    margin-left: 12px;
    transition: box-shadow 0.3s ease;
}

.lang-switch button {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
}

.lang-switch button.active {
    background: linear-gradient(135deg, #f0d8a0, #d8b36a);
    color: #17130f;
}

.nav-logo {
    text-decoration: none;
    color: #100d08;
    background: linear-gradient(135deg, #e4c06e, #c9952d);
    border: 1px solid rgba(0,0,0,0.25);
    padding: 7px 12px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-logo:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 24px rgba(201, 149, 45, 0.2);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--yellow-primary);
}

.admin-btn-nav {
    text-decoration: none;
    border: 1px solid rgba(216, 179, 106, 0.7);
    background: rgba(255,255,255,0.02);
    color: var(--yellow-soft);
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.admin-btn-nav:hover {
    background: rgba(216, 179, 106, 0.12);
    color: var(--text-main);
    transform: translateY(-1px);
}

.main-container {
    width: min(1200px, calc(100% - 32px));
    margin: 22px auto 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.top-bar {
    background: linear-gradient(90deg, rgba(216, 179, 106, 0.96), rgba(201, 149, 45, 0.9));
    color: #17130d;
    border: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    white-space: nowrap;
    padding: 9px 16px;
    border-radius: 12px;
}

.marquee-content {
    display: inline-block;
    min-width: 100%;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: marquee 18s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hero-panel {
    display: grid;
    grid-template-columns: 0.82fr 1.62fr;
    gap: 28px;
    align-items: center;
    min-height: 340px;
    background: rgba(17, 21, 26, 0.76);
    border: 1px solid rgba(238, 212, 82, 0.34);
    border-radius: 22px;
    padding: 28px 26px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px);
    animation: heroSlideIn 0.9s ease-out both;
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(238, 212, 82, 0.16), transparent 68%);
    pointer-events: none;
}

@keyframes heroSlideIn {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

.brand-slab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 240px;
}

.brand-tag {
    display: inline-flex;
    background: rgba(216, 179, 106, 0.08);
    border: 1px solid rgba(216, 179, 106, 0.6);
    color: var(--yellow-soft);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 6px 10px;
    text-transform: uppercase;
}
.logo-stack {
    position: relative;
    width: 195px;
    height: 195px;
    display: grid;
    place-items: center;
    animation: logoFloat 5s ease-in-out infinite;
}

.rotated-box-shadow,
.rotated-box-main {
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(216, 179, 106, 0.9);
    background: rgba(216, 179, 106, 0.06);
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.22);
    border-radius: 30% 70% 58% 42% / 42% 30% 70% 58%;
}

.rotated-box-shadow {
    transform: rotate(10deg) translate(12px, 12px);
    border-color: rgba(255, 212, 0, 0.45);
}

.rotated-box-main {
    display: grid;
    place-items: center;
    transform: rotate(-6deg);
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 117, 0.12), rgba(17, 21, 26, 0.7) 55%);
}

.rotated-box-main::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: inherit;
}

.rotated-box-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    background: rgba(0,0,0,0.2);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kicker {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: var(--yellow-primary);
    text-transform: uppercase;
    font-weight: 700;
}

.hero-copy h1 {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: clamp(2.2rem, 3vw, 4.2rem);
    line-height: 0.92;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
}

.hero-copy h1 span {
    display: block;
    color: var(--yellow-primary);
    font-family: inherit;
}

.hero-copy h1 #heroTitleLine2 {
    color: #f5e68a;
    letter-spacing: 0.08em;
}

.hero-copy h1 #heroTitleLine3 {
    color: var(--text-main);
    opacity: 0.88;
}

.hero-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    text-decoration: none;
    border: 1px solid rgba(216, 179, 106, 0.75);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #e6c574, #c9952d);
    color: #17130d;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.primary-btn:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: var(--text-main);
    background: rgba(255,255,255,0.02);
}

.ghost-btn:hover {
    background: rgba(216, 179, 106, 0.05);
    transform: translateY(-1px);
}

.status-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-self: stretch;
}

.status-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(238, 212, 82, 0.18);
    padding: 14px 12px;
    border-radius: 14px;
    min-height: 84px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    animation: statusFloat 4s ease-in-out infinite;
}

.mini-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.status-card strong {
    color: var(--yellow-primary);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.32fr);
    gap: 18px;
    align-items: stretch;
}

.card {
    background: var(--panel);
    border: 1px solid rgba(238, 212, 82, 0.22);
    border-radius: 16px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.07);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: floatCard 0.9s ease-out both;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(216, 179, 106, 0.06), transparent 38%, transparent 62%, rgba(216, 179, 106, 0.04));
    pointer-events: none;
}

.card > * {
    width: 100%;
    position: relative;
    z-index: 1;
}

@keyframes floatCard {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

.profile-card {
    align-items: center;
    text-align: center;
}

.avatar-frame {
    width: 150px;
    height: 150px;
    border: 2px solid var(--yellow-primary);
    background: radial-gradient(circle at 30% 20%, rgba(255, 214, 112, 0.24), rgba(0,0,0,0.78));
    padding: 4px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
    animation: logoFloat 5.5s ease-in-out infinite;
    display: grid;
    place-items: center;
}

.profile-monogram {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(238, 212, 82, 0.42);
    object-fit: cover;
    object-position: center;
}

.profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--yellow-primary);
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--yellow-dim);
    padding: 5px 9px;
    color: var(--text-main);
    font-size: 0.7rem;
}

.bio-box {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--yellow-dim);
    padding: 14px 12px;
    text-align: left;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.77rem;
}

.device-count {
    width: 100%;
    background: linear-gradient(135deg, rgba(216, 177, 92, 0.22), rgba(184, 136, 45, 0.18));
    color: var(--yellow-soft);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(184, 136, 45, 0.6);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: var(--yellow-primary);
    margin-bottom: 5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.7;
}

.social-links-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.social-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(238, 212, 82, 0.28);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 10px;
    transition: all 0.18s ease;
    min-height: 52px;
    position: relative;
    overflow: hidden;
    animation: socialLift 4.2s ease-in-out infinite;
}

.social-link-item:hover {
    background: rgba(238, 212, 82, 0.1);
    border-color: rgba(238, 212, 82, 0.5);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.action-btn {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--yellow-primary);
    color: var(--yellow-primary);
    padding: 4px 8px;
    font-size: 0.62rem;
    font-weight: 700;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.skill-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255, 212, 0, 0.4);
    padding: 7px 9px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--yellow-primary);
    font-size: 0.68rem;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 21, 26, 0.8);
    border: 1px solid rgba(238, 212, 82, 0.22);
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
    min-height: 62px;
    position: relative;
    overflow: hidden;
    animation: headerWave 4.4s ease-in-out infinite;
}

.projects-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--yellow-primary);
    letter-spacing: 0.04em;
}

.total-badge {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--yellow-dim);
    color: var(--yellow-primary);
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(17, 21, 26, 0.75);
    border: 1px solid rgba(238, 212, 82, 0.18);
    border-radius: 14px;
    padding: 14px 14px 12px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.18s ease;
    animation: cardEntry 0.8s ease both, projectRise 4.6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes cardEntry {
    0% { opacity: 0; transform: translateY(16px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.project-card:hover {
    background: rgba(238, 212, 82, 0.08);
    border-color: rgba(238, 212, 82, 0.42);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.08);
}

.project-card:hover .project-desc {
    color: rgba(0,0,0,0.75);
}

.project-card:hover .project-btn {
    background: #000;
    color: var(--yellow-primary);
    border-color: #000;
}

.project-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.7;
}

.project-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid rgba(238, 212, 82, 0.35);
    background: rgba(0,0,0,0.18);
    color: var(--yellow-primary);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

.feedback-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 2px;
}

.feedback-card {
    margin-top: 0;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255, 212, 0, 0.35);
    color: var(--text-main);
    padding: 11px 12px;
    font-size: 0.76rem;
    resize: vertical;
}

.send-btn {
    cursor: pointer;
    border-width: 2px;
}

.recent-log-box {
    margin-top: 12px;
    border-top: 1px dashed rgba(255, 212, 0, 0.45);
    padding-top: 14px;
}

.log-title {
    font-size: 0.72rem;
    color: var(--yellow-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.feedback-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(238, 212, 82, 0.14);
    padding: 10px 12px;
    font-size: 0.7rem;
}

.feedback-item strong {
    color: var(--yellow-primary);
    display: inline-block;
    margin-bottom: 4px;
}

.sound-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    border: 1px solid rgba(184, 136, 45, 0.8);
    background: rgba(16, 17, 15, 0.8);
    color: var(--yellow-soft);
    padding: 10px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, rgba(238, 212, 82, 0.12), rgba(10, 12, 15, 0.94) 45%);
    gap: 12px;
    animation: introFade 2.8s ease forwards;
}

.intro-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.3rem, 5vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--yellow-soft);
    text-shadow: 0 18px 40px rgba(238, 212, 82, 0.26);
    animation: introText 1.4s ease-in-out;
}

.intro-text {
    font-size: clamp(0.8rem, 2vw, 1.3rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-main);
    opacity: 0.9;
    animation: introText 1.6s ease-in-out;
}

@keyframes introFade {
    0% { opacity: 1; visibility: visible; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes introText {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes panelSweep {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes socialLift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px) scale(1.01); }
}

@keyframes headerWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

@media (max-width: 900px) {
    .hero-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .status-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-copy {
        align-items: center;
    }

    .hero-description {
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .social-links-wrapper {
        grid-template-columns: 1fr;
    }

    .status-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .navbar {
        justify-content: space-between;
    }

    .main-shell {
        padding-bottom: 40px;
    }
}
