:root{
    --bg-dark: #796de7ce;
    --primary: #002fff;
    --accent: #796de7ce;
    --text: #ffffff;
    --glass: rgba(240, 166, 166, 0.10);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--bg-dark), rgb(141, 250, 129));
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

main {
    margin: 0 0.59in 0 0.1in;
}

body.library-theme {
    animation: glowPulse 3s ease-in-out infinite;
}

::selection {
    background: rgba(0, 47, 255, 0.35);
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    border: none;
    background: none;
    font: inherit;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.78; }
}

@keyframes shimmerFast {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2.2rem;
    margin: 0 0 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 5%;
    background: #796de718;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    color: rgba(255,255,255,0.88);
    padding: 0.85rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(121, 109, 231, 0.2);
    transform: translateY(-1px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(135deg, var(--primary), #3730a3);
    color: #fff;
    cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-glow:hover,
.btn-glow:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(79, 70, 229, 0.25);
}

.btn-glow {
    color: #fff;
    padding: 0.95rem 1.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(135deg, var(--primary), #3730a3);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(300px, 44vw) minmax(340px, 56vw);
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
    min-height: calc(100vh - 96px);
    position: relative;
    width: 100%;
}

.hero-left {
    display: grid;
    gap: 2rem;
    align-content: center;
}

.avatar-card {
    position: relative;
    padding: 1.9rem;
    border-radius: 90px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
    overflow: hidden;
}

.avatar-frame {
    width: min(100%, 340px);
    aspect-ratio: 0 / 0;
    border-radius: 32px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 80%);
    border: 2px solid rgba(255,255,255,0.12);
}

.avatar-frame .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-labels {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.avatar-labels span {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-stats article {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 1rem 1.1rem;
    border-radius: 22px;
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.hero-stats p {
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
}

.hero-right {
    display: grid;
    gap: 1.8rem;
    justify-items: end;
    text-align: right;
    align-content: center;
}

.hero-eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

.hero-panel h1 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.hero-panel p {
    margin: 0 0 1.8rem;
    font-size: 1.04rem;
    color: rgba(255,255,255,0.82);
    max-width: 56ch;
}

.hero-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 620px;
}

.hero-link-card {
    display: grid;
    gap: 0.7rem;
    padding: 1.35rem 1.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 26px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hero-link-card span {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.68);
}

.hero-link-card strong {
    font-size: 1.15rem;
    line-height: 1.3;
}

.hero-link-card p {
    margin: 0;
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    font-size: 0.95rem;
}

.hero-link-card:hover,
.hero-link-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(129, 102, 217, 0.65);
    background: rgba(255,255,255,0.12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
}

.avatar-wrapper {
    position: relative;
    width: min(100%, 360px);
    margin-inline-start: auto;
    z-index: 1;
}

.avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 100.65465% 200.65465% 300.54454% 400.5165%;
    border: 4px solid rgba(255,255,255,0.92);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease;
}

.avatar:hover,
.avatar:focus-visible {
    transform: scale(1.02) rotate(1deg);
}

.avatar-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 90px rgba(121, 109, 231, 0.4);
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
    pointer-events: none;
}

.hero-decoration span {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0.5;
}

.panel {
    margin: 0 auto;
    padding: 3rem 5%;
    max-width: 1200px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.12);
    backdrop-filter: blur(18px);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1.5rem;
}

.panel-grid.single-column {
    grid-template-columns: 1fr;
}

.panel-card,
.card {
    background: rgba(17, 18, 29, 0.75);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 1.7rem;
    box-shadow: 0 18px 48px rgba(0,0,0,0.16);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-card:hover,
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(121, 109, 231, 0.45);
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

.panel-card h3,
.card h3 {
    margin: 0 0 0.9rem;
    font-size: 1.25rem;
}

.panel-card p,
.card p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
}

.panel-meta {
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card-img {
    height: 22000000px;
    overflow: hidden;
    border-radius: 2200000px;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, rgba(79,70,229,0.22), transparent);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.card:hover .card-img img {
    transform: scale(1.07);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.footer-panel {
    margin: 0 auto;
    padding: 3rem 5%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.12);
    backdrop-filter: blur(18px);
}

.footer-copy h3 {
    margin: 0 0 0.75rem;
    font-size: 1.8rem;
}

.footer-copy p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    max-width: 620px;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.socials .hover-icon {
    display: inline-flex;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.92);
    transition: transform 0.2s ease, background 0.2s ease;
}

.socials .hover-icon:hover,
.socials .hover-icon:focus-visible {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.18);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.9s ease forwards;
}

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

.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.25s; }
.delay-4 { animation-delay: 0.35s; }
.delay-5 { animation-delay: 0.45s; }
.delay-6 { animation-delay: 0.55s; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
}

.hamburger-line {
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
    .hero-panel {
        grid-template-columns: 1fr;
        padding: 2.5rem 4%;
        min-height: auto;
    }

    .hero-actions,
    .hero-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions a,
    .btn-secondary {
        width: 100%;
    }

    .hero-link-grid {
        grid-template-columns: 1fr;
    }

    .hero-right {
        justify-items: stretch;
        text-align: left;
    }

    .hero-summary-panel {
        text-align: left;
    }

    .card-grid,
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1.25rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 1rem;
        background: rgba(11, 14, 35, 0.98);
        border-left: 1px solid rgba(255,255,255,0.08);
        backdrop-filter: blur(22px);
        transition: right 0.32s ease;
        z-index: 1200;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links::before {
        content: 'Menu';
        color: rgba(255,255,255,0.65);
        letter-spacing: 0.18em;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }

    .nav-links .nav-link {
        width: 100%;
        padding: 1rem 1rem;
        border-radius: 18px;
        background: rgba(255,255,255,0.05);
    }

    .hero-panel {
        padding-top: 1.5rem;
    }

    .hero-copy {
        padding-bottom: 1rem;
    }

    .hero-decoration {
        display: none;
    }

    .panel,
    .footer-panel {
        padding: 2rem 1.25rem;
        border-radius: 24px;
    }

    .footer-panel {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1rem 1rem;
    }

    .hero-panel {
        padding: 1.5rem 1rem 2rem;
    }

    .hero-panel h1 {
        font-size: 2.4rem;
    }

    .hero-copy p {
        font-size: 0.98rem;
    }

    .panel,
    .footer-panel {
        padding: 1.5rem 1rem;
    }

    .card-img {
        height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}