/* RESET CSS */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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, s
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

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

img{
    width: 100%;
    height: 100%;
}

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

ol, ul {
	list-style: none;
}

/* Variable */
:root{
    --white: #FFFFFF;
    --grey100: #FAFAFA;
	--grey200: #BFBFBF;
    --grey400: #A3A3A3;
    --grey600: #353535;
	--black: #000000;
    --off-white: #DDD4CC;
    --light-brown: #B29275;
	--brick: #CB7424;
    --dark-brown: #331D09;
}
  
/* Owl Spacing */

.owl-spacing--s > * + * {
    margin-top: 0.5vmax; 
  }
  
  .owl-spacing--m > * + * {
    margin-top: 1vmax;  
  }
  
  .owl-spacing--l > * + * {
    margin-top: 2vmax; 
  }
  
  .owl-spacing--xl > * + * {
    margin-top: 4vmax; 
  }

  /* Custom fonts */
  @font-face {
    font-family: 'Montserrat SemiBold';
    src: url(fonts/Montserrat-SemiBold.ttf) format('truetype');
  }
  @font-face {
    font-family: 'Montserrat Regular';
    src: url(fonts/Montserrat-Regular.ttf) format('truetype');
  }
  @font-face {
    font-family: 'Montserrat Light';
    src: url(fonts/Montserrat-Light.ttf) format('truetype');
  }

  /* Transition */

  a, 
  .btn {
     transition: all 0.3 ease-in-out;
  }

  /* Desktop Nav */

nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

  /* General rules */
body{
    font-family: 'Montserrat Regular';
    font-size: 16px;
    color: var(--black);
    font-weight: 400;
}
h1{
    font-family: 'Montserrat SemiBold';
    font-size: clamp(3.2rem, 1.326vw + 2.776rem, 4.78rem);
    line-height: clamp(4.8rem, 0.671vw + 4.585rem, 5.6rem);
    text-transform: uppercase;
}

h2{
    font-family: 'Montserrat SemiBold';
    font-size: clamp(2.8rem, 0.991vw + 2.483rem, 3.981rem);
    line-height: clamp(3.2rem, 1.342vw + 2.77rem, 4.8rem);
    margin-bottom: 2vmax;
    margin-top: 1.6vmax;
}

h3{
    font-family: 'Montserrat SemiBold';
    font-size: clamp(2.4rem, 0.77vw + 2.154rem, 3.318rem);
    line-height: clamp(2.8rem, 1.007vw + 2.478rem, 4rem);
}

h4{
    font-family: 'Montserrat SemiBold';
    font-size: clamp(2rem, 0.642vw + 1.795rem, 2.765rem);
    line-height: clamp(2.4rem, 0.671vw + 2.185rem, 3.2rem);
}
h5{
    font-family: 'Montserrat SemiBold';
    font-size: clamp(1.6rem, 0.591vw + 1.411rem, 2.304rem);
    line-height: clamp(2rem, 0.671vw + 1.785rem, 2.8rem);
    color: var(--grey600);
}
a{
    font-size: clamp(1.4rem, 0.436vw + 1.26rem, 1.92rem);
    line-height: clamp(1.6rem, 0.671vw + 1.385rem, 2.4rem);
    color: inherit;
}

p{
    font-size: clamp(1rem, 0.503vw + 0.839rem, 1.6rem);
    line-height: clamp(1.2rem, 0.671vw + 0.985rem, 2rem);
}


.nav-links {
    gap: 3rem;
    list-style: none;
    font-size: clamp(1.6rem, 0.671vw + 1.385rem, 2.4rem);
}

.nav-links a{
    color: var(--black);
    text-decoration: none;
    text-decoration-color: var(--white);
}

.nav-links a:hover {
    color: var(--grey200);
    text-decoration: underline;
    text-underline-offset: 2rem;
    text-decoration-color: var(--grey200);
}

.logo{
    font-size: clamp(2.4rem, 2.013vw + 1.756rem, 4.8rem);
    font-family: 'Montserrat SemiBold';
}

.logo:hover{
    cursor: default;
}

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 2.4rem;
    width: 3rem;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 0.2rem;
    background-color: var(--black);
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    color: var(--black);
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 30rem;
}

.hanburger-icon.open span:first-child{
    transform: rotate(45deg) translate(1rem, 0.5px);
}

.hanburger-icon.open span:nth-child(2){
    opacity: 0;
}

.hanburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(1rem, -0.5rem);
}

.hanburger-icon.open span:first-child{
    transform: none;
}

