﻿:root {
    --bg: #ebf1f8;
    --bg-soft: #dbe5f0;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-solid: #ffffff;
    --line: rgba(15, 30, 48, 0.14);
    --line-strong: rgba(15, 30, 48, 0.26);
    --text: #0f172a;
    --text-soft: #475569;
    --accent: #2f6fe4;
    --accent-deep: #1f4fb2;
    --accent-pale: rgba(47, 111, 228, 0.14);
    --shadow-sm: 0 10px 28px rgba(15, 30, 48, 0.1);
    --shadow-md: 0 26px 60px rgba(15, 30, 48, 0.16);
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: 1160px;
    --section-gap: 88px;
    --ease: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background:
        radial-gradient(80% 52% at 92% -10%, rgba(47, 111, 228, 0.2), transparent 58%),
        radial-gradient(45% 45% at 8% 0%, rgba(31, 79, 178, 0.1), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(transparent 96%, rgba(0, 0, 0, 0.03) 100%),
        linear-gradient(90deg, transparent 96%, rgba(0, 0, 0, 0.02) 100%);
    background-size: 4px 4px, 4px 4px;
}

.container {
    width: min(var(--container), calc(100% - 2.5rem));
    margin-inline: auto;
}

section {
    padding: var(--section-gap) 0;
}

h1,
h2,
h3,
h4 {
    font-family: "Sora", "Segoe UI", sans-serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

a {
    color: inherit;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(var(--accent), var(--accent-deep));
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 18px rgba(15, 30, 48, 0.06);
    backdrop-filter: blur(8px);
}

.section-muted {
    background: rgba(255, 255, 255, 0.28);
    border-top: 1px solid rgba(15, 30, 48, 0.08);
    border-bottom: 1px solid rgba(15, 30, 48, 0.08);
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.8rem;
}

.section-kicker {
    display: inline-block;
    padding: 0.26rem 0.72rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--accent-pale);
    border: 1px solid rgba(47, 111, 228, 0.2);
    margin-bottom: 0.9rem;
}

.section-head h2 {
    margin-bottom: 0.85rem;
}

.section-head p {
    color: var(--text-soft);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: rgba(235, 241, 248, 0.8);
    backdrop-filter: blur(12px);
    transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.navbar.scrolled {
    background: rgba(238, 244, 251, 0.94);
    border-color: var(--line);
    box-shadow: 0 14px 34px rgba(15, 30, 48, 0.12);
}

.nav-wrapper {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.logo {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.15rem;
    align-items: center;
}

.nav-link {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-soft);
    transition: color var(--ease);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 0.3rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform var(--ease), opacity var(--ease);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    padding: 7.2rem 0 6rem;
    overflow: clip;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    right: -100px;
    top: -100px;
    width: 360px;
    aspect-ratio: 1;
    border-radius: 42% 58% 63% 37% / 38% 36% 64% 62%;
    background: linear-gradient(135deg, rgba(47, 111, 228, 0.3), rgba(47, 111, 228, 0));
    animation: blobFloat 10s ease-in-out infinite;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2.4rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.33rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-deep);
    background: var(--accent-pale);
    border: 1px solid rgba(47, 111, 228, 0.2);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(1.95rem, 4.8vw, 3.35rem);
    max-width: 13ch;
    line-height: 1.08;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent);
}

.hero .subtitle {
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.hero .description {
    max-width: 44ch;
    color: var(--text-soft);
    margin-bottom: 1.8rem;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

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

.quick-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem 0.8rem;
}

.quick-item strong {
    display: block;
    font-size: 1.05rem;
    font-family: "Sora", "Segoe UI", sans-serif;
    margin-bottom: 0.1rem;
}

.quick-item span {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.hero-media {
    display: grid;
    gap: 1rem;
    justify-items: end;
}

.image-placeholder {
    width: min(350px, 100%);
    aspect-ratio: 1;
    border-radius: 26px;
    border: 1px solid var(--line-strong);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.48));
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.image-placeholder:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

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

.hero-note {
    width: min(350px, 100%);
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.75rem 0.9rem;
    color: var(--text-soft);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-note i {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 28px rgba(31, 79, 178, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-deep);
}

.btn-secondary {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #fff;
}

/* About */
.about-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
}

.about-text {
    padding: 1.35rem;
}

.about-text p {
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    gap: 1rem;
}

.stat {
    padding: 1.15rem 1.2rem;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--line-strong);
}

.stat h3 {
    font-size: clamp(1.7rem, 3.2vw, 2.25rem);
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat p {
    color: var(--text-soft);
}

/* Experience timeline */
.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1rem;
    border-left: 4px solid rgba(47, 111, 228, 0.22);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(47, 111, 228, 0.42);
}

.timeline-meta span {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-deep);
    background: var(--accent-pale);
    border: 1px solid rgba(47, 111, 228, 0.22);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.65rem;
}

.timeline-meta strong {
    display: block;
    font-family: "Sora", "Segoe UI", sans-serif;
    margin-bottom: 0.16rem;
}

.timeline-meta p {
    color: var(--text-soft);
}

.company-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.company-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
    object-fit: cover;
    flex-shrink: 0;
}

.timeline-meta .company-brand p {
    margin: 0;
}

