/* GENERAL STYLING */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root{
    --nav-h: 56px;
    --navy:#1E2A38;
    --teal:#6DBCC7;
    --teal-600:#55AAB6;
    --navy-700:#16202B;

    --bg:#ffffff;
    --text:#0f172a;
    --muted:#64748b;
    --border:#e5e7eb;

    
    --accent:var(--navy);
    --accent-2:var(--teal);

    --radius:2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
}

body{
    color:var(--text);
    background:var(--bg);
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

section {
    padding-top: calc(var(--nav-h) + 24px);
    padding-block: 4rem;
    height: auto;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: unset;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0 1rem;
    justify-content: center;
}

.hero-highlights .chip {
    background: rgba(109, 188, 199, 0.15);
    color:var(--navy);
    padding:.25rem .6rem;
    border-radius:999px;
    font-size:.8rem;
    font-weight: 500;
    letter-spacing: .2px;
    white-space: nowrap;
}

.hero-highlights .chip:hover {
    background: rgba(109, 188, 199, 0.25);
}

.note {
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--muted);
    text-align: center;
}

a {
    color: var(--text);
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: .6rem;
}

a:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: .5rem;
}

.btn-color-1 {
    background: var(--accent);
    color:#fff;
    border: none;
}

.btn-color-1:hover {
    background: var(--muted);
    cursor: pointer;
}

.btn-color-2 {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-color-2:hover {
    background: var(--accent);
    color:#fff;
    border-color: var(--accent);
    cursor: pointer;
}

.details-container{
    border:1px solid var(--border);
    border-radius:var(--radius);
}

.details-container.color-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.color-container{
    background:#fafafa;
    border-color:var(--border);
}

p {
    color: rgb(85, 85, 85);
}

/* TRANSITION */

a, .btn {
    transition: all 300ms ease;
}

/* DESKTOP NAVIGATION */

nav {
    justify-content: space-around;
    align-items: center;
    height: 56px;
    position:sticky;
    top:0;
    background:var(--bg);
    border-bottom: 0.1px solid var(--border);
    z-index:50;
    display: flex;
    padding: 0 2rem;
    backdrop-filter: blur(6px);
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    
}

.nav-links {
    gap: 1.5rem;
    list-style: none;
    font-size: 1.1rem;
    display: flex;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: 100%;
    margin: 10px;
    display: block;
}

.logo:hover {
    cursor: pointer;
}

/* 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: black;
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0%;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    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:nth-child(2) {
    opacity: 1;
}

.hamburger-icon span:last-child {
    transform: none;
}

/* SECTIONS */

.section-container {
    display: flex;
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.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;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    color: var(--navy);
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem
}

/* ICONS */

.icon, .email-icon {
    cursor: pointer;
    height: 2rem;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-container {
    gap: 1rem;
}

/* ABOUT SECTION */

#about {
    position: relative;
    scroll-margin-top: calc(var(--nav-h) + 24px);;
}

.about-containers {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    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;
}

.arrow {
    position: absolute;
    right: -5rem;
    border: none;
    max-width: 48px;
}

.details-container {
    padding: 1.5rem;
    flex: 1 1 400px;
    max-width: 500px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
    position: relative;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

#experience .about-containers{
    display: grid;
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    gap: 2rem;
    align-items: start;
}

.experience-sub-title {
    color: var(--navy);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.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;
}

.skills-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap:1.25rem 2rem;
}

.skill-item {
    display:flex;
    align-items:center;
    gap:.75rem;
}

.skill {
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap:1rem;
    row-gap:.35rem;
    align-items:center;
    width:100%;
}

.skill-name {
    font-weight:600;
    color:#0f172a;
}

.skill-level {
    font-size:.9rem;
    color:rgb(85,85,85);
}

.meter {
    grid-column:1 / -1;
    position:relative;
    height:8px;
    background:#eceff3;
    border-radius:999px;
    overflow:hidden;
}

.meter > span {
    position:absolute;
    left:0; top:0; bottom:0;
    width:var(--level, 0%);
    background:var(--accent-2);
    border-radius:999px;
    transition:width .6s ease;
}

.details-container {
    transition:transform .2s ease, box-shadow .2s ease;
}

.details-container:hover {
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(0,0,0,.06);
}

/* PROJECTS SECTION */

#projects {
    position: relative;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

#projects .about-containers {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

#projects .details-container {
    flex: initial;
    max-width: 100%;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: #FAFAFA;
}

.project-img {
    border-radius: 1rem;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit:cover;
}

.project-desc{
    color:var(--muted);
    margin:0 1rem 1rem;
    font-size:.95rem;
}

.project-title {
    margin: 1rem;
    color: var(--navy);
}

.project-btn {
    color: var(--accent);
    border-color: var(--border)
}

/* CONTACT SECTION */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: auto;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

#contact .contact-form {
    width: 100%;
    max-width: 720px;
    margin: 2rem auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

#contact .contact-form:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    transform: translateY(-2px);
}

#contact .contact-form .hp {
    display: none;
}

.contact-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

#contact .contact-form input,
#contact .contact-form textarea {
    appearance:none;
    border:1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.75rem 1rem;
    font: inherit;
    color: var(--text);
    background:#fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(109,188,199,.25);
}

#contact .contact-form input:invalid,
#contact .contact-form textarea:invalid {
  box-shadow:none; /* avoid red glow in some browsers */
}

#contact .btn-container {
    justify-content: flex-start;
}

#contact .form-status {
    margin-top: 1rem;
    color: var(--muted);
}

#contact .form-status.success {
    color: #0f9d58;
}

#contact .form-status.error {
    color: #d93025;
}

/* FOOTER SECTION */

footer {
    width: 100%;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 0.5rem 1rem;
    text-align: center;
    z-index: 40;
}


footer .footer-a {
    color: var(--navy);
    text-decoration: none;
    text-decoration-color: white;
}

footer .footer-a:hover {
    color: var(--teal-600);
    text-decoration: none;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

footer p {
    text-align: center;
}


