:root {
    --bg-1: #050816;
    --bg-2: #0b1022;
    --accent: #4b84ff;
    --accent-soft: rgba(75, 132, 255, 0.35);
    --accent-strong: #f7b500;
    --text-main: #f5f5f9;
    --text-muted: #a3a7c5;
    --card-bg: rgba(8, 11, 24, 0.9);
    --border-soft: rgba(255, 255, 255, 0.08);
    --radius-lg: 22px;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.55);
}

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at top left, #1b1f40 0, #050816 45%, #020308 100%);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /* fallback for older browsers */
    min-height: 100dvh;
    /* real visible viewport height on mobileb */
}

/* Animated background orbits */
.bg-orbit {
    position: fixed;
    inset: auto;
    top: -100px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75, 132, 255, 0.28) 0, transparent 60%);
    filter: blur(1px);
    opacity: 0.9;
    pointer-events: none;
    animation: float-orbit 18s ease-in-out infinite alternate;
    z-index: -1;
}

.bg-orbit.orbit-2 {
    top: auto;
    bottom: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(247, 181, 0, 0.25) 0, transparent 60%);
    animation-duration: 22s;
}

@keyframes float-orbit {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-40px, 30px, 0) scale(1.05);
    }

    100% {
        transform: translate3d(20px, -20px, 0) scale(0.95);
    }
}

/* Layout */

.layout {
    max-width: 1120px;
    margin: 48px auto 72px;
    padding: 0 20px 40px;
}

/* Header / nav */
/* 
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(5, 8, 22, 0.9), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: "JetBrains Mono", monospace;
    background: radial-gradient(circle at 30% 0, rgba(247, 181, 0, 0.8) 0, #100b2a 60%);
    box-shadow: 0 0 18px rgba(247, 181, 0, 0.35);
}

.nav a {
    margin-left: 18px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 0.22s ease-out;
}

.nav a:hover {
    color: var(--text-main);
}

.nav a:hover::after {
    width: 100%;
} */

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin: 0 0 10px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1.15;
    margin: 0 0 10px;
}

.hero h1 span {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 6px;
}

.hero-lead {
    margin-top: 14px;
    margin-bottom: 22px;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.17s ease, box-shadow 0.17s ease, background 0.17s ease, border-color 0.17s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #05050a;
    box-shadow: 0 14px 35px rgba(75, 132, 255, 0.45);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 45px rgba(75, 132, 255, 0.6);
}

.btn.ghost {
    border-color: var(--accent-soft);
    color: var(--text-main);
    background: rgba(10, 14, 35, 0.85);
}

.btn.ghost:hover {
    border-color: var(--accent);
    background: rgba(12, 16, 40, 1);
    transform: translateY(-1px);
}

/* Social row */

.social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.social-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 12, 32, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    animation: float-icon 4s ease-in-out infinite;
}

.social-icon:nth-child(3) {
    animation-delay: 0.4s;
}

.social-icon:nth-child(4) {
    animation-delay: 0.8s;
}

.social-icon img {
    width: 60%;
    height: 60%;
    image-rendering: -webkit-optimize-contrast;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent);
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Hero photo */

.hero-photo-card {
    background: radial-gradient(circle at top, rgba(75, 132, 255, 0.28) 0, transparent 60%),
        var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    animation: rise-in 0.8s ease-out both;
}

.photo-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 20% 0, rgba(247, 181, 0, 0.35) 0, #050814 55%);
    aspect-ratio: 4 / 5;
    transform-origin: center;
    animation: subtle-tilt 9s ease-in-out infinite alternate;
}

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

.photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 10, 0.4), transparent 40%);
    mix-blend-mode: soft-light;
}

.photo-caption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

@keyframes subtle-tilt {
    0% {
        transform: rotate3d(1, -1, 0, 6deg) translateY(0);
    }

    50% {
        transform: rotate3d(-1, 1, 0, 4deg) translateY(-4px);
    }

    100% {
        transform: rotate3d(1, 0.3, 0, 6deg) translateY(0);
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

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

/* Sections / cards */

.section {
    margin-bottom: 32px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 24px 22px 26px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.card h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
}

.card p {
    margin: 8px 0;
    color: var(--text-muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 26px;
}

.bullet-list {
    padding-left: 18px;
    margin: 10px 0;
    color: var(--text-muted);
}

.bullet-list li {
    margin-bottom: 4px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    font-size: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(135deg, rgba(75, 132, 255, 0.16), rgba(10, 12, 26, 0.9));
}

/* Timeline */

.timeline {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.timeline-item {
    position: relative;
    padding-left: 16px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.6;
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-strong);
    box-shadow: 0 0 10px rgba(247, 181, 0, 0.7);
}

.timeline h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.timeline-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 6px;
}

/* Contact */

.contact-card h2 {
    margin-bottom: 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.link-strong {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 600;
}

.link-strong:hover {
    text-decoration: underline;
}

.contact-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-links li {
    margin-bottom: 4px;
}

.contact-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* Animations for sections */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-up 0.7s ease-out forwards;
}

#about.fade-in {
    animation-delay: 0.10s;
}

#expertise.fade-in {
    animation-delay: 0.18s;
}

#experience.fade-in {
    animation-delay: 0.26s;
}

#contact.fade-in {
    animation-delay: 0.34s;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */

.site-footer {
    max-width: 1120px;
    margin: 0 auto 32px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.site-footer .mono {
    font-family: "JetBrains Mono", monospace;
    opacity: 0.9;
}

/* Responsive */

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

    .hero-photo-card {
        order: -1;
    }

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

    .site-header {
        flex-direction: row;
    }

    .nav a {
        margin-left: 10px;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding-inline: 14px;
    }

    .nav {
        display: none;
        /* keep header uncluttered on very small screens */
    }

    .hero-actions {
        width: 100%;
    }

    .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.role-badge {
    display: inline-block;
    width: auto;
    margin-top: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e7e9ff;

}

.hero-subrole {
    margin-top: 4px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}