/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #2f6cff;
    --blue-light: #e8efff;
    --blue-hover: #4c80ff;
    --bg: #e9edf5;
    --card: #ffffff;
    --text: #1a1f36;
    --muted: #6b7280;
    --radius: 16px;
    --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    padding: 32px;
    line-height: 1.6;
}

h1,
h2,
h3,
.logo {
    font-family: 'Syne', sans-serif;
}

.blue {
    color: var(--blue);
}

/* ── Sticky Navbar ── */
.header {
    position: sticky;
    top: 16px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(47, 108, 255, .08);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 8px 32px rgba(47, 108, 255, .15);
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--blue);
}

.nav-bar ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-bar li a {
    text-decoration: none;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    display: block;
}

.nav-bar li a:hover,
.nav-bar li a.active {
    background: var(--blue-light);
    color: var(--blue);
}

/* ── Shared Section Style ── */
.section-card {
    background: var(--card);
    border-radius: var(--radius);
    margin-top: 24px;
    padding: 80px 56px;
}

.section-label {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

/* ── Button ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 14px 28px;
    border: none;
    background: var(--blue);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 108, 255, .3);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: #fff;
}

/* ══════════════════════════════════════════
           HERO
        ══════════════════════════════════════════ */
#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-text p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 16px;
    max-width: 380px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-image-wrap {
    position: relative;
}

.hero-image-wrap::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(var(--blue), #a78bfa, var(--blue));
    animation: spin 6s linear infinite;
    z-index: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-image-wrap img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--card);
    position: relative;
    z-index: 1;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-3px);
}

/* ══════════════════════════════════════════
           ABOUT
        ══════════════════════════════════════════ */
#about {
    display: flex;
    align-items: center;
    gap: 64px;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 16px 16px 0 var(--blue-light);
}

.about-text h2 {
    margin-bottom: 8px;
}

.about-text h3 {
    font-size: 18px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 480px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.about-tags span {
    padding: 6px 16px;
    background: var(--blue-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    font-family: 'Syne', sans-serif;
}

.about-info {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.about-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.about-info i {
    color: var(--blue);
    font-size: 18px;
}

/* ══════════════════════════════════════════
           SKILLS
 ══════════════════════════════════════════ */
#skills {}

.skills-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg);
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1.5px solid transparent;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(47, 108, 255, .12);
    border-color: var(--blue-light);
}

.skill-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-light);
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--blue);
}

.skill-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.skill-level {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.skill-bar-track {
    background: #e2e8f0;
    border-radius: 99px;
    height: 7px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), #7ca8ff);
    width: 0;
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

.skill-percent {
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    margin-top: 6px;
}

/* ══════════════════════════════════════════
           WORKS
        ══════════════════════════════════════════ */
#works {}

.works-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.work-card {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
    border: 1.5px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(47, 108, 255, .15);
    border-color: var(--blue);
}

.work-thumb {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.work-thumb .overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 108, 255, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity var(--transition);
}

.work-card:hover .overlay {
    opacity: 1;
}

.overlay a {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 16px;
    text-decoration: none;
    transition: transform var(--transition);
}

.overlay a:hover {
    transform: scale(1.1);
}

.work-info {
    padding: 22px 22px 24px;
}

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

.work-tag {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 3px 10px;
    border-radius: 99px;
}

.work-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.work-info p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* ══════════════════════════════════════════
           CONTACT
        ══════════════════════════════════════════ */
#contact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.contact-left {
    max-width: 400px;
}

.contact-left p {
    color: var(--muted);
    font-size: 15px;
    margin-top: 16px;
    line-height: 1.8;
}

.contact-details {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-light);
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item-text span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-item-text p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 280px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 13px 16px;
    border: 1.5px solid #dce1ed;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 108, 255, .1);
}

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

.send-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--text);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1), opacity 0.4s;
    z-index: 999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 40px 0 8px;
    color: var(--muted);
    font-size: 14px;
}

footer span {
    color: var(--blue);
}

/* ══════════════════════════════════════════
           RESPONSIVE
        ══════════════════════════════════════════ */
@media (max-width: 900px) {
    body {
        padding: 16px;
    }

    .section-card {
        padding: 56px 28px;
    }

    #home,
    #about,
    #contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-right {
        align-self: center;
    }

    .hero-image-wrap img {
        width: 220px;
        height: 220px;
    }

    .about-image img {
        width: 100%;
        height: 240px;
        box-shadow: 8px 8px 0 var(--blue-light);
    }

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

    .skills-header,
    .works-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header {
        padding: 14px 20px;
    }

    .nav-bar ul {
        gap: 2px;
    }

    .nav-bar li a {
        font-size: 13px;
        padding: 7px 10px;
    }
}

@media (max-width: 580px) {
    .hero-text h1 {
        font-size: 38px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* ── Hamburger Button ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 99px;
    transition: var(--transition);
}

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

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

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

/* ── Responsive 768px ── */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    /* Navbar */
    .hamburger {
        display: flex;
    }

    .nav-bar {
        display: none;
        position: absolute;
        top: 70px;
        left: 12px;
        right: 12px;
        background: #fff;
        border-radius: var(--radius);
        box-shadow: 0 8px 32px rgba(47, 108, 255, .15);
        padding: 16px;
        z-index: 150;
    }

    .nav-bar.open {
        display: block;
    }

    .nav-bar ul {
        flex-direction: column;
        gap: 4px;
    }

    .nav-bar li a {
        font-size: 15px;
        padding: 10px 16px;
    }

    /* Sections */
    .section-card {
        padding: 40px 20px;
    }

    /* Hero */
    #home {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image-wrap img {
        width: 180px;
        height: 180px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    /* About */
    #about {
        flex-direction: column;
        gap: 32px;
    }

    .about-image img {
        width: 100%;
        height: 220px;
        box-shadow: 6px 6px 0 var(--blue-light);
    }

    .about-text p {
        max-width: 100%;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Works */
    .works-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    #contact {
        flex-direction: column;
        gap: 36px;
    }

    .contact-left {
        max-width: 100%;
    }

    /* Section title */
    .section-title {
        font-size: 30px;
    }
}

/* ── Responsive 480px ── */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

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

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

    .hero-image-wrap img {
        width: 150px;
        height: 150px;
    }
}