:root {
    --ink-950: #020c16;
    --ink-900: #03111f;
    --ink-850: #071827;
    --ink-800: #0a2031;
    --surface: rgba(5, 22, 36, 0.88);
    --surface-strong: rgba(4, 17, 29, 0.96);
    --surface-soft: rgba(11, 38, 56, 0.68);
    --line: rgba(188, 210, 222, 0.18);
    --line-strong: rgba(225, 173, 76, 0.42);
    --ivory: #f7f0e4;
    --muted: #a9bac4;
    --gold: #e1ad4c;
    --gold-bright: #f3c66b;
    --green: #54c987;
    --green-soft: rgba(84, 201, 135, 0.12);
    --red: #d9574f;
    --blue: #74a9e8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ivory);
    font-family: var(--sans);
    line-height: 1.7;
    background-color: var(--ink-900);
    background-image:
        linear-gradient(180deg, rgba(3, 17, 31, 0.16) 0%, rgba(3, 17, 31, 0.78) 46%, #03111f 100%),
        url("calendar-time-background.png");
    background-size: cover, 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 16%, rgba(225, 173, 76, 0.08), transparent 24%),
        radial-gradient(circle at 22% 44%, rgba(84, 201, 135, 0.05), transparent 30%);
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

.shell {
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: clamp(1rem, 2vw, 1.34rem);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
    border-radius: 9px;
    box-shadow: 0 0 22px rgba(225, 173, 76, 0.12);
}

.nav-links {
    display: flex;
    align-items: stretch;
    align-self: stretch;
}

.nav-link {
    min-width: 145px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    color: #d9e1e5;
    text-decoration: none;
    border-left: 1px solid var(--line);
    transition: color 180ms ease, background 180ms ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -1px;
    left: 22px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    color: var(--ivory);
    background: rgba(255, 255, 255, 0.025);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.icon,
.section-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 88px;
}

.hero-section {
    min-height: 390px;
    padding: 68px 8vw 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid var(--line);
    animation: heroReveal 720ms ease both;
}

.hero-section::before {
    content: "";
    width: 520px;
    height: 520px;
    position: absolute;
    top: 52%;
    left: 50%;
    z-index: -1;
    border: 1px solid rgba(225, 173, 76, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 54px rgba(225, 173, 76, 0.05),
        0 0 0 108px rgba(225, 173, 76, 0.025);
    animation: orbitFloat 18s ease-in-out infinite alternate;
}

.hero-section::after {
    content: "";
    height: 3px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--red) 0 33.333%, var(--gold) 33.333% 66.666%, var(--green) 66.666%);
}

.hero-title {
    max-width: 950px;
    margin: 0;
    color: var(--ivory);
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 760px;
    margin: 30px 0 0;
    color: #c0cdd4;
    font-family: var(--serif);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.75;
    text-wrap: balance;
}

.profile-section {
    margin: 32px 0 108px;
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 82px);
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(7, 29, 45, 0.94), rgba(4, 17, 29, 0.9));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    animation: sectionReveal 720ms 100ms ease both;
}

.profile-section::after {
    content: "";
    width: 260px;
    height: 260px;
    position: absolute;
    right: -100px;
    bottom: -130px;
    border: 1px solid rgba(84, 201, 135, 0.14);
    border-radius: 50%;
    pointer-events: none;
}

.profile-image-container {
    position: relative;
    align-self: stretch;
    min-height: 490px;
    overflow: hidden;
    background: var(--ink-850);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
}

.profile-image {
    width: 100%;
    height: 100%;
    min-height: 490px;
    display: block;
    object-fit: cover;
    object-position: center 18%;
    filter: saturate(0.92) contrast(1.04);
    transition: transform 700ms ease, filter 700ms ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.025);
    filter: saturate(1) contrast(1.04);
}

.profile-badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 12px 16px;
    color: var(--ivory);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    background: rgba(3, 17, 31, 0.88);
    border: 1px solid rgba(225, 173, 76, 0.42);
    border-radius: 8px;
    backdrop-filter: blur(14px);
}

.profile-content {
    position: relative;
    z-index: 1;
    padding-right: clamp(0px, 3vw, 34px);
}

