/* ==================================================
   PUBLIC PORTFOLIO
================================================== */

/* ==================================================
   DARK BLUE THEME
   ================================================== */
:root {
    --primary: #456882;
    --primary-dark: #234C6A;
    --text: #F1EAE5;
    --muted: #B8C7D0;
    --white: #F1EAE5;
    --light: #234C6A;
    --border: rgba(210, 193, 182, .16);
    --shadow: 0 12px 35px rgba(0, 0, 0, .25);
    --container: 1120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #1B3C53;
    color: #F1EAE5;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(92%, var(--container));
    margin-inline: auto;
}

/* =========================
   SECTION
   ========================= */
.section {
    color: #D2C1B6;
    padding: 100px 0;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-label {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 15px;
}

.section-heading>p:last-child {
    color: #B8C7D0;
    font-size: .88rem;
}

/* =========================
   BUTTON
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #456882;
    color: #F1EAE5;
    border-color: #456882;
    border: 2px solid var(--primary);
    border-radius: 7px;
    padding: 12px 22px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.btn:hover {
    background: #234C6A;
    border-color: #234C6A;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #D2C1B6;
    border-color: #456882;
}

.btn-outline:hover {
    background: #456882;
    border-color: #456882;
    color: #F1EAE5;
}

.btn-small {
    padding: 9px 16px;
}

/* =========================
   HEADER / NAVBAR
   ========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(27, 60, 83, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(210, 193, 182, .12);
    transition: box-shadow .25s ease;
}

.header.scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, .25);
}

.navbar {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.5px;
}

.logo span {
    color: #D2C1B6;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: .78rem;
    font-weight: 500;
}

.nav-menu a:not(.btn) {
    transition: color .2s ease;
}

.nav-menu a:not(.btn):hover {
    color: #D2C1B6;
}

.nav-admin {
    color: #D2C1B6;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: #D2C1B6;
}

/* =========================
   HERO
   ========================= */
.hero {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    background: #1B3C53;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 55px;
}

.eyebrow {
    font-size: .95rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    line-height: .98;
    letter-spacing: -3px;
    margin: 8px 0 18px;
}

.hero h1 span {
    color: #D2C1B6;
}

.hero h2 {
    max-width: 550px;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.3;
    margin-bottom: 18px;
}

.hero-description {
    max-width: 570px;
    color: #B8C7D0;
    font-size: .88rem;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-circle {
    width: min(390px, 75vw);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    padding: 7px;
    border: 3px solid #456882;
    background: #234C6A;
    box-shadow: 0 0 0 1px rgba(210, 193, 182, .25);
}

.photo-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.socials {
    display: flex;
    gap: 18px;
    margin-top: 20px;
}

.socials a {
    font-size: 1.05rem;
    transition: .2s ease;
}

.socials a:hover {
    color: #D2C1B6;
    transform: translateY(-2px);
}

/* =========================
   ABOUT
   ========================= */
.about {
    background: #234C6A;
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 80px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.photo-frame {
    width: min(380px, 80vw);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 7px;
    border: 2px solid;
    position: relative;
    border-color: rgba(210, 193, 182, .3);
}

.photo-frame::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #456882;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-content>p:not(.section-label) {
    color: #B8C7D0;
    font-size: .88rem;
    margin-bottom: 14px;
}

.skills {
    margin-top: 28px;
}

.skill {
    margin-bottom: 18px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.progress {
    height: 6px;
    background: rgba(210, 193, 182, .18);
    border-radius: 20px;
    overflow: visible;
}

.progress span {
    display: block;
    height: 100%;
    background: #456882;
    border-radius: 20px;
    position: relative;
}

.progress span::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1B3C53;
    border-color: #D2C1B6;
    border: 2px solid;
    position: absolute;
    right: -6px;
    top: -5px;
}

/* =========================
   SERVICES
   ========================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.service-card {
    background: #234C6A;
    border-color: rgba(210, 193, 182, .08);
    border: 1px solid;
    border-radius: 9px;
    padding: 28px 22px;
    transition: .25s ease;
}

.service-card:hover {
    background: #456882;
    border-color: rgba(210, 193, 182, .2);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-icon {
    color: #D2C1B6;
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.service-card p {
    color: #B8C7D0;
    font-size: .73rem;
}

/* =========================
   PROJECTS
   ========================= */
.projects {
    background: #234C6A;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 38px;
}

.filter-btn {
    border: 1px solid;
    border-color: rgba(210, 193, 182, .2);
    background: #1B3C53;
    color: #D2C1B6;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: .75rem;
    cursor: pointer;
    transition: .2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #456882;
    color: #F1EAE5;
    border-color: #456882;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
}

.project-card {
    background: #1B3C53;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .2);
    border-radius: 9px;
    overflow: hidden;
    transition: .25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

.project-image {
    aspect-ratio: 1.55;
    overflow: hidden;
    background: #234C6A;
}

.project-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #7892A3;
    font-size: 2rem;
}

.project-info {
    padding: 17px 16px 19px;
}

.project-info>span {
    color: #D2C1B6;
    font-size: .68rem;
    font-weight: 600;
}

.project-info h3 {
    font-size: .92rem;
    line-height: 1.35;
    margin: 5px 0 7px;
}

.project-info p {
    color: #B8C7D0;
    font-size: .73rem;
    margin-bottom: 7px;
}

.project-info small {
    display: block;
    color: #9FB1BC;
    font-size: .65rem;
    margin-bottom: 13px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: #D2C1B6;
    font-size: .7rem;
    font-weight: 600;
}

.project-link:hover {
    color: #F1EAE5;
    text-decoration: underline;
}

.empty-projects {
    grid-column: 1/-1;
    text-align: center;
    color: var(--muted);
    padding: 40px;
}

/* =========================
   CONTACT
   ========================= */
.contact {
    padding-bottom: 110px;
}

.contact-box {
    background: #234C6A;
    border-radius: 18px;
    padding: 70px 25px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================
   FLASH MESSAGE
   ========================= */

.flash-success {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 2000;
    background: #456882;
    color: #F1EAE5;
    padding: 13px 18px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: .8rem;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background: #162F42;
    text-align: center;
}

.footer-content {
    padding: 55px 0 20px;
}

.footer .logo {
    display: inline-block;
    margin-bottom: 10px;
}

.footer-content>p {
    color: #B8C7D0;
    font-size: .75rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 25px 0;
}

.footer-nav a {
    font-size: .72rem;
}

.footer-nav a:hover {
    color: #D2C1B6;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 17px;
    margin: 20px 0 35px;
}

.footer-socials a:hover {
    color: #D2C1B6;
}

.copyright {
    border-top-color: rgba(210, 193, 182, .16);
    padding-top: 18px;
    font-size: .68rem !important;
}


/* AUTH */

.auth-section {
    min-height: calc(100vh - 75px);
    display: grid;
    place-items: center;
    background: #1B3C53;
}

.auth-card {
    width: min(100%, 440px);
    background: #234C6A;
    border-color: rgba(210, 193, 182, .15);
    box-shadow: var(--shadow);
    border: 1px solid;
    border-radius: 15px;
    padding: 42px;
}

.auth-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 12px;
    color: #D2C1B6;
    background: #1B3C53;
    font-size: 1.3rem;
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.auth-description {
    color: #B8C7D0;
    font-size: .8rem;
    margin-bottom: 25px;
}

.auth-form {
    display: grid;
    gap: 9px;
}

.auth-form label {
    font-size: .78rem;
    font-weight: 600;
    margin-top: 5px;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    background: #1B3C53;
    border-color: rgba(210, 193, 182, .2);
    color: #F1EAE5;
    border: 1px solid;
    border-radius: 7px;
    padding: 11px 12px;
    outline: none;
}

.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder {
    color: #7892A3;
}

.auth-form input:focus {
    border-color: #456882;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    margin: 7px 0 12px;
    color: #D2C1B6;
}

.form-errors {
    background: rgba(198, 40, 40, .15);
    border-color: rgba(198, 40, 40, .35);
    color: #F0A7A7;
    border: 1px solid;
    padding: 10px 13px;
    border-radius: 7px;
    font-size: .75rem;
    margin-bottom: 15px;
}

.back-home {
    display: block;
    text-align: center;
    color: #B8C7D0;
    font-size: .75rem;
    margin-top: 20px;
}

.back-home:hover {
    color: #D2C1B6;
}

/* =========================================
   DYNAMIC PROFILE PHOTOS
========================================= */

.hero-photo,
.about-photo {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.hero-photo img,
.about-photo img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;

    object-position:
        var(--position-x, 50%) var(--position-y, 50%);

    transform: rotate(var(--rotation, 0deg));
}

/* ==================================================
   SKILLS
================================================== */

.skills-section {
    background: #1B3C53;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.skill-card {
    background: #234C6A;
    border: 1px solid rgba(210, 193, 182, .15);
    border-radius: 16px;
    padding: 28px 24px;
    min-height: 210px;
    transition: .25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: #456882;
    box-shadow: var(--shadow);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.skill-card-header>i {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #456882;
    color: #D2C1B6;

    font-size: 1rem;
}

.skill-card-header h3 {
    font-size: 1rem;
    color: #F1EAE5;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 12px;

    background: #1B3C53;
    border: 1px solid rgba(210, 193, 182, .12);

    border-radius: 8px;

    color: #D2C1B6;
    font-size: .72rem;
    font-weight: 500;

    transition: .2s ease;
}

.skill-item:hover {
    background: #456882;
    color: #F1EAE5;
    transform: translateY(-2px);
}

.skill-item i {
    font-size: 1rem;
}

.skill-text-logo {
    width: 20px;
    height: 20px;

    display: inline-grid;
    place-items: center;

    border-radius: 4px;

    background: #456882;
    color: #F1EAE5;

    font-size: .58rem;
    font-weight: 800;
}


/* ==================================================
   ABOUT
================================================== */

.about-section {
    background: #234C6A;
}

.about-heading {
    max-width: 850px;
    margin: 0 auto 50px;

    text-align: center;
}

.about-heading .section-title {
    margin-bottom: 22px;
}

.about-intro {
    color: #B8C7D0;
    font-size: .95rem;
    line-height: 1.9;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.about-card {
    background: #1B3C53;

    border: 1px solid rgba(210, 193, 182, .12);

    border-radius: 12px;

    padding: 42px 30px;

    text-align: center;

    transition: .25s ease;
}

.about-card:hover {
    transform: translateY(-7px);

    border-color: #456882;

    box-shadow: var(--shadow);
}

.about-card-icon {
    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    margin: 0 auto 25px;

    border-radius: 14px;

    background: #234C6A;

    color: #D2C1B6;

    font-size: 1.6rem;
}

.about-card h3 {
    color: #F1EAE5;

    font-size: 1.05rem;

    margin-bottom: 15px;
}

.about-card p {
    color: #B8C7D0;

    font-size: .78rem;

    line-height: 1.8;
}


/* RESPONSIVE */

@media (max-width:900px) {

    .nav-menu {
        gap: 15px;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 70px;
    }

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

    .hero-description,
    .hero h2 {
        margin-inline: auto;
    }

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

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 50px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:700px) {

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #1B3C53;
        box-shadow: 0 12px 20px rgba(0, 0, 0, .25);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 5%;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        border-bottom-color: rgba(210, 193, 182, .12);
    }

    .nav-menu a {
        display: block;
        padding: 13px 5px;
    }

    .nav-menu .btn {
        margin: 10px 0;
        text-align: center;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .service-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 75px 0;
    }

    .contact-box {
        padding: 55px 18px;
    }

    .auth-card {
        padding: 30px 22px;
    }

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

@media (max-width:430px) {

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons,
    .contact-buttons {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}