/* --------------------------------------- */
/* ----- Basic Setup ----- */
/* --------------------------------------- */

@font-face {
    font-family: 'Hk Grotesk';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/HKGrotesk-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/Jost-Regular.ttf') format('woff');
}

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

:root {
    --font-size-small: 1.8rem;
    --font-size-normal: 2.2rem;
    --font-size-medium: 2.8rem;
    --font-size-medium-1: 3.6rem;
    --font-size-large: 5.5rem;
    --font-size-huge: 7.5rem;
    --font-stack: 'Hk Grotesk', sans-serif;

    --line-height-normal: 1.7;
    --line-height-small: 1.2;

    --black: #000;
    --pink: #ff3258;
    --white: #f0e9f2;
    --white-1: #e5e5e6da;


    --container-max-width: 1180px;
    --container-normal-width: 800px;
    --container-medium-width: 700px;
    --container-small-width: 500px;

    --gutter-huge: 12rem;
    --gutter-medium: 6rem;
    --gutter-normal: 3rem;
    --gutter-small-1: 2.5rem;
    --gutter-small: 2rem;

    --border-light: 1px solid rgb(36, 35, 35);
}

html {
    font-size: 62.5%; /* (16/10)*100 = 62.5% => 1rem = 10px */
    box-sizing: border-box;
    scroll-behavior: smooth;
}

@media(max-width: 1000px) {
    html {
        font-size: 52%;
    }
}

body {
    font-size: var(--font-size-small);
    font-family: var(--font-stack);
    font-weight: 400;
    color: var(--white-1);
    line-height: var(--line-height-normal);
    background: var(--black);
    overflow-x: hidden;
}

.row {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

@media(max-width: 1340px) {
    .row {
        max-width: 1100px;
    }
}

@media(max-width: 1240px) {
    .row {
        padding: 0 var(--gutter-medium);
    }
}

@media(max-width: 600px) {
    .row {
        padding: 0 var(--gutter-normal);
    }
}

@media(max-width: 600px) {
    .row {
        padding: 0 var(--gutter-small);
    }
}

section {
    padding: var(--gutter-huge) 0;
    border-bottom: var(--border-light);
}

img {
    object-fit: contain;
    max-width: 100%;
}

/* --------------------------------------- */
/* ----- Headlines and Paragraphs ----- */
/* --------------------------------------- */

h1,
h2,
h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    line-height: var(--line-height-small);
    color: var(--white);
}

.heading-primary {
    line-height: 1;
    font-size: var(--font-size-huge);
    font-weight: 400;
}

@media(max-width: 900px) {
    .heading-primary {
        font-size: 6.5rem;
    }
}

h2 {
    font-size: var(--font-size-large);
    margin-bottom: var(--gutter-medium);
}

h2::after {
    content: '';
    display: block;
    height: 2px;
    width: 10rem;
    background: var(--pink);
    margin: var(--gutter-small) 0;
}

h3 {
    font-size: var(--font-size-medium-1);
    margin-bottom: var(--gutter-small);
}

@media(max-width: 500px) {
    .heading-primary {
        font-size: var(--font-size-large);
    }

    h2 {
        font-size: var(--font-size-medium-1);
    }

    h3 {
        font-size: var(--font-size-medium);
    }
}

p {
    margin: var(--gutter-small-1) 0;
}

@media(max-width: 900px) {
    p {
        max-width: var(--container-small-width);
    }
}

/* --------------------------------------- */
/* ----- Buttons and Links ----- */
/* --------------------------------------- */

a {
    color: var(--white);
    font-weight: 400;
    font-family: 'Jost', sans-serif;
    transition: all .2s;
    outline: 2px solid transparent;
}

::-moz-focus-inner {
    border: 0;
}

button:focus,
a:focus {
    outline: 2px solid var(--pink);
}

body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) a:focus {
    outline: none;
}

.link:hover {
    color: var(--pink);
}

.btn {
    position: relative;
    display: inline-block;
    padding: 1rem 4.2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid  var(--pink);
    font-weight: 400;
}

.btn:focus {
    outline: none;
}

.btn::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    background: var(--white);
    height: 100%;
    z-index: -1;
    transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.btn:hover::after,
.btn:focus::after {
    right: 0;
    background: var(--pink);
}

.btn--pink {
    background: var(--pink);
    transition: all 0.2s;
}

.btn--pink::after {
    display: none;
}

.btn--pink:hover,
.btn--pink:focus {
    background: transparent;
}

