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

/* =============== VARIABLES CSS =============== */
:root {
    --header-height: 3.5rem;

    /* Colors */
    --hue: 45;
    /* Gold hue */
    --first-color: hsl(var(--hue), 60%, 50%);
    --first-color-alt: hsl(var(--hue), 60%, 40%);
    --title-color: hsl(var(--hue), 10%, 95%);
    --text-color: hsl(var(--hue), 8%, 75%);
    --text-color-light: hsl(var(--hue), 8%, 55%);
    --body-color: hsl(var(--hue), 10%, 6%);
    --container-color: hsl(var(--hue), 10%, 10%);
    --border-color: hsl(var(--hue), 10%, 18%);

    /* Font and Typography */
    --body-font: 'Montserrat', sans-serif;
    --title-font: 'Cinzel', serif;
    --big-font-size: 2.5rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* Font Weight */
    --font-medium: 500;
    --font-semi-bold: 600;

    /* Z Index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Responsive Typography */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 4rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/* =============== BASE =============== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    cursor: none;
    /* Custom cursor */
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: var(--font-medium);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* =============== REUSABLE CSS CLASSES =============== */
.container {
    max-width: 1024px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

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

.section {
    padding: 4.5rem 0 2rem;
}

.section__title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: 1rem;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =============== CUSTOM CURSOR =============== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--first-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--first-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* =============== HEADER & NAV =============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: .4s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--first-color);
    font-family: var(--title-font);
    font-weight: var(--font-semi-bold);
    font-size: var(--h2-font-size);
    letter-spacing: 1px;
}

.nav__toggle,
.nav__close {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    display: none;
}

/* Mobile Menu */
@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background-color: var(--container-color);
        padding: 2rem 1.5rem 4rem;
        box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
        border-radius: 1.5rem 1.5rem 0 0;
        transition: .3s;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }
}

.show-menu {
    bottom: 0;
}

.nav__list {
    display: grid;
    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);
    transition: .3s;
}

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

.active-link {
    color: var(--first-color);
}

/* =============== HOME =============== */
.home__container {
    position: relative;
    row-gap: 2rem;
    padding-top: 2rem;
}

.home__content {
    text-align: center;
}

.home__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home__title {
    font-size: var(--big-font-size);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.home__profession {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.home__description {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.home__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.home__social {
    display: flex;
    justify-content: center;
    column-gap: 1.25rem;
}

.home__social-icon {
    font-size: 1.25rem;
    color: var(--text-color);
    transition: .3s;
}

.home__social-icon:hover {
    color: var(--first-color);
    transform: translateY(-3px);
}

.home__scroll {
    display: none;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #000;
    /* Contrast for gold bg */
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .3s;
    border: 1px solid var(--first-color);
}

.button:hover {
    background-color: transparent;
    color: var(--first-color);
}

.button--flex {
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
}

.button--link {
    background: transparent;
    color: var(--title-color);
    border: none;
    padding: 0;
}

.button--link:hover {
    color: var(--first-color);
    background: transparent;
}

.button--small {
    padding: .75rem 1rem;
}

.button--gray {
    background-color: var(--container-color);
    color: var(--first-color);
    border: 1px solid var(--border-color);
}

.button--gray:hover {
    background-color: var(--first-color);
    color: #000;
}

/* =============== ABOUT =============== */
.about__container {
    row-gap: 2.5rem;
}

.about__img-wrapper {
    position: relative;
    justify-self: center;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--first-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.about__img-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--container-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__img-placeholder i {
    font-size: 5rem;
    color: var(--first-color);
}

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

.about__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.about__data {
    text-align: center;
}

.about__description {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about__info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-bottom: 2rem;
}

.about__info-title {
    display: block;
    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);
}

/* =============== SERVICES =============== */
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    justify-content: center;
}

.services__content {
    background-color: var(--container-color);
    padding: 3rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: .3s;
    border: 1px solid transparent;
}

.services__content:hover {
    border-color: var(--first-color);
    transform: translateY(-5px);
}

.services__icon {
    display: block;
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}

.services__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.services__button {
    color: var(--first-color);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .25rem;
    cursor: pointer;
}

.services__button:hover .services__button-icon {
    transform: translateX(.25rem);
}

.services__button-icon {
    font-size: 1rem;
    transition: .3s;
}

/* Services Modal */
.services__modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .7);
    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-color: var(--container-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--first-color);
    max-width: 500px;
    width: 100%;
}

