/* ============================================================
   CYBERPUNK PORTFOLIO THEME
   Colors: Gold #c4a000 | Cyan #25e1ed | Black #000
   Font:   Orbitron (display) | Share Tech Mono (mono) | Exo 2 (body)
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #8fa4b8;
    font-family: "Exo 2", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Wrapper --- */
.wrap {
    background: #000;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ============================================================
   LANDING PAGE (Homepage)
   ============================================================ */

.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Starfield canvas */
.landing canvas,
.page-inner canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Vignette overlay */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* CRT scanlines */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 3px
    );
    opacity: 0.4;
}

/* Center content block */
.center {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 20px;
}

/* --- Name heading --- */
.name {
    font-family: "Orbitron", sans-serif;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #c4a000;
    text-shadow:
        0 0 10px rgba(196, 160, 0, 0.35),
        0 0 30px rgba(196, 160, 0, 0.12),
        0 0 60px rgba(196, 160, 0, 0.06);
    margin-bottom: 8px;
    animation: flicker 4s infinite;
}

/* --- Role subtitle --- */
.role {
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    letter-spacing: 6px;
    color: #25e1ed;
    text-shadow:
        0 0 8px rgba(37, 225, 237, 0.3),
        0 0 20px rgba(37, 225, 237, 0.1);
    margin-bottom: 32px;
    text-transform: uppercase;
}

/* --- Social icons --- */
.icons {
    display: flex;
    gap: 22px;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37, 225, 237, 0.2);
    color: #25e1ed;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    clip-path: polygon(
        8px 0,
        100% 0,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        0 100%,
        0 8px
    );
}

.icons a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(37, 225, 237, 0.03);
    transition: background 0.3s;
}

.icons a:hover {
    color: #fff;
    border-color: rgba(37, 225, 237, 0.5);
    text-shadow: 0 0 8px rgba(37, 225, 237, 0.5);
}

.icons a:hover::before {
    background: rgba(37, 225, 237, 0.08);
}

.icons a svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    position: relative;
    z-index: 1;
}

/* --- Navigation links --- */
.nav-links {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.nav-links a {
    font-family: "Share Tech Mono", monospace;
    font-size: 16px;
    color: #c4a000;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid rgba(196, 160, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    clip-path: polygon(
        6px 0,
        100% 0,
        100% calc(100% - 6px),
        calc(100% - 6px) 100%,
        0 100%,
        0 6px
    );
}

.nav-links a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(196, 160, 0, 0.02);
    transition: background 0.3s;
}

.nav-links a:hover {
    border-color: rgba(196, 160, 0, 0.35);
    color: #d4b020;
    text-shadow: 0 0 8px rgba(196, 160, 0, 0.25);
}

.nav-links a:hover::before {
    background: rgba(196, 160, 0, 0.05);
}