.link__text {
    position: relative;
    display: inline-block;
    padding: .6rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--pink);
}

.link__text::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    background: var(--white);
    height: 100%;
    z-index: -1;
    transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.link__text:focus {
    outline: none;
}

.link__text:hover::after,
.link__text:focus:after {
    right: 0;
    background: var(--pink);
}

.link__text span {
    padding-left: 1rem;
    font-family: sans-serif;
}

/* ----- Back to Top ----- */

.back-to-top {
    position: fixed;
    bottom: 4rem;
    right: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5.5rem;
    width: 5.5rem;
    background-color: var(--pink);
    border-radius: 50%;
    z-index: 10;
    visibility: hidden;
    transition: all .4s;
}

.back-to-top__image {
    height: 70%;
}

@media(max-width: 900px) {
    .back-to-top {
        right: 2rem;
    }
}

@media(max-width: 500px) {
    .back-to-top {
        right: 1rem;
    }
}

/* --------------------------------------- */
/* ----- Navigation ----- */
/* --------------------------------------- */

.nav {
    display: flex;
    justify-content: flex-end;
    padding: var(--gutter-normal) 0;
}

.nav__items {
    display: flex;
    list-style: none;
}

.nav__item:not(:last-child) {
    margin-right: var(--gutter-medium);
}

@media(max-width: 500px) {
    .nav {
        justify-content: center;
    }
}

@media(max-width: 400px) {
    .nav__item:not(:last-child) {
        margin-right: var(--gutter-normal);
    }
}

@media(max-width: 300px) {
    .nav {
        font-size: var(--font-size-small);
    }
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 100%;
    display: inline-block;
    height: 1rem;
    background: var(--white);
    transition: all 0.25s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.nav__link:hover {
    color: var(--pink);
}

.nav__link:hover::after {
    right: 0;
    height: 2px;
    background: var(--pink);
}

/* --------------------------------------- */
/* ----- Header ----- */
/* --------------------------------------- */

    .header {
        /* background: linear-gradient(rgba(0,0,0, .1), rgba(0,0,0, .4)),
        url('./images/header.jpg'); */

        position: relative;
        height: 100vh; /* Full viewport height */
        background: none; /* If you want to remove the background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-size: var(--font-size-normal);
}

.header__text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.header__text p {
    margin: 1.5rem 0 3.5rem;
    max-width: var(--container-medium-width);
    font-family: 'Jost', sans-serif;
    font-size: var(--font-size-medium);
}

@media(max-width: 500px) {
    .header {
        text-align: center;
    }

    .header__text p {
        transform: scale(.8);
    }
}

/* --------------------------------------- */
/* ----- Work ----- */
/* --------------------------------------- */

.work__box {
    display: flex;
    align-items: center;
}

@media(max-width: 900px) {
    .work__box {
        align-items: initial;
        flex-direction: column-reverse;
    }
}

.work__box:not(:last-child) {
    margin-bottom: 25rem;
}

@media(max-width: 500px) {
    .work__box:not(:last-child) {
        margin-bottom: 20rem;
    }
}

.work__links {
    display: flex;
    align-items: center;
}

.work__text {
    flex: 0 0 30%;
}

.work__list {
    /* list-style-type: square; */
    list-style-position: inside;
    margin-bottom: var(--gutter-normal);
}

.work__code {
    display: block;
    height: 3rem;
    margin-left: var(--gutter-normal);
    transition: all .3s;
}

.work__code:hover {
    transform: scale(1.2);
}

.work__image-box {
    margin-bottom: var(--gutter-normal);
}

@media(min-width: 901px) {
    .work__image-box {
        flex: 1;
        margin: 0 0 0 10rem;
    }
}

@media(max-width: 900px) {
    .work__code {
        height: 4rem;
    }
}

/* --------------------------------------- */
/* ----- Clients ----- */
/* --------------------------------------- */

.client__logos {
    display: flex;
    justify-content: space-between;
    filter: invert(100%) grayscale(100%) opacity(.8);
}

.client__logo {
    height: 6.5rem;
    max-width: 18rem;
}

@media(max-width: 1240px) {
    .client__logos {
        overflow-x: scroll;
        padding: var(--gutter-normal);
    }

    .client__logo:not(:last-of-type) {
        margin-right: var(--gutter-medium);
    }
}

/* --------------------------------------- */
/* ----- About ----- */
/* --------------------------------------- */

.about__content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

@media(max-width: 900px) {
    .about__content {
        flex-direction: column-reverse;
        align-items: initial;
    }
}

.about__photo-container {
    margin-bottom: var(--gutter-normal);
}

@media(min-width: 901px) {
    .about__text {
        flex: 0 0 35%;
    }

    .about__photo-container {
        flex: 1;
        margin: 0 var(--gutter-huge) 0 0;
    }
}

/* --------------------------------------- */
/* ----- Contact ----- */
/* --------------------------------------- */

.contact__info {
    max-width: var(--container-medium-width);
}

/* --------------------------------------- */
/* ----- Footer ----- */
/* --------------------------------------- */
.footer {
    text-align: center;
    padding: var(--gutter-medium) 0 var(--gutter-normal);
    background-color: var(--black); /* Dark background */
    color: var(--white-1); /* Consistent text color */
}

.footer__social-links {
    display: flex;
    justify-content: center;
    gap: var(--gutter-small);
    padding: var(--gutter-normal) 0;
    list-style: none;
}

.footer__social-links li {
    margin: 0;
}

.footer__social-links a {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s;
}

.footer__social-links img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%) brightness(80%); /* Make all icons uniform */
    transition: filter 0.3s ease, transform 0.2s ease;
}

