@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Great+Vibes&display=swap');

:root {
    --bg: #1a1a1a;
    --bg-alt: #222;
    --surface: #2a2a2a;
    --surface-2: #333;
    --border: #3a3a3a;
    --accent: #007ced;
    --accent-soft: rgba(0, 124, 237, 0.12);
    --text: #f0f0f0;
    --text-muted: #a8a8a8;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: Poppins, sans-serif;
    text-decoration: none;
}

body {
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
}

.hero-header {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-alt);
}

.wrapper {
    width: 1280px;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.logo i {
    height: 45px;
    width: 45px;
    background-color: var(--accent);
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 10px;
    margin-right: 8px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo .logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

nav .togglebtn {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 35px;
    right: 5%;
    z-index: 5;
    cursor: pointer;
    display: none;
}

nav .togglebtn span {
    display: block;
    background-color: var(--accent);
    margin: 5px 0;
    width: 100%;
    height: 3px;
    transition: 0.3s;
    transition-property: transform, opacity;
}

nav .navlinks {
    list-style-type: none;
}

nav .navlinks li {
    display: inline-block;
}

nav .navlinks li a {
    color: var(--text-muted);
    margin-right: 2.2rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav .navlinks li a:hover,
nav .navlinks li a.active {
    color: var(--text);
}

nav .navlinks li a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

nav .navlinks li:last-child a {
    margin-right: 0;
}

/* ---------- Hero ---------- */
.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    padding: 3rem 0 5rem;
}

.container .hero-pic {
    width: 300px;
    height: 300px;
    min-width: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 12px solid var(--surface-2);
    box-shadow: 5px 7px 25px rgba(0, 0, 0, 0.5);
}

.hero-pic img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-pic:hover img {
    transform: scale(1.1);
}

.hero-text {
    max-width: 560px;
    display: flex;
    flex-direction: column;
}

.hero-text h5 {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
}

.hero-text h1 {
    color: var(--text);
    font-size: 2.6rem;
    font-weight: 700;
    margin: 8px 0;
}

.input {
    color: var(--accent);
    font-weight: 600;
}

.hero-text p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 6px;
}

.btn-group {
    margin: 40px 0 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.btn-group .btn {
    color: var(--text);
    background-color: var(--surface-2);
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid var(--border);
    box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.78);
    font-weight: 500;
    transition: 0.3s;
}

.btn-group .btn:hover {
    transform: translateY(-3px);
}

.btn.active {
    border-color: var(--accent);
    background-color: var(--accent);
}

.btn.active:hover {
    background-color: transparent;
    color: var(--accent);
}

.hero-text .social {
    display: flex;
    gap: 16px;
}

.hero-text .social a {
    height: 42px;
    width: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.hero-text .social i {
    color: var(--text-muted);
    font-size: 18px;
    transition: 0.3s;
}

.hero-text .social a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.hero-text .social a:hover i {
    color: var(--accent);
}

/* ---------- Page sections (portfolio / resume / contact) ---------- */
.page {
    padding: 3rem 0 5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h1 {
    font-size: 2.2rem;
    color: var(--text);
    font-weight: 700;
}

.section-title h1 span {
    color: var(--accent);
}

.section-title p {
    color: var(--text-muted);
    margin-top: 8px;
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.8);
}

.project-card .icon {
    height: 52px;
    width: 52px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.project-card .year {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-card h3 {
    color: var(--text);
    font-size: 1.25rem;
    margin: 6px 0 4px;
}

.project-card .role {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 14px;
}

.project-card ul {
    list-style: none;
    margin-bottom: 16px;
}

.project-card ul li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.project-card ul li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 4px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tags span {
    background: var(--surface-2);
    color: var(--text);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ---------- Resume layout ---------- */
.resume-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

.resume-block {
    margin-bottom: 40px;
}

.resume-block h2 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.resume-block h2 i {
    color: var(--accent);
}

.timeline {
    border-left: 2px solid var(--border);
    padding-left: 26px;
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 4px;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-alt);
}

.timeline-item .year {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.timeline-item h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin: 4px 0 2px;
}

.timeline-item .sub {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 8px;
}

.timeline-item p,
.timeline-item ul li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.timeline-item ul {
    list-style: none;
}

.timeline-item ul li {
    padding-left: 18px;
    position: relative;
}

.timeline-item ul li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 0;
}

.skill-item {
    margin-bottom: 18px;
}

.skill-item .skill-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.skill-item .skill-head span:last-child {
    color: var(--accent);
    font-weight: 600;
}

.bar {
    width: 100%;
    height: 8px;
    background: var(--surface-2);
    border-radius: 10px;
    overflow: hidden;
}

.bar > div {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-list span {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.contact-info .info-item i {
    height: 44px;
    width: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-info .info-item h4 {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.contact-info .info-item p {
    color: var(--text);
    font-size: 15px;
    word-break: break-word;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 16px;
}

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

.contact-form label {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin: 14px 0 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

.contact-form .btn {
    margin-top: 22px;
    width: 100%;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 13px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form .btn:hover {
    background: transparent;
    color: var(--accent);
}

.form-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    display: none;
}

.form-note.show {
    display: block;
    color: var(--accent);
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 930px) {
    nav .togglebtn {
        display: initial;
    }

    .click span {
        position: absolute;
        margin-top: 12px;
    }

    .click span:first-child {
        transform: rotate(-40deg);
    }

    .click span:nth-child(2) {
        opacity: 0;
        margin: 0;
    }

    .click span:last-child {
        transform: rotate(45deg);
        top: 0;
    }

    nav .navlinks {
        position: fixed;
        top: 0;
        right: -100%;
        width: 65%;
        height: 100vh;
        background-color: var(--bg-alt);
        z-index: 3;
        box-shadow: 5px 13px 30px rgba(0, 0, 0, 0.4);
        transition: right 0.4s;
        padding: 100px 0;
    }

    nav .navlinks li {
        display: block;
    }

    nav .navlinks li a {
        display: block;
        margin: 0 0 40px;
        text-align: center;
    }

    nav .navlinks li a.active::after {
        display: none;
    }

    nav .navlinks.open {
        right: 0;
    }

    .resume-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding-top: 2rem;
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

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

    .hero-text h1 {
        font-size: 2rem;
    }
}
