/* Base and Common Styles - Alphabetically Organized */

@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 350ms;
    animation-timing-function: ease-in-out;
}

@keyframes entry-logo-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

html.entry-loading {
    overflow: hidden;
}

html.entry-loading::before,
html.entry-loading::after {
    content: "";
    position: fixed;
    pointer-events: auto;
}

html.entry-loading::before {
    inset: 0;
    z-index: 2147483646;
    background: #0a0e0f;
}

html.entry-loading::after {
    top: 50%;
    left: 50%;
    z-index: 2147483647;
    width: 110px;
    height: 110px;
    background: url('../images/logo1.png') center / contain no-repeat;
    transform: translate(-50%, -50%);
    animation: entry-logo-spin 1.5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(root),
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0s;
    }

    html.entry-loading::after {
        animation: none;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@font-face {
    font-family: 'Korataki';
    src: url('../Korataki/korataki.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --font-family: 'Korataki', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --black: #0a0a0a;
    --white: #ffffff;
    --accent: #00aba2;
    --gray: #bfbfbf;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
}

.btn {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 900;
    display: inline-block;
    padding: 0;
    border: none;
    font-size: 20px;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
    width: fit-content;
    position: relative;
}

.btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.btn:hover {
    background: transparent;
    color: var(--white);
    border: none;
}

.btn:hover::after {
    width: 100%;
}

.btn.dark {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 900;
    display: inline-block;
    padding: 0;
    border: none;
    font-size: 20px;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
    width: fit-content;
    position: relative;
}

.btn.dark::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.btn.dark:hover {
    background: transparent;
    color: var(--white);
    border: none;
}

.btn.dark:hover::after {
    width: 100%;
}

.container {
    max-width: 1300px;
    margin: auto;
}

.dropdown-menu {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(20, 25, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    list-style: none;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 1001;
    padding: 8px 0;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.8rem;
    position: relative;
    transition: 0.3s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(0, 171, 162, 0.1);
    color: var(--white);
}

.dropdown-menu a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.dropdown-menu a::after {
    display: none;
}

footer {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #050505;
    text-align: center;
    padding: 20px 20px;
    color: #d6d5d5;
    font-size: 0.8rem;
}

footer .profilok {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 305px;
    max-width: 100%;
    margin: 0 auto;
}

footer .profilok a {
    display: inline-flex;
}

h1, h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

h3 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    scroll-margin-top: 100px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 21, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 171, 162, 0.22);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 14px 32px;
}



html {
    font-family: var(--font-family);
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
}

.logo:visited,
.logo:hover,
.logo:active {
    color: var(--white);
    text-decoration: none;
}

.logo img {
    max-width: 80px;
    max-height: 40px;
    width: auto;
    height: auto;
    margin-right: 0;
    padding-top: 0;
}

nav {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
    width: 100%;
    gap: clamp(24px, 3vw, 48px);
    height: 100%;
}

.nav-links {
    display: flex;
    gap: clamp(14px, 1.6vw, 24px);
    list-style: none;
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0 auto;
    align-items: center;
}

.nav-links .dropdown {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    position: relative;
}

.nav-links > li > a[href="connect.html"] {
    font-weight: 700;
}

.nav-links > li > a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background: rgba(0, 171, 162, 0.5);
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-links > li > a:hover::after,
.nav-links > li > a:focus-visible::after,
.nav-links > li > a.active::after {
    width: 100%;
}

.nav-links a:focus-visible,
.nav-arrow:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.nav-arrow {
    border: 0;
    background: transparent;
    color: #b7c4c2;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 4px;
    margin-left: 2px;
}

.nav-links .nav-open > .dropdown-menu {
    display: flex;
}

@media (min-width: 1201px) {
    .nav-links .dropdown:hover > .dropdown-menu,
    .nav-links .dropdown:focus-within > .dropdown-menu {
        display: flex;
    }
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--white);
    background: none;
    border: none;
    padding: 5px 10px;
    margin-left: auto;
    transition: 0.3s;
}

.nav-toggle-label:hover {
    color: var(--accent);
}

section {
    padding: 90px 8%;
}

@media (max-width: 1200px) {
    header {
        padding: 12px 20px;
    }

    nav {
        flex: 1;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .nav-toggle-label {
        display: block;
        order: 1;
        margin-left: 12px;
        line-height: 1;
    }

    .nav-toggle:focus-visible + .nav-toggle-label {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 12px 20px 20px;
        background: rgba(15, 20, 21, 0.98);
        border-bottom: 1px solid rgba(0, 171, 162, 0.22);
    }

    .nav-toggle:checked ~ nav .nav-links {
        display: flex;
    }

    .nav-links > li {
        padding: 8px 0;
    }

    .nav-links > li > a {
        display: inline-block;
    }

    .nav-arrow {
        padding: 8px 12px;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
    }
}

@media (max-width: 430px) {
    .logo {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .logo img {
        max-height: 32px;
    }

    footer .profilok {
        width: min(305px, calc(100vw - 32px));
    }
}

@media (max-width: 600px) {
    section {
        padding-left: 20px;
        padding-right: 20px;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }
}

.linkedin-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.linkedin-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.3);
}
