*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0f1e;
    --bg-alt: #0e1528;
    --surface: #131c35;
    --border: rgba(255,255,255,0.08);
    --text: #e8eaf6;
    --text-muted: #8892b0;
    --accent: #17a589;
    --accent-dim: rgba(23,165,137,0.12);
    --accent2: #8f2361;
    --accent3: #b6b936;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent2); }

img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

/* ===== TYPOGRAPHY ===== */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-eyebrow.center { text-align: center; }

.section-heading {
    font-family: var(--font-body);
    font-size: clamp(30px, 4vw, 38px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.section-heading.center { text-align: center; }

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
    padding: 0 2rem;
}

#navbar.scrolled {
    background: rgba(10,15,30,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent2);
    transition: color 0.2s;
}

.nav-name:hover {
    color: var(--text);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
    align-items: center;
    color: var(--accent2);
}

.nav-links a {
    color: var(--accent2);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
    


.nav-cta {
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: 4px;
    transition: background 0.2s !important;
}
.nav-cta:hover {
    background: var(--accent-dim);
    color: var(--accent) !important;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(10,15,30,0.98);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}
.mobile-menu a:hover { color: var(--accent); }

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 130px 2rem 80px;
    position: relative;
}

.hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-heading {
    font-family: var(--font-body);
    font-size: clamp(18px, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    max-width: 700px;
    margin-bottom: 20px;
}

.hero-accent {
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--accent2)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    align-items: center;
}

.hero-timezone {
    color: var(--text-muted);
    font-size: 15px;
    margin-left: 8px;
    white-space: nowrap;
    line-height: 1;
    align-self: center !important;
    top: 5px;
    color: #fff;
    font-weight: 900;
}

.hero-inner {
    position: relative;
}

.hero-graphic {
    position: absolute;

    right: 40px;
    top: 50%;

    transform: translateY(-50%);

    width: 220px;
    height: 220px;

    color: var(--accent2);

    opacity: 0.25;

    pointer-events: none;
}

.hero-graphic svg {
    width: 100%;
    height: 100%;
}

.hero-eyebrow svg {
    color: var(--accent2);
    margin-right: 4px;
}

@media (max-width: 900px) {
    .hero-graphic {
        display: none;
    }
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; color: #fff; transform: translateY(-1px);  background: var(--accent2); }

.btn-ghost {
    border: 1px solid var(--accent2);
    color: var(--accent2);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(143, 35, 97, 0.12);
    border-color: var(--accent2);
    color: var(--accent2);
}

.btn-large { padding: 18px 48px; font-size: 16px; }

.hero-socials {
    display: flex;
    gap: 20px;
    align-items: center;
}
.hero-socials a {
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
}
.hero-socials a:hover { color: var(--accent); transform: translateY(-2px); }

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hero-scroll-indicator span {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===== TICKER ===== */
.ticker-wrap {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    background: var(--surface);
}
.ticker {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: tickerScroll 35s linear infinite;
    white-space: nowrap;
}
.ticker span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.ticker .dot { color: var(--accent); }
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: center;
}

.about-photo-wrap {
    position: relative;
}
.about-photo-wrap::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    transform: translate(8px, 8px);
    z-index: 0;
}
.about-photo-wrap img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    filter: grayscale(20%);
}

.about-text-col p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 16px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
    font-family: var(--font-body);
    font-size: 36px;
    font-weight: 800;
    color: var(--accent3);
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== EXPERTISE ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.expertise-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    transition: border-color 0.3s, transform 0.3s;
}
.expertise-card:hover {
    border-color: var(--accent2);
    transform: translateY(-4px);
}

.expertise-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== EXPERIENCE SCROLL ===== */

.experience-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    text-align: right;
}

.experience-scroll {
    display: flex;
    gap: 24px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 12px;

    scroll-snap-type: x proximity;

    scrollbar-width: none;
}

.experience-scroll::-webkit-scrollbar {
    display: none;
}

.experience-scroll::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 999px;
}

.experience-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
}

.experience-card {
    flex: 0 0 950px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;

    padding: 28px;

    scroll-snap-align: start;

    transition: transform 0.25s ease,
                border-color 0.25s ease;
}

.experience-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.experience-date {
    display: block;

    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;

    margin-bottom: 12px;
}

.experience-tag {
    display: inline-block;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;

    background: var(--accent-dim);
    color: var(--accent);

    padding: 4px 10px;
    border-radius: 20px;

    margin-bottom: 16px;
}

.experience-card h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;

    margin-bottom: 8px;

    color: var(--text);
}

.experience-company {
    color: var(--accent2);
    font-size: 14px;
    font-weight: 500;

    margin-bottom: 14px;
}

.timeline-progression {
    color: var(--text-muted);
    font-size: 13px;

    margin-bottom: 18px;
    line-height: 1.6;
}

.experience-card ul {
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.experience-card ul li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;

    position: relative;
    padding-left: 18px;
}

.experience-card ul li::before {
    content: '▸';

    position: absolute;
    left: 0;
    top: 0;

    color: var(--accent);
}

.experience-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.experience-nav {
    display: flex;
    gap: 10px;
}

.exp-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--accent2);
    background: var(--surface);
    color: var(--accent2);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.25s ease;
}

.exp-arrow:hover {
    background: var(--accent2);
    color: white;
    transform: translateY(-2px);
}

/* Mobile */

@media (max-width: 768px) {

    .experience-card {
        flex: 0 0 90%;
    }

    .experience-card h3 {
        font-size: 18px;
    }

    .experience-hint {
        text-align: left;
    }
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.project-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.project-card:hover .project-img-wrap img { transform: scale(1.04); }

.project-img-placeholder {
    background: linear-gradient(
        135deg,
        var(--accent),
        var(--accent2)
    );

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-inner {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    opacity: 1;
}

.project-img-placeholder svg {
    width: 72px;
    height: 72px;
    stroke: #ffff00;
}

.project-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(10,15,30,0.85);
    color: var(--accent2);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--accent);
}

.project-body {
    padding: 24px;
}

.project-body h3 {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.65;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.project-stack span {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.project-links {
    display: flex;
    gap: 20px;
}
.project-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}
.project-links a:hover { color: var(--accent); }

/* ===== CREDENTIALS ===== */
.creds-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.cred-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.3s;
}
.cred-card:hover { border-color: var(--accent); }

.cred-icon {
    color: var(--accent3);
    flex-shrink: 0;
    margin-top: 2px;
}

.cred-card h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.cred-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact-section {
    background: var(--bg);
}

.contact-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.contact-heading {
    font-family: var(--font-body);
    font-size: clamp(30px, 4vw, 38px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.contact-sub {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 16px;
}

.contact-socials {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.contact-socials a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.25s ease;
}

.contact-socials a:hover {
    color: var(--accent2);
    transform: translateY(-3px);
}

.contact-email {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.contact-email a {
    color: var(--accent2);
    font-weight: 600;
}

.contact-email a:hover {
    color: var(--accent3);
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 2rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
footer span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: flex; }

    .hero-heading { font-size: clamp(32px, 10vw, 56px); }
    .hero-sub { font-size: 16px; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-photo-wrap img { height: 260px; }
    .about-stats { gap: 20px; }
    .stat-num { font-size: 28px; }

    .expertise-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }

    .timeline { padding-left: 24px; }
    .timeline-item::before { left: -30px; }

    .footer-inner { flex-direction: column; text-align: center; }

    .section { padding: 72px 0; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-ghost { text-align: center; }
    .about-stats { flex-wrap: wrap; }
}