*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    color-scheme: light !important;
}

:root {
    --sidebar-w: 220px;
    --sidebar-collapsed: 48px;
    --header-h: 140px;
    --footer-h: 50px;
    --green: #a8d5b5;
    --bg: #b3c3ba;
    --text: #2a2a2a;
    --grey-light: #e5e5e5;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color-scheme: light;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
}

header {
    position: relative;
    height: var(--header-h);
    background: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem;
    top: 0;
    z-index: 100;
    transition: padding-left var(--transition);
    overflow: hidden;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: white !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 4.8rem;
    min-width: 420px;
    max-width: 90vw;
    white-space: normal;
    z-index: 1;
}

.header-subtitle {
    color: white;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 290px;
    max-width: 90vw;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 108px;
    z-index: 1;
}

.header-line {
    flex: 1;
    border-top: 1.9px dashed #fff;
}

.header-name {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.header-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

header h1,
header nav {
    position: relative;
    z-index: 1;
}

header nav {
    margin-top: -5px;
}

header h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: 0.14em;
    padding: 0.4rem 2rem;
    white-space: nowrap;
    text-align: center;
}

nav {
    margin-left: auto;
    display: flex;
    gap: 2.5rem;
    align-self: flex-end;
    padding-bottom: 0.9rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
    transition: opacity 0.2s;
    padding-top: 10px;
}

nav a:hover,
nav a.active {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 32px #fff;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

nav a:hover .nav-link-content img,
nav a.active .nav-link-content img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px #fff);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.nav-text {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.layout {
    display: flex;
    position: relative;
}

aside {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: #0f201b;
    position: sticky;
    top: 0;
    height: calc(100dvh - var(--header-h));
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    z-index: 50;
    transition: width var(--transition), min-width var(--transition);
    border-right: 2px solid #fff;
    align-self: flex-start;
}

body.sidebar-closed aside {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
}

.layout::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: #0f201b;
    border-right: 2px solid #fff;
    z-index: 49;
    transition: width var(--transition);
    pointer-events: none;
}

body.sidebar-closed .layout::before {
    width: var(--sidebar-collapsed);
}

.sidebar-toggle {
    position: absolute;
    left: calc(var(--sidebar-collapsed) - 16px);
    top: 1rem;
    width: 32px;
    height: 32px;
    background: #136f3f;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: left var(--transition), background 0.2s;
    z-index: 60;
}

body:not(.sidebar-closed) .sidebar-toggle {
    left: calc(var(--sidebar-w) - 16px);
}

.sidebar-toggle:hover {
    background: #224d36;
}

.sidebar-toggle span {
    display: block;
    width: 14px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
    overflow: hidden;
    transition: opacity var(--transition);
}

body.sidebar-closed .sidebar-nav a span,
body.sidebar-closed .sidebar-label {
    opacity: 0;
    pointer-events: none;
}

.sidebar-label {
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.3rem 1.2rem;
    white-space: nowrap;
    color: #39ff8a;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    padding: 0.45rem 1rem 0.45rem 1.3rem;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    color: #2ecc71;
    opacity: 0.65;
    transition: opacity 0.2s, background 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    opacity: 1;
    background: rgba(57, 255, 138, 0.08);
}

.sidebar-nav a.active span,
.sidebar-nav a:hover span {
    color: #a8ffcc;
}

.sidebar-nav a img {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(62%) sepia(40%) saturate(800%) hue-rotate(100deg) brightness(90%) contrast(85%);
}

.sidebar-nav a.active img,
.sidebar-nav a:hover img {
    filter: brightness(0) saturate(100%) invert(91%) sepia(14%) saturate(865%) hue-rotate(79deg) brightness(100%) contrast(103%);
}

body.sidebar-closed .sidebar-nav a span {
    display: none;
}

body.sidebar-closed .sidebar-nav a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

footer {
    height: var(--footer-h);
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    position: relative;
    z-index: 101;
}

footer .footer-links {
    display: flex;
    gap: 1.8rem;
}

footer .footer-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

footer .footer-links a:hover {
    color: #fff;
}

@media (max-width: 480px) {

    html {
        --header-h: 110px;
    }

    body {
        display: flex !important;
        flex-direction: column !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }

    header {
        height: 110px;
        padding: 1.3rem 2.4rem 0.8rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow: hidden;
        flex-shrink: 0;
    }

    .header-title {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding: 0.3rem 1rem;
        position: static;
        transform: none;
        text-align: center;
        margin-top: 6px;
    }

    header h1 {
        font-size: 1.4rem;
        letter-spacing: 0.12em;
        padding: 0.2rem 1rem;
        white-space: nowrap;
    }

    .header-subtitle {
        top: 80px;
        width: 170px;
        gap: 0.5rem;
        font-size: 0.7rem;
    }

    .layout {
        flex: 1 !important;
        display: flex !important;
        min-height: 0 !important;
    }

    main {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        min-height: 0 !important;
    }

    nav {
        width: 100%;
        margin-left: 0;
        align-self: flex-end;
        justify-content: flex-end;
        padding-bottom: 0;
        gap: 0.5rem;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        margin-top: 3px;
        margin-right: -25px;
    }

    .nav-text {
        display: none;
    }

    .nav-link img {
        width: 23px;
        height: 23px;
    }

    aside {
        position: fixed !important;
        top: 110px;
        left: 0;
        height: calc(100dvh - 110px) !important;
        z-index: 200;
        width: var(--sidebar-collapsed) !important;
        min-width: var(--sidebar-collapsed) !important;
    }

    body:not(.sidebar-closed) aside {
        width: var(--sidebar-w) !important;
        min-width: var(--sidebar-w) !important;
    }

    body.sidebar-closed aside {
        width: var(--sidebar-collapsed) !important;
        min-width: var(--sidebar-collapsed) !important;
    }

    .sidebar-toggle {
        position: absolute !important;
        left: calc(var(--sidebar-collapsed) - 16px) !important;
        top: 0.5rem;
        right: auto !important;
        z-index: 300;
    }

    body:not(.sidebar-closed) .sidebar-toggle {
        left: calc(var(--sidebar-w) - 16px) !important;
    }

    .layout::before {
        display: none;
    }

    body:not(.sidebar-closed) .sidebar-nav a span,
    body:not(.sidebar-closed) .sidebar-label {
        opacity: 1 !important;
        pointer-events: auto;
        display: block !important;
    }

    body:not(.sidebar-closed)::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 190;
    }

    footer {
        flex-shrink: 0;
        position: relative;
        z-index: 210;
    }
}

