
/* =========================
   GLOBAL SETTINGS
========================= */

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    background-color: #161617;
    color: #94A3B8;
    margin: 0;
    padding: 0;
    font-family: "JetBrains Mono", monospace;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* =========================
   LAYOUT CONTAINERS
========================= */

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    width: 100%;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background-color: #161617;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    color: #DC2626;
    font-family: "Audiowide", sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: #94A3B8;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #DC2626;
}

.menu-toggle,
.burger-label {
    display: none;
}

/* =========================
   HOME SECTION
========================= */

.welcome_card {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 100vh;
    padding-top: 100px;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.name_job {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.name {
    color: #DC2626;
    margin: 0 0 0.75rem 0;
    font-family: "Audiowide", sans-serif;
    font-size: 3.2rem;
    line-height: 1.2;
    white-space: nowrap;
}

.job {
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
    color: #94A3B8;
}

/* =========================
   SOCIAL ICONS
========================= */

.socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.socials img {
    filter: invert(69%) sepia(13%) saturate(542%)
        hue-rotate(176deg) brightness(89%) contrast(85%);
    transition: transform 0.2s ease;
}

.socials a:hover img {
    transform: scale(1.08);
}

.linkedin {
    width: 1.8rem;
    height: auto;
}

.github {
    width: 2.2rem;
    height: auto;
}

/* =========================
   EXPLORE MORE BUTTON
========================= */

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 0.9rem 2.2rem;
    background-color: transparent;
    color: #DC2626;
    border: 2px solid #DC2626;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn:hover {
    background-color: #DC2626;
    color: #161617;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.cta-btn .arrow {
    transition: transform 0.3s ease;
}

.cta-btn:hover .arrow {
    transform: translateY(4px);
}

/* =========================
   HOME PHOTO
========================= */

.hero_container {
    flex: 1.5;
    display: flex;
    justify-content: flex-start;
    height: 65vh;
}

.hero_image {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* =========================
   ABOUT ME SECTION
========================= */

#about_section {
    background-color: #121213;
    width: 100%;
    box-sizing: border-box;
    height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.about-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.about_content {
    flex: 1.2;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    max-width: 650px;
}

.signature {
    width: 300px;
    max-width: 100%;
    height: auto;
    margin-top: 1.5rem;
}

.title {
    color: #DC2626;
    margin: 0 0 1.5rem 0;
    font-family: "Audiowide", sans-serif;
    font-size: 2.8rem;
    line-height: 1.1;
}

.about_content .info {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================
   AUTOMATIC ABOUT SLIDESHOW
========================= */

.about_image_container {
    flex: 1;
    display: flex;
    height: 50vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about_slider {
    display: flex;
    width: 100%;
    height: 100%;
    animation: imageSlide 12s infinite;
}

.about_image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Three images, approximately four seconds each */

@keyframes imageSlide {

    0%, 28% {
        transform: translateX(0);
    }

    33%, 61% {
        transform: translateX(-100%);
    }

    66%, 94% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(0);
    }

}

/* =========================
   RECENT PROJECTS SECTION
========================= */

#recent_projects {
    background-color: #161617;
    width: 100%;
    box-sizing: border-box;
    height: 100vh;
    padding-top: 90px;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.projects-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    margin-top: 1rem;
}

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

.column-header {
    color: #94A3B8;
    font-family: "Audiowide", sans-serif;
    font-size: 1.4rem;
    margin: 0 0 1.2rem 0;
    padding-bottom: 0.6rem;
    width: 100%;
    text-align: center;
    border-bottom: 2px solid #232326;
}

/* =========================
   PROJECT FLIP CARDS
========================= */

.pipeline-card {
    display: block;
    width: 100%;
    height: 320px;
    perspective: 1000px;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pipeline-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}

.pipeline-card:hover .pipeline-card-inner,
.pipeline-card:focus .pipeline-card-inner {
    transform: rotateY(180deg);
}

.pipeline-card-front,
.pipeline-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #232326;
    border-radius: 12px;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.pipeline-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CARD BACK */

.pipeline-card-back {
    background-color: #202023;
    border-color: #DC2626;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.pipeline-card-back h3 {
    color: #DC2626;
    font-family: "Audiowide", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.pipeline-card-back p {
    color: #94A3B8;
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
}

/* FRONT CARD HINT */

.card-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* =========================
   TABLET RESPONSIVE
========================= */

@media (max-width: 1000px) and (min-width: 769px) {

    .hero-layout {
        gap: 3rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .job {
        font-size: 1.1rem;
    }

    .about-layout {
        gap: 2rem;
    }

    .pipeline-grid {
        gap: 1.5rem;
    }

    .pipeline-card {
        height: 260px;
    }

}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    html {
        scroll-snap-type: none;
    }

    .container {
        padding: 0 1.5rem;
    }

    .navbar {
        position: fixed;
        padding: 1.2rem 0;
    }

    .logo {
        font-size: 2.2rem;
    }

    .burger-label {
        display: block;
        color: #94A3B8;
        cursor: pointer;
        font-family: "JetBrains Mono", monospace;
        border: 1px solid #2d2d30;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        background-color: #1a1a1c;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 1.2rem);
        left: -1.5rem;
        right: -1.5rem;
        width: calc(100% + 3rem);
        background-color: #1a1a1c;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid #2d2d30;
        padding: 0.5rem 0;
        gap: 0;
        z-index: 110;
    }

    .nav-links a {
        padding: 1rem 1.5rem;
        display: block;
        border-bottom: 1px solid #232326;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .welcome_card {
        padding: 120px 0 3rem 0;
        height: auto;
    }

    .hero-layout {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 2.5rem;
        text-align: center;
    }

    .name_job {
        align-items: center;
    }

    .name {
        font-size: 2.5rem;
        white-space: normal;
    }

    .job {
        font-size: 1.1rem;
    }

    .hero_container {
        width: 100%;
        height: 35vh;
        justify-content: center;
    }

    .hero_image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #about_section {
        padding: 5rem 0;
        height: auto;
    }

    .about-layout {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .about_content {
        align-items: center;
        max-width: 100%;
    }

    .title {
        font-size: 2.6rem;
    }

    .about_image_container {
        width: 100%;
        height: 35vh;
        justify-content: center;
    }

    #recent_projects {
        padding: 5rem 0;
        height: auto;
    }

    .projects-layout {
        align-items: center;
    }

    .pipeline-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pipeline-card {
        height: 250px;
    }

    /* Touchscreen flip support */

    .pipeline-card:active .pipeline-card-inner {
        transform: rotateY(180deg);
    }

    .pipeline-card-back {
        padding: 1rem;
    }

}
