/*==================== GOOGLE FONTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 4.5rem;
    --hue-color: 0; /* RED accent */
    --first-color: hsl(var(--hue-color), 84%, 55%);
    --first-color-second: hsl(var(--hue-color), 84%, 45%);
    --first-color-alt: hsl(var(--hue-color), 74%, 47%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --gradient-red: linear-gradient(135deg, hsl(0, 84%, 55%), hsl(340, 80%, 50%));

    /*========== LIGHT THEME (DEFAULT) ==========*/
    --title-color: hsl(230, 8%, 12%);
    --text-color: hsl(230, 8%, 45%);
    --text-color-light: hsl(230, 8%, 60%);
    --input-color: hsl(230, 70%, 96%);
    --body-color: hsl(0, 0%, 99%);
    --container-color: #ffffff;
    --scroll-bar-color: hsl(230, 12%, 90%);
    --scroll-thumb-color: hsl(230, 12%, 78%);

    --body-font: 'Poppins', sans-serif;
    --big-font-size: 2.5rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.35rem;
    --h3-font-size: 1.15rem;
    --normal-font-size: .938rem;
    --small-font-size: .85rem;
    --smaller-font-size: .75rem;
    --font-medium: 500;
    --font-semi-bold: 600;

    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;

    --radius: 1rem;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow-hover: 0 20px 40px rgba(230, 30, 40, .18);
    --transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

/*========== DARK THEME ==========*/
body.dark-theme {
    --title-color: hsl(230, 8%, 95%);
    --text-color: hsl(230, 8%, 75%);
    --text-color-light: hsl(230, 8%, 62%);
    --input-color: hsl(230, 29%, 16%);
    --body-color: hsl(230, 24%, 10%);
    --container-color: hsl(230, 26%, 14%);
    --scroll-bar-color: hsl(230, 12%, 38%);
    --scroll-thumb-color: hsl(230, 12%, 26%);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3.75rem;
        --h1-font-size: 2.4rem;
        --h2-font-size: 1.6rem;
        --h3-font-size: 1.3rem;
        --normal-font-size: 1rem;
        --small-font-size: .9rem;
        --smaller-font-size: .83rem;
    }
}

/*==================== BASE ====================*/
* { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--title-color); font-weight: var(--font-semi-bold); }
ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--first-color); color: #fff; }

/*==================== REUSABLE ====================*/
.section { padding: 5rem 0 4rem; }

.section__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    position: relative;
    display: inline-block;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-3);
    color: var(--text-color-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section__title, .section__subtitle { text-align: center; }

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    margin: .6rem auto 0;
    border-radius: 4px;
    background: var(--gradient-red);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.4, 0, .2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/*==================== LAYOUT ====================*/
.container {
    max-width: 1024px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid { display: grid; gap: 1.5rem; }

.header {
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    z-index: var(--z-fixed);
    background-color: color-mix(in srgb, var(--body-color) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.scroll-header { box-shadow: 0 4px 20px rgba(0, 0, 0, .1); }

/*==================== NAV ====================*/
.nav {
    max-width: 1024px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo, .nav__toggle { color: var(--title-color); font-weight: var(--font-medium); }
.nav__logo:hover { color: var(--first-color); }
.nav__logo-text { font-size: var(--h2-font-size); font-weight: 700; }
.nav__logo-text span { color: var(--first-color); }

.nav__toggle { font-size: 1.25rem; cursor: pointer; }
.nav__toggle:hover { color: var(--first-color); }

.nav__btns { display: flex; align-items: center; gap: .5rem; }

.nav__theme {
    font-size: 1.1rem;
    color: var(--title-color);
    cursor: pointer;
    transition: .3s;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
}
.nav__theme:hover { color: #fff; background: var(--gradient-red); transform: rotate(20deg); }

.nav__admin {
    color: var(--title-color);
    font-size: 1rem;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    transition: .3s;
}
.nav__admin:hover { color: #fff; background: var(--gradient-red); }

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: -110%;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        padding: 2rem 1.5rem 4rem;
        box-shadow: 0 10px 30px rgba(0,0,0,.15);
        border-radius: 0 0 1.5rem 1.5rem;
        transition: .4s;
    }
}

.nav__list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    position: relative;
    transition: .3s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient-red);
    transition: .3s;
    transform: translateX(-50%);
}

.nav__link:hover { color: var(--first-color); }
.nav__link:hover::after, .nav__link.active-link::after { width: 100%; }

.nav__close {
    position: absolute;
    right: 1.3rem; bottom: .5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--first-color);
}
.nav__close:hover { color: var(--first-color-alt); }

.show-menu { top: 0; }
.active-link { color: var(--first-color); }

/*==================== HOME / HERO ====================*/
.home { min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; }

.home__container { gap: 2rem; }

.home__content {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    align-items: center;
    text-align: center;
}

/* Circular profile picture with DYNAMIC red outline */
.home__img { justify-self: center; position: relative; }

.profile-ring {
    position: relative;
    width: 240px;
    height: 240px;
    display: grid;
    place-items: center;
}

.profile-ring::before,
.profile-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

/* Spinning dashed red ring */
.profile-ring::before {
    border: 3px dashed var(--first-color);
    animation: spinRing 12s linear infinite;
}

/* Pulsing glow ring */
.profile-ring::after {
    inset: -10px;
    border: 2px solid transparent;
    border-top-color: var(--first-color);
    border-right-color: var(--first-color-alt);
    animation: spinRing 4s linear infinite reverse;
}

/* Soft red glow behind */
.profile-glow {
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(0, 84%, 55%, .28) 0%, transparent 65%);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
}

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

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: .8; }
    50% { transform: scale(1.12); opacity: .45; }
}

