/* ==================== 
Xbitionart | Portfolio de Julie Franck, Designer UI & UX.
AUTHOR : Julie Franck
VERSION : 2025
URL : https://xbition-art.fr
====================  */

/* ==================== RESET CSS ====================  */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, menu, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer,
header, hgroup, menu, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==================== COLORS ====================  */
.white          { background-color: #FFFFFF; }
.black          { background-color: #121212; }
.eerieblack     { background-color: #1F1F1F; }
.blackolive     { background-color: #3B3B3B; }
.purple         { background-color: #9B5CFF; }
.blue           { background-color: #5DE2FF; }
.yellow         { background-color: #FFD84C; }

/* ==================== FONTS ====================  */
h1 {
    font-size: 5rem;
    line-height: auto;
    font-weight: 700;
    color: #FFD84C;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

h2.baseline {
    font-size: 2rem;
    font-weight: 400;
    color: #FFFFFF;
}


h3 {
    font-size: 1.375rem; 
    font-weight: 300;
    color: #5DE2FF;
}

h4 {
    font-size: 1.375rem;
    line-height: 1.675rem;
    font-weight: 600;
    color: #ffffff;
}


p {
    font-size: 1.125rem;
    line-height: 1.875;
    color: #ffffff;
    font-weight: 400;
}

p.semibold {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 600;
}

p.small {
    font-size: 1rem;
    line-height: 1.125;
    color: #ffffff;
    font-weight: 400;
}

span.error-message {
    font-size: 1rem;
    line-height: 1.125;
    color: #FF5C5C;
    font-weight: 400;
}

/* ==================== PRELOADER ====================  */
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out 0s;
}

.preloader {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.loader {
    height: 32px;
    width: 32px;
    animation: loader-1 2s cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
}

@keyframes loader-1 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    margin: auto;
    width: 8px;
    height: 8px;
    background: #9B5CFF;
    border-radius: 50%;
    animation: loader-2 2s cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
}

@keyframes loader-2 {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(24px, 0, 0) scale(.5);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.loader::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: auto;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    background: #9B5CFF;
    border-radius: 50%;
    animation: loader-3 2s cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
}

@keyframes loader-3 {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-24px, 0, 0) scale(.5);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.loader span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    height: 32px;
    width: 32px;
}

.loader span::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    right: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    background: #9B5CFF;
    border-radius: 50%;
    animation: loader-4 2s cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
}

@keyframes loader-4 {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, 24px, 0) scale(.5);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.loader span::after {
    content: "";
    display: block;
    position: absolute;
    top: auto;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    background: #9B5CFF;
    border-radius: 50%;
    animation: loader-5 2s cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
}

@keyframes loader-5 {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -24px, 0) scale(.5);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* ==================== HELPER====================  */
.mtxs  { margin-top: 0.6rem; }
.mts   { margin-top: 1.8rem; }
.mtm   { margin-top: 2.5rem; }
.mtl   { margin-top: 3.7rem; }
.mtxl  { margin-top: 5rem; }
.mbxs  { margin-bottom: 0.6rem; }
.mbs   { margin-bottom: 1.8rem; }
.mbm   { margin-bottom: 2.5rem; }
.mbl   { margin-bottom: 3.7rem; }
.mbxl  { margin-bottom: 5rem; }
.mlxs  { margin-left: 0.6rem; }
.mls   { margin-left: 1.8rem; }
.mlm   { margin-left: 2.5rem; }
.mll   { margin-left: 3.7rem; }
.mlxl  { margin-left: 5rem; }
.mrxs  { margin-right: 0.6rem; }
.mrs   { margin-right: 1.8rem; }
.mrm   { margin-right: 2.5rem; }
.mrl   { margin-right: 3.7rem; }
.mrxl  { margin-right: 5rem; }
.brb { border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; margin-bottom: -2px; }

/* ==================== COMMON ====================  */
body {
    font-family: "Outfit", sans-serif;
}

.center {
    text-align: center;
}


img {
    margin: 0 auto;
    max-width: 100%;
}

input, textarea {
    background: #1F1F1F;
    border: 1px solid #3B3B3B;
    color: #ffffff;
    border-radius: 10px;
    height: 50px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    outline: none;
    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    resize: none;
    appearance: none;
    box-shadow: none !important;
}

input:focus, textarea:focus {
    border-color: #9B5CFF;
}

input::placeholder, textarea::placeholder {
    color: #3B3B3B;
}

input:-webkit-autofill {
    box-shadow: 0 0 0 1000px #1F1F1F inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}

textarea {
    height: 100px;
    padding: 10px 20px;
    
}

.button, button {
    display: inline-flex;
    align-items: center;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
}

.button span {
    padding-left: 10px;
}

.button:hover, button:hover {
    background-color: #6D22E4;
}

.link {
    text-decoration: none;
    color: #E2E4E9;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.link::before {
    content: '';
    background-color: #9B5CFF;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px; 
    z-index: -1; 
    transition: all 0.3s ease-in-out;
}

.link:hover::before {
    bottom: 0;
    height: 100%;
}


/* ==================== NAV BAR ====================  */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 70px;
    border-bottom: 1px solid #3B3B3B;
    z-index: 1000;
    position: fixed;
    width: 100%;
}

.navbtn {
    display: inline-flex;
    align-items: center;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 10px;
    color: #FFFFFF;
    text-decoration: none;
}

.navbtn.active {
    background-color: rgba(255, 216, 76, .1);
    color: #FFD84C;
}

.navbtn:not(.active) {
    background: none;
}

.navbtn:not(.active):hover {
    background-color: rgba(255, 216, 76, .1);
}

.navbtn span {
    padding-left: 10px;
}


/* ==================== CONTENT & SECTIONS ====================  */
.header {
    background-image: url(../img/header-gradient.png);
    background-repeat: no-repeat;
    background-position: center;
    padding-top: 70px;
}

.content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.content .intro {
    padding-top: 10%;
}

.container {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    align-items: flex-start;
    border: 1px solid #3B3B3B;
    border-radius: 20px;
    padding: 30px;
    background-color: #1F1F1F;
}

.flex-start {
    align-items: flex-start;
}

.flex-end {
    align-items: flex-end;
}

.container .text {
    flex: 1;
    padding-right: 100px;
}

.container .avatar {
    width: 170px;
    height: auto;
}

.container .avatar img {
    border-radius: 20px;
    border: 1px solid #3B3B3B;
}

.contactform {
    width: 48.2%;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.about, .work, .contact, .footer {
    margin-top: 100px;
}

/* ==================== PORTFOLIO & PROJETS ====================  */
.portfolio {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 30px 30px;
    grid-template-areas:
        ". ."
        ". ."
        ". .";
    justify-content: center;
    align-content: space-between;
    justify-items: stretch;
    align-items: center;
    width: 100%;
    height: 100%;
}

.portfolio .card {
    border: 1px solid #3B3B3B;
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    background-color: #1F1F1F;

}

.portfolio .card:hover {
    background-color: #121212;
    border: 1px solid #9B5CFF;
}


.portfolio .category {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: 20px;
}

.portfolio .details {
    margin-left: 20px;
}

.portfolio .client {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

.project {
    border: 1px solid #3B3B3B;
    border-radius: 20px;
    background-color: #1F1F1F;
    padding-top: 1.8rem;
}

.project .text {
    padding: 30px 100px;

}

/* ==================== SOCIAL ====================  */
.social {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    justify-content: space-evenly;
}

.social li {
    display: inline-block;
}

.social a {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.social a svg {
    fill: #ffffff;
    width: 100%;
    height: 100%;
    transition: fill 0.3s;
}

.social a:hover svg {
    fill: #9B5CFF;
}

/* ==================== FOOTER ====================  */
.footer .content {
    border-top: 1px solid #1F1F1F;
    padding: 30px 0;
}

/* ==================== GEOMETRIC ====================  */
#geometric { height: auto; left: 0; overflow: hidden; top: 0; width: 100%; }
#star1 { top: 5%; left: 2%; position: absolute; }
#star2 { top: 3%; left: 15%; position: absolute; }
#star3 { top: 5%; left: 30%; position: absolute; }
#star4 { top: 8%; right: 40%; position: absolute; }
#star5 { top: 2%; right: 25%; position: absolute; }
#star6 { top: 10%; right: 5%; position: absolute; }
#star7 { top: 25%; left: 15%; position: absolute; }
#star8 { top: 20%; left: 25%; position: absolute; }
#star9 { top: 22%; right: 35%; position: absolute; }
#star10 { top: 20%; right: 15%; position: absolute; }
#star11 { top: 40%; left: 3%; position: absolute; }
#star12 { top: 35%; left: 30%; position: absolute; }
#star13 { top: 35%; right: 30%; position: absolute; }
#star14 { top: 47%; left: 25%; position: absolute; }
#star15 { top: 47%; right: 20%; position: absolute; }
#planetOrange { top: -5%; left: 20%; position: absolute; }
#planetBlue { top: 13%; right: 22%; position: absolute; }

/* ==================== RESPONSIVE ====================  */
@media screen and (max-width: 979px) {
    .geometric {
        display: none;
    }

    .portfolio {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        gap: 30px 30px;
        grid-template-areas:
            ". ."
            ". ."
            ". ."
            ". .";
    }
}

@media screen and (max-width: 767px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .header {
        padding-top: 70px;
    }

    .container .avatar {
        margin-bottom: 1.8rem;
        width: 150px;
    }

    .container {
        flex-direction: column-reverse;
        align-items: center
    }

    .container.column {
        flex-direction: column !important; 
    }

    .container .text {
        text-align: center;
        padding-right: 0;
    }

    .container.column .text {
        margin-bottom: 1.8rem !important;
    }

    .contactform {
        width: 100%;
        margin-bottom: 1.8rem;
    }

    .portfolio {
        display: grid;
        grid-template-columns: 1fr; 
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; 
        gap: 30px 30px; 
        grid-template-areas: 
          "."
          "."
          "."
          "."
          "."
          "."
          "."
          "."; 
    }

    .project .text {
        padding: 30px 30px;
    
    }
}