/* --- Language switcher --- */
.lang-switch {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.lang-switch a {
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    color: #2a4a5a;
    text-decoration: none;
    letter-spacing: 2px;
    padding: 3px 10px;
    border: 1px solid rgba(37, 225, 237, 0.08);
    border-radius: 2px;
    transition: all 0.3s;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: #25e1ed;
    border-color: rgba(37, 225, 237, 0.25);
}

/* --- HUD elements --- */
.corner {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.corner-tl {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-top: 1px solid rgba(37, 225, 237, 0.15);
    border-left: 1px solid rgba(37, 225, 237, 0.15);
}

.corner-tr {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-top: 1px solid rgba(37, 225, 237, 0.15);
    border-right: 1px solid rgba(37, 225, 237, 0.15);
}

.corner-bl {
    bottom: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-bottom: 1px solid rgba(196, 160, 0, 0.1);
    border-left: 1px solid rgba(196, 160, 0, 0.1);
}

.corner-br {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-bottom: 1px solid rgba(196, 160, 0, 0.1);
    border-right: 1px solid rgba(196, 160, 0, 0.1);
}

.hud-tag {
    position: absolute;
    z-index: 3;
    font-family: "Share Tech Mono", monospace;
    font-size: 9px;
    letter-spacing: 2px;
    pointer-events: none;
}

.hud-tl {
    top: 16px;
    left: 56px;
    color: rgba(37, 225, 237, 0.2);
}

.hud-br {
    bottom: 16px;
    right: 56px;
    color: rgba(196, 160, 0, 0.13);
}

/* --- Flicker animation --- */
@keyframes flicker {
    0%,
    100% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    93% {
        opacity: 0.8;
    }
    94% {
        opacity: 1;
    }
    96% {
        opacity: 0.9;
    }
    97% {
        opacity: 1;
    }
}

/* ============================================================
   INNER PAGES (Projects, Experience, Hobbies)
   ============================================================ */

.page-inner {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(37, 225, 237, 0.08);
}

.back-link {
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    color: #25e1ed;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(37, 225, 237, 0.4);
}

.page-title {
    font-family: "Orbitron", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #c4a000;
    text-shadow: 0 0 8px rgba(196, 160, 0, 0.2);
}

.header-spacer {
    width: 60px;
}

.page-content {
    position: relative;
    z-index: 3;
    flex: 1;
    padding: 40px 32px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Content typography */
.page-content h2 {
    font-family: "Orbitron", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c4a000;
    margin: 32px 0 12px;
}

.page-content h3 {
    font-family: "Share Tech Mono", monospace;
    font-size: 14px;
    color: #25e1ed;
    letter-spacing: 1px;
    margin: 20px 0 8px;
}

.page-content p {
    color: #7a8fa0;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.page-content a {
    color: #25e1ed;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 225, 237, 0.2);
    transition: all 0.3s;
}

.page-content a:hover {
    color: #fff;
    border-bottom-color: rgba(37, 225, 237, 0.5);
    text-shadow: 0 0 6px rgba(37, 225, 237, 0.3);
}

.page-content ul,
.page-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.page-content li {
    color: #7a8fa0;
    font-size: 14px;
    margin-bottom: 4px;
}

.page-content code {
    font-family: "Share Tech Mono", monospace;
    background: rgba(37, 225, 237, 0.05);
    color: #25e1ed;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 13px;
}

.page-content pre {
    background: rgba(10, 15, 25, 0.8);
    border: 1px solid rgba(37, 225, 237, 0.08);
    border-radius: 4px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.page-content pre code {
    background: none;
    padding: 0;
}

/* List items on section pages */
.list-item {
    border: 1px solid rgba(196, 160, 0, 0.08);
    border-radius: 4px;
    margin-bottom: 8px;
    transition: border-color 0.3s;
}

.list-item:hover {
    border-color: rgba(196, 160, 0, 0.25);
}

.list-item a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    border-bottom: none;
}

.list-item a:hover {
    border-bottom: none;
}

.list-item h2 {
    font-family: "Orbitron", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #c4a000;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.list-item p {
    font-size: 12px;
    color: #5a7a90;
    margin: 0;
}

/* --- Footer --- */
.page-footer {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-top: 1px solid rgba(37, 225, 237, 0.06);
}

.footer-left {
    font-family: "Share Tech Mono", monospace;
    font-size: 9px;
    color: #2a3a48;
    letter-spacing: 1px;
}

.footer-right {
    display: flex;
    gap: 12px;
}

.footer-right a {
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    color: #3a4a58;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #25e1ed;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .name {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .role {
        font-size: 11px;
        letter-spacing: 4px;
    }

    .icons {
        gap: 16px;
    }

    .icons a {
        width: 36px;
        height: 36px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 4px;
    }

    .nav-links a {
        font-size: 10px;
        padding: 5px 10px;
        letter-spacing: 2px;
    }

    .page-header {
        padding: 16px 20px;
    }

    .page-title {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .page-content {
        padding: 24px 20px;
    }

    .page-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .corner {
        display: none;
    }

    .hud-tag {
        display: none;
    }
}