.home__photo {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--container-color);
    box-shadow: 0 15px 40px rgba(230, 30, 40, .30);
    transition: var(--transition);
}

.profile-ring:hover .home__photo {
    transform: scale(1.07) rotate(2deg);
    box-shadow: 0 20px 55px rgba(230, 30, 40, .45);
}

.home__social {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin: 1.4rem 0 0;
}

.home__social-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--first-color);
    background: var(--container-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.home__social-icon:hover {
    color: #fff;
    background: var(--gradient-red);
    transform: translateY(-6px) rotate(8deg);
    box-shadow: var(--shadow-hover);
}

.home__data { max-width: 560px; margin: 0 auto; }

.home__hello {
    display: inline-block;
    padding: .35rem 1rem;
    border-radius: 2rem;
    background: hsla(0, 84%, 55%, .1);
    color: var(--first-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1);
}

.home__title {
    font-size: var(--big-font-size);
    line-height: 1.15;
    margin-bottom: var(--mb-0-75);
}

.home__title .accent {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home__subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.home__description { margin-bottom: var(--mb-2); }

.home__founder {
    color: var(--first-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-2);
}
.home__founder i { margin-right: .5rem; }

.home__scroll { display: none; }
.home__scroll-button { color: var(--first-color); transition: .3s; }
.home__scroll-button:hover { transform: translateY(.25rem); }
.home__scroll-mouse { font-size: 2rem; }
.home__scroll-name { font-size: var(--small-font-size); color: var(--title-color); font-weight: var(--font-medium); margin-right: var(--mb-0-25); }
.home__scroll-arrow { font-size: 1.25rem; }

/*==================== BUTTONS ====================*/
.button {
    display: inline-block;
    background: var(--gradient-red);
    color: #FFF;
    padding: 1rem 1.75rem;
    border-radius: 3rem;
    font-weight: var(--font-medium);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(230, 30, 40, .30);
    transition: var(--transition);
}

.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(230, 30, 40, .45);
}

.button__icon { font-size: 1.2rem; margin-left: var(--mb-0-5); transition: .3s; }
.button:hover .button__icon { transform: translateX(4px); }

.button--flex { display: inline-flex; align-items: center; }
.button--small { padding: .7rem 1.2rem; font-size: var(--small-font-size); }

.button--link {
    padding: 0;
    background: transparent;
    color: var(--first-color);
    box-shadow: none;
}
.button--link:hover { background: transparent; color: var(--first-color-alt); transform: translateX(4px); box-shadow: none; }

/*==================== ABOUT ====================*/
.about__container { align-items: center; }

.about__img-wrap { position: relative; justify-self: center; }

.about__img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    justify-self: center;
    align-self: center;
    border: 5px solid var(--container-color);
    box-shadow: 0 15px 40px rgba(230, 30, 40, .25), 0 0 0 4px var(--first-color-lighter);
    transition: var(--transition);
}

