/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:-webkit-any-link {
    font-weight: bolder;
    font-size: small;
    margin-top: 9px;
    color: black;

}


/* BODY */

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    color: #292929;
    background: #eff784;
    transition: background 0.5s ease;
}


/* MOVING COLLAGE BACKGROUND */

.background-collage {
    position: fixed;
    inset: 0;
    z-index: -2;
    display: flex;
    margin-top:180px;
    gap: 25px;
    transform: rotate(-8deg) scale(1.3);
    opacity: 0.18;
    animation: moveBackground 30s linear infinite;
}

.background-collage img {
    width: 230px;
    height: 330px;
    object-fit: cover;
    border-radius: 20px;
    filter: saturate(1.3);
}

@keyframes moveBackground {

    0% {
        transform: rotate(-8deg) scale(1.3) translateX(0);
    }

    50% {
        transform: rotate(-8deg) scale(1.3) translateX(-250px);
    }

    100% {
        transform: rotate(-8deg) scale(1.3) translateX(0);
    }

}




/* HEADER */

header {
    height: 80px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 25px;
    letter-spacing: 3px;
}

.logo span,
h1 span,
h2 span {
    color: #a3166d;
}

nav {
    display: flex;
    gap: 15px;
}

nav button,
#themeBtn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    padding: 10px;
    transition: 0.3s;
}

nav button:hover {
    color: #8d448d;
    transform: translateY(-3px);
}

#themeBtn {
    font-size: 20px;
}


/* MAIN */

main {
    height: calc(100vh - 120px);
    position: relative;
}


/* PAGE */

.page {
    position: absolute;
    inset: 0;
    padding: 50px 8%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100px);
    transition: 0.6s ease;
}

.page.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}


/* HOME */

#home {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 50px;
}

.home-content {
    max-width: 550px;
}

.small-title {
    letter-spacing: 5px;
    font-weight: bold;
    margin-bottom: 15px;
}

h1 {
    font-size: clamp(50px, 8vw, 110px);
    line-height: 0.9;
    letter-spacing: -5px;
}

.description {
    max-width: 450px;
    margin: 30px 0;
    font-size: 17px;
    line-height: 1.7;
}


/* BUTTON */

.main-button {
    padding: 15px 25px;
    border: none;
    background: #99148e;
    color: rgb(248, 247, 247);
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.main-button2 {
    top: 95%;
    right: 50px;
    position: absolute;
    padding: 15px 25px;
    border: none;
    background: #99148e;
    color: rgb(248, 247, 247);
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s
    
}

.main-button:hover {
    background: #7a0c7a;
    transform: scale(1.05);
}


/* PHOTO CARD */

.photo-card {
    width: 280px;
    background: rgb(163 22 109);
    padding: 15px;
    box-shadow: 10px 15px 0 #650672;
    transform: rotate(5deg);
    transition: 0.4s;
}

.photo-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.photo-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.photo-label {
    padding: 15px 5px 5px;
    font-family: cursive;
}


/* SECTION TITLE */

.section-title p {
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 15px;
}

.section-title h1 {
    font-size: clamp(45px, 7vw, 90px);
}


/* ABOUT */

.about-content {
    display: flex;
    align-items: center;
    gap: 70px;
    margin-top: 40px;
}

.about-photo {
    width: 270px;
    padding: 12px;
    background: rgb(207, 18, 122);
    transform: rotate(-5deg);
    box-shadow: -10px 10px 0 #831174;
}

.about-photo img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.about-text {
    max-width: 600px;
}

.about-text h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.skills span {
    background: #292929;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 13px;
}


/* PROJECTS */

.projects-container {
    display: flex;
    gap: 25px;
    margin-top: 45px;
}

.project-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    width: 30%;
    min-height: 230px;
    border-top: 8px solid #a01194;
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-15px) rotate(2deg);
    box-shadow: 10px 10px 0 #292929;
}

.project-number {
    font-size: 40px;
    font-weight: bold;
    color: #ac2fac;
}

.project-card h2 {
    margin: 15px 0;
}

.project-card p {
    text-align: justify;
    line-height: 1.5;
    margin-bottom: 20px;
}

.project-card small {
    font-weight: bold;
}


/* CONTACT */

.contact-content {
    display: flex;
    gap: 80px;
    margin-top: 50px;
}

.contact-info {
    max-width: 400px;
}

.contact-info h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.contact-info p {
    line-height: 1.8;
    margin-bottom: 12px;
}

form {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    padding: 15px;
    border: 2px solid #292929;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #e85d75;
}

textarea {
    height: 130px;
    resize: none;
}


/* FOOTER */

footer {
    height: 40px;
    text-align: center;
    font-size: 13px;
    padding: 10px;
}


/* DARK THEME */

body.dark {
    background: #171717;
    color: white;
}

body.dark .project-card {
    background: rgba(40, 40, 40, 0.9);
}

body.dark input,
body.dark textarea {
    background: #292929;
    color: white;
    border-color: white;
}

body.dark .main-button {
    background: white;
    color: #171717;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    body {
        overflow: auto;
    }

    header {
        height: auto;
        padding: 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    main {
        height: auto;
    }

    .page {
        position: relative;
        min-height: 100vh;
        padding: 40px 25px;
    }

    #home,
    .about-content,
    .contact-content {
        flex-direction: column;
        justify-content: center;
    }

    .projects-container {
        flex-direction: column;
    }

    .project-card {
        width: 100%;
    }

    form {
        width: 100%;
    }

}

.backBtn{

position:fixed;

top:20px;

left:20px;

padding:12px 20px;

background:#38bdf8;

color:white;

text-decoration:none;

border-radius:10px;

transition:.3s;

}

.backBtn:hover{

background:#2563eb;

}