/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    background: #080d1a;
    line-height: 1.6;
}

section {
    min-height: 100vh;
    padding: 120px 8% 80px;
    scroll-margin-top: 75px;
}


/* =========================
   HEADER / NAVIGATION
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    background: rgba(8, 13, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.logo::first-letter {
    color: #6c63ff;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navbar a {
    position: relative;
    color: #b8bfd0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.navbar a:hover {
    color: #ffffff;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #6c63ff;
    transition: 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}


/* =========================
   HOME
========================= */

/* =========================
   HOME
========================= */

.home {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
    padding-top: 120px;
    padding-bottom: 70px;
    background:
        radial-gradient(
            circle at 78% 45%,
            rgba(108, 99, 255, 0.14),
            transparent 32%
        ),
        #0f172a;
}

.home-content {
    max-width: 750px;
}

.welcome-text {
    margin-bottom: 18px;
    color: #7c73ff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2.5px;
}

.home-content h1 {
    max-width: 750px;
    font-size: 62px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.home-content h1 span {
    color: #7c73ff;
}

.home-content h2 {
    margin-top: 18px;
    color: #c3c8d5;
    font-size: 27px;
    font-weight: 500;
}

.home-description {
    max-width: 650px;
    margin-top: 25px;
    color: #9aa4b7;
    font-size: 16px;
    line-height: 1.9;
}

.home-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
}


/* =========================
   BUTTONS
========================= */

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #6c63ff,
        #8b5cf6
    );
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.35);
}

.secondary-btn {
    color: #ffffff;
    background: transparent;
    border: 1px solid #343b4d;
}

.secondary-btn:hover {
    border-color: #6c63ff;
    transform: translateY(-4px);
}


/* =========================
   PROFILE CARD
========================= */

.home-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    width: 340px;
    padding: 18px;
    background: linear-gradient(
        145deg,
        #121a2c,
        #0d1322
    );
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    text-align: center;
    transition: 0.3s;
}

.profile-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 30px 80px rgba(108, 99, 255, 0.18);
}

.profile-placeholder {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 17px;
    background: #11192a;
}

.profile-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 17px;
}

.profile-info {
    padding: 20px 10px 8px;
}

.profile-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
}

.profile-info p {
    margin-top: 5px;
    color: #8f98aa;
    font-size: 14px;
}


/* =========================
   SECTION TITLE
========================= */

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title p {
    margin-bottom: 7px;
    color: #6c63ff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 40px;
}


/* =========================
   ABOUT
========================= */

/* =========================
   ABOUT
========================= */

.about {
    min-height: 100vh;
    background: #0f172a;
}

.about-description {
    max-width: 900px;
    margin: 0 auto 40px;
    color: #9aa4b7;
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.about-card {
    min-height: 180px;
    padding: 30px;
    background: linear-gradient(
        145deg,
        #11192a,
        #0d1424
    );
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 99, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.about-card h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 20px;
}

.about-card p {
    color: #9aa4b7;
    font-size: 15px;
    line-height: 1.8;
}


/* ABOUT RESPONSIVE */

@media (max-width: 800px) {

    .about-description {
        font-size: 14px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-card {
        min-height: auto;
    }
}


/* =========================
   SKILLS
========================= */

.skills {
    background: #080d1a;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 25px;
    background: #11192a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: #6c63ff;
}

.skill-card h3 {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 20px;
}

.skill-card p {
    color: #8f98aa;
    font-size: 13px;
}


/* =========================
   PROJECTS
========================= */

.projects {
    min-height: 100vh;
    padding: 120px 8% 90px;
    background: #101827;
}

.projects-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: stretch;
    margin-bottom: 45px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #11192a,
        #0d1424
    );
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    transition: 0.3s;
}

.project-showcase:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 99, 255, 0.55);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
}

.project-reverse .project-image-large {
    order: 2;
}

.project-reverse .project-details {
    order: 1;
}

