@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #f9624e;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

.dark-mode {
    --bg-color: #0b061f;
    --text-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .7);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.4s, color 0.4s;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.05rem 4% 0.05rem;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header.sticky {
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem var(--shadow-color);
}

.logo {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 600;
    margin-right: auto;
}

.logo-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-left: 10px;
}

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--white-color);
    font-weight: 500;
    margin-right: 3.5rem;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
}

.header.sticky .navbar a {
    color: var(--text-color);
}

.header.sticky .navbar a.active {
    color: var(--main-color);
}

.navbar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: .2rem;
    background: var(--white-color);
}

.header.sticky .navbar a::before {
    background: var(--main-color);
    opacity: .7;
}

#darkMode-icon {
    font-size: 2.4rem;
    color: var(--white-color);
    cursor: pointer;
}

.header.sticky #darkMode-icon {
    color: var(--text-color);
    opacity: .9;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

section.projects {
    padding-top: 20rem;
    padding-bottom: 20rem;
}

section.contact {
    padding-top: 18rem;
    padding-bottom: 20rem;
}

.home {
    display: flex;
    align-items: center;
}

.home .home-content {
    max-width: 44rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: .5;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.home-content p {
    font-size: 1.6rem;
}

.home-content .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
    overflow: hidden;
}

.home-content .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid transparent;
    transition: .5s ease;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
}

.home .ritual-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

.home .ritual-container .ritual-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 768px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: ritualRotate 13s ease-out infinite;
}

@keyframes ritualRotate {
    0%,
    20% {
        transform: rotate(0deg);
    }

    25%,
    45% {
        transform: rotate(-90deg);
    }

    50%,
    70% {
        transform: rotate(-180deg);
    }

    75%,
    95% {
        transform: rotate(-270deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.home .ritual-box .ritual {
    left: 0;
    min-width: 380px;
    max-width: 90vw;
    padding: 13px 32px;
    box-sizing: border-box;
    position: absolute;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--main-color);
    transform: rotate(calc(360deg / 4 * var(--i)));
    transform-origin: 384px;
    background: var(--bg-color);
    padding: 13px 0;
}

.home .ritual-box .ritual:nth-child(1) i {
    margin-left: -2px;
}

.home .ritual-box .ritual:nth-child(2),
.home .ritual-box .ritual:nth-child(4) {
    padding-bottom: 20px;
}

.home .ritual i {
    font-size: 3.8rem;
}

.home .ritual h3 {
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
}

.home .ritual-box .circle {
    width: 560px;
    height: 560px;
    border: 3px solid var(--main-color);
    border-radius: 50%;
    z-index: -1;
}

.home .ritual-container .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 50vh solid var(--main-color);
    border-right: 384px solid var(--main-color);
    border-bottom: 50vh solid var(--main-color);
    border-left: 384px solid transparent;
}

.home-img img {
    position: absolute;
    bottom: 0;
    right: 40px;
    pointer-events: none;
    max-width: 480px;
    max-height: 100vh;
}

span {
    color: var(--main-color);
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-direction: row;
}

.about-img {
    flex: 0 0 auto;
    max-width: 600px;
    min-width: 0;
}

.about-img img {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 100vh;
    display: block;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    text-align: justify;
}

.skills {
    width: 100%;
    margin: 0 auto;
    min-height: auto;
    padding-top: 25rem;
    padding-bottom: 20rem;
}

.skills h2 {
    margin-bottom: 5rem;
}

.skills .services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.skills-container .services-box {
    flex: 1 1 30rem;
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    text-align: center;
    border-top: .6rem solid var(--main-color);
    border-bottom: .6rem solid var(--main-color);
    transition: .5s ease;
}

.skills-container .services-box:hover {
    box-shadow: 0 .1rem 2rem var(--shadow-color);
    transform: scale(1.02);
}

.skills-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.skills-box h3 {
    font-size: 2.6rem;
    transition: .5s ease;
}

.skills-box:hover h3 {
    color: var(--main-color);
}

.skills-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.projects {
    min-height: auto;
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.projects h2 {
    margin-bottom: 4rem;
}

.projects .projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.projects-container .projects-box {
    position: relative;
    display: flex;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
    min-height: 250px;
}

.projects-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.projects-box:hover img {
    transform: scale(1.1);
}

.projects-box .projects-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    opacity: 0;
    transition: .5s ease;
}

.projects-box:hover .projects-layer {
    opacity: 1;
}

.projects-layer h4 {
    font-size: 3rem;
}

.projects-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
}

.projects-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--white-color);
    border-radius: 50%;
}

.projects-layer a i {
    font-size: 2rem;
    color: var(--text-color);
}

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    background: var(--white-color);
    box-shadow: 0 8px 32px 0 rgba(249, 98, 78, 0.25), 0 0 24px 4px rgba(249, 98, 78, 0.25);
    border-radius: 2rem;
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    max-width: 700px;
    width: 100%;
    margin: 5rem auto 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: red-glow 2s infinite alternate;
}

