:root {
    --bg: #05070a;
    --card: #0b1016;
    --card-hover: #101823;

    --border: #172333;
    --border-hover: #1677ff;

    --text: #f5f7fa;
    --muted: #7f8da0;

    --accent: #1677ff;
    --accent-hover: #3d91ff;

    --success: #43d17a;
    --danger: #ff5f6d;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(22, 119, 255, 0.12),
            transparent 42%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


/* NAVBAR */

.navbar {
    width: 100%;
    min-height: 76px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    position: relative;
    z-index: 100;
}


.logo {
    color: var(--text);

    text-decoration: none;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: 0.5px;

    transition: color 0.2s ease;
}


.logo:hover {
    color: var(--accent);
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.nav-button {
    min-height: 42px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    gap: 9px;

    background: var(--card);

    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.8px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.nav-button:hover {
    background: var(--card-hover);

    border-color: var(--accent);

    transform: translateY(-1px);
}


/* DROPDOWN */

.dropdown {
    position: relative;
}


.dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 210px;

    padding: 8px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-8px)
        scale(0.98);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


.dropdown-menu.show {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


.dropdown-menu a {
    min-height: 44px;

    padding: 0 12px;

    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--muted);

    text-decoration: none;

    border: 1px solid transparent;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.7px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.dropdown-menu a:hover,
.dropdown-menu a.active {
    color: var(--text);

    background: var(--card-hover);

    border-color: var(--border-hover);
}


/* HOME */

.home {
    flex: 1;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 100px 6%;
}


.hero {
    min-height: 55vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.hero-label {
    margin-bottom: 16px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}


.hero h1 {
    margin-bottom: 20px;

    font-size: clamp(48px, 9vw, 100px);

    line-height: 0.95;

    letter-spacing: -4px;
}


.hero p {
    color: var(--muted);

    font-size: 16px;

    line-height: 1.7;
}


/* PAGES */

.page {
    flex: 1;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 90px 6%;
}


.page-heading {
    margin-bottom: 55px;
}


.page-heading h1 {
    margin-bottom: 16px;

    font-size: clamp(40px, 7vw, 72px);

    line-height: 1;

    letter-spacing: -3px;
}


.page-heading p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


.page-heading a {
    color: var(--accent);

    text-decoration: none;
}


/* MEDIA */

.media-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.media-card {
    min-height: 150px;

    padding: 24px;

    position: relative;

    display: flex;
    align-items: center;

    gap: 20px;

    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    color: var(--text);

    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.media-card:hover {
    background: var(--card-hover);

    border-color: var(--accent);

    transform: translateY(-4px);

    box-shadow:
        0 15px 40px rgba(22, 119, 255, 0.12);
}


.media-card img {
    width: 48px;
    height: 48px;

    object-fit: contain;

    flex-shrink: 0;
}


.media-number {
    position: absolute;

    top: 18px;
    right: 20px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    opacity: 0.5;
}


.media-content h2 {
    margin-bottom: 6px;

    font-size: 16px;

    letter-spacing: 0.8px;
}


.media-content p {
    color: var(--muted);

    font-size: 12px;
}


.media-arrow {
    margin-left: auto;

    color: var(--muted);

    font-size: 20px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.media-card:hover .media-arrow {
    color: var(--accent);

    transform:
        translate(3px, -3px);
}


/* CONTACT */

.contact-page {
    max-width: 850px;
}


#contact-form {
    padding: 28px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;
}


#contact-form label {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}


#contact-form input,
#contact-form textarea {
    width: 100%;

    margin-bottom: 22px;

    padding: 13px 15px;

    background: var(--bg);

    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 9px;

    outline: none;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(22, 119, 255, 0.1);
}


#contact-form textarea {
    resize: vertical;

    min-height: 150px;
}


#contact-form button {
    width: 100%;

    min-height: 48px;

    border: 1px solid var(--accent);

    border-radius: 9px;

    background: var(--accent);

    color: white;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;
}


#contact-form button:hover {
    background: var(--accent-hover);
}


#form-status {
    margin-top: 20px;

    text-align: center;
}


.success-message {
    color: var(--success);
}


.error-message {
    color: var(--danger);
}


/* 404 */

.error-page {
    display: flex;
    align-items: center;
}


.back-link {
    display: inline-flex;

    margin-top: 25px;

    padding: 12px 16px;

    color: var(--text);

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 9px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
}


.back-link:hover {
    border-color: var(--accent);
}


/* FOOTER */

footer {
    width: 100%;

    padding: 25px 6%;

    color: var(--muted);

    border-top: 1px solid var(--border);

    text-align: center;

    font-size: 11px;

    letter-spacing: 0.8px;
}


/* TRANSITION */

body {
    opacity: 1;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


body.page-exit {
    opacity: 0;
    transform: translateY(5px);
}


/* LIGHT */

body.light-theme {
    --bg: #f2f6fb;
    --card: #ffffff;
    --card-hover: #f5f8fc;

    --border: #d8e0ea;
    --border-hover: #1677ff;

    --text: #10151c;
    --muted: #687587;

    --accent: #1677ff;
    --accent-hover: #3d91ff;
}


/* MOBILE */

@media (max-width: 700px) {

    .navbar {
        min-height: 68px;
        padding: 0 20px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-button {
        min-height: 38px;
        padding: 0 11px;
        font-size: 10px;
    }

    .dropdown-menu {
        width: 190px;
    }

    .home,
    .page {
        padding: 65px 20px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-card {
        min-height: 125px;
    }

    #contact-form {
        padding: 20px;
    }

}


@media (max-width: 430px) {

    .logo {
        font-size: 14px;
    }

    .nav-button {
        padding: 0 9px;
    }

    #theme-button {
        font-size: 0;
    }

    #theme-button #theme-icon {
        font-size: 16px;
    }

}