.about__img:hover {
    transform: scale(1.06);
    box-shadow: 0 20px 50px rgba(230, 30, 40, .40), 0 0 0 6px var(--first-color);
}

.about__description { margin-bottom: var(--mb-2-5); }

.about__info {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: var(--mb-2-5);
}

.about__info > div {
    background: var(--container-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    min-width: 100px;
}

.about__info > div:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.about__info-title { font-size: var(--h2-font-size); font-weight: var(--font-semi-bold); color: var(--first-color); }
.about__info-name { font-size: var(--smaller-font-size); color: var(--text-color-light); }
.about__info-title, .about__info-name { display: block; text-align: center; }

.about__buttons { display: flex; justify-content: center; }
@media screen and (min-width: 768px) { .about__buttons { justify-content: initial; } }

/*==================== SKILLS ====================*/
.skills__container { row-gap: 1.5rem; }

.skills__content {
    background: var(--container-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skills__content:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.skills__header { display: flex; align-items: center; cursor: pointer; }

.skills__icon {
    font-size: 1.4rem;
    color: #fff;
    background: var(--gradient-red);
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 14px;
    margin-right: var(--mb-0-75);
    box-shadow: 0 6px 15px rgba(230, 30, 40, .35);
}

.skills__arrow { font-size: 1.5rem; color: var(--first-color); margin-left: auto; transition: .4s; }
.skills__title { font-size: var(--h3-font-size); }
.skills__subtitle { font-size: var(--small-font-size); color: var(--text-color-light); }

.skills__list { row-gap: 1.5rem; padding: 1.25rem .25rem 0; }

.skills__titles { display: flex; justify-content: space-between; margin-bottom: var(--mb-0-5); }
.skills__name { font-size: var(--normal-font-size); font-weight: var(--font-medium); }

.skills__bar, .skills__percentage { height: 7px; border-radius: .5rem; }
.skills__bar { background-color: var(--first-color-lighter); overflow: hidden; }

.skills__percentage {
    display: block;
    background: var(--gradient-red);
    border-radius: .5rem;
    position: relative;
    width: 0 !important;
    transition: width 1.4s cubic-bezier(.4, 0, .2, 1);
}

.skills__close .skills__list { height: 0; overflow: hidden; padding: 0; }
.skills__open .skills__list { height: max-content; }
.skills__open .skills__arrow { transform: rotate(-180deg); }

/*==================== QUALIFICATION ====================*/
.qualification__tabs { display: flex; justify-content: space-evenly; margin-bottom: var(--mb-2); }

.qualification__button {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
    color: var(--text-color);
    padding: .6rem 1.4rem;
    border-radius: 2rem;
    transition: .3s;
}

.qualification__button:hover { color: var(--first-color); }

.qualification__button.qualification__active {
    color: #fff;
    background: var(--gradient-red);
    box-shadow: 0 6px 18px rgba(230, 30, 40, .35);
}

.qualification__icon { font-size: 1.4rem; margin-right: var(--mb-0-5); }

.qualification__data { display: grid; grid-template-columns: 1fr max-content 1fr; column-gap: 1.5rem; }

.qualification__title { font-size: var(--normal-font-size); font-weight: var(--font-medium); }
.qualification__subtitle { display: inline-block; font-size: var(--small-font-size); margin-bottom: var(--mb-1); color: var(--text-color-light); }
.qualification__calendar { font-size: var(--smaller-font-size); color: var(--text-color-light); }

.qualification__rounder {
    display: inline-block;
    width: 14px; height: 14px;
    background: var(--gradient-red);
    border-radius: 50%;
    box-shadow: 0 0 0 5px hsla(0, 84%, 55%, .18);
}

.qualification__line { display: block; width: 2px; height: 100%; background: linear-gradient(var(--first-color), var(--first-color-lighter)); transform: translate(6px, -7px); }

.qualification [data-content] { display: none; }
.qualification__active[data-content] { display: block; }

/*==================== SERVICES ====================*/
.services__container { gap: 1.5rem; grid-template-columns: repeat(1, 1fr); }

.services__content {
    position: relative;
    background: var(--container-color);
    padding: 3rem 1.5rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.services__content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: .4s;
}

.services__content:hover { box-shadow: var(--shadow-hover); transform: translateY(-8px); }
.services__content:hover::before { transform: scaleX(1); }

.services__icon {
    display: grid;
    place-items: center;
    width: 60px; height: 60px;
    font-size: 1.6rem;
    color: #fff;
    background: var(--gradient-red);
    border-radius: 18px;
    margin-bottom: var(--mb-1);
    box-shadow: 0 8px 20px rgba(230, 30, 40, .35);
    transition: var(--transition);
}

.services__content:hover .services__icon { transform: rotate(-8deg) scale(1.08); }

.services__title { font-size: var(--h3-font-size); margin-bottom: var(--mb-1); font-weight: var(--font-medium); }
.services__button { cursor: pointer; font-size: var(--small-font-size); }
.services__button:hover .button__icon { transform: translateX(.25rem); }

.services__modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(10, 10, 20, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.services__modal-content {
    position: relative;
    background: var(--container-color);
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,.3);
    transform: scale(.85);
    transition: .3s;
}

.active-modal .services__modal-content { transform: scale(1); }

.services__modal-services { row-gap: 1rem; }
.services__modal-service { display: flex; }
.services__modal-icon { color: var(--first-color); margin-right: var(--mb-0-5); margin-top: .2rem; }
.services__modal-title { font-size: var(--h3-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb-1-5); }

.services__modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #fff;
    background: var(--gradient-red);
    cursor: pointer;
    transition: .3s;
}
.services__modal-close:hover { transform: rotate(90deg); }

.active-modal { opacity: 1; visibility: visible; }

/*==================== PROJECTS ====================*/
.projects__container { gap: 1.5rem; grid-template-columns: repeat(1, 1fr); }

.projects__card {
    background: var(--container-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.projects__card:hover { box-shadow: var(--shadow-hover); transform: translateY(-10px); }

.projects__img-link { display: block; overflow: hidden; position: relative; }

.projects__img-link::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    color: #fff;
    background: hsla(0, 84%, 45%, .55);
    opacity: 0;
    transition: .4s;
}

.projects__img-link:hover::after { opacity: 1; }

.projects__img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .5s ease;
}

.projects__card:hover .projects__img { transform: scale(1.1); }

.projects__data { padding: 1.5rem; }
.projects__title { font-size: var(--h3-font-size); margin-bottom: var(--mb-0-5); transition: .3s; }
.projects__card:hover .projects__title { color: var(--first-color); }
.projects__description { font-size: var(--small-font-size); margin-bottom: var(--mb-1-5); color: var(--text-color-light); }
.projects__button:hover .button__icon { transform: translateX(.25rem); }

/*==================== CONTACT ====================*/
.contact__container { row-gap: 3rem; }

.contact__information {
    display: flex;
    align-items: center;
    margin-bottom: var(--mb-2);
    background: var(--container-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact__information:hover { transform: translateX(8px); box-shadow: var(--shadow-hover); }

.contact__icon {
    font-size: 1.25rem;
    color: #fff;
    background: var(--gradient-red);
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 14px;
    margin-right: var(--mb-1);
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(230, 30, 40, .35);
}

.contact__title { font-size: var(--h3-font-size); font-weight: var(--font-medium); }
.contact__subtitle { font-size: var(--small-font-size); color: var(--text-color-light); word-break: break-all; }

.contact__content {
    background-color: var(--input-color);
    border-radius: .75rem;
    padding: .9rem 1.1rem .35rem;
    border: 2px solid transparent;
    transition: .3s;
}

.contact__content:focus-within {
    border-color: var(--first-color);
    background: var(--container-color);
    box-shadow: 0 6px 18px hsla(0, 84%, 55%, .15);
}

.contact__label { font-size: var(--smaller-font-size); color: var(--title-color); font-weight: var(--font-medium); }

.contact__input {
    width: 100%;
    background: transparent;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    border: none;
    outline: none;
    padding: .35rem .5rem .6rem 0;
    resize: none;
}

.form-response {
    margin-top: 1rem;
    padding: .85rem;
    border-radius: .75rem;
    font-size: var(--small-font-size);
    display: none;
}

.form-response.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.12);
    color: #28a745;
    border: 1px solid #28a745;
}

.form-response.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/*==================== FOOTER ====================*/
.footer { padding-top: 2rem; }

.footer__container { row-gap: 3rem; }

.footer__bg {
    background: linear-gradient(160deg, hsl(0, 70%, 18%), hsl(340, 75%, 22%));
    padding: 2.5rem 0 2.5rem;
    border-radius: 2.5rem 2.5rem 0 0;
}

.footer__title { font-size: var(--h1-font-size); margin-bottom: var(--mb-0-25); }
.footer__subtitle { font-size: var(--small-font-size); opacity: .85; }

.footer__links { display: flex; flex-direction: column; row-gap: 1.25rem; }
.footer__link { transition: .3s; position: relative; }
.footer__link:hover { color: var(--first-color-lighter); padding-left: 6px; }

.footer__social {
    font-size: 1.1rem;
    width: 42px; height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    margin-right: var(--mb-0-75);
    transition: var(--transition);
}

.footer__social:hover {
    background: #fff;
    color: var(--first-color);
    transform: translateY(-5px);
}

.footer__copy { font-size: var(--smaller-font-size); text-align: center; color: rgba(255,255,255,.65); margin-top: var(--mb-3); }
.footer__title, .footer__subtitle, .footer__link, .footer__social { color: #FFF; }

/*==================== SCROLL UP ====================*/
.scrollup {
    position: fixed;
    right: 1.25rem;
    bottom: -20%;
    background: var(--gradient-red);
    padding: .55rem;
    border-radius: 50%;
    z-index: var(--z-tooltip);
    transition: .4s;
    box-shadow: 0 8px 20px rgba(230, 30, 40, .4);
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
}

.scrollup:hover { transform: translateY(-5px); }
.scrollup__icon { font-size: 1.25rem; color: #FFF; }
.show-scroll { bottom: 2rem; }

/*==================== SCROLL BAR ====================*/
::-webkit-scrollbar { width: .65rem; background-color: var(--scroll-bar-color); border-radius: .5rem; }
::-webkit-scrollbar-thumb { background: var(--gradient-red); border-radius: .5rem; }
::-webkit-scrollbar-thumb:hover { background: var(--first-color-alt); }

/*==================== MEDIA QUERIES ====================*/
@media screen and (max-width: 350px) {
    .container { margin-left: var(--mb-1); margin-right: var(--mb-1); }
    .nav__menu { padding: 2rem .25rem 4rem; }
    .nav__list { column-gap: 0; }
    .profile-ring { width: 200px; height: 200px; }
    .home__photo { width: 175px; height: 175px; }
    .skills__title { font-size: var(--normal-font-size); }
    .qualification__data { gap: .5rem; }
    .services__container { grid-template-columns: max-content; justify-content: center; }
    .services__modal { padding: 0 .5rem; }
}

@media screen and (min-width: 568px) {
    .about__container, .skills__container, .contact__container, .footer__container { grid-template-columns: repeat(2, 1fr); }
    .qualification__sections { display: grid; grid-template-columns: .6fr; justify-content: center; }
    .projects__container { grid-template-columns: repeat(2, 1fr); }
    .services__container { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 768px) {
    .container { margin-left: auto; margin-right: auto; }
    .section { padding: 7rem 0 3rem; }
    .header, .main, .footer__container { padding: 0 1rem; }
    .nav { height: calc(var(--header-height) + .5rem); column-gap: 1rem; }
    .nav__icon, .nav__close, .nav__toggle { display: none; }
    .nav__list { display: flex; column-gap: 2rem; }
    .nav__menu { margin-left: auto; }

    .home__container { row-gap: 3rem; }
    .home__content {
        grid-template-columns: 1fr 1fr;
        column-gap: 3rem;
        padding-top: 3rem;
        text-align: left;
    }
    .home__img { order: 2; }
    .home__data { order: 1; margin: 0; max-width: none; }
    .home__social { justify-content: flex-start; }
    .profile-ring { width: 300px; height: 300px; }
    .home__photo { width: 265px; height: 265px; }

    .home__scroll { display: block; }
    .home__scroll-button { margin-left: 0; }

    .about__container { column-gap: 4rem; }
    .about__img { width: 280px; height: 280px; }
    .about__description { text-align: initial; }
    .about__info { justify-content: space-between; }
    .about__buttons { justify-content: initial; }

    .qualification__tabs { justify-content: center; }
    .qualification__button { margin: 0 var(--mb-1); }
    .qualification__sections { grid-template-columns: .5fr; }

    .services__container { grid-template-columns: repeat(3, 1fr); }
    .services__content { padding: 3.5rem 1.5rem 2rem; }
    .services__modal-content { width: 450px; }

    .projects__container { grid-template-columns: repeat(3, 1fr); }

    .footer__container { grid-template-columns: repeat(3, 1fr); }
    .footer__bg { padding: 3rem 0 2rem; }
    .footer__links { flex-direction: row; column-gap: 2rem; }
    .footer__socials { justify-self: flex-end; }
    .footer__copy { margin-top: 3.5rem; }
}

@media screen and (min-width: 1024px) {
    .header, .main, .footer__container { padding: 0; }
    .profile-ring { width: 340px; height: 340px; }
    .home__photo { width: 300px; height: 300px; }
    .projects__container { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .contact__form { width: 460px; }
    .contact__inputs { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile Menu Fix */
@media screen and (max-width: 767px){

    #nav-menu{
        top: -120vh !important;
        visibility: hidden;
        opacity: 0;
    }

    #nav-menu.show-menu{
        top: 0 !important;
        visibility: visible;
        opacity: 1;
    }
}


/* ===================================
   CENTER ALL MAIN SECTIONS
=================================== */

.about,
.skills,
.qualification,
.services,
.projects,
.contact {
    text-align: center;
}

/* Center section containers */
.about__container,
.skills__container,
.qualification__container,
.services__container,
.projects__container,
.contact__container {
    margin-left: auto;
    margin-right: auto;
}

/* About section */
.about__data {
    text-align: center;
}

.about__buttons {
    justify-content: center !important;
}

/* Skills */
.skills__header {
    justify-content: center;
    text-align: center;
}

.skills__arrow {
    margin-left: 1rem;
}

/* Qualification */
.qualification__tabs {
    justify-content: center;
}

.qualification__title,
.qualification__subtitle,
.qualification__calendar {
    text-align: center;
}

/* Services */
.services__content {
    text-align: center;
}

/* Projects */
.projects__data {
    text-align: center;
}

/* Contact */
.contact__information {
    justify-content: center;
    text-align: left;
}

.contact__form {
    margin-left: auto;
    margin-right: auto;
}

/* Desktop */
@media screen and (min-width: 768px) {

    .about__container,
    .skills__container,
    .qualification__container,
    .services__container,
    .projects__container,
    .contact__container {
        justify-content: center;
    }

    .about__data {
        margin: 0 auto;
    }

    .projects__container {
        justify-items: center;
    }

    .services__container {
        justify-items: center;
    }

    .skills__container {
        justify-items: center;
    }
}
/* ==================== WHATSAPP FLOAT BUTTON ==================== */
.whatsapp-float{
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 34px;
    box-shadow: 0 8px 25px rgba(37,211,102,.45);
    z-index: 9999;
    transition: all .3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover{
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-tooltip{
    position: absolute;
    left: 80px;
    white-space: nowrap;
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.whatsapp-float:hover .whatsapp-tooltip{
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse{
    0%{
        box-shadow: 0 0 0 0 rgba(37,211,102,.7);
    }
    70%{
        box-shadow: 0 0 0 20px rgba(37,211,102,0);
    }
    100%{
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}

/* Mobile */
@media (max-width:768px){
    .whatsapp-float{
        width: 60px;
        height: 60px;
        font-size: 30px;
        left: 15px;
        bottom: 15px;
    }

    .whatsapp-tooltip{
        display: none;
    }
}