.timeline-content p {
    color: var(--text-soft);
    margin-bottom: 0.55rem;
}

.timeline-content ul {
    padding-left: 1rem;
    color: var(--text-soft);
    display: grid;
    gap: 0.3rem;
}

/* Education */
.edu-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edu-card {
    padding: 1.25rem;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.edu-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--line-strong);
}

.edu-year {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--accent-deep);
    background: var(--accent-pale);
    border: 1px solid rgba(47, 111, 228, 0.2);
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.edu-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.edu-card p {
    color: var(--text-soft);
    margin-bottom: 0.45rem;
}

.edu-school {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.edu-logo {
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.edu-logo-itats {
    width: 98px;
    height: 40px;
}

.edu-logo-smk {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.edu-school p {
    margin: 0;
}

.edu-card small {
    color: #64748b;
    font-size: 0.84rem;
}

/* Certifications */
.cert-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-more {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
}

.cert-card {
    position: relative;
    overflow: hidden;
    min-height: 225px;
    padding: 1.05rem 1.05rem 1rem;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background-color var(--ease);
}

.cert-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2f6fe4, #70a2ff);
}

.cert-card[data-provider="dts"]::before {
    background: linear-gradient(90deg, #2f6fe4, #37a2ff);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(47, 111, 228, 0.28);
    background-color: rgba(255, 255, 255, 0.9);
}

.cert-card h3 {
    font-size: 1.03rem;
    margin-bottom: 0.6rem;
    max-width: calc(100% - 74px);
}

.cert-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.cert-card .cert-issuer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-deep);
    background: var(--accent-pale);
    border: 1px solid rgba(47, 111, 228, 0.2);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.62rem;
}

.cert-card .cert-issuer::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 228, 0.15);
}

.cert-card .cert-date {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-card .cert-id {
    font-size: 0.82rem;
    line-height: 1.5;
    border-top: 1px dashed rgba(15, 30, 48, 0.18);
    padding-top: 0.5rem;
    font-family: "Consolas", "Courier New", monospace;
    color: #334155;
    word-break: break-word;
}

.cert-card span {
    position: absolute;
    right: 0.95rem;
    top: 0.95rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-deep);
    background: var(--accent-pale);
    border: 1px solid rgba(47, 111, 228, 0.22);
    border-radius: 999px;
    padding: 0.22rem 0.56rem;
    white-space: nowrap;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.project-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--line-strong);
}

.project-image {
    height: 178px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: "Sora", "Segoe UI", sans-serif;
}

.project-bg-1 {
    background: linear-gradient(140deg, #2f6fe4, #1f4fb2);
}

.project-bg-2 {
    background: linear-gradient(140deg, #3e7de7, #355fb2);
}

.project-bg-3 {
    background: linear-gradient(140deg, #4d87ea, #2e5fbf);
}

.project-info {
    padding: 1.15rem 1.15rem 1.25rem;
}

.project-info h3 {
    font-size: 1.22rem;
    margin-bottom: 0.45rem;
}

.project-info p {
    color: var(--text-soft);
    margin-bottom: 0.9rem;
    font-size: 0.93rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.tag {
    border-radius: 999px;
    padding: 0.32rem 0.62rem;
    border: 1px solid rgba(47, 111, 228, 0.24);
    background: var(--accent-pale);
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 700;
}

.project-link {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--ease), transform var(--ease);
}

.project-link:hover {
    color: var(--accent);
    transform: translateX(3px);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form,
.contact-info {
    padding: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 0.85rem;
}

.form-group {
    transition: transform var(--ease);
}

.form-group:focus-within {
    transform: translateY(-1px);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.74);
    transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}

.form-group textarea {
    resize: vertical;
    min-height: 128px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(47, 111, 228, 0.62);
    box-shadow: 0 0 0 4px rgba(47, 111, 228, 0.14);
    background: #fff;
}

.contact-info {
    display: grid;
    gap: 0.7rem;
}

.info-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.8rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: border-color var(--ease), background-color var(--ease);
}

.info-item:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.56);
}

.info-item i {
    color: var(--accent);
    min-width: 20px;
    margin-top: 0.2rem;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.info-item p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-soft);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--ease), border-color var(--ease), color var(--ease);
}

.social-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 111, 228, 0.45);
    color: var(--accent-deep);
}

.footer {
    margin-top: 1.4rem;
    border-top: 1px solid rgba(15, 30, 48, 0.1);
    padding: 1.6rem 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 560ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-delay-1 {
    transition-delay: 80ms;
}

.reveal-delay-2 {
    transition-delay: 160ms;
}

.reveal-delay-3 {
    transition-delay: 240ms;
}

@keyframes blobFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(8px) rotate(5deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --section-gap: 76px;
    }

    .hero-layout,
    .about-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-media {
        justify-items: start;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

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

    .cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(238, 244, 251, 0.97);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.25rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.82rem 1.2rem;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        padding-top: 5.5rem;
    }

    .hero-content h1 {
        max-width: 17ch;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(var(--container), calc(100% - 1.4rem));
    }

    .section-head {
        margin-bottom: 2.1rem;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 11vw, 2.7rem);
    }

    .project-image {
        height: 155px;
    }

    .edu-logo-itats {
        width: 84px;
        height: 34px;
    }

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 1ms !important;
    }

    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}
