/* #region Global style */
:root {
    --bg-color: #0b0f19;
    --text-primary: #ffffff;
    --text-secondary: #b5c4da;
    --accent-color: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --border-soft: rgba(139, 155, 180, 0.25);
    --panel-bg: rgba(255, 255, 255, 0.035);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 2rem;
}

h1 {
    font-size: 4.75rem;
    font-weight: 700;
    letter-spacing: 0;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

time {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

cite {
    font-style: italic;
}

.glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.site-nav {
    z-index: 1;
    display: flex;
    width: min(100% - 2rem, 920px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.top-nav {
    width: min(100%, 920px);
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.75rem 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--text-primary);
    border-color: rgba(59, 130, 246, 0.75);
    background: var(--accent-soft);
    outline: none;
}

.site-nav .home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
}

.site-nav .home-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.site-footer {
    z-index: 1;
    width: min(100%, 920px);
    margin-top: auto;
    padding-top: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid var(--border-soft);
    padding-top: 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
    color: var(--text-primary);
    outline: none;
}

.content-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-shell {
    z-index: 1;
    width: min(100%, 920px);
    text-align: center;
    display: flex;
    flex: 1;
    min-height: calc(100vh - 8rem);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding: 4rem 0 2rem;
}

.centered-page {
    min-height: calc(100vh - 7rem);
}

.eyebrow {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.intro,
.info-card p,
.timeline-item p,
.profile-list dd {
    color: var(--text-secondary);
    font-size: 1.13rem;
    font-weight: 300;
    line-height: 1.65;
}

.text-link,
.email-link {
    color: var(--text-primary);
    text-decoration-color: rgba(59, 130, 246, 0.8);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

.text-link:hover,
.text-link:focus-visible,
.email-link:hover,
.email-link:focus-visible {
    color: #c7d2fe;
    outline: none;
}
/* #endregion */

/******************************************************************************/

/* #region Home page */
.home-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.home-nav {
    margin-top: 1.2rem;
}

.home-hero {
    z-index: 1;
    width: min(100%, 920px);
    text-align: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.35rem;
}

.icon-wrapper {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
    transform-origin: 50% 70%;
}

.icon-wrapper:hover {
    opacity: 1;
    color: var(--accent-color);
    animation: harbor-bob 1.8s ease-in-out infinite;
}

.tagline {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

@keyframes harbor-bob {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-0.35rem) rotate(-2.5deg);
    }

    50% {
        transform: translateY(0.1rem) rotate(1.5deg);
    }

    75% {
        transform: translateY(-0.2rem) rotate(2.5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .icon-wrapper:hover {
        animation: none;
    }
}
/* #endregion */

/******************************************************************************/

/* #region Services page */
.service-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel-bg);
    padding: 1.25rem;
    text-align: left;
}

.regulatory-notice {
    width: min(100%, 780px);
    margin-top: 1.25rem;
    border-top: 1px solid var(--border-soft);
    padding-top: 1.25rem;
    text-align: left;
}

.regulatory-notice h2 {
    margin-bottom: 0.55rem;
    font-size: 1rem;
}

.regulatory-notice p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}
/* #endregion */

/******************************************************************************/

/* #region Portfolio page */
.timeline {
    width: min(100%, 920px);
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.timeline-item {
    display: grid;
    grid-template-columns: minmax(17rem, 400px) minmax(0, 1fr);
    align-items: start;
    gap: 1.15rem;
    border-radius: 8px;
    background: var(--panel-bg);
    padding: 0.95rem;
}

.game-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 460 / 215;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(139, 155, 180, 0.18);
}

.timeline-content {
    display: grid;
    gap: 0.65rem;
}
/* #endregion */

/******************************************************************************/

/* #region Company profile page */
.profile-list {
    width: min(100%, 760px);
    display: grid;
    gap: 0;
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel-bg);
    text-align: left;
}

.profile-list div {
    display: grid;
    grid-template-columns: minmax(12rem, 0.42fr) 1fr;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border-soft);
}

.profile-list div:last-child {
    border-bottom: 0;
}

.profile-list dt {
    color: var(--text-primary);
    font-weight: 700;
}
/* #endregion */

/******************************************************************************/

/* #region Contact page */
.email-link {
    font-size: 1.6rem;
}
/* #endregion */

/******************************************************************************/

/* #region Responsive styles */
@media (max-width: 900px) {
    .timeline-item {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1.25rem 1rem 2rem;
    }

    .home-page {
        overflow: auto;
        justify-content: center;
    }

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

    .site-nav .home-link {
        width: 2.4rem;
        height: 2.4rem;
    }

    h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .intro,
    .info-card p,
    .timeline-item p,
    .profile-list dd {
        font-size: 1rem;
    }

    .page-shell {
        min-height: calc(100vh - 10rem);
        padding-top: 3rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .profile-list div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .email-link {
        font-size: 1.25rem;
    }
}
/* #endregion */