.hanburger-icon.open span:nth-child(2){
    opacity: 1;
}

.hanburger-icon.open span:last-child{
    transform: none;
}

/* Sections */

section {
    padding-top: 4vh;
    height: 96vh;
    margin-left: clamp(1.2rem, 5.872vw + -0.679rem, 8.2rem);
    margin-right: clamp(1.2rem, 5.872vw + -0.679rem, 8.2rem);
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* Profile section */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}
.section_pic-container {
    position: relative;
    display: flex;
    height: 26vmax;
    width: 26vmax;
    margin: auto 0;
}

#profile .section_pic-container:hover .profile-pic {
    opacity: 0;
}

#profile .section_pic-container:hover .profile-painting-pic{
    opacity: 1;
}

.profile-pic, .profile-painting-pic {
    object-fit: content;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
}

.profile-pic {
    opacity: 1;
    z-index: 1;
}

.profile-painting-pic {
    opacity: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.05);
}

.section_text {
    align-self: center;
    text-align: center;
}

.section_text p {
    font-family: 'Montserrat SemiBold';
}

.section_text_p1{
    text-align: center;
}

.section_text_p2{
    font-size: clamp(2rem, 0.642vw + 1.795rem, 2.765rem);
    line-height: clamp(2.4rem, 0.671vw + 2.185rem, 3.2rem);
    margin-bottom: 1rem;
}

.title {
    text-align: center;
}

#socials-container{
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
    gap: 1.6rem;
}

/* Icons */

.icon {
    cursor: pointer;
    height: 4.8rem;
    width: 4.8rem;

}

/* Buttons */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
}

.btn {
    font-weight: 600;
    transition: all 0.3 ease;
    padding: 1.6rem;
    width: 12.8rem;
    border-radius: 3.2rem;
}

.btn-color-1, 
.btn-color-2 {
    border: var(--grey600) 0.16rem solid;
}

.btn-color-1:hover, 
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1, 
.btn-color-2:hover {
    background: var(--grey600);
    color: var(--white);
}

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

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    border: var(--white) 0.16rem solid;
}

.btn-container {
    gap: 1.6rem;
}

/* About section */

#about {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-containers {
    gap: 3.2rem;
    margin-bottom: 3.2rem;
    margin-bottom: 3.2rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
    width: 66%;
}

.about-containers, 
.about-details-container {
    display: flex;
}

.about-pic, .about-painting-pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3.2rem;
    object-fit: cover;
    object-position: center center;
    transition: opacity 0.5s ease-in-out;
}
.about-pic {
    opacity: 1;
    z-index: 1;
}

.about-painting-pic {
    opacity: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#about .section_pic-container:hover .about-pic {
    opacity: 0;
}
#about .section_pic-container:hover .about-painting-pic {
    opacity: 1;
}

.arrow {
    position: absolute;
    right: -8rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 2.4rem;
    flex: 1;
    background: var(--grey100);
    border-radius: 3.2rem;
    border: var(--grey600) 0.1rem solid;
    border-color: var(--grey200);
    text-align: center;
    /* display: flex;
    flex-direction: column;
    justify-content: space-between;
 */

}

.section-container{
    gap: 6.4rem;
    height: 70%;
}

.icon-container{
    display: flex;
    justify-content: center;
}

 /* Experience Section */

 #experience {
    position: relative;
 }

 .experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: clamp(2rem, 0.642vw + 1.795rem, 2.765rem);
    margin-bottom: 1.5vmax;
 }

 .experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;

 }

 .article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 4rem;
    justify-content: space-around;
 }

 article {
    display: flex;
    width: 16rem;
    justify-content: space-around;
    gap: 0.8rem;
 }

 article.icon {
    cursor: default;
 }

 /* Projects section */

 #projects {
    position: relative;
 }

.color-container {
    border-color: var(--grey400);
    background: var(--white);
}

.project-img {
    border-radius: 3.2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1.6rem;
    color: var(--black);
}

.project-btn {
    color: var(--black);
    border-color: var(--grey400);
}

/* Contact */

#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 3.2rem;
    border: var(--grey600) 0.16rem solid;
    border-color: var(--grey400);
    background: var(--grey100);
    margin: 3.2rem auto;
    padding: 0.8rem;
    gap: 1vmax;
}

.contact-info-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.6rem;
}


.contact-icon {
    cursor: default;

}

/* Footer section */

footer {
    height: 26vh;
    margin: 0 1.6rem;
}

footer p{
    text-align: center;
}