.project-image-large {
    min-width: 0;
    min-height: 420px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080d1a;
    overflow: hidden;
}

.project-image-large img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    cursor: zoom-in;
    border-radius: 10px;
    transition: 0.3s;
}

.project-image-large img:hover {
    transform: scale(1.015);
}

.project-details {
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-number {
    margin-bottom: 12px;
    color: #7c73ff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.project-details h3 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 27px;
    line-height: 1.35;
}

.project-details p {
    margin: 0;
    color: #9aa4b7;
    font-size: 15px;
    line-height: 1.8;
}

.project-tech {
    margin-top: 22px;
    padding-top: 18px;
    color: #8b83ff;
    font-size: 13px;
    font-weight: bold;
}

.view-image-btn {
    align-self: flex-start;
    margin-top: 25px;
    padding: 12px 20px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #6c63ff,
        #8b5cf6
    );
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.view-image-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.30);
}


/* =========================
   PROJECT IMAGE MODAL
========================= */

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.92);
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    display: block;
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.60);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 45px;
    height: 45px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}


/* =========================
   PROJECT RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .project-showcase {
        grid-template-columns: 1fr;
    }

    .project-reverse .project-image-large,
    .project-reverse .project-details {
        order: initial;
    }

    .project-image-large {
        min-height: 350px;
    }
}

@media (max-width: 700px) {

    .projects {
        padding: 100px 6% 70px;
    }

    .project-image-large {
        min-height: 240px;
        padding: 10px;
    }

    .project-details {
        padding: 30px 22px;
    }

    .project-details h3 {
        font-size: 22px;
    }
}

/* TABLET */

