/* Load Montserrat Font From Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,600;0,800;1,400&display=swap');

/* ============= GLOBAL CSS =============== */

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

/*16px*/

:root {
    /* colors */
    --primary-100: #eadfeb;
    --primary-200: #d6bfd6;
    --primary-300: #c19fc2;
    --primary-400: #ad7fad;
    --primary-500: #985f99;
    --primary-600: #7a4c7a;
    --primary-700: #5b395c;
    --primary-800: #3d263d;
    --primary-900: #1e131f;

    --sub-color: #EDB6A3;

    /* grey */
    --grey-50: #f8fafc;
    --grey-100: #f1f5f9;
    --grey-200: #e2e8f0;
    --grey-300: #cbd5e1;
    --grey-400: #94a3b8;
    --grey-500: #64748b;
    --grey-600: #475569;
    --grey-700: #334155;
    --grey-800: #1e293b;
    --grey-900: #0f172a;
    /* rest of the colors */
    --black: #222;
    --white: #fff;
    --red-light: #f8d7da;
    --red-dark: #842029;
    --green-light: #d1e7dd;
    --green-dark: #0f5132;

    --small-text: 0.875rem;
    --extra-small-text: 0.7em;
    /* rest of the vars */
    /* --backgroundColor: var(--grey-50); */
    --backgroundColor: var(--white);
    --textColor: var(--grey-900);
    --borderRadius: 0.25rem;
    --letterSpacing: 1px;
    --transition: 0.3s ease-in-out all;
    --max-width: 1120px;
    --fixed-width: 600px;

    /* box shadow*/
    --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background: var(--backgroundColor);
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    line-height: 1;
    color: var(--textColor);
}

p {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-family: var(--headingFont);
    font-weight: 400;
    line-height: 1;
    text-transform: capitalize;
    letter-spacing: var(--letterSpacing);
}

h1 {
    font-size: 3.052rem;
}

h2 {
    font-size: 2.441rem;
}

h3 {
    font-size: 1.953rem;
}

h4 {
    font-size: 1.563rem;
}

h5 {
    font-size: 1.25rem;
}

.text {
    margin-bottom: 1.5rem;
    max-width: 40em;
}

small,
.text-small {
    font-size: var(--small-text);
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
    padding: 0;
}

.img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* buttons */

.btn {
    cursor: pointer;
    color: var(--white);
    background: var(--primary-500);
    border: transparent;
    border-radius: var(--borderRadius);
    letter-spacing: var(--letterSpacing);
    padding: 0.375rem 0.75rem;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
    text-transform: capitalize;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-700);
    box-shadow: var(--shadow-3);
}

.btn-hipster {
    color: var(--primary-500);
    background: var(--primary-200);
}

.btn-hipster:hover {
    color: var(--primary-200);
    background: var(--primary-700);
}

.btn-block {
    width: 100%;
}

/* alerts */
.alert {
    padding: 0.375rem 0.75rem;
    margin-bottom: 1rem;
    border-color: transparent;
    border-radius: var(--borderRadius);
}

.alert-danger {
    color: var(--red-dark);
    background: var(--red-light);
}

.alert-success {
    color: var(--green-dark);
    background: var(--green-light);
}

/* form */

.form {
    width: 90vw;
    max-width: var(--fixed-width);
    background: var(--white);
    border-radius: var(--borderRadius);
    box-shadow: var(--shadow-2);
    padding: 2rem 2.5rem;
    margin: 3rem auto;
}

.form-label {
    display: block;
    font-size: var(--small-text);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
    letter-spacing: var(--letterSpacing);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border-radius: var(--borderRadius);
    background: var(--backgroundColor);
    border: 1px solid var(--grey-200);
}

.form-row {
    margin-bottom: 1rem;
}

.form-textarea {
    height: 7rem;
}

::placeholder {
    font-family: inherit;
    color: var(--grey-400);
}

.form-alert {
    color: var(--red-dark);
    letter-spacing: var(--letterSpacing);
    text-transform: capitalize;
}

