/* ============================= */
/* Root System */
/* ============================= */

:root {
    --purple: #6E2C90;
    --teal: #1E808D;

    --bg: #f7f7f4;
    --surface: rgba(255, 255, 255, 0.62);
    --surface-solid: #ffffff;

    --text: #111113;
    --muted: #606064;
    --soft: #9b9ba0;

    --border: rgba(17, 17, 19, 0.08);
    --border-strong: rgba(17, 17, 19, 0.16);

    --shadow-soft: 0 10px 34px rgba(20, 20, 25, 0.06);
    --shadow-medium: 0 20px 60px rgba(20, 20, 25, 0.1);
    --shadow-strong: 0 30px 100px rgba(20, 20, 25, 0.18);

    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;

    --top-offset: 92px;

    --gradient-main: linear-gradient(135deg, var(--purple), var(--teal));
    --gradient-soft: linear-gradient(135deg, rgba(110, 44, 144, 0.12), rgba(30, 128, 141, 0.12));
}

/* ============================= */
/* Reset */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    background: var(--bg);
    color: var(--text);
    line-height: 1.6;

    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

/* ============================= */
/* Background */
/* ============================= */

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.ambient-bg::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 20% 8%, rgba(110, 44, 144, 0.16), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(30, 128, 141, 0.15), transparent 30%),
        radial-gradient(circle at 45% 85%, rgba(110, 44, 144, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfbf8 0%, #f2f2ef 100%);
}

.ambient-orb {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
}

.orb-purple {
    top: -120px;
    left: -90px;
    background: var(--purple);
}

.orb-teal {
    right: -120px;
    top: 180px;
    background: var(--teal);
}

.ambient-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(17, 17, 19, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 19, 0.035) 1px, transparent 1px);

    background-size: 54px 54px;

    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 75%);
}

.cursor-glow {
    position: fixed;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    background: radial-gradient(circle, rgba(110, 44, 144, 0.14), rgba(30, 128, 141, 0.08), transparent 65%);

    transform: translate(-50%, -50%);

    pointer-events: none;
    z-index: -1;

    opacity: 0.55;
}

/* ============================= */
/* Top Navigation */
/* ============================= */

.top-menu {
    position: fixed;
    top: 18px;
    left: 50%;

    width: min(580px, calc(100% - 2rem));
    height: 58px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1000;
}

