/* Reset + base */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: #0b1220
}

a {
    color: inherit;
    text-decoration: none
}


/* Layout */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(11, 18, 32, 0.04)
}

.brand {
    font-weight: 700;
    letter-spacing: 0.4px
}

nav a {
    margin-left: 20px;
    font-weight: 600;
    font-size: 14px;
    opacity: .85
}


/* Full-page sections continuous scroll */

main {
    scroll-behavior: smooth
}

section {
    min-height: 100vh;
    padding: 120px 6vw 80px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center
}


/* Hero */

.hero {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 48px
}

.hero-left h1 {
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.02;
    margin-bottom: 18px
}

.hero-left p {
    font-size: 18px;
    opacity: .88;
    margin-bottom: 24px
}

.cta {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    background: #0b1220;
    color: #fff;
    font-weight: 700
}

/* Mock device / showcase */

.showcase {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12);
    min-height: 380px;
    background: #f6f7fb;
    display: flex;
    align-items: center;
    justify-content: center
}

.showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover
}


/* About Me Timeline */

.about-me {
    background: #fbfdff;
    padding: 100px 6vw;
}

.about-me h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-me .intro {
    max-width: 780px;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
    opacity: .9;
}

.timeline {
    position: relative;
    padding-left: 40px;
    border-left: 3px solid #0b1220;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-date {
    position: absolute;
    left: -80px;
    top: 0;
    font-weight: 700;
    font-size: 14px;
}

.timeline-content {
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(11, 18, 32, 0.08);
}

.timeline-content h3 {
    margin-bottom: 6px;
    font-size: 18px;
}


/* Secondary CTA */

.cta.secondary {
    background: #fff;
    color: #0b1220;
    border: 2px solid #0b1220;
    margin-top: 12px;
    display: inline-block;
}

.cta.secondary:hover {
    background: #0b1220;
    color: #fff;
}


/* About + skills */

.about {
    background: linear-gradient(180deg, #fff, #fbfdff)
}

.skills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px
}

.skill {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(11, 18, 32, 0.06);
    font-weight: 600;
    font-size: 13px
}


/* Projects gallery */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px
}

.project {
    position: relative;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 18px;
    color: #fff
}

.project .meta {
    z-index: 3;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 12px
}

.project .meta a {
    color: #87ceeb;
    text-decoration: underline
}

.project::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.46);
    transform: scale(1.02);
    transition: transform .6s, filter .3s
}

.project:hover::before {
    transform: scale(1);
    filter: brightness(.36)
}


/* Example sizes */

.project.big {
    grid-column: span 2;
    min-height: 420px
}


/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100
}

.lightbox img {
    max-width: 84vw;
    max-height: 84vh;
    border-radius: 10px
}


/* Footer */

footer {
    padding: 48px 6vw;
    background: #fafbff;
    border-top: 1px solid rgba(11, 18, 32, 0.03)
}


/* Responsive */

@media (max-width:980px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    header {
        padding: 12px 18px
    }
}

@media (max-width:600px) {
    section {
        padding: 96px 4vw 60px
    }
    .projects-grid {
        grid-template-columns: 1fr
    }
}