/* alert */

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    width: 6rem;
    height: 6rem;
    border: 5px solid var(--grey-400);
    border-radius: 50%;
    border-top-color: var(--primary-500);
    animation: spinner 0.6s linear infinite;
    margin: 0 auto;
}

/* title */

.title {
    text-align: center;
}

.title-underline {
    background: var(--primary-500);
    width: 7rem;
    height: 0.25rem;
    margin: 0 auto;
    margin-top: 1rem;
}

/*
=============== 
Navbar
===============
*/

.navbar {
    display: flex;
    justify-content: center;
}

.nav-center {
    width: 90vw;
    max-width: var(--max-width);
}

.nav-header {
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
}

.logo-railgun {
    color: var(--grey-600);
}

.logo-luffy {
    color: var(--primary-500);
}

.nav-btn {
    padding: 0.25rem 0.75rem;
}

.nav-btn i {
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    height: 0;
    overflow: hidden;
    transition: var(--transition);
    position: absolute;
    right: 1.5rem;
    left: 0;
    background-color: var(--backgroundColor);
    z-index: 1000;
}

.show-links {
    height: 196px;
}

.nav-link {
    display: block;
    text-align: right;
    text-transform: uppercase;
    color: var(--grey-600);
    padding: 1rem 0;
    border-top: 1px dashed var(--grey-500);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-500);
}

@media screen and (min-width: 992px) {
    .navbar {
        width: 100%;
        height: 4rem;
        background-color: var(--backgroundColor);
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        box-shadow: var(--shadow-3);
    }

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

    .nav-header {
        height: auto;
        margin-right: 2rem;
    }

    .nav-btn {
        display: none;
    }

    .nav-links {
        position: initial;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        padding: 0;
        border-top: none;
        margin-right: 1.5rem;
        font-size: 1.25rem;
    }
}

/*
=============== 
Section
===============
*/

.section {
    width: 90vw;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* .section {
    min-height: calc(100vh - 6rem);
}

@media screen and (min-width: 992px) {
    .section {
        min-height: 100vh;
        min-height: calc(100vh - 4rem);
    }
} */

/*
=============== 
Hero
===============
*/

.hero {
    min-height: calc(100vh - 6rem);
    /* padding-top: 4rem; */
    display: grid;
    gap: 0 4rem;
    align-content: center;
    justify-content: center;
}

.hero article h1 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.15;
}

.hero-hello {
    color: var(--primary-500);
}

.hero-luffy {
    color: var(--sub-color);
}

.hero article h4 {
    font-size: 1rem;
    color: var(--grey-500);
    margin-top: 0.75rem;
    line-height: 1.25;
}

.hero-img {
    display: none;
}

@media screen and (min-width: 768px) {
    .hero article h1 {
        font-size: 2.8rem;
    }

    .hero article h4 {
        font-size: 1.15rem;
    }
}

@media screen and (min-width: 992px) {
    .hero {
        min-height: 100vh;
        padding-top: 4rem;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        justify-items: center;
    }

    .hero article h1 {
        font-size: 3rem;
        line-height: 1.25;
    }

    .hero article h4 {
        font-size: 1.25rem;
    }

    .hero-img {
        display: block;
        max-width: 75%;
        position: relative;
    }

    .hero-photo {
        border-radius: var(--borderRadius);
        position: relative;
    }

    .hero-img::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 2rem;
        right: -2rem;
        border: 0.25rem solid var(--primary-300);
        border-radius: var(--borderRadius);
    }
}

/*
=============== 
About
===============
*/

.about {
    padding-top: 6rem;
}

.about-center {
    display: grid;
    gap: 3rem 4rem;
}

.about-img {
    justify-self: center;
}

.about-title {
    margin-bottom: 2rem;
}