.menu-icons {
    width: 100%;
    height: 54px;

    padding: 0 1.25rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;

    background: var(--gradient-main);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 18px 45px rgba(110, 44, 144, 0.22),
        0 14px 40px rgba(30, 128, 141, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.menu-icons a {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    color: rgba(255, 255, 255, 0.62);

    border-radius: 50%;

    text-decoration: none;
    font-size: 1rem;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.menu-icons a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.menu-icons a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 8px 18px rgba(0, 0, 0, 0.12);
}

/* ============================= */
/* Main Layout */
/* ============================= */

.main-wrapper {
    width: min(1220px, calc(100% - 3rem));

    margin: 0 auto;
    padding-top: var(--top-offset);

    display: flex;
    gap: 2.4rem;
}

/* ============================= */
/* Left Identity */
/* ============================= */

.left-section {
    width: 38%;
    height: calc(100vh - var(--top-offset));

    position: sticky;
    top: var(--top-offset);

    padding: 5.5rem 0 2rem;
}

.identity-card {
    min-height: 520px;

    padding: 2.2rem;

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);

    background: rgba(255, 255, 255, 0.55);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow: var(--shadow-soft);

    position: relative;
    overflow: hidden;
}

/* ============================= */
/* Logo */
/* ============================= */

.logo-system {
    width: 104px;
    height: 104px;

    margin-bottom: 1.7rem;

    position: relative;

    display: grid;
    place-items: center;

    border-radius: 50%;
}

.logo-ring {
    position: absolute;
    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(from 90deg, var(--purple), var(--teal), var(--purple));

    animation: rotateRing 7s linear infinite;
}

.logo-ring::after {
    content: "";

    position: absolute;
    inset: 5px;

    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
}

.brand-logo {
    width: 84px;
    height: 84px;

    border-radius: 50%;

    object-fit: contain;
    object-position: center;

    background: #ffffff;

    padding: 7px;

    position: relative;
    z-index: 2;
}

@keyframes rotateRing {
    to {
        transform: rotate(360deg);
    }
}

/* ============================= */
/* Identity Text */
/* ============================= */

.small-label,
.section-kicker {
    color: var(--soft);

    font-size: 0.76rem;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.identity-card h1 {
    margin-top: 0.6rem;
    margin-bottom: 0.45rem;

    font-size: clamp(2.7rem, 5vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.07em;
}

.identity-card h2 {
    margin-bottom: 1.3rem;

    color: var(--muted);

    font-size: 1.16rem;
    font-weight: 500;
}

.intro-text {
    max-width: 390px;

    color: var(--muted);
    font-size: 1rem;
}

.profile-tags,
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-tags {
    margin-top: 1.5rem;
}

.profile-tags span,
.tech-list span {
    padding: 0.42rem 0.75rem;

    color: #252527;
    background: rgba(255, 255, 255, 0.72);

    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 700;
}

.identity-actions {
    margin-top: 2.2rem;

    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.primary-link {
    width: fit-content;

    padding: 0.82rem 1.1rem;

    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    color: #ffffff;
    background: var(--gradient-main);

    border-radius: 999px;

    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 800;

    box-shadow: 0 16px 35px rgba(110, 44, 144, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.primary-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(30, 128, 141, 0.25);
}

.social-links {
    display: flex;
    gap: 1.1rem;
}

.social-links a {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color: var(--muted);
    background: rgba(255, 255, 255, 0.55);

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 1.1rem;

    transition:
        color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.social-links a:hover {
    color: var(--purple);
    border-color: rgba(110, 44, 144, 0.3);
    transform: translateY(-3px);
}

/* ============================= */
/* Right Content */
/* ============================= */

.right-section {
    width: 62%;

    padding: 5.5rem 0 5rem;

    display: flex;
    flex-direction: column;
    gap: 3.6rem;
}

.right-section section {
    scroll-margin-top: 130px;
}

.section-header {
    margin-bottom: 1.35rem;
}

.section-header h2 {
    margin-top: 0.3rem;

    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.section-header p:last-child {
    max-width: 650px;

    margin-top: 0.85rem;

    color: var(--muted);
}

/* ============================= */
/* Hero */
/* ============================= */

.hero-card {
    min-height: auto;

    padding: clamp(2rem, 5vw, 4rem);

    display: block;

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 38px;

    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.45)),
        radial-gradient(circle at 90% 20%, rgba(30, 128, 141, 0.18), transparent 28%),
        radial-gradient(circle at 10% 80%, rgba(110, 44, 144, 0.15), transparent 30%);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow: var(--shadow-medium);

    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";

    position: absolute;
    inset: 1.2rem;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 100%;
}

.hero-card h2 {
    max-width: 100%;

    margin-top: 0;
    margin-bottom: 1.2rem;

    font-size: clamp(2.4rem, 5.2vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.075em;

    text-wrap: balance;
}

.hero-card p {
    max-width: 680px;

    color: var(--muted);
    font-size: 1.05rem;
}

/* ============================= */
/* Projects */
/* ============================= */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.project-card {
    min-height: 420px;

    display: flex;
    flex-direction: column;

    background: rgba(255, 255, 255, 0.62);

    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(110, 44, 144, 0.18);
}
.project-media {
    aspect-ratio: 16 / 9;
    height: auto;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(135deg, rgba(110, 44, 144, 0.12), rgba(30, 128, 141, 0.12)),
        #eeeeeb;

    cursor: pointer;
}

.project-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.55s ease,
        opacity 0.35s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.025);
}

.project-image.is-hidden {
    display: none;
}

.project-media iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: none;
}

.project-media.is-playing {
    background: #000;
    cursor: default;
}

.media-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;

    z-index: 3;

    padding: 0.45rem 0.75rem;

    color: #ffffff;
    background: rgba(17, 17, 19, 0.5);

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    font-size: 0.72rem;
    font-weight: 800;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 72px;
    height: 72px;

    transform: translate(-50%, -50%);

    display: grid;
    place-items: center;

    border: none;
    border-radius: 50%;

    color: #ffffff;
    background: var(--gradient-main);

    font-size: 1.25rem;

    cursor: pointer;

    box-shadow:
        0 20px 45px rgba(110, 44, 144, 0.28),
        0 18px 40px rgba(30, 128, 141, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.play-button i {
    margin-left: 3px;
}

.project-media:hover .play-button {
    transform: translate(-50%, -50%) scale(1.07);
    box-shadow:
        0 24px 55px rgba(110, 44, 144, 0.34),
        0 20px 48px rgba(30, 128, 141, 0.28);
}

.project-body {
    padding: 1.55rem;

    display: flex;
    flex: 1;
    flex-direction: column;
}

.card-label {
    margin-bottom: 0.7rem;

    color: var(--soft);

    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.project-body h3 {
    margin-bottom: 0.75rem;

    font-size: 1.9rem;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.project-body p {
    color: var(--muted);
    font-size: 0.95rem;
}

.project-bottom {
    margin-top: auto;
    padding-top: 1.4rem;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

/* ============================= */
/* Skills / Notes / Timeline / Contact Cards */
/* ============================= */

.skills-grid,
.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.skill-card,
.timeline-card,
.note-card,
.contact-card {
    padding: 1.9rem;

    background: rgba(255, 255, 255, 0.58);

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.skill-card:hover,
.note-card:hover,
.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(30, 128, 141, 0.18);
}

.skill-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 1.2rem;

    display: grid;
    place-items: center;

    color: #ffffff;
    background: var(--gradient-main);

    border-radius: 16px;

    font-size: 1.25rem;
}

.skill-card h3,
.timeline-card h3,
.note-card h3,
.contact-card h3 {
    margin-bottom: 0.65rem;

    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.skill-card p,
.timeline-card p,
.note-card p,
.contact-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

/* ============================= */
/* Timeline */
/* ============================= */

.timeline {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.timeline::before {
    content: "";

    position: absolute;
    top: 0;
    left: 11px;

    width: 2px;
    height: 100%;

    background: linear-gradient(var(--purple), var(--teal));
    opacity: 0.26;
}

.timeline-item {
    position: relative;

    display: flex;
    gap: 1.2rem;
}

.timeline-marker {
    width: 24px;
    height: 24px;

    margin-top: 1.8rem;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--gradient-main);
    border: 5px solid var(--bg);

    position: relative;
    z-index: 2;
}

.timeline-card {
    flex: 1;
}

.timeline-card span,
.note-card span {
    display: inline-block;

    margin-bottom: 0.65rem;

    color: var(--soft);

    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* ============================= */
/* Contact */
/* ============================= */

.contact-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 0.95rem 1rem;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.7);
    color: var(--text);

    font-size: 0.98rem;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.contact-form textarea {
    min-height: 145px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;

    border-color: rgba(110, 44, 144, 0.42);
    background: rgba(255, 255, 255, 0.92);

    box-shadow: 0 0 0 4px rgba(110, 44, 144, 0.08);
}

.contact-form button {
    width: fit-content;

    padding: 0.9rem 1.25rem;

    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    color: #ffffff;
    background: var(--gradient-main);

    border: none;
    border-radius: 999px;

    font-size: 0.94rem;
    font-weight: 850;

    cursor: pointer;

    box-shadow: 0 15px 34px rgba(110, 44, 144, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(30, 128, 141, 0.25);
}

/* ============================= */
/* Footer */
/* ============================= */

.footer {
    padding-bottom: 2rem;
}

.footer p {
    color: var(--soft);
    font-size: 0.88rem;
}

/* ============================= */
/* Reveal Animation */
/* ============================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================= */
/* Responsive */
/* ============================= */

@media (max-width: 1050px) {
    .main-wrapper {
        width: min(100% - 2rem, 1220px);
        gap: 1.5rem;
    }

    .left-section {
        width: 36%;
    }

    .right-section {
        width: 64%;
    }
}

@media (max-width: 860px) {
    .main-wrapper {
        flex-direction: column;
    }

    .left-section {
        width: 100%;
        height: auto;

        position: relative;
        top: 0;

        padding: 3rem 0 1rem;
    }

    .right-section {
        width: 100%;

        padding-top: 1rem;
    }

    .identity-card {
        min-height: auto;
    }

    .skills-grid,
    .notes-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .project-media {
        height: 300px;
    }
}

@media (max-width: 560px) {
    :root {
        --top-offset: 86px;
    }

    .main-wrapper {
        width: min(100% - 1.2rem, 1220px);
    }

    .top-menu {
        top: 14px;
        width: min(520px, calc(100% - 1rem));
    }

    .identity-card,
    .hero-card,
    .skill-card,
    .timeline-card,
    .note-card,
    .contact-card,
    .project-card {
        border-radius: 24px;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-card::before {
        inset: 0.9rem;
        border-radius: 19px;
    }

    .hero-card h2 {
        font-size: 2.45rem;
    }

    .project-media {
        height: 225px;
    }

    .play-button {
        width: 62px;
        height: 62px;
        font-size: 1.1rem;
    }

    .project-body h3 {
        font-size: 1.55rem;
    }

    .project-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    /* ============================= */
/* Mobile Bottom Navigation */
/* ============================= */

@media (max-width: 760px) {
    :root {
        --top-offset: 24px;
    }

    body {
        padding-bottom: 92px;
    }

    .top-menu {
        top: auto;
        bottom: 16px;
        left: 50%;

        width: min(460px, calc(100% - 1.4rem));
        height: 64px;

        transform: translateX(-50%);

        z-index: 3000;
    }

    .menu-icons {
        height: 60px;

        padding: 0 0.75rem;

        border-radius: 999px;

        background: var(--gradient-main);

        box-shadow:
            0 18px 45px rgba(110, 44, 144, 0.28),
            0 14px 40px rgba(30, 128, 141, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .menu-icons a {
        width: 38px;
        height: 38px;

        font-size: 0.95rem;

        color: rgba(255, 255, 255, 0.62);
    }

    .menu-icons a:hover,
    .menu-icons a.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.22);
        transform: translateY(-2px);
    }

    .main-wrapper {
        padding-top: var(--top-offset);
    }

    .left-section {
        padding-top: 2.5rem;
    }

    .right-section section {
        scroll-margin-top: 40px;
    }

    .footer {
        padding-bottom: 1rem;
    }
}
}