@media (max-width: 900px) and (orientation: landscape) {

    html {
        --header-h: 72px;
        overflow-x: hidden;
    }

    header {
        height: 85px;
        padding: 0 1.2rem;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .header-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 0;
        padding: 0.4rem 2rem;
        text-align: center;
        margin-top: 0;
    }

    header h1 {
        font-size: 1.2rem;
        padding: 0.3rem 1.5rem;
        white-space: nowrap;
    }

    .header-subtitle {
        top: 67px;
        width: 200px;
        gap: 0.5rem;
        font-size: 0.65rem;
    }

    .header-name {
        font-size: 0.7rem;
    }

    nav {
        width: auto;
        margin-left: auto;
        align-self: center;
        justify-content: flex-end;
        padding-bottom: 0;
        gap: 0.8rem;
        margin-top: 0;
        margin-right: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    header nav {
        margin-top: 38px;
    }

    .nav-text {
        display: none;
    }

    .nav-link img {
        width: 26px;
        height: 26px;
    }

    aside {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        height: 100% !important;
        min-height: 100% !important;
        z-index: 200;
        width: var(--sidebar-collapsed) !important;
        min-width: var(--sidebar-collapsed) !important;
        overflow: visible !important;
    }

    body:not(.sidebar-closed) aside {
        width: var(--sidebar-w) !important;
        min-width: var(--sidebar-w) !important;
    }

    .sidebar-toggle {
        position: absolute !important;
        left: calc(var(--sidebar-collapsed) - 16px) !important;
        top: 0.5rem;
        right: auto !important;
        z-index: 300;
    }

    body:not(.sidebar-closed) .sidebar-toggle {
        left: calc(var(--sidebar-w) - 16px) !important;
    }

    .layout::before {
        display: none;
    }

    body:not(.sidebar-closed) .sidebar-nav a span,
    body:not(.sidebar-closed) .sidebar-label {
        opacity: 1 !important;
        pointer-events: auto;
        display: block !important;
    }

    body:not(.sidebar-closed)::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 190;
    }

    footer {
        position: relative;
        z-index: 210;
    }
}

/* ── Contact Dev Modal ──────────────────── */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

.confirm-modal.active {
  display: flex;
}

.confirm-modal-content {
  background: #0f0f0f;
  border: 1px solid #1e3a2a;
  border-radius: 4px;
  width: 90%;
  max-width: 480px;
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: confirmFadeIn 0.2s ease;
}

.confirm-modal-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 1.2rem;
  color: #b5d4b5;
}

.contact-dev-content .contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-dev-content .form-group {
  margin: 0;
}

.contact-dev-content input,
.contact-dev-content textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #111;
  border: 1px solid #1e3a2a;
  border-radius: 3px;
  color: #ddd;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.contact-dev-content input:focus,
.contact-dev-content textarea:focus {
  border-color: #2e7d4e;
}

.contact-dev-content .form-group input,
.contact-dev-content .form-group textarea {
  border: 1px solid #1e3a2a;
}

.contact-dev-content .form-group input:focus,
.contact-dev-content .form-group textarea:focus {
  border-color: #2e7d4e;
  background: #1a1a1a;
}

.contact-dev-content input::placeholder,
.contact-dev-content textarea::placeholder {
  color: #555;
}

.contact-dev-content .form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.contact-dev-content .form-submit {
  padding: 0.55rem 1.5rem;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid #2e7d4e;
  background: #1a3a2a;
  color: #b5d4b5;
  transition: all 0.2s;
}

.contact-dev-content .form-submit:hover {
  background: #2e7d4e;
  color: #000;
}

.form-status {
  font-size: 0.75rem;
  color: #b5d4b5;
}

.form-status.error {
  color: #e06060;
}

.confirm-message {
  background: #111;
  border: 1px solid #1e3a2a;
  border-radius: 3px;
  padding: 1rem 1.2rem;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 1.2rem;
  font-family: 'DM Sans', sans-serif;
  color: #ccc;
}

.confirm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.confirm-cancel,
.confirm-send {
  padding: 0.55rem 1.5rem;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.confirm-cancel {
  background: transparent;
  border: 1px solid #1e3a2a;
  color: #888;
}

.confirm-cancel:hover {
  background: #1a1a1a;
}

.confirm-send {
  background: #1a3a2a;
  color: #b5d4b5;
  border: 1px solid #2e7d4e;
}

.confirm-send:hover {
  background: #2e7d4e;
  color: #000;
}

@keyframes confirmFadeIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}