/* Selector */

html{
    scroll-behavior: smooth;
    --bg--color: rgb(255, 255, 255);
    --nav-bg-color: #bb00ff;
    --border-bg: rgb(255, 255, 255);
    --border-color: #5e0081;
    --button-bolor: #bb00ff;
    --button-hover: rgb(230, 132, 255);
    --text-base: black;
    --text-color: rgb(230, 132, 255);
    --text-hover: rgb(255, 253, 255);
    --icon-color: #bb00ff;
    --transition: all 0.3s ease;
    --animation-duration: 1s ;
}

[store-theme = "dark-mode"]{
    --bg--color: rgb(14, 14, 14);
    --nav-bg-color: #27102f;
    --border-bg: rgb(14, 14, 14);
    --border-color: #9e03d6;
    --button-bolor: #27102f;
    --button-hover: rgb(70, 2, 87);
    --text-base: rgb(255, 255, 255);
    --text-color: rgb(74, 0, 93);
    --text-hover: rgb(196, 0, 196);
    --icon-color: #c65cec;
}

body{
    background-color: var(--bg--color);
    margin: 0% auto;
    font-family: "Lilita One", sans-serif;
    padding-left: 200px;
    padding-right: 200px;
    max-width: 1500px;
}

@keyframes appear {
    from {
        opacity: 0;
        scale: 0.9;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

.divider{
    border: 3px solid var(--border-color);
    border-radius: 30px;
    margin: 30px 0;
}

.section-text{
    text-align: center;
    padding: 50px;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-base);
    transition: var(--transition);
}

.section-text:hover{
    transform: translateY(-10px);
}

/* button design */

.btn{
    display: flex;
    justify-content: center;
    align-items: center;
    margin:30px auto 0;
    width:100%;
    max-width: 170px;
    padding:15px;
    border:none;
    border-radius:35px;
    background: var(--button-bolor);
    color:var(--text-base);
    font-family: "Lilita One", sans-serif;
    font-size:20px;
    font-weight: 300;
    letter-spacing: 2px;
    cursor:pointer;
    transition:var(--transition);
    animation: appear var(--animation-duration) ease-in-out;
}

.btn:hover{
    background: var(--button-hover);
    color: var(--text-hover);
    transform:translateY(-2px);
}

/* Navigation bar and mobile navbar */

nav{
    display: flex;
}

.nav1{
    background-color: var(--nav-bg-color);
    border-radius: 50px;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    height: 70px;
    margin-top: 30px;
    color: var(--text-base);
    animation: appear var(--animation-duration) ease-in-out;
    transition: var(--transition);
}

.nav1:hover{
    transform: translateY(8px);
}

.mobile-nav{
    display: none;
    justify-content: flex-end;
    margin-top: 30px;
}

.mobile-menu{
    position: relative;
    display: inline-block;
}

.mobile-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.mobile-icon span{
    width: 100%;
    height: 2px;
    background-color: var(--nav-bg-color);
    transition: var(--transition);
}

.mobile-links{
    position: absolute;
    margin-top: 10px;
    top: 100%;
    right: 0;
    background-color: var(--nav-bg-color);
    border-radius: 30px;
    width: 150px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    z-index: 100;
}

.mobile-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: .8rem;
    color: var(--text-base);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-links.open{
    max-height: 300px;
    border: var(--border-color) 1px solid;
    transition: var(--transition);
}

.mobile-links.open:hover{
    transform: translateY(5px);
}

.mobile-icon.open span:first-child{
    transform: rotate(45deg) translate(10px, 5px);
}

.mobile-icon.open span:nth-child(2){
    opacity: 0;
}

.mobile-icon.open span:last-child{
    transform: rotate(-45deg) translate(10px, -5px);
}

.mobile-icon span:first-child{
    transform: none;
}

.mobile-icon span:nth-child(2){
    opacity: 1;
}

.mobile-icon span:last-child{
    transform: none;
}

a{
    list-style-type: none;
    font-size: 25px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

a:hover{
    color: var(--text-hover);
    transform: translateY(-2px);
    transition: var(--transition);
}


/* Welcome section */

.welcome{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 25dvh;
    color: var(--text-base);
    animation: appear var(--animation-duration) ease-in-out;
    transition: var(--transition);
}

.welcome:hover{
    transform: translateY(-10px);
}

.welcome h1{
    font-size: 100px;
}

.welcome p{
    font-size: 30px;
    text-align: center;
}

/* Profile/About section */

.profile{
    background-color: var(--border-bg);
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-radius: 50px;
    color: var(--text-color);
    align-items: center;
    padding: 50px 20px;
    gap: 10rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
}

.profile:hover{
    transform: translateY(-10px);
}

.name{
    color: var(--text-base);
    font-size: 2rem;
    margin-top: 0;
}

.profile img{
    border-radius: 50px;
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 2px solid var(--border-color);
}

.profile p{
    text-align: justify;
}

/* Portfolio section */

.portfolio-container{
    gap: 5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.details-container{
    padding: 3rem;
    flex-basis: 1 1 300px;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 2em;
    border: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-base);
    transition: var(--transition);
}

.details-container:hover{
    transform: translateY(-10px);
}

.color-container{
    border-color: var(--border-color);
    background: var(--border-bg);
}

.portfolio-img{
    border-radius: 2rem;
    border: 5px solid var(--border-bg);
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1;
    max-height: 230px;
    object-fit: cover;
}

.portfolio-title{
    margin: 1rem;
}

/* Photo Gallery */

.gallery{
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

.photo-gallery{
    background-color: var(--border-bg);
    border: var(--border-color) 1px solid;
    border-radius: 30px;
    padding: 3rem;
    margin: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    transition: var(--transition);
}

.photo-gallery img {
    width: 100%;
    display: flex;
    border-radius: 20px;
    cursor: pointer;
}

.column{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.img-gallery img{
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
    border: var(--border-color) 1px solid;
    transition: var(--transition);
}

.photo-gallery:hover{
    transform: translateY(-10px);
}

.photo-gallery img:hover{
    transform: translateY(-10px);
}

/* .test{

    .photo-gallery{
        display: flex;
        gap: 20px;
        padding: 3rem;
        background: var(--border-bg);
        border: 1px solid var(--border-color);
        border-radius: 30px;
    }

    .column{
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .img-gallery img{
        width: 100%;
        display: block;
        border-radius: 20px;
        object-fit: cover;
    } 




        .photo-gallery{
        column-count: 4;
        column-gap: 20px;

        background: var(--border-bg);
        border: 1px solid var(--border-color);
        border-radius: 30px;
        padding: 30px;
    }

    .photo-gallery img{
        width: 100%;
        margin-bottom: 20px;
        display: block;
        border-radius: 20px;
    } 
} */

/* Contacts Section */

.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

form p{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}

#con-container{
    width: 700px;
    background: var(--bg--color);
    padding:20px;
    transition: var(--transition);
}

#con-container:hover{
    transform: translateY(-10px);
}

input,
textarea{
    width:100%;
    padding:15px;
    border:1px solid var(--border-color);
    background-color: var(--bg--color);
    color: var(--text-base);
    box-sizing:border-box;
    outline:none;
    font-size:14px;
    letter-spacing:2px;
}

input::placeholder,
textarea::placeholder{
    color:var(--text-base);
    letter-spacing:3px;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bg--color) inset;
    -webkit-text-fill-color: var(--text-base); 
}

textarea{
    height:220px;
    resize:none;
}

.checkbox{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    margin-top: 30px;
}

.checkbox input{
    width:25px;
    height:25px;
    cursor:pointer;
}

.checkbox label{
    font-size:13px;
    letter-spacing:2px;
    color: var(--text-base);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 30px;
}


.social-icons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 20px;
    color: var(--icon-color);
}

.social-icons svg{
    fill: currentColor;
    width: 80%;
    max-width: 50px;
    height: auto;
}

.social-icons a:hover{
    color: rgb(255, 87, 255);
    transform: translateY(-5px);
    transition: var(--transition);
}

footer{
    margin-bottom: 50px;
}

.nav2{
    justify-content: space-around;
    align-items: center;
    height: auto;
    color: var(--text-base);
    padding: 20px 0;
}

.links{
    gap: 2rem;
    list-style: none;
    display: flex;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.links a{
    font-size: 1.5rem;
}

.nav2 a:hover{
    color: rgb(188, 0, 188);
}