@keyframes red-glow {
    0% {
        box-shadow: 0 8px 32px 0 rgba(249, 98, 78, 0.25), 0 0 24px 4px rgba(249, 98, 78, 0.25);
    }
    100% {
        box-shadow: 0 8px 32px 0 rgba(249, 98, 78, 0.45), 0 0 48px 12px rgba(249, 98, 78, 0.45);
    }
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 0 8px 1px rgba(249, 98, 78, 0.15);
    transition: border 0.2s, box-shadow 0.3s;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border: 1.5px solid var(--main-color);
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 0 24px 4px rgba(249, 98, 78, 0.35);
    animation: red-glow-input 1.2s infinite alternate;
}

@keyframes red-glow-input {
    0% {
        box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 0 8px 1px rgba(249, 98, 78, 0.15);
    }
    100% {
        box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 0 24px 6px rgba(249, 98, 78, 0.35);
    }
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background: var(--main-color);
}

.footer-text p {
    font-size: 1.6rem;
    color: var(--white-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    outline-color: var(--white-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--text-color);
}

.dark-mode .footer-iconTop a i {
    color: var(--bg-color);
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
    overflow: hidden;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
    border-color: var(--main-color);
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
    .home .ritual-container .ritual-box {
        right: -10%;
    }
    .home .ritual-container .overlay {
        right: -6%;
    }
    .home-img img {
        right: 0;
    }
}

@media (max-width: 1100px) {
    .home .ritual-container .ritual-box {
        right: -15%;
    }
    .home-img img {
        max-width: 420px;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 1.2rem 2%;
    }
    .logo-img {
        width: 150px;
        height: 150px;
        margin-left: 20px;
    }
    section {
        padding: 7rem 2% 2rem 2%;
    }
    .home .ritual-container .ritual-box {
        right: -20%;
    }
    .home .ritual-container .overlay {
        right: -12%;
    }
    .home-img img {
        max-width: 350px;
    }
    .about {
        flex-direction: column;
        text-align: center;
    }
    .about-img img {
        width: auto;
        max-width: 380px;
        max-height: 100vh;
        margin-bottom: 2rem;
    }
    .about-content h2 {
        text-align: center;
    }
    .skills-icons-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
    section.contact {
        padding-top: 6rem;
        padding-bottom: 7rem;
    }
}

@media (max-width: 991px) {
    .navbar a:nth-child(1) {
        color: var(--main-color);
    }
    .navbar a.active::before {
        background: var(--main-color);
        opacity: .7;
    }
    .home .home-content {
        max-width: 50rem;
    }
    .home .ritual-container .ritual-box {
        right: -35%;
    }
    .home .ritual-container .overlay {
        right: -30%;
    }
    .home-img img {
        display: none;
    }
    .skills {
        padding-top: 10rem;
        padding-bottom: 8rem;
    }
    .projects .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact form {
        max-width: 95vw;
    }
    .about-img img {
        width: auto;
        max-width: 80vw;
        max-height: 100vh;
    }
    .contact-flex {
        flex-direction: column;
        gap: 2rem;
    }
    .contact-img {
        max-width: 90vw;
        margin-left: 0;
    }
    .contact-img img {
        max-width: 90vw;
    }
}

@media (max-width: 896px) {
    .navbar a:nth-child(2) {
        color: var(--main-color);
    }
    .home .ritual-container .ritual-box {
        right: -50%;
    }
    .home .ritual-container .overlay {
        right: -43%;
    }
    .skills .skills-icons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 780px) {
    .navbar a:nth-child(2) {
        color: var(--white-color);
    }
    .skills .skills-icons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .skill-icon i {
        font-size: 3.5rem;
    }
    .skill-icon span {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    #darkMode-icon {
        position: absolute;
        right: 7rem;
        font-size: 2.6rem;
        color: var(--text-color);
        margin-bottom: .1rem;
    }
    .logo-img {
        width: 120px;
        height: 120px;
        margin-left: 15px;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        display: none;
    }
    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }
    .navbar a:nth-child(1),
    .navbar a:nth-child(2) {
        color: var(--text-color);
    }
    .navbar a.active {
        color: var(--main-color);
    }
    .navbar a::before {
        display: none;
    }
    .home {
        padding: 0 3% 23rem;
        justify-content: center;
        text-align: center;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-content .social-media a {
        margin: 2.5rem .75rem 3rem;
    }
    .home .ritual-container {
        left: 0;
        width: 100%;
        height: 100%;
    }
    .home .ritual-container .ritual-box {
        position: fixed;
        top: 450px;
        left: 0;
        width: 100%;
    }
    .home .ritual-box .ritual {
        padding: 0 13px;
        left: auto;
        transform-origin: 0;
    }
    .home .ritual-box .ritual:nth-child(1) {
        transform: rotate(-90deg) translate(-120px, -210px);
    }
    .home .ritual-box .ritual:nth-child(1) i {
        margin-right: 0;
    }
    .home .ritual-box .ritual:nth-child(2) {
        transform: rotate(0deg) translate(0, -325px);
    }
    .home .ritual-box .ritual:nth-child(3) {
        transform: rotate(90deg) translate(-115px, -450px);
    }
    .home .ritual-box .ritual:nth-child(4) {
        transform: rotate(180deg) translate(-220px, -325px);
    }
    .home .ritual-box .circle {
        position: fixed;
        width: 670px;
        height: 670px;
        z-index: -1;
    }
    .home .ritual-container .overlay {
        position: fixed;
        top: 70rem;
        left: 50%;
        right: 0;
        transform: rotate(90deg) translate(-50%, 50%) scaleY(3);
        border-width: 23.9rem;
    }
    .skills .skills-icons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .projects .projects-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .projects-container .projects-box {
        min-height: 200px;
    }
    .contact form {
        padding: 2rem 1rem 1.5rem 1rem;
        max-width: 98vw;
        margin: 3rem auto 2rem auto;
    }
    .contact h2 {
        font-size: 2.2rem;
    }
    .about-img img {
        width: auto;
        max-width: 90vw;
        max-height: 60vw;
    }
    .about-content p {
        font-size: 1.4rem;
        line-height: 1.6;
    }
    section.contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 580px) {
    .skills-icons-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .projects .projects-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .projects-container .projects-box {
        min-height: 180px;
    }
    .contact form {
        padding: 1.5rem 1rem 1rem 1rem;
        margin: 2rem auto 1.5rem auto;
    }
    .contact form .input-box input {
        width: 100%;
        margin-bottom: 1rem;
    }
    .home-content .social-media a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
        margin: 2rem 0.5rem 2.5rem;
    }
    .skill-icon i {
        font-size: 3rem;
    }
    .skill-icon span {
        font-size: 1.1rem;
    }
    .about-content h2 {
        font-size: 3.5rem;
    }
    .heading {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 100px;
        height: 100px;
        margin-left: 10px;
    }
    #darkMode-icon {
        right: 5rem;
        font-size: 2.2rem;
    }
    .skills .skills-icons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .skill-icon i {
        font-size: 2.5rem;
    }
    .skill-icon span {
        font-size: 1rem;
    }
    .home-content h1 {
        font-size: 4rem;
    }
    .home-content h3 {
        font-size: 2.2rem;
    }
    .about-content h2 {
        font-size: 3rem;
    }
    .heading {
        font-size: 3rem;
    }
    .contact h2 {
        font-size: 2rem;
    }
    .projects-container .projects-box {
        min-height: 160px;
    }
    .contact form {
        padding: 1.2rem 0.8rem 1rem 0.8rem;
        margin: 1.5rem auto 1rem auto;
    }
    section.contact {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    #darkMode-icon {
        right: 6rem;
    }
    .logo-img {
        width: 90px;
        height: 90px;
        margin-left: 8px;
    }
    .home .ritual-box .ritual:nth-child(1) {
        transform: rotate(-90deg) translate(-110px, -220px);
    }
    .home .ritual-box .ritual:nth-child(2) {
        transform: rotate(0deg) translate(5px, -325px);
    }
    .home .ritual-box .ritual:nth-child(3) {
        transform: rotate(90deg) translate(-105px, -440px);
    }
    .home .ritual-box .ritual:nth-child(4) {
        transform: rotate(180deg) translate(-210px, -325px);
    }
    .home .ritual-container .overlay {
        top: 80rem;
    }
    .contact form .input-box input {
        width: 100%;
    }
    .footer {
        flex-direction: column-reverse;
    }
    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
    .skills .skills-icons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .skill-icon i {
        font-size: 2.2rem;
    }
    .skill-icon span {
        font-size: 0.9rem;
    }
}

