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

:root {
    --bg: #ffffff;
    --bg2: #f8f9fc;
    --text: #0f0f1a;
    --text2: #4a4a6a;
    --text3: #9090b0;
    --accent: #22a07d;
    --accent2: #2e7762;
    --accent-light: #eef2ff;
    --accent-mid: #c7d2fe;
    --border: #e4e8f0;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(79, 70, 229, .10);
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 999
}

.nav-inner {
    max-width: 1120px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 2rem
}

.logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #22a07d;

}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none
}

.nav-links a {
    text-decoration: none;
    color: var(--text2);
    font-size: .88rem;
    font-weight: 500;
    transition: color .2s;
    position: relative
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width .25s
}

.nav-links a:hover {
    color: var(--accent)
}

.nav-links a:hover::after {
    width: 100%
}

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: .45rem 1.1rem;
    border-radius: 8px;
    font-weight: 600 !important
}

.nav-cta:hover {
    background: var(--accent2) !important
}

.nav-cta::after {
    display: none !important
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .3s
}

@media(max-width:700px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1.25rem 2rem;
        gap: 1.25rem
    }

    .nav-links.open {
        display: flex
    }

    .hamburger {
        display: flex
    }
}

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 80px;
    background: var(--bg)
}

.hero-container {
    max-width: 1120px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 5rem;
    align-items: center
}

@media(max-width:900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--accent-light);
    border: 1px solid var(--accent-mid);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 600;
    padding: .45rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.75rem
}

.pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(.85)
    }
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 1rem
}

.hero-title .line1 {
    color: var(--text)
}

.hero-title .line2 {
    color: var(--accent)
}

.hero-title .line3 {
    color: var(--text)
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text2);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2rem
}

@media(max-width:900px) {
    .hero-desc {
        margin: 0 auto 2rem
    }
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem
}

@media(max-width:900px) {
    .hero-btns {
        justify-content: center
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: .2s;
    cursor: pointer;
    border: none
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .3)
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .4)
}

.btn-outline {
    background: #fff;
    color: var(--accent);
    border: 1.5px solid var(--accent-mid)
}

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

.hero-stats {
    display: flex;
    gap: 2rem
}

@media(max-width:900px) {
    .hero-stats {
        justify-content: center
    }
}

.stat {
    display: flex;
    flex-direction: column
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px
}

.stat-label {
    font-size: .73rem;
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px
}

/* PHOTO */
.photo-card {
    position: relative;
    display: flex;
    justify-content: center
}

.photo-ring {
    width: 340px;
    height: 380px;
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid var(--accent-mid);
    box-shadow: var(--shadow);
    position: relative;
    background: var(--accent-light);
    cursor: pointer
}

.photo-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block
}

.photo-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08)
}

.photo-badge-dot {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%
}

.photo-badge span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text)
}

.deco-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-light);
    border: 2px dashed var(--accent-mid);
    top: -20px;
    right: -20px;
    z-index: -1
}

.deco-square {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #fef3c7;
    border: 2px solid #fde68a;
    bottom: 10px;
    left: -25px;
    z-index: -1;
    transform: rotate(15deg)
}

@media(max-width:900px) {
    .photo-ring {
        width: 260px;
        height: 300px
    }

    .deco-circle,
    .deco-square {
        display: none
    }
}

/* ── SECTIONS ── */
section {
    padding: 90px 2rem
}

.container {
    max-width: 1120px;
    margin: auto
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem
}

.section-eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: .75rem
}

.section-sub {
    color: var(--text2);
    font-size: .95rem;
    max-width: 520px;
    margin-bottom: 3rem;
    line-height: 1.7
}

/* ── SKILLS — 3-col box grid ── */
#skills {
    background: var(--bg2)
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem
}

@media(max-width:900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:540px) {
    .skills-grid {
        grid-template-columns: 1fr
    }
}

.skill-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: .25s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-light), transparent);
    opacity: 0;
    transition: .3s
}

.skill-card:hover {
    border-color: var(--accent-mid);
    transform: translateY(-4px);
    box-shadow: var(--shadow)
}

.skill-card:hover::before {
    opacity: 1
}

.skill-top {
    display: flex;
    align-items: center;
    gap: .9rem;
    position: relative
}

.skill-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.skill-icon-box svg {
    width: 22px;
    height: 22px
}

.skill-meta {
    display: flex;
    flex-direction: column
}

.skill-cat {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent)
}

.skill-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text)
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    position: relative
}

.tag {
    background: var(--accent-light);
    color: var(--accent);
    font-size: .7rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 50px
}

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

.proj-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: .25s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.proj-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-light), transparent);
    opacity: 0;
    transition: .3s
}

.proj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(79, 70, 229, .13);
    border-color: var(--accent-mid)
}

.proj-card:hover::before {
    opacity: 1
}

.proj-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative
}

.proj-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0
}

.proj-links {
    display: flex;
    gap: .5rem
}

.icon-link {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    color: var(--text2)
}

.icon-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light)
}

.icon-link svg {
    width: 16px;
    height: 16px
}

.proj-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: .5rem;
    position: relative
}

.proj-desc {
    font-size: .85rem;
    color: var(--text2);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
    position: relative
}

.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    position: relative
}

/* ── CONTACT ── */
#contact {
    background: var(--bg2)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    gap: 4rem;
    align-items: start
}

@media(max-width:800px) {
    .contact-grid {
        grid-template-columns: 1fr
    }
}

.cinfo h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .6rem
}

.cinfo p {
    color: var(--text2);
    font-size: .9rem;
    line-height: 1.75;
    margin-bottom: 1.75rem
}

.cinfo-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .9rem
}

.cinfo-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.cinfo-ico svg {
    width: 18px;
    height: 18px;
    color: var(--accent)
}

.cinfo-item span {
    font-size: .875rem;
    color: var(--text2)
}

.social-row {
    display: flex;
    gap: .75rem;
    margin-top: 1.75rem;
    flex-wrap: wrap
}

.soc-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 600;
    color: var(--text2);
    text-decoration: none;
    transition: .2s;
    background: #fff
}

.soc-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0
}

.soc-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light)
}

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(79, 70, 229, .05)
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

@media(max-width:480px) {
    .form-row {
        grid-template-columns: 1fr
    }
}

.fg {
    margin-bottom: 1.25rem
}

.fg label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .5px
}

.fg input,
.fg textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: .2s
}

.fg input:focus,
.fg textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1)
}

.fg textarea {
    resize: vertical;
    min-height: 130px
}

.form-status {
    display: none;
    padding: .75rem 1rem;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 500;
    margin-top: .75rem
}

.form-status.ok {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block
}

.form-status.err {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: .82rem;
    color: var(--text3);
    border-top: 1px solid var(--border);
    background: #fff
}

footer strong {
    color: var(--accent)
}