:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --accent: #06b6d4;
    --accent-600: #0891b2;
    --shadow: 0 10px 30px rgba(2, 12, 27, .08)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
    color: var(--text);
    background: var(--bg);
    line-height: 1.6
}

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

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

ul {
    padding: 0;
    margin: 0;
    list-style: none
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto
}

.section {
    padding: 80px 0
}

@media (min-width:992px) {
    .section {
        padding: 112px 0
    }
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 0 24px
}

.eyebrow {
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 8px
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 50
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800
}

.logo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-600))
}

.brand-text {
    letter-spacing: .08em
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer
}

.nav-toggle .bar {
    width: 22px;
    height: 2px;
    background: var(--text)
}

.nav-menu {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 12px 16px;
    gap: 8px
}

.nav-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px
}

.nav-menu a:hover {
    background: var(--bg-alt)
}

.nav-cta .btn {
    width: 100%
}

@media (min-width:900px) {
    .nav-toggle {
        display: none
    }
    .nav-menu {
        all: unset;
        display: flex;
        align-items: center;
        gap: 12px
    }
    .nav-menu a {
        padding: 8px 10px
    }
    .nav-cta .btn {
        width: auto
    }
}


/* Hero */

.hero {
    padding-top: 40px
}

.grid-2 {
    display: grid;
    gap: 28px
}

@media (min-width:900px) {
    .grid-2 {
        grid-template-columns: 1.1fr .9fr;
        gap: 48px
    }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
    margin: 0 0 8px
}

.hero-subtitle {
    color: var(--muted);
    margin: 0 0 20px
}

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

.hero-media {
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden
}


/* Buttons */

.btn {
    --btn-bg: transparent;
    --btn-text: var(--text);
    --btn-border: var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--btn-border);
    color: var(--btn-text);
    background: var(--btn-bg);
    font-weight: 600;
    transition: transform .12s ease, background .2s ease, box-shadow .2s ease
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(2, 12, 27, .06)
}

.btn-primary {
    --btn-bg: linear-gradient(135deg, var(--accent), var(--accent-600));
    --btn-text: #fff;
    --btn-border: transparent
}

.btn-outline {
    --btn-bg: #fff;
    --btn-border: var(--border)
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-border: var(--border)
}

.btn-sm {
    padding: 8px 12px;
    border-radius: 8px
}


/* Cards */

.projects-grid {
    display: grid;
    gap: 20px
}

@media (min-width:760px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (min-width:1100px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow)
}

.card-media {
    aspect-ratio: 16/9;
    object-fit: cover
}

.card-body {
    padding: 16px
}

.card-title {
    margin: 0 0 8px;
    font-size: 1.1rem
}

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

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px
}

.tags li {
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .85rem;
    color: var(--muted)
}

.card-actions {
    display: flex;
    gap: 8px
}


/* About */

.about-highlights {
    display: grid;
    gap: 10px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    color: var(--muted)
}


/* Skills */

.skills-grid {
    display: grid;
    gap: 20px
}

@media (min-width:760px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

.skill-group h3 {
    margin: 0 0 8px
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.chips li {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px
}


/* Timeline */


/* Container reset */

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


/* Two-column row */

.exp-item {
    display: flex;
    gap: 32px;
    /* space between date and content */
    align-items: flex-start;
    margin-bottom: 36px;
    /* gap between rows */
}


/* Left column (date) */

.exp-item .time {
    min-width: 160px;
    /* controls left-column width */
    max-width: 220px;
    /* optional cap for long dates */
    font-weight: 500;
    color: #4a5568;
    /* subtle color */
    line-height: 1.4;
}


/* Right column (main content) */

.exp-item .content {
    flex: 1;
    /* fill remaining space */
}


/* Tighten heading / paragraph spacing for neat alignment */

.exp-item .content h3 {
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    line-height: 1.2;
}

.exp-item .content p {
    margin: 0;
    line-height: 1.6;
    color: #2d3748;
}


/* Responsive: stack on small screens */

@media (max-width: 720px) {
    .exp-item {
        flex-direction: column;
        gap: 12px;
    }
    .exp-item .time {
        min-width: 0;
        max-width: none;
    }
}


/* Testimonials */

.testimonials {
    display: grid;
    gap: 12px
}

.quote {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow)
}

.quote footer {
    margin-top: 8px;
    color: var(--muted)
}


/* Contact */

.social {
    display: grid;
    gap: 10px;
    margin: 20px 0
}

.social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted)
}

.contact-form {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow)
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px
}

label {
    font-weight: 600
}

input,
textarea {
    font: inherit;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-alt)
}

input:focus,
textarea:focus {
    outline: 2px solid color-mix(in oklab, var(--accent), white 70%)
}

.error {
    color: #b91c1c;
    min-height: 1.25em;
    font-size: .85rem
}

.form-status {
    margin-left: 12px;
    color: var(--muted)
}


/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt)
}

.footer-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.back-to-top {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff
}


/* Reveal Animations */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.in-view {
    opacity: 1;
    transform: none
}

.reveal.delay-1 {
    transition-delay: .1s
}

.reveal.delay-2 {
    transition-delay: .2s
}