@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #080e1d;
    --surface: #111b30;
    --surface-light: #17243b;
    --text: #f0f6ff;
    --muted: #94a5bf;
    --accent: #38d9d0;
    --blue: #558bff;
    --border: rgba(148, 163, 184, .15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.background-glow {
    position: absolute;
    top: -350px;
    left: 30%;
    width: 850px;
    height: 850px;
    background: radial-gradient(circle,
        rgba(35, 107, 190, .17),
        transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.page {
    position: relative;
    max-width: 1160px;
    padding: 0 28px;
    margin: auto;
    z-index: 1;
}

/* HEADER */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--blue));
    font-size: 16px;
    font-weight: 900;
}

.accent {
    color: var(--accent);
}

.languages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.languages a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: .2s;
}

.languages a:hover,
.languages a.active {
    background: var(--surface-light);
    border-color: var(--border);
    color: var(--text);
}

.languages img {
    width: 24px;
    height: 17px;
    object-fit: cover;
    border-radius: 3px;
}

/* HERO */

.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 65px;
    padding: 95px 0;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid rgba(56, 217, 208, .23);
    border-radius: 100px;
    background: rgba(56, 217, 208, .07);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 13px var(--accent);
}

.eyebrow {
    margin: 29px 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 6.5vw, 84px);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1.12;
}

.gradient-text {
    background: linear-gradient(100deg, var(--accent), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    margin: 22px 0;
    font-size: 21px;
    font-weight: 600;
    color: #d0def2;
}

.hero h2 span {
    color: var(--accent);
    padding: 0 6px;
}

.hero-description {
    max-width: 610px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.95;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    transition: .25s;
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent), #59b9ff);
    color: #071525;
    box-shadow: 0 8px 35px rgba(56, 217, 208, .13);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(56, 217, 208, .25);
}

.btn.secondary {
    border: 1px solid var(--border);
    background: var(--surface);
}

.btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* PORTRAIT */

.photo-panel {
    justify-self: center;
    width: 100%;
    max-width: 315px;
    padding: 14px;
    border-radius: 27px;
    background: linear-gradient(135deg,
        rgba(56,217,208,.18),
        rgba(85,139,255,.08));
    border: 1px solid rgba(56,217,208,.25);
    box-shadow: 0 25px 90px rgba(0,0,0,.3);
}

.photo-frame {
    height: 320px;
    overflow: hidden;
    border-radius: 19px;
    background: #d9d7d4;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 19px 8px 7px;
}

.photo-caption strong {
    font-size: 16px;
}

.photo-caption span {
    color: var(--accent);
    font-size: 12px;
}

/* SECTIONS */

.section {
    padding: 44px 0 75px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
}

.section-number {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 35px);
    letter-spacing: -1px;
}

.cards {
    display: grid;
    gap: 19px;
}

.skills-grid {
    grid-template-columns: repeat(3, 1fr);
}

.two-column {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    padding: 29px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--surface), #10192b);
    transition: .3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(56,217,208,.45);
    box-shadow: 0 16px 35px rgba(0,0,0,.16);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 21px;
    border-radius: 12px;
    background: rgba(56,217,208,.1);
    color: var(--accent);
    font-size: 24px;
}

.card h3 {
    margin: 0 0 11px;
    font-size: 18px;
}

.card p,
.timeline-content p,
.project-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.tags span {
    padding: 5px 10px;
    border: 1px solid rgba(85,139,255,.2);
    border-radius: 7px;
    color: #b0ccff;
    background: rgba(85,139,255,.08);
    font-size: 11px;
    font-weight: 600;
}

/* EXPERIENCE */

.timeline {
    margin-left: 13px;
    padding-left: 30px;
    border-left: 1px solid rgba(56,217,208,.3);
}

.timeline-item {
    position: relative;
    padding: 0 0 36px;
}

.timeline-dot {
    position: absolute;
    top: 9px;
    left: -37px;
    width: 13px;
    height: 13px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 13px rgba(56,217,208,.6);
}

.timeline-content {
    padding: 24px 29px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.date {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.timeline-content h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.subheading {
    color: #aabddd;
    font-size: 13px;
}

/* PROJECT */

.project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    padding: 42px;
    border: 1px solid rgba(56,217,208,.25);
    border-radius: 20px;
    background: linear-gradient(125deg, #142a3a, #111b30 70%);
}

.project-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.project-card h3 {
    margin: 12px 0;
    font-size: 29px;
}

.project-card p {
    max-width: 670px;
}

.project-symbol {
    color: var(--accent);
    font-size: 115px;
    line-height: 1;
    opacity: .55;
}

/* CONTACT */

.contact-panel {
    padding: 55px 35px;
    text-align: center;
    border: 1px solid rgba(56,217,208,.25);
    border-radius: 22px;
    background: radial-gradient(
        ellipse at top,
        #18344a,
        var(--surface) 75%
    );
}

.contact-panel .eyebrow {
    margin: 0;
}

.contact-panel h2 {
    margin: 17px 0;
    font-size: clamp(25px, 4vw, 38px);
    letter-spacing: -1px;
}

.contact-panel > p {
    color: var(--muted);
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.contact-links a,
.contact-links span {
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.contact-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 28px 0 35px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

/* MOBILE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 65px 0;
    }

    .photo-panel {
        grid-row: 1;
        max-width: 240px;
    }

    .photo-frame {
        height: 230px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        letter-spacing: -2px;
    }
}

@media (max-width: 640px) {
    .page {
        padding: 0 18px;
    }

    .topbar {
        min-height: 80px;
    }

    .logo {
        font-size: 17px;
    }

    .languages a {
        padding: 7px;
    }

    .hero {
        padding: 45px 0;
    }

    .hero h1 {
        font-size: 49px;
    }

    .hero h2 {
        font-size: 17px;
    }

    .skills-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 30px 0 55px;
    }

    .card,
    .timeline-content {
        padding: 23px;
    }

    .project-card {
        padding: 28px;
    }

    .project-symbol {
        display: none;
    }

    .contact-panel {
        padding: 40px 20px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .card,
    .btn {
        transition: none;
    }
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */

@media (prefers-reduced-motion: no-preference) {

    .animations-ready .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition:
            opacity 650ms ease,
            transform 650ms cubic-bezier(.2, .7, .2, 1);
        transition-delay: var(--reveal-delay, 0ms);
    }

    .animations-ready .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Jemny pohyb ikoniek pri hover */
    .card:hover .card-icon {
        transform: translateY(-4px) scale(1.06);
    }

    .card-icon {
        transition: transform 300ms ease;
    }
}

@media (prefers-reduced-motion: reduce) {

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .card-icon {
        transition: none !important;
    }
}
