@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700&display=swap');

:root {
    --bg-dark: #000814;
    --accent-orange: #FF8C00;
    --accent-blue: #003566;
    --text-white: #e0e1dd;
    --glass-bg: rgba(0, 8, 20, 0.6);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('brain_robot_minimal.png') no-repeat center center;
    background-size: 50%;
    opacity: 0.6;
    /* Softer mask to increase transparency at the edges */
    -webkit-mask-image: radial-gradient(circle, black 10%, transparent 60%);
    mask-image: radial-gradient(circle, black 10%, transparent 60%);
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem;
    border-radius: 20px;
    background: rgba(0, 8, 20, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 140, 0, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    animation: fadeInScale 1.5s ease-out forwards;
    pointer-events: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    background: linear-gradient(45deg, var(--accent-orange), #ffbe0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-white);
    opacity: 0.8;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulseOrange 2s infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseOrange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 140, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 2rem auto;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-orange);
    border-radius: 10px;
    transform: translate(-50%, -50%);
    animation: futuristicLoader 2s infinite ease-in-out;
}

.loader::after {
    animation-delay: -1s;
    border-color: var(--accent-blue);
    width: 50%;
    height: 50%;
}

@keyframes futuristicLoader {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        border-radius: 50%;
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.5);
        border-radius: 20%;
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
        border-radius: 50%;
        opacity: 1;
    }
}

/* ── Scroll hint arrow ─────────────────────────────────── */
.scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 2.5rem;
    pointer-events: all;
    color: rgba(255, 140, 0, 0.6);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounceDown 2s infinite;
    transition: color 0.3s;
}
.scroll-hint:hover { color: var(--accent-orange); }
.scroll-hint svg { width: 20px; height: 20px; }

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%       { transform: translateY(6px); opacity: 1; }
}

/* ── About section ─────────────────────────────────────── */
.about-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1.5rem;
}

.about-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 680px;
    width: 100%;
    background: rgba(0, 8, 20, 0.55);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 140, 0, 0.18);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 0 60px rgba(255, 140, 0, 0.05), 0 8px 40px rgba(0,0,0,0.5);
    animation: fadeInScale 1.2s ease-out forwards;
}

.about-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 1px solid rgba(255, 140, 0, 0.25);
    color: rgba(224, 225, 221, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.about-close:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}

.about-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), #ffbe0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-dark);
    letter-spacing: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.35);
}

.about-body {
    text-align: center;
    width: 100%;
}

.about-name {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-orange), #ffbe0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}

.about-title {
    font-size: 0.95rem;
    color: rgba(224, 225, 221, 0.75);
    letter-spacing: 0.05rem;
    margin-bottom: 0.3rem;
}

.about-org {
    font-size: 0.78rem;
    color: rgba(255, 140, 0, 0.6);
    letter-spacing: 0.03rem;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
}

.about-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(224, 225, 221, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-item svg { width: 15px; height: 15px; opacity: 0.6; flex-shrink: 0; }
a.contact-item:hover { color: var(--accent-orange); }

.about-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.social-link {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 140, 0, 0.25);
    color: rgba(224, 225, 221, 0.8);
    background: rgba(255, 140, 0, 0.05);
    transition: all 0.25s;
}
.social-link:hover {
    background: rgba(255, 140, 0, 0.15);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.2);
}
.social-link.cv {
    border-color: rgba(255, 140, 0, 0.5);
    color: var(--accent-orange);
}

/* ── FAB reopen button ──────────────────────────────────── */
.fab-about {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), #ffbe0b);
    color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInScale 0.3s ease-out forwards;
}
.fab-about:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 500px) {
    .about-card { padding: 2rem 1.2rem; }
    .about-name { font-size: 1.5rem; }
    h1 { font-size: 2.8rem; }
}