.footer__social-links img:hover {
    filter: grayscale(0%) brightness(100%) invert(0); /* Remove dullness on hover */
    transform: scale(1.2); /* Add a zoom effect */
}

.footer p {
    margin-top: var(--gutter-small);
    font-size: 1.4rem;
    color: var(--white-1);
}


.developer-evangelism {
    padding: 5px 2px;
    background-color: #000; /* Light background for the section */
    text-align: center;
}

.developer-evangelism h2{
    font-size: var(--font-size-large);
    margin-bottom: var(--gutter-medium);

}
.developer-evangelism h3 {
    color: var(--white); /* Use the defined white color variable */
     /*font-size: 2rem;*/
    font-size: var(--font-size-medium-1);


    text-align: center;
    margin-bottom: 20px;
}

.developer-evangelism .metrics {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.developer-evangelism .metric {
    background: #FFFFF0; /* Slightly lighter than black for contrast */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 150px;
    color: #000000; /* Use the site's color variable */
}


.developer-evangelism .metric h3 {
    font-size: 2rem;
    color: #ff3258; /* Use the defined pink color variable */
    margin-bottom: 10px;
}

.developer-evangelism .metric p {
    font-size: 1.4rem;
    color: #000000; /* Black text for the labels */
}

.developer-evangelism .video-wall {
    margin: 40px 0;
}

.developer-evangelism .video-carousel {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    padding-bottom: 10px;
}

.developer-evangelism .video-carousel::-webkit-scrollbar {
    height: 8px;
}

.developer-evangelism .video-carousel::-webkit-scrollbar-thumb {
    background: #ff3258; /* Bright red for the scrollbar thumb */
    border-radius: 5px; /* Rounded edges for the thumb */
}

.developer-evangelism .video-carousel::-webkit-scrollbar-track {
    background:  #F5F5F5; /* Darker background to contrast with the scrollbar thumb */
    border-radius: 5px; /* Rounded edges for a smoother appearance */
}

.developer-evangelism .video {
    flex: 0 0 auto;
    width: 300px;
    text-align: center;
}

.developer-evangelism .video p {

    color: var(--white-1); /* Ensure consistent text color */
    font-size: 1.4rem;
    margin-top: 5px;
}

.developer-evangelism .video iframe {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.developer-evangelism .cta {
    margin-top: 30px;
}

.developer-evangelism .cta .btn {
    display: inline-block;
    background: var(--pink); /* Use the defined pink color */
    color: var(--white);
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 1.6rem;
}

.developer-evangelism .cta .btn:hover {
    background: #e0544e; /* Slightly darker shade for hover */
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: transparent; */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)); /* Semi-transparent overlay */
}

/* Timeline Container */

/* About section*/
.about-section {
    padding: var(--gutter-huge) 0;
}

.about-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

.about-column {
    flex: 1;
}

