@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root, :root[data-theme='dark'] {
    --primaryBg: #111111;

    --sectionBg: #B891C0;
    --sectionText: #111111;

    --primaryColor: #B891C0;
    --secondaryColor: #602C6A;

    --primaryText: #EEEEEE;
    --secondaryText: #111111;
}

:root[data-theme='light'] {
    --primaryBg: #F4F4F4;
    
    --sectionBg: #602C6A;
    --sectionText: #EEEEEE;

    --primaryColor: #602C6A;
    --secondaryColor: #B891C0;

    --primaryText: #111111;
    --secondaryText: #EEEEEE;
}

html[data-theme='light'] .brandLogo {
    content: url("../img/logos/LOGO-1.png");
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

body {
    background-color: var(--primaryBg);
    font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primaryText);
}

h1 {
    font-family: 'Dancing Script', cursive;
    color: var(--primaryText);
    font-size: 3rem;
}

h2, h3, h4, h5, h6 {
    font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
}

p {
    font-size: 1.25rem;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: var(--primaryText);
}

a:hover {
    color: var(--primaryColor);
    font-weight: 800;
}

i {
    color: var(--primaryText);
}

li {
    list-style: none;
}

/* Header styles */

.header {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.headerToggle {
    min-width: 20%;
    display: flex;
    justify-content: flex-end;
}

.headerBrand .brandLogo {
    width: auto;
    height: 3.25rem;
}

#toggleTheme {
    font-size: 1.5rem;
    color: var(--primaryColor);
    cursor: pointer;
    transition: ease-in-out 0.4s;
}

/* Navbar styles */

.navbar {
    display: flex;
    align-items: center;
    background-color: var(--secondaryText);
}

.navItem {
    width: 100%;
}

.navMobile {
    width: 100%;
    position: fixed;
    bottom: 0;
    justify-content: space-between;
    border-top: 1px solid var(--secondaryBg);
}

.navMobile .navLink {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.navLink.active .navIcon,
.navLink.active .navText,
.navLink:hover .navIcon,
.navLink:hover .navText {
    color: var(--primaryColor);
    font-weight: 800;
}

.navIcon, .navText {
    color: var(--primaryText);
}

.navIcon {
    font-size: 1.5rem;
}

.navText {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.navHeader {
    display: none;
}

.navMain {
    gap: 1rem;
}

/* Main content styles */

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 1rem;
}

.mainPhoto {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    border: 4px solid var(--primaryColor);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.mainSocial {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primaryColor);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn span, 
.btn i {
    font-size: 1rem;
    color: var(--primaryBg);
}

.btn:hover {
    background-color: var(--secondaryColor);
}

.btn:hover span,
.btn:hover i {
    color: var(--secondaryBg);
}

.mainBtn {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

.mainContent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Section styles */

section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.5rem 1rem;
}

.sectionTitle {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about {
    background-color: var(--sectionBg);
    color: var(--sectionText);
}

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

.technologiesItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.technologiesIcon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter:invert(1);
    transition: filter 0.3s ease;
}

html[data-theme='light'] .technologiesIcon {
    filter:invert(0);
}

/* Footer styles */

footer {
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--secondaryBg);
    margin-top: 2rem;
    color: var(--primaryText);
}

/* Responsive styles */

@media screen and (min-width: 768px) {
    .header {
        position: fixed;
        border-bottom: 1px solid var(--secondaryBg);
        padding: 1rem 6rem;
        background-color: var(--secondaryText);
    }

    .navContainerMobile {
        display: none;
    }

    .navHeader {
        display: flex;
    }

    .navHeader,
    .headerToggle {
        min-width: 30%;
    }
}

@media screen and (min-width: 1400px) {
    .header {
        padding: 1rem 15rem;
    }
}