

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-muted: #f8fbff;
    --text: #0f172a;
    --muted: #475569;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #dce7f2;
    --shadow: rgba(15, 23, 42, 0.08);
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    color: var(--text);
}

html {
    scroll-behavior: smooth;
}

p {
    color: var(--muted);
}

/* Transition */

a, .btn {
    transition: all 300ms ease;
}

/* Desktop NAV */

nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 0.9rem 1.6rem;
    margin: 1rem auto 0;
    width: min(96vw, 1120px);
    position: sticky;
    top: 1rem;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    box-shadow: 0px 18px 36px rgba(15, 23, 42, 0.08);
    transition: 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}

nav.scrolled {
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.nav-links {
    gap: 1.5rem;
    list-style: none;
    font-size: 1.05rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-links a:hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

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

.logo-role {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.15rem;
}

.logo:hover {
    cursor: default;
}

/* Hamburger Menu*/

#hamburger-nav {
    display: none;
    position: sticky;
    top: 1rem;
    margin: 1rem auto 0;
    width: min(96vw, 1120px);
    z-index: 1000;
    padding: 0.85rem 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 22px;
    width: 28px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 999px;
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 120%;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--surface);
    min-width: 180px;
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.menu-links a {
    display: block;
    padding: 0.7rem 0.9rem;
    text-align: left;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease-in-out;
}

.menu-links a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
}

/* Cleaned up perfect 'X' transition */
.hamburger-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Sections */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* Profiile */


#profile {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    border: 12px solid var(--surface);
    box-shadow: 0 10px 24px var(--shadow);
}

.section_text {
    align-self: center;
    text-align: center;
}

.section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* icons */

.icon {
    cursor: pointer;
    height: 2rem;
}

/* button */

.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    flex: 1 1 auto;
    min-width: 8rem;
    width: auto;
    border-radius: 2rem;
}

.btn-color-1, .btn-color-2 {
    border: var(--primary) 0.1rem solid;
}

.btn-color-1:hover, .btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1 {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-color-1:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-color-2 {
    background: white;
    color: var(--text);
}

.btn-color-2:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-container {
    gap: 1rem;
}

/*About */

#about {
    position: relative;
}

/* Hide the picture in the About section (keeps hero/profile image intact) */
#about .section__pic-container {
    display: none;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 0 1rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-containers,
.about-details-container {
    display: flex;
    flex-wrap: wrap;
}

.about-pic {
    border-radius: 2rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.75rem;
    flex: 1;
    background: var(--surface);
    border-radius: 2rem;
    border: 0.1rem solid var(--border);
    box-shadow: 0 10px 24px var(--shadow);
    text-align: center;
}

.text-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.text-container p {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* Expereience */

#experience {
    position: relative;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* Projects */

#projects {
    position: relative;
}

.project-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.5rem auto 2rem;
}

.filter-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--shadow);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.project-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.project-carousel {
    overflow: hidden;
    width: 100%;
}

.project-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
    will-change: transform;
    flex-wrap: nowrap;
}

.project-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: calc((100% - 3rem) / 3);
    box-sizing: border-box;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-arrow:hover {
    background: rgba(37, 99, 235, 0.08);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media screen and (max-width: 900px) {
    .project-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        min-width: calc((100% - 1.5rem) / 2);
    }
}

@media screen and (max-width: 650px) {
    .project-carousel-wrapper {
        gap: 0.5rem;
    }
    .project-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.project-card.is-hidden {
    display: none;
}

.color-container {
    border-color: var(--border);
    background: linear-gradient(145deg, var(--surface), var(--surface-muted));
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
    color: black;
}

.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
}

/* Certificates */

#certificates {
    position: relative;
    height: auto;
    min-height: 96vh;
}

.certificate-slider {
    width: min(96vw, 1100px);
    margin: 2rem auto 0;
}

.certificate-slide-area {
    position: relative;
    padding: 0 3.5rem;
}

.certificate-viewport {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, var(--surface), var(--surface-muted));
    box-shadow: 0 20px 50px var(--shadow);
}

.certificate-controls {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.certificate-track {
    display: flex;
    transition: transform 0.45s ease;
}

.certificate-slide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    gap: 0;
    padding: 1.25rem 2rem 2rem;
}

.certificate-image-frame {
    display: grid;
    place-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1052 / 841;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 1rem;
    background: #e9eef5;
}

.certificate-img {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: contain;
}

.certificate-img-contained {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.certificate-caption {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 0.35rem 1.15rem;
}

.certificate-caption h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.3;
    text-align: center;
}

.certificate-count {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.certificate-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 50%;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    font-size: 1.35rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    transform: translateY(-50%);
    pointer-events: auto;
}

.certificate-prev {
    left: 0.5rem;
}

.certificate-next {
    right: 0.5rem;
}

.certificate-arrow:hover {
    background: rgba(37, 99, 235, 0.08);
}

.certificate-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.certificate-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
}

.certificate-dot.is-active {
    background: var(--primary);
    transform: scale(1.25);
}

/* Contact */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: 0.1rem solid var(--border);
    background: var(--surface); 
    margin: 2rem auto;
    padding: 0.5rem;
    box-shadow: 0 10px 24px var(--shadow);
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: large;
}

.contact-info-container p a,
.contact-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-container p a:hover,
.contact-link:hover {
    color: var(--primary);
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

/*Footer*/

footer {
    padding: 1.25rem 0;
    margin: 0;
    background: transparent;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    border-radius: 0;
}

footer nav {
    width: auto;
    display: flex;
    justify-content: center;
}

footer .nav-links {
    gap: 2rem;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
    background: transparent;
}

footer .nav-links li {
    list-style: none;
}

footer .nav-links a {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    background: transparent;
}

footer .nav-links a:hover {
    color: var(--primary);
}

footer p {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}