@media (max-width: 365px) {
    .about-img img {
        width: auto;
        max-width: 98vw;
        max-height: 60vw;
    }
    .skills .skills-icons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .skill-icon i {
        font-size: 2rem;
    }
    .skill-icon span {
        font-size: 0.8rem;
    }
    .home-content h1 {
        font-size: 3.5rem;
    }
    .home-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 315px) {
    .home-content h1 {
        font-size: 3rem;
    }
    .skills .skills-icons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    .skill-icon i {
        font-size: 1.8rem;
    }
    .skill-icon span {
        font-size: 0.7rem;
    }
    .about-content h2 {
        font-size: 2.5rem;
    }
    .heading {
        font-size: 2.5rem;
    }
}

img, .about-img img, .contact-img img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.skills-icons-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2.5rem;
    justify-items: center;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.3s;
    cursor: pointer;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

.skill-icon i {
    font-size: 4.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    background: transparent;
    border-radius: 50%;
    padding: 0.5rem;
    animation: float 2.5s ease-in-out infinite;
    transition: color 0.3s, background 0.3s;
}

.skill-icon span {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    font-weight: 500;
}

.skill-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 0.5rem 2rem var(--shadow-color);
}

.skill-icon:hover i {
    color: var(--white-color);
    background: var(--main-color);
    animation-play-state: paused;
}

.contact-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
}
.contact-flex-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 400px;
    max-width: 600px;
    margin: 0 auto;
}
.contact-flex form {
    width: 100%;
    max-width: 600px;
}
.contact-img {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 350px;
    margin-left: 3rem;
}
.contact-img img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    transform: scaleX(-1);
    box-shadow: none;
    margin-top: 50px;
}