@media (max-width: 1100px) {

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* MOBILE */

@media (max-width: 700px) {

    .projects-container {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 220px;
    }

}


/* =========================
   CONTACT
========================= */

/* =========================
   CONTACT
========================= */

.contact {
    min-height: 100vh;
    background: #0f172a;
}

.contact-card {
    max-width: 950px;
    margin: 0 auto;
    padding: 55px;
    background: #11192a;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    text-align: center;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 16px;
    color: #5df59b;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
}

.availability-badge span {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.contact-card h3 {
    margin-bottom: 15px;
    font-size: 30px;
}

.contact-description {
    max-width: 650px;
    margin: 0 auto 35px;
    color: #9aa4b7;
    font-size: 15px;
    line-height: 1.8;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.contact-info-item {
    padding: 20px;
    background: #0b1222;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    text-align: left;
    transition: 0.3s;
}

.contact-info-item:hover {
    transform: translateY(-4px);
    border-color: #6c63ff;
}

.contact-label {
    display: block;
    margin-bottom: 7px;
    color: #7c73ff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.contact-info-item strong {
    color: #ffffff;
    font-size: 14px;
    word-break: break-word;
}

.contact-info-item:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: 50%;
}

.contact-info-item:nth-child(5) {
    grid-column: 2 / 3;
    margin-left: 50%;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}


/* CONTACT RESPONSIVE */

@media (max-width: 800px) {

    .contact-card {
        padding: 35px 20px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-item:nth-child(4),
    .contact-info-item:nth-child(5) {
        grid-column: auto;
        margin-left: 0;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons a {
        width: 100%;
    }
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 25px 8%;
    color: #737c8f;
    background: #060a13;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .home {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-description {
        margin-left: auto;
        margin-right: auto;
    }

    .home-buttons {
        justify-content: center;
    }

    .about-content,
    .projects-container {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    section {
        padding: 80px 6%;
    }

    .header {
        padding: 0 6%;
    }

    .navbar {
        gap: 15px;
    }

    .navbar a {
        font-size: 12px;
    }

    .home-content h1 {
        font-size: 42px;
    }

    .home-content h2 {
        font-size: 21px;
    }

    .profile-card {
        width: 100%;
        max-width: 340px;
    }

    .profile-placeholder {
        height: 330px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 32px;
    }
}
/* =========================
   PROFESSIONAL BACKGROUND
========================= */

body {
    background: #0f172a;
}

.header {
    background: rgba(15, 23, 42, 0.96);
}

.home {
    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(99, 102, 241, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #111827 50%,
            #172033 100%
        );
}

.about {
    background: #111827;
}

.skills {
    background: #0f172a;
}

.projects {
    background: #111827;
}

.contact {
    background: #0f172a;
}

.footer {
    background: #0b1120;
}

/* =========================
   REMOTE WORK BADGE
========================= */

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 15px;
    color: #b9f6ca;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.30);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

/* =========================================
   IMPROVED ABOUT INTRODUCTION
========================================= */

.about-introduction {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 30px 35px;

    background: linear-gradient(
        145deg,
        #11192a,
        #0d1424
    );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.about-introduction p {
    color: #aeb7ca;
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}


/* =========================================
   ABOUT CARDS - 4 EQUAL CARDS
========================================= */

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: auto;
}

.about-card {
    min-height: 190px;
    padding: 30px;

    background: linear-gradient(
        145deg,
        #11192a,
        #0d1424
    );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-7px);
    border-color: rgba(108, 99, 255, 0.6);

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.25);
}


/* =========================================
   IMPROVED CONTACT SECTION
========================================= */

.contact-card {
    max-width: 950px;
    margin: auto;
    padding: 45px;

    background: linear-gradient(
        145deg,
        #11192a,
        #0d1424
    );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.25);
}


/* =========================================
   CONTACT AVAILABILITY
========================================= */

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 15px;
    padding: 8px 15px;

    color: #86efac;
    background: rgba(34, 197, 94, 0.10);

    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 50px;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================
   CONTACT TITLE
========================================= */

.contact-card h3 {
    margin-bottom: 15px;

    color: #ffffff;

    font-size: 30px;
}


/* =========================================
   CONTACT DESCRIPTION
========================================= */

.contact-description {
    max-width: 700px;
    margin: 0 auto 35px !important;

    color: #929bad !important;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================
   CONTACT INFORMATION GRID
========================================= */

.contact-information {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

    margin-top: 30px;
    margin-bottom: 30px;
}


/* =========================================
   CONTACT ITEM
========================================= */

.contact-item {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    padding: 18px 20px;

    background: #0b1120;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    text-align: left;

    transition: 0.3s;
}


.contact-item:hover {
    transform: translateY(-4px);

    border-color:
        rgba(108, 99, 255, 0.5);
}


/* =========================================
   CONTACT LABEL
========================================= */

.contact-label {
    margin-bottom: 5px;

    color: #7c73ff;

    font-size: 12px;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================
   CONTACT VALUE
========================================= */

.contact-value {
    color: #ffffff;

    font-size: 15px;

    font-weight: 500;

    word-break: break-word;
}


/* =========================================
   CONTACT BUTTONS
========================================= */

.contact-buttons {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


/* =========================================
   CONTACT MOBILE RESPONSIVE
========================================= */

@media (max-width: 700px) {

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-introduction {
        padding: 25px 20px;
    }

    .about-introduction p {
        text-align: left;
        font-size: 14px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-information {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons a {
        width: 100%;
    }
}

/* =========================================
   BALANCED CONTACT CARDS
========================================= */

.contact-information {
    grid-template-columns: repeat(6, 1fr);
}

.contact-item {
    grid-column: span 2;
}

/* Phone at Location sa gitna ng second row */
.contact-item:nth-child(4) {
    grid-column: 2 / span 2;
}

.contact-item:nth-child(5) {
    grid-column: 4 / span 2;
}


/* MOBILE */
@media (max-width: 700px) {

    .contact-information {
        grid-template-columns: 1fr;
    }

    .contact-item,
    .contact-item:nth-child(4),
    .contact-item:nth-child(5) {
        grid-column: auto;
    }
}