/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --bg-soft: #f3f6ff;
    --surface: #ffffff;
    --surface-muted: #eff4ff;
    --text-main: #131825;
    --text-muted: #535c68;
    --border: #d5def0;
    --accent: #0c8f86;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(34, 211, 238, 0.16), transparent 60%),
        radial-gradient(900px 420px at 90% 0%, rgba(99, 102, 241, 0.18), transparent 62%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg-soft) 45%, #f5f7fc 100%);
    background-attachment: fixed;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* TRANSITION */

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

/* DESKTOP NAV */

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

nav {
    justify-content: space-around;
    align-items: center;
    height: 14vh;
    padding-inline: clamp(1rem, 4vw, 4rem);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 600;
}

a {
    color: var(--text-main);
    text-decoration: none;
    text-decoration-color: transparent;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.35rem;
    text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.logo {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
}

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

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

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

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--surface);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

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

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

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

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

/* SECTIONS */

section {
    padding-top: 5vh;
    height: 96vh;
    margin: 0 clamp(1rem, 8vw, 9rem);
    box-sizing: border-box;
    min-height: fit-content;
    border-radius: 2rem;
}

.section-container {
    display: flex;
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
        radial-gradient(320px 220px at 20% 15%, rgba(125, 211, 252, 0.2), transparent 70%);
    border: 1px solid rgba(214, 222, 240, 0.75);
    padding-inline: clamp(1rem, 3vw, 2rem);
}

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

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

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
    letter-spacing: 0.02em;
}

.section__text__p2 {
    font-size: 1.6rem;
    color: #3e4653;
    font-weight: 700;
    margin-bottom: 1rem;
}

.title {
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: -0.02em;
    text-align: center;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 340px;
    margin-inline: auto;
}

/* ICONS */

.icon {
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    transition: transform 220ms ease, opacity 220ms ease;
}

.icon:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 0.95rem 1.2rem;
    width: 9rem;
    border-radius: 2rem;
}

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

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

.btn-color-1,
.btn-color-2:hover {
    background: var(--text-main);
    color: white;
}

.btn-color-1:hover {
    background: #0b1021;
}

.btn-color-2 {
    background: transparent;
}

.btn-color-2:hover {
    border: 0.1rem solid #ffffff;
}

.btn-container {
    gap: 1rem;
}

/* ABOUT SECTION */

#about {
    position: relative;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.68), rgba(245, 250, 255, 0.5));
    border: 1px solid rgba(214, 222, 240, 0.75);
    padding-inline: clamp(1rem, 3vw, 2rem);
}

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

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

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

.about-pic {
    border-radius: 2rem;
    box-shadow: 0 12px 28px rgba(23, 25, 35, 0.12);
}

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

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: var(--surface);
    border-radius: 2rem;
    border: 0.1rem solid var(--border);
    box-shadow: 0 8px 24px rgba(19, 27, 46, 0.06);
    text-align: center;
}

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

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

/* EXPERIENCE SECTION */

#experience {
    position: relative;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.65), rgba(240, 247, 255, 0.54));
    border: 1px solid rgba(214, 222, 240, 0.75);
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.experience-sub-title {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

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

#experience .about-containers {
    align-items: stretch;
}

#experience .details-container {
    display: flex;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1.4rem 2rem;
    justify-content: center;
}

article {
    display: flex;
    width: min(100%, 12rem);
    justify-content: flex-start;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* PROJECTS SECTION */

#projects {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(246, 250, 255, 0.56));
    border: 1px solid rgba(214, 222, 240, 0.75);
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.color-container {
    border-color: var(--border);
    background: var(--surface-muted);
}

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

.project-title {
    margin: 1rem;
    color: var(--text-main);
}

.project-summary {
    text-align: left;
    margin: 0 1.1rem 0.9rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-meta {
    margin: 0 1.1rem 0.9rem;
    text-align: left;
}

.project-meta p {
    margin: 0.25rem 0;
    font-size: 0.92rem;
    color: var(--text-main);
}

.project-label {
    margin: 0 1.1rem 0.4rem;
    text-align: left;
    font-size: 0.92rem;
    color: var(--text-main);
}

.project-feature-list {
    margin: 0 1.1rem 0.9rem 2.1rem;
    text-align: left;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-feature-list li {
    margin-bottom: 0.35rem;
}

.project-future {
    margin: 0 1.1rem 1rem;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.55;
}

.project-btn {
    color: var(--text-main);
    border-color: var(--border);
}

/* CONTACT */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 70vh;
    padding-bottom: 4vh;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.7), rgba(236, 245, 255, 0.58));
    border: 1px solid rgba(214, 222, 240, 0.75);
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.contact-info-upper-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.9rem;
    border-radius: 2rem;
    border: 0.1rem solid var(--border);
    background: var(--surface-muted);
    background: color-mix(in srgb, var(--surface-muted) 78%, white);
    margin: 2rem auto;
    padding: 1rem;
    width: min(900px, 100%);
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid #e6eaf0;
}

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

.contact-info-container a {
    overflow-wrap: anywhere;
}

.contact-icon {
    cursor: pointer;
}

.email-icon {
    height: 2rem;
}

/* FOOTER SECTION */

footer {
    min-height: 24vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}