.about-photo-skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-photo img {
    border-radius: 50%;
    width: 100%;
    max-width: 250px;
    object-fit: cover;
    border: 5px solid var(--pink);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about-skills {
    text-align: left;
    font-size: var(--font-size-small);
    color: var(--white-1);
}

.about-skills h3 {
    font-size: var(--font-size-medium);
    margin-bottom: var(--gutter-small);
}

.about-skills ul {
    list-style-type: disc;
    padding-left: 2rem;
}

.about-skills ul li {
    margin-bottom: var(--gutter-small-1);
}

.about-content {
    color: var(--white-1);
    font-size: var(--font-size-small);
    text-align: left;
}

.about-content h2 {
    font-size: var(--font-size-large);
    margin-bottom: var(--gutter-small);
}

.about-content p {
    margin-bottom: var(--gutter-small-1);
    line-height: var(--line-height-normal);
}

.about-content a {
    display: inline-block;
    margin-top: var(--gutter-small);
    text-decoration: none;
}

@media (max-width: 900px) {
    .about-row {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        text-align: center;
    }

    .about-skills {
        text-align: center;
    }
}

/* Contact */

.contact-section {
    padding: var(--gutter-huge) 0;
    text-align: center;
    color: var(--white-1);
}

.contact-section h2 {
    font-size: var(--font-size-large);
    margin-bottom: var(--gutter-normal);
}

.contact-section p {
    margin-bottom: var(--gutter-medium);
    font-size: var(--font-size-small);
    line-height: var(--line-height-normal);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-small);
}

.contact-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%) brightness(80%); /* Neutral color for icons */
    transition: all 0.3s ease;
}

.contact-item img:hover {
    filter: grayscale(0%) brightness(100%) saturate(2); /* Color pop on hover */
}

.contact-item a {
    text-decoration: none;
    color: var(--white-1);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--pink); /* Highlight link on hover */
}

/* Project section*/
.projects-section {
    padding: var(--gutter-huge) 0;
    background-color: var(--black);
    text-align: center;
}

.projects-section h2 {
    font-size: var(--font-size-large);
    color: var(--white);
    margin-bottom: var(--gutter-medium);
}

.projects-scroll {
    display: flex;
    flex-direction: column;
    gap: var(--gutter-medium);
    overflow-x: auto;
    padding: var(--gutter-small);
    scrollbar-width: thin;
    scrollbar-color: var(--pink) var(--white-1);
}

.projects-scroll::-webkit-scrollbar {
    height: 8px;
}

.projects-scroll::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 10px;
}

.projects-row {
    display: flex;
    gap: var(--gutter-medium);
    justify-content: flex-start;
}

.project-card {


    flex: 0 0 300px;
    height: 400px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: rgba(17, 17, 17, 0.9);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}

.project-card:hover {
    /*
    transform: rotateY(180deg);
    */
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Prevents the opposite side from showing */
    border-radius: 10px;
    padding: var(--gutter-small);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.card-front {
    /*
    background: rgba(255, 50, 88, 0.8); /* Front background color */
   /* z-index: 2; /* Ensures it's on top initially */
    /* transform: rotateY(0deg); /* No rotation for front face */

    /*wtihout flipping */
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-front .details {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}
.card-front img {
    /** without details
    width: 100%;
    height: auto;
    max-height: 50%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: var(--gutter-small);
    **/
    /* with details button */
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}



.card-front h4 {
    font-size: 1.6rem;
    margin: var(--gutter-small) 0;
    color: var(--white);
}

.card-front p {
    font-size: 1.4rem;
    color: var(--white-1);
}

.card-back {
    background: rgba(0, 0, 0, 0.9); /* Back background color */
    transform: rotateY(180deg); /* Position it behind initially */
    z-index: 1; /* Starts behind the front side */
}

.card-back h3 {
    font-size: var(--font-size-medium);
    margin-bottom: var(--gutter-small);
    color: var(--pink);
}

.card-back p {
    font-size: 1.4rem;
    margin-bottom: var(--gutter-small-1);
    color: var(--white-1);
}

.card-back ul {
    margin: var(--gutter-small) 0;
    padding-left: 20px;
    list-style-type: disc;
    text-align: left;
}

.card-back ul li {
    margin-bottom: 5px;
    color: var(--white-1);
}

.card-back a {
    margin-top: var(--gutter-small);
    color: var(--pink);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.card-back a:hover {
    color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .projects-row {
        flex-wrap: wrap; /* Wraps cards to fit smaller screens */
        justify-content: center;
    }

    .project-card {
        flex: 0 0 90%; /* Cards occupy almost full width */
    }
}

@media (max-width: 600px) {
    .card-front img {
        max-height: 40%; /* Reduce image size on smaller devices */
    }
}
.details-btn {
    display: inline-block;
    padding: 8px 24px;
    background: var(--pink);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin-top: auto;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.details-btn:hover {
    background: #ff3377;
    transform: translateY(-2px);
}