.profile-content h2 {
    max-width: 780px;
    margin: 0;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.profile-title {
    margin: 18px 0 28px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.profile-quote {
    margin: 0 0 28px;
    padding: 19px 22px;
    color: #dce6e9;
    font-family: var(--serif);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    font-style: italic;
    line-height: 1.7;
    background: var(--green-soft);
    border-left: 3px solid var(--green);
    border-radius: 0 8px 8px 0;
}

.profile-content > p:not(.profile-title) {
    max-width: 790px;
    margin: 0 0 16px;
    color: #c1ced4;
}

.profile-content strong,
.profile-content em {
    color: var(--ivory);
}

.timeline-section,
.calendar-info-section {
    margin: 0 0 112px;
}

.section-header {
    margin-bottom: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ivory);
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-icon {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.section-header p {
    max-width: 390px;
    margin: 0 0 4px;
    color: var(--muted);
    text-align: right;
}

.timeline {
    position: relative;
    margin: 0;
    padding: 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 160px;
    width: 1px;
    background: linear-gradient(var(--gold), rgba(225, 173, 76, 0.08));
}

.timeline-item {
    min-height: 128px;
    padding: 18px 0;
    display: grid;
    grid-template-columns: 194px minmax(0, 1fr);
    position: relative;
    border-bottom: 1px solid var(--line);
    transition: background 220ms ease, transform 220ms ease;
    animation: rowReveal 560ms ease both;
}

.timeline-item:nth-child(2) { animation-delay: 50ms; }
.timeline-item:nth-child(3) { animation-delay: 100ms; }
.timeline-item:nth-child(4) { animation-delay: 150ms; }
.timeline-item:nth-child(5) { animation-delay: 200ms; }
.timeline-item:nth-child(6) { animation-delay: 250ms; }
.timeline-item:nth-child(7) { animation-delay: 300ms; }
.timeline-item:nth-child(8) { animation-delay: 350ms; }

.timeline-item:hover {
    background: linear-gradient(90deg, rgba(225, 173, 76, 0.045), transparent 68%);
    transform: translateX(4px);
}

.timeline-year {
    align-self: start;
    padding: 6px 66px 0 0;
    position: relative;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1.2;
    text-align: right;
}

.timeline-year::after {
    content: "";
    width: 11px;
    height: 11px;
    position: absolute;
    top: 14px;
    right: 27px;
    border: 2px solid var(--ink-900);
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(225, 173, 76, 0.12);
}

.timeline-content {
    padding: 2px 30px 6px 34px;
}

.timeline-content h3 {
    margin: 0 0 7px;
    color: var(--ivory);
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 400;
}

.timeline-content p {
    max-width: 870px;
    margin: 0;
    color: var(--muted);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.info-card {
    min-height: 300px;
    padding: 34px clamp(24px, 3vw, 42px) 38px;
    position: relative;
}

.info-card + .info-card {
    border-left: 1px solid var(--line);
}

.info-card::before {
    display: block;
    margin-bottom: 38px;
    color: var(--green);
    font-family: var(--serif);
    font-size: 0.88rem;
    letter-spacing: 0.16em;
}

.info-card:nth-child(1)::before { content: "01"; }
.info-card:nth-child(2)::before { content: "02"; }
.info-card:nth-child(3)::before { content: "03"; }

.info-card h3 {
    margin: 0 0 15px;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 400;
}

.info-card p {
    margin: 0;
    color: var(--muted);
}

.comparison-table {
    margin: 48px 0 28px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.table-header {
    padding: 18px 24px;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.table-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-row + .table-row {
    border-top: 1px solid var(--line);
}

.table-cell {
    padding: 18px 24px;
    color: #c8d4d9;
}

.table-cell + .table-cell {
    border-left: 1px solid var(--line);
}

.table-row:nth-child(2) .table-cell {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.highlight-box {
    margin-top: 28px;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
    gap: 34px;
    align-items: center;
    background: linear-gradient(90deg, rgba(225, 173, 76, 0.11), rgba(225, 173, 76, 0.025));
    border: 1px solid var(--line-strong);
    border-radius: 12px;
}

.highlight-box h3 {
    margin: 0;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 400;
}

.highlight-box p {
    margin: 0;
    color: #c6d1d6;
}

.contact-section {
    margin-top: 24px;
    padding: clamp(36px, 6vw, 70px);
    position: relative;
    overflow: hidden;
    background: var(--surface-strong);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line);
}

.contact-section::after {
    content: "";
    width: 380px;
    height: 380px;
    position: absolute;
    top: 50%;
    right: -140px;
    border: 1px solid rgba(84, 201, 135, 0.12);
    border-radius: 50%;
    transform: translateY(-50%);
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-content h2 {
    margin: 0 0 12px;
    color: var(--ivory);
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
}

.contact-content > p {
    margin: 5px 0;
    color: var(--muted);
}

.contact-content .blessing-text {
    color: var(--green);
    font-family: var(--serif);
    font-size: 1.16rem;
}

.contact-details {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.7fr;
    gap: 0;
    border-top: 1px solid var(--line);
}

.contact-item {
    min-width: 0;
    padding: 22px 24px 0 0;
    display: grid;
    gap: 5px;
    color: #d5dfe3;
}

.contact-item + .contact-item {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.contact-label {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-item a {
    color: var(--ivory);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--gold-bright);
}

.footer {
    min-height: 90px;
    padding: 28px 0 34px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    color: #8fa2ad;
    font-family: var(--serif);
    font-size: 0.72rem;
    border-top: 1px solid var(--line);
}

.footer p {
    margin: 0;
}

.footer p:nth-child(2) {
    color: #c6c8c2;
    text-align: center;
}

.footer a {
    color: var(--green);
    text-decoration: none;
}

.footer > a {
    justify-self: end;
    color: #8fa2ad;
}

.footer a:hover {
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

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

@keyframes rowReveal {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes orbitFloat {
    from { transform: translate(-50%, -50%) rotate(-2deg) scale(0.98); }
    to { transform: translate(-50%, -50%) rotate(2deg) scale(1.02); }
}

@media (max-width: 980px) {
    .profile-section {
        grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
        gap: 34px;
    }

    .profile-content h2 {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-header p {
        text-align: left;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: 0;
    }

    .info-card + .info-card {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .contact-item + .contact-item {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .shell,
    .container {
        width: min(100% - 24px, 1280px);
    }

    .navbar {
        min-height: 66px;
        gap: 10px;
    }

    .brand span {
        display: none;
    }

    .nav-link {
        min-width: 54px;
        padding: 0 15px;
    }

    .nav-link span {
        display: none;
    }

    .nav-link::after {
        right: 14px;
        left: 14px;
    }

    .hero-section {
        min-height: 340px;
        padding: 54px 20px 64px;
    }

    .hero-section::before {
        width: 390px;
        height: 390px;
    }

    .profile-section {
        margin-bottom: 82px;
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .profile-image-container,
    .profile-image {
        min-height: 460px;
    }

    .profile-content {
        padding: 0 8px 12px;
    }

    .timeline-section,
    .calendar-info-section {
        margin-bottom: 82px;
    }

    .timeline::before {
        left: 11px;
    }

    .timeline-item {
        padding: 20px 0 24px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .timeline-year {
        padding: 0 0 0 34px;
        text-align: left;
    }

    .timeline-year::after {
        top: 7px;
        right: auto;
        left: 6px;
    }

    .timeline-content {
        padding: 0 0 0 34px;
    }

    .table-row {
        grid-template-columns: 1fr;
    }

    .table-cell + .table-cell {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .table-row:nth-child(2) {
        display: none;
    }

    .highlight-box {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .footer > a {
        justify-self: center;
    }
}

@media (max-width: 460px) {
    .hero-title {
        font-size: clamp(2.45rem, 13vw, 3.5rem);
    }

    .profile-image-container,
    .profile-image {
        min-height: 400px;
    }

    .profile-content h2 {
        font-size: 2rem;
    }

    .section-header h2 {
        align-items: flex-start;
        font-size: 2.25rem;
    }

    .section-icon {
        margin-top: 7px;
    }

    .info-card,
    .highlight-box,
    .contact-section {
        padding-right: 22px;
        padding-left: 22px;
    }
}

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