.about-title h3 {
    font-size: 1.563rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.about-info p {
    margin-bottom: 1.25rem;
    color: var(--grey-500);
    line-height: 1.5rem;
}

@media screen and (min-width: 992px) {
    .about-center {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .about-img {
        display: block;
        max-width: 95%;
        position: relative;
    }

    .about-photo {
        border-radius: var(--borderRadius);
        position: relative;

    }

    .about-img::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 2rem;
        left: -2rem;
        border: 0.25rem solid var(--sub-color);
        border-radius: var(--borderRadius);
    }

    .about-info {
        align-self: center;
    }

    .about-title h3 {
        text-align: left;
        font-size: 1.953rem;
    }

    .about-title .title-underline {
        margin: 1rem 0 0 0;
    }

    .about-info p {
        font-size: 1.05rem;
    }
}

/*
=============== 
Certificate
===============
*/

.certificate {
    padding-top: 6rem;
}

.certificate-title {
    margin-bottom: 4rem;
}

.certificate-title h3 {
    font-size: 1.563rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.certificate-list {
    display: grid;
    gap: 2rem;
    justify-items: center;
}

.single-certificate {
    max-width: 95%;
    box-shadow: var(--shadow-3);
}

.decoration {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-banner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.line,
.circle {
    background-color: var(--primary-500);
    display: inline-block;
    margin-right: 0.75rem;
}

.line {
    width: 30px;
    height: 2px;
}

.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

@media screen and (min-width: 768px) {
    .single-certificate {
        max-width: 80%;
    }
}

@media screen and (min-width: 992px) {
    .certificate {
        /* padding-top: 6rem; */
        max-width: 100vw;
        position: relative;
    }

    .certificate-title {
        margin-bottom: 0;
    }

    .certificate-title h3 {
        font-size: 1.953rem;
    }

    .certificate-list {
        /* grid-template-columns: repeat(3, 1fr); */
        grid-template-columns: repeat(2, 1fr);
        margin-top: 4rem;
    }

    .single-certificate {
        /* max-width: 100vw; */
        max-width: 40vw;
        transition: var(--transition);
    }

    .single-certificate:hover {
        transform: scale(1.3);
    }

    /* .decoration {
        margin-top: 0;
        position: absolute;
        bottom: 4rem;
        left: 50%;
        transform: translateX(-50%);
    } */

    .line,
    .circle {
        margin-right: 1rem;
    }

    .circle {
        width: 15px;
        height: 15px;
    }
}

/*
=============== 
Project
===============
*/

.project {
    padding-top: 6rem;
}

.project-title {
    margin-bottom: 4rem;
}

.project-title h3 {
    font-size: 1.563rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.project-list {
    display: grid;
    gap: 2rem;
    justify-items: center;
}

.single-project {
    max-width: 95%;
    background: var(--white);
    border-radius: var(--borderRadius);
    box-shadow: var(--shadow-1);
}

.single-project img {
    /* height: 20rem; */
    border-top-right-radius: var(--borderRadius);
    border-top-left-radius: var(--borderRadius);
}

.project-info {
    padding: 2rem 1.5rem;
}

.project-info h5 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.5;
    font-size: 1.25rem;
    color: var(--primary-500);

}

.project-info p {
    margin: 0;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    color: var(--grey-600);
}

@media screen and (min-width: 768px) {
    .project-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .project-list {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 4rem;
    }

    .project-title h3 {
        font-size: 1.953rem;
    }

    .single-project {
        transition: var(--transition);
    }

    .single-project:hover {
        box-shadow: var(--shadow-3);
    }
}

/*
=============== 
Contact
===============
*/

.contact {
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.contact-title {
    margin-bottom: 4rem;
}

.contact-title h3 {
    font-size: 1.563rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.icons {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.github a,
.linkedin a,
.envelope a {
    color: var(--primary-500);
    transition: var(--transition);
}

.github a i,
.linkedin a i,
.envelope a i {
    font-size: 2.5rem;
}

@media screen and (min-width: 992px) {
    .contact {
        padding-top: 12rem;
        padding-bottom: 8rem;
    }

    .contact-title {
        margin-bottom: 5rem;
    }

    .contact-title h3 {
        font-size: 1.953rem;
    }

    .fill-sub-color {
        transition: var(--transition);
    }

    .github a:hover,
    .linkedin a:hover,
    .envelope a:hover {
        color: var(--sub-color);
    }

    .hugging-face a:hover .fill-sub-color {
        fill: var(--sub-color);
    }

    .github a i,
    .linkedin a i,
    .envelope a i {
        font-size: 3.25rem;
    }
}