.services__modal-title {
    font-size: var(--h3-font-size);
    color: var(--first-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.services__modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
}

.services__modal-services {
    row-gap: 1rem;
}

.services__modal-service {
    display: flex;
    align-items: center;
    column-gap: .5rem;
}

.services__modal-icon {
    color: var(--first-color);
    font-size: 1.1rem;
}

.services__modal-info {
    font-size: var(--small-font-size);
}

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

/* =============== PORTFOLIO =============== */
.portfolio__container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio__card {
    background-color: var(--container-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    transition: .3s;
}

.portfolio__card:hover {
    transform: translateY(-5px);
}

.portfolio__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio__content {
    padding: 1.5rem;
}

.portfolio__title {
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}

.portfolio__description {
    font-size: var(--small-font-size);
    margin-bottom: 1.5rem;
    color: var(--text-color-light);
}

/* =============== PHILOSOPHY =============== */
.philosophy__bg {
    background-color: var(--first-color);
    padding: 3rem 0;
    text-align: center;
}

.philosophy__icon {
    font-size: 2rem;
    color: var(--body-color);
    margin-bottom: 1rem;
}

.philosophy__description {
    color: var(--body-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: var(--font-medium);
    font-size: var(--h3-font-size);
}

.philosophy__author {
    color: var(--body-color);
    font-size: var(--h3-font-size);
}

.philosophy__role {
    color: var(--body-color);
    font-size: var(--small-font-size);
    display: block;
}

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

.contact__content {
    text-align: center;
}

.contact__title {
    text-align: center;
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
}

.contact__info {
    display: grid;
    gap: 1rem;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact__card {
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: .75rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100%;
}

.contact__card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.contact__card-link:hover,
.contact__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact__card-icon {
    font-size: 2rem;
    color: var(--title-color);
    margin-bottom: .25rem;
}

.contact__card-title,
.contact__card-data {
    display: block;
}

.contact__card-title {
    font-size: var(--small-font-size);
}

.contact__card-data {
    font-size: var(--small-font-size);
    margin-bottom: .75rem;
}

.contact__button {
    color: var(--first-color);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .25rem;
}

.contact__button:hover .contact__button-icon {
    transform: translateX(.25rem);
}

.contact__button-icon {
    font-size: 1rem;
    transition: .3s;
}

.contact__form-div {
    position: relative;
    margin-bottom: 2rem;
    height: 4rem;
}

.contact__form-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--border-color);
    background: none;
    color: var(--text-color);
    outline: none;
    padding: 1.5rem;
    border-radius: .75rem;
    z-index: 1;
    transition: .3s;
}

.contact__form-tag {
    position: absolute;
    top: -.75rem;
    left: 1.25rem;
    font-size: var(--smaller-font-size);
    padding: .25rem;
    background-color: var(--body-color);
    z-index: 10;
}

.contact__form-area {
    height: 11rem;
}

.contact__form-area textarea {
    resize: none;
}

.contact__form-input:focus {
    border-color: var(--first-color);
}

/* =============== FOOTER =============== */
.footer {
    background-color: var(--container-color);
    padding: 2rem 0 6rem;
    border-top: 1px solid var(--border-color);
}

.footer__title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--first-color);
}

.footer__list {
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.footer__social {
    display: flex;
    justify-content: center;
    column-gap: 1.25rem;
    margin-bottom: 2rem;
}

.footer__social-link {
    background-color: var(--body-color);
    color: var(--first-color);
    padding: .5rem;
    border-radius: .5rem;
    display: inline-flex;
    font-size: 1.25rem;
    transition: .3s;
}

.footer__social-link:hover {
    background-color: var(--first-color);
    color: var(--body-color);
}

.footer__copy {
    display: block;
    margin-top: 4.5rem;
    color: var(--text-color-light);
    text-align: center;
    font-size: var(--smaller-font-size);
}

/* =============== SCROLL BAR =============== */
::-webkit-scrollbar {
    width: .6rem;
    background-color: hsl(var(--hue), 8%, 16%);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: hsl(var(--hue), 8%, 24%);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--hue), 8%, 32%);
}

/* =============== MEDIA QUERIES =============== */
/* For small devices */
@media screen and (max-width: 320px) {
    .nav__menu {
        padding: 2rem 1.5rem;
    }

    .home__buttons {
        flex-direction: column;
    }
}

/* For medium devices */
@media screen and (min-width: 576px) {
    .about__info {
        grid-template-columns: repeat(3, 140px);
        justify-content: center;
    }

    .contact__info {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__form {
        width: 460px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 968px) {
    .contact__info {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media screen and (min-width: 767px) {
    body {
        margin: 0;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

    .nav__list {
        display: flex;
        column-gap: 2rem;
    }

    .nav__menu {
        margin-left: auto;
    }

    .home__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        padding-top: 8rem;
    }

    .home__content {
        text-align: initial;
    }

    .home__buttons {
        justify-content: initial;
    }

    .home__social {
        flex-direction: column;
        row-gap: 1.5rem;
        position: absolute;
        left: -1.5rem;
        top: 30%;
    }

    .home__scroll {
        display: block;
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .about__img-wrapper {
        width: 350px;
        height: 350px;
    }

    .about__data {
        text-align: initial;
    }

    .about__info {
        justify-content: initial;
    }

    .about__buttons {
        display: flex;
        justify-content: initial;
    }

    .services__container {
        grid-template-columns: repeat(3, 250px);
    }

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

    .contact__container {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {

    .header,
    .main,
    .footer__container {
        padding: 0;
    }

    .home__social {
        transform: translateX(-6rem);
    }

    .services__container {
        gap: 3rem;
    }

    .portfolio__container {
        gap: 3rem;
    }

    .contact__form {
        width: 500px;
    }

    /* FIX: Center container on large screens */
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}
