* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
    outline: none;
    font-family: "waters-titling-pro", "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

:root {
    --bg-color: #FBF0DA;
    --text-color: #1E1005;
    --main-color: #9c7443;
}

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

p {
    font-size: 12px;
    font-family: "open-sans", "Poppins", sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    text-align: left;
}

.text-p {
    text-align: justify;
    hyphens: auto;
    word-spacing: -0.05em;
}

.text-p p {
    text-align: inherit;
    margin-bottom: 1em;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background-color: var(--text-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 15px;
}

.content {
    text-align: center;
    z-index: 95;
    padding: 2rem;
    background: var(--text-color);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px var(--text-color);
    max-width: 600px;
    margin: 2rem;
}

.light {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(30px);
    transform: translate(-50%, -50%);
    z-index: 90;
    transition: transform 0.1s ease-out;
    top: -100px;
    left: -100px;
}

.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--main-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100;
    top: -100px;
    left: -100px;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 85;
    display: none;
}

.particles.initialized {
    display: block;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

.controls {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==================== Header ==================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.header-content {
    width: 100%;
    max-width: 2000px;
    padding: 0 5rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--text-color);
    align-items: center;
}

.logo {
    font-size: 50px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: 0.6s ease-in-out all;
}

.logo:hover {
    transform: scale(1.1);
}

.navbar a {
    font-size: 25px;
    color: var(--text-color);
    margin-left: 10px;
    font-weight: 500;
    transition: 0.6s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

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

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

/* ==================== Home ==================== */

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0 auto;
    padding: 100px 5rem;
    min-height: 100vh;
    max-width: 2000px;
}

.home-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content p {
    width: 100%;
    font-size: 15px;
}

#first {
    display: none;
}

#second {
    padding-right: 100px;
}

.home-content {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-top: 3rem;
    transition: all 1s ease-in-out;
    animation: hero-content 1.5s;
}

@keyframes hero-content {
    from {
        transform: translateX(-105%);
    }

    to {
        transform: translateX(0%);
    }
}

.logo span {
    clear: var(--main-color);
}

.home-content h3 {
    margin-bottom: 40px;
    margin-top: 1rem;
    font-size: 50px;
    line-height: 40px;
}

.home-content h1 {
    font-size: 75px;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-div {
    text-align: center;
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: all 1s ease-in-out;
    animation: hero-moon 1.5s;
}

@keyframes hero-moon {
    from {
        transform: translateX(105%);
    }

    to {
        transform: translateX(0%);
    }
}

.moon {
    height: 400px;
    width: 400px;
    position: relative;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: box-shadow 0.6s ease-in-out;
    animation: moveY 3s infinite alternate;
}

.moon:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color),
        0 0 100px var(--main-color);
}

@keyframes moveY {
    from {
        transform: translateY(-50px);
    }

    to {
        transform: translateY(50px);
    }
}

.home-content p {
    font-weight: 500;
    font-size: 25px;
    line-height: 30px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.6s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.1)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: var(--main-color);
    font-size: 25px;
    color: var(--bg-color);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.6s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
    color: var(--text-color);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 40px;
}

.btn-group a:nth-last-of-type(1) {
    background-color: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-last-of-type(1):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: var(--text-color);
}

.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Architectural Vision";
    color: var(--main-color);
    animation: words 9s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 2s infinite, typing 15s steps(12) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words {

    0%,
    33.33% {
        content: "Architectural Vision";
    }

    33.34%,
    66.66% {
        content: "Design Development";
    }

    66.67%,
    100% {
        content: "Teaching & Support";
    }
}

@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}

/* ==================== About ==================== */

.about {
    padding: 100px 5rem;
    max-width: 2000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 1s ease-in-out;
    gap: 5rem;
}

.about-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-about {
    border: 2px solid var(--main-color);
    width: 40%;
    height: 600px;
    background: url("../img/about/img.jpg");
    background-size: cover;
    object-fit: cover;
    object-position: center;
    transition: all 1s ease-in-out;
    box-shadow: 0 0 10px var(--main-color);
}

.img-about:hover {
    transform: scale(1.01);
    box-shadow: 0 0 5rem var(--main-color);
    cursor: pointer;
}

.about-div {
    width: 60%;
}

.text-p {
    text-align: justify;
    hyphens: auto;
    word-spacing: -0.05em;
}

.text-p p {
    text-align: inherit;
    margin-bottom: 1em;
}

.about-div p {
    font-size: 25px;
    line-height: 30px;
}

.title {
    font-size: 85px;
    padding-bottom: 10px;
    text-align: center;
}

/* ========================= skills ========================= */

.skills {
    background-color: var(--bg-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 5rem;
    min-height: 100vh;
    max-width: 2000px;
    margin: 0 auto;
}

.exper-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(650px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
}

.exper-box {
    display: flex;
    flex-direction: column;
    background-color: var(--main-color);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.6s ease-in-out;
    text-align: center;
    padding: 30px 15px;
    min-width: 200px;
    opacity: 0;
    transform: translateX(10%);
    min-height: 260px;
}


.exper-box:nth-child(2n) {
    transform: translateX(-10%);
}

.exper-box.show {
    opacity: 1;
    transform: translateX(0);
}

.exper-box:hover {
    background-color: var(--bg-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
    transform: scale(1.01);
    box-shadow: 0 0 5rem var(--main-color);
    cursor: pointer;
}

.exper-box:hover .langu span {
    border: 1.5px solid var(--main-color);
    color: var(--main-color);
}

.skills h4 {
    font-size: 35px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}

.langu {
    font-size: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.langu span {
    border: 1.5px solid var(--text-color);
    border-radius: 15px;
    color: var(--text-color);
    padding: 8px 15px;
    text-align: center;
    transition: 0.4s ease-in-out;
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto;
    font-size: 20px;
    font-family: "open-sans", "Poppins", sans-serif;
}

.exper-box .langu span:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: scale(1.05);
    border-color: var(--main-color);
}

/* ==================== Services ==================== */

.services {
    background-color: var(--bg-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 5rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 20px;
    max-width: 2000px;
}

.service-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    height: auto;
    width: 100%;
    border: 2px solid var(--main-color);
    background: var(--bg-color);
    transition: all 0.3s ease-in-out;
    border-radius: 15px;
}

.service-box:hover {
    transform: scale(1.01);
    box-shadow: 0 0 5rem var(--main-color);
    cursor: pointer;
}

.service-box span {
    font-size: 40px;
    color: var(--main-color);
}

.service-box h3 {
    font-size: 45px;
}

.service-box p {
    margin-top: 10px;
    font-size: 25px;
    line-height: 30px;
    color: var(--text-color);
}

.service-header {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 85px;
    padding-bottom: 30px;
}

.services-container>div,
.imgs-projects>div,
.imgs-projects>div,
.about {
    transition: all 1s ease-in-out;
    opacity: 0;
    transform: translateX(-10%);
}

.services-container>div:nth-child(2n+1),
.imgs-projects>div:nth-child(2n+1),
.imgs-projects>div:nth-child(2n+1) {
    transform: translateX(10%);
}

.services-container>div.show,
.about.show,
.imgs-projects>div.show,
.imgs-projects>div.show {
    opacity: 1;
    transform: translateX(0%);
}

/* ==================== experience ==================== */

.experience {
    padding: 100px 5rem;
}

.timeline-items {
    min-width: 250px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(5%);
}

.timeline-item:nth-child(2n+1) {
    transform: translateX(-5%);
}

.timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(odd) .timeline-date {
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-item:nth-child(odd) .timeline-content {
    animation: odd-child 1s;
}

.timeline-item:nth-child(even) .timeline-content {
    animation: even-child 1s;
}

@keyframes odd-child {
    from {
        transform: translateX(-105%);
    }

    to {
        transform: translateX(0%);
    }
}

@keyframes even-child {
    from {
        transform: translateX(105%);
    }

    to {
        transform: translateX(0%);
    }
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date {
    font-size: 25px;
    font-weight: 800;
    color: var(--main-color);
    margin: 6px 0 15px;
    font-family: "open-sans", "Poppins", sans-serif;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.6s ease-in-out;
    color: var(--text-color);
}

.timeline-content:hover {
    transform: scale(1.01);
    box-shadow: 0 0 5rem var(--main-color);
    cursor: pointer;
}

.timeline-content h3 {
    font-size: 35px;
    margin-bottom: 10px;
}

.timeline-content h6 {
    font-size: 25px;
}

.timeline-content p {
    font-weight: 300;
    margin-top: 10px;
    font-size: 20px;
}

/* ==================== Projects and Achievements ==================== */

.selectype-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    text-align: center;
    padding-bottom: 50px;
    width: 100%;
}

.selectype {
    border: 2px solid var(--main-color);
    padding: 15px 5px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    position: relative;
    max-width: 2000px;
}

.achievements .selectype {
    grid-template-columns: 1fr auto 1fr auto 1fr;
}

.type-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
}

.selectype p {
    font-size: 25px;
    cursor: pointer;
    color: var(--text-color);
    transition: all ease-in-out 0.6s;
    margin: 0;
    text-align: center;
}

.line {
    width: 2px;
    height: 40px;
    background-color: var(--main-color);
    margin: 0 10px;
}

.selectype p:hover {
    color: var(--main-color);
    transform: scale(1.01);
}

p.diff {
    color: var(--main-color);
}

.projects-app,
.achievements-app {
    display: flex;
    justify-content: center;
    align-items: center;
}

.imgs-projects {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 2000px;
    width: 100%;
}

.imgs-projects img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.6s ease-in-out;
}

.imgs-projects img:hover {
    filter: grayscale(50%) brightness(70%);
    cursor: pointer;
}

.projects,
.achievements {
    padding: 100px 5rem;
}

.title {
    font-size: 85px;
    padding-bottom: 30px;
    text-align: center;
}

.imgs-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 20px;
}

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.img-details {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.6s ease-in-out;
    display: block;
}

.img-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: rgba(0, 0, 0, 0.8); */
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: 2;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.7),
        -1px -1px 2px rgba(255, 255, 255, 0.5);
}

.img-title:hover {
    cursor: pointer;
}

.img-container:hover .img-details {
    filter: grayscale(100%) brightness(70%);
    cursor: pointer;
    transform: scale(1.05);
}

.img-container:hover .img-title {
    opacity: 1;
}

/* ------------- Details ---------------- */

section {
    position: relative;
}

body.modal-open .main-content {
    filter: blur(3px);
    background-color: var(--text-color);
    pointer-events: none;
}

.main-content {
    transition: filter 0.3ms ease-in-out;
}

.details {
    margin-top: 35rem;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    place-items: center;
    top: 5px;
    left: 50%;
    max-width: 1500px;
    height: auto;
    transform: translate(-50%, 5px);
    z-index: 20;
    background-color: var(--text-color);
    padding: 20px;
    color: var(--bg-color);
}

.projects-details,
.achievements-details {
    display: grid;
    gap: 30px;
}

.projects-details p,
.achievements-details p {
    font-size: 25px;
    line-height: 30px;
}

.details-title {
    color: var(--main-color);
    text-align: center;
    padding-bottom: 20px;
    font-size: 45px;
}

.details-imgs {
    display: flex;
    justify-content: center;
    align-items: center;
}

.details-img,
.details-details {
    max-width: 1300px;
}

.details-img {
    display: none;
}

.details.active {
    display: flex;
}

.close-details {
    position: absolute;
    top: 0px;
    right: 6px;
    font-size: 25px;
    font-weight: bold;
    color: var(--bg-color);
    cursor: pointer;
    transition: 0.3s ease;
}

.close-details:hover {
    color: var(--main-color);
    transform: scale(1.1);
}

.details-imgs {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.details-img.active {
    display: block;
}

.details-imgs button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--main-color);
    border: none;
    font-size: 15px;
    color: var(--bg-color);
    cursor: pointer;
    padding: 3px 10px;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}

.details-imgs .prev {
    left: 5px;
}

.details-imgs .next {
    right: 5px;
}

.details-imgs button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.details-imgs button.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.link-btn{
    display: inline-block;
    width: 100%;
    min-width: 100px;
    background-color: var(--bg-color);
    font-size: 25px;
    height: 50px;
    border-radius: 5px;
    transition: all 0.6s ease-in-out;
    color: var(--text-color);
    text-decoration: none; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.link-btn:hover{
    background-color: var(--main-color);
    cursor: pointer;
    color: var(--bg-color);
}

/* ==================== Dropdown Styles ==================== */

.dropdown-container {
    position: relative;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    margin-bottom: 50px;
    display: none;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    color: var(--bg-color);
}

.dropdown-header span {
    color: var(--bg-color);
}

.dropdown-header.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: var(--bg-color);
}

.dropdown-arrow.active {
    transform: rotate(180deg);
    color: var(--bg-color);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--main-color);
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    z-index: 85;
}

.dropdown-list.active {
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 17px;
    color: var(--bg-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.dropdown-item.active {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* ==================== Contact ==================== */

.contact-section {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding: 100px 5rem;
}

.contact-p,
.contact-card {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.contact-p p {
    font-size: 70px;
    text-align: center;
    max-width: 700px;
    color: var(--main-color);
    font-family: "waters-titling-pro", "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.contact-p {
    text-align: right;
    opacity: 0;
    transform: translateX(0%);
    transition: all 1s ease-in-out;
}

.contact-card>form {
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s ease-in-out;
}

.contact-card>form:nth-child(2n+1) {
    transform: translateX(-30px);
}

.contact-p.show {
    opacity: 1;
    transform: translateX(0%);
}

.contact-card>form.show {
    opacity: 1;
    transform: translateX(0%);
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-left: 2em;
    padding-right: 2em;
    padding-bottom: 0.4em;
    background-color: var(--bg-color);
    transition: all 0.6s ease-in-out;
    padding: 20px;
    width: 250px;
}

.form i {
    font-size: 70px;
    color: var(--main-color);
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button {
    padding: 0.5em;
    font-size: 20px;
    border: none;
    outline: none;
    transition: .4s ease-in-out;
    background-color: var(--main-color);
    color: var(--text-color);
}

.button:hover {
    color: var(--bg-color);
    cursor: pointer;
}

.img-contact img {
    width: 100px;
}

/* ==================== Footer ==================== */

.footer {
    bottom: 0;
    width: 100%;
    padding: 50px 5rem;
    background-color: var(--text-color);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 25px;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.6s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.1)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.footer .social-icons {
    padding: 0;
    margin: 0;
    text-align: center;
    color: var(--main-color);
}

.footer ul {
    margin-top: 0;
    padding: 0;
    font-size: 25px;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a {
    color: var(--bg-color);
    border-bottom: 3px solid transparent;
    transition: 0.6s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
    color: var(--main-color);
}

.footer ul li {
    display: inline-block;
    padding: 0 5px;
}

.footer .copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 25px;
    color: var(--bg-color);
}

.si {
    vertical-align: top;
}

/* /////////////////////////////////////////////// Home, Footer, and Header ///////////////////////////////////////////////////////////////// */

@media (max-width : 1300px) {
    .navbar a {
        font-size: 20px;
    }

    .footer ul {
        font-size: 20px;
    }

    .footer .copyright {
        font-size: 20px;
    }

    .home-content h3 {
        font-size: 35px;
        line-height: 35px;
    }

    .home-content h1 {
        font-size: 56px;
    }

    .moon {
        height: 300px;
        width: 300px;
    }

    .home-content p {
        font-size: 20px;
        line-height: 25px;
    }

    .btn {
        font-size: 20px;
    }
}

@media (max-width : 970px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 35%;
        height: 100vh;
        padding: 1rem 3%;
        background: rgba(30, 16, 5, 0.8);
        backdrop-filter: blur(20px);
        border-left: 2px solid var(--main-color);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--bg-color);
    }
}

@media (max-width : 950px) {
    .home {
        height: auto;
        flex-direction: column;
        align-items: center;
        margin-top: 7rem;
        margin-bottom: 7rem;
        gap: 8rem;
    }

    #second {
        display: none;
    }

    #first {
        display: block;
        padding-top: 0;
        text-align: center;
    }

    .home-div {
        width: 100%;
        justify-content: center;
    }

    .home-content {
        margin-left: 0;
        width: 100%;
    }

    .home-content p {
        width: 100%;
    }
}

@media screen and (max-width : 700px) {
    .home-content h3 {
        font-size: 29px;
        line-height: 30px;
    }

    .home-content h1 {
        font-size: 42px;
    }
}

@media screen and (max-width : 500px) {
    p {
        font-size: 12px;
    }

    html {
        font-size: 45%;
    }

    .home-content p,
    .navbar a,
    .footer p,
    .footer li {
        font-size: 12px;
    }

    .logo {
        font-size: 20px;
    }

    .moon {
        width: 200px;
        height: 200px;
    }

    .home {
        gap: 50px;
        justify-content: center;
    }

    .home-content p {
        font-size: 12px;
        line-height: 17px;
    }

    .home-content h3 {
        font-size: 17px;
        line-height: 25px;
        margin-bottom: 20px;
    }

    .home-content h1 {
        font-size: 29px;
    }

    .btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .footer .copyright {
        font-size: 12px;
    }
}

/* ////////////////////////////////////////////////// SERVICES ////////////////////////////////////////////////////////////// */

@media (max-width : 1300px) {
    .service-box h3 {
        font-size: 30px;
    }

    .service-box p {
        font-size: 20px;
        line-height: 25px;
    }

    .title {
        font-size: 56px;
    }
}

@media (max-width : 950px) {
    .services-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width : 500px) {
    .title {
        font-size: 30px;
    }

    .service-box h3 {
        font-size: 20px;
    }

    .service-box p {
        font-size: 12px;
        line-height: 17px;
    }

    .services {
        padding: 0 5rem;
    }
}

/* //////////////////////////////////////////////////// Projects and Achievements //////////////////////////////////////////////////////////// */

@media (max-width : 1500px) {
    .selectype p {
        font-size: 22px;
    }
}

@media (max-width : 1300px) {
    .details-img,
    .details-details {
        max-width: 800px;
    }

    .projects-details p,
    .achievements-details p {
        font-size: 20px;
        line-height: 25px;
    }

    .details-title {
        font-size: 35px;
    }

    .img-title {
        font-size: 25px;
    }

    .selectype {
        padding: 10px 5px;
    }

    .selectype p {
        font-size: 15px;
    }
}

@media (max-width : 970px) {
    .selectype-container {
        display: none;
    }

    .selectype-container {
        display: none;
    }

    .dropdown-container {
        display: block;
    }
}

@media (max-width : 950px) {
    .details {
        min-width: 80%;
    }

    .details-img,
    .details-details {
        max-width: 400px;
    }

    .projects-details,
    .achievements-details {
        gap: 15px;
    }

    .projects-details p,
    .achievements-details p {
        font-size: 17px;
        line-height: 20px;
    }

    .img-title {
        font-size: 20px;
    }

    .line {
        display: none;
    }

    .selectype {
        flex-direction: column;
        border: none;
    }

    .selectype p {
        font-size: 20px;
        border: 2px solid var(--main-color);
        min-width: 200px;
        width: 100%;
        padding: 15px;
    }
}

@media screen and (max-width : 700px) {
    .imgs-projects img {
        height: 250px;
    }

    .imgs-projects {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .img-title {
        font-size: 17px;
    }
}

@media screen and (max-width : 500px) {
    .details-img,
    .details-details {
        max-width: 220px;
    }

    .projects-details,
    .achievements-details {
        gap: 10px;
    }

    .projects-details p,
    .achievements-details p {
        font-size: 15px;
        line-height: 15px;
    }

    .details-title {
        font-size: 20px;
    }

    .img-title {
        font-size: 12px;
    }

    .selectype p {
        font-size: 17px;
    }

    .selectype {
        gap: 9px;
    }

    .imgs-projects img {
        height: 200px;
    }

    .achievements {
        padding: 0 5rem;
    }

    .selectype {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }

    .dropdown-header {
        font-size: 17px;
    }

    .dropdown-item {
        font-size: 15px;
    }
}

/* ////////////////////////////////////////////////////////////// About ////////////////////////////////////////////////// */

@media (max-width : 1300px) {
    .img-about {
        height: 500px;
    }

    .about-div p {
        font-size: 20px;
        line-height: 25px;
    }
}

@media (max-width : 950px) {
    .about {
        flex-direction: column;
        justify-content: center;
    }

    .img-about {
        min-width: 60%;
        height: 450px;
    }

    .about-div {
        width: 100%;
    }
}

@media (max-width : 700px) {
    .img-about {
        min-width: 90%;
        height: 500px;
    }
}

@media screen and (max-width : 500px) {
    .about-div p {
        font-size: 12px;
        line-height: 17px;
    }

    .img-about {
        width: 90%;
        height: 300px;
    }

    .about {
        padding: 0 5rem;
    }
}

/* /////////////////////////////////////////////// CONTACT ///////////////////////////////////////////////////////////////// */

@media screen and (max-width : 800px) {

    .contact-p,
    .contact-card {
        flex-direction: column;
    }

    .contact-p p {
        font-size: 50px;
        width: 500px;
    }
}

@media screen and (max-width : 500px) {
    .contact-p p {
        width: 300px;
        font-size: 35px;
    }

    .form {
        width: 250px;
    }

    .button {
        font-size: 12px;
    }
}

/* /////////////////////////////////////////////// skills, experience ///////////////////////////////////////////////////////////////// */

@media (max-width : 1500px) {
    .exper-container {
        grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    }

    .skills h4 {
        font-size: 28px;
    }

    .langu span {
        font-size: 16px;
    }

    .timeline-content p {
        font-size: 16px;
    }
}

@media (max-width : 1250px) {
    .exper-container {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    }

    .timeline-date {
        font-size: 20px;
    }

    .timeline-content h3 {
        font-size: 25px;
    }

    .timeline-content h6 {
        font-size: 20px;
    }

    .timeline-content p {
        font-size: 16px;
    }

    .tit-cer {
        font-size: 23px;
    }

    .tit-from {
        font-size: 20px;
    }
}

@media (max-width : 970px) {
    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }

    .timeline-item:nth-child(odd) .timeline-date {
        text-align: left;
    }

    .timeline-dot {
        left: 0;
    }

    .exper-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media screen and (max-width : 700px) {
    .experience h3 {
        font-size: 25px;
    }

    .skills h4 {
        font-size: 20px;
    }

    .exper-box h4 {
        font-size: 25px;
    }

    .tit-cer {
        font-size: 20px;
    }

    .tit-from,
    .button {
        font-size: 16px;
    }
}

@media screen and (max-width : 500px) {
    .timeline-content {
        padding: 20px;
    }

    .timeline-date {
        font-size: 15px;
    }

    .tit-cer {
        font-size: 15px;
    }

    .tit-from {
        font-size: 13px;
    }

    .exper-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .skills h4,
    .service-box h3 {
        font-size: 22px;
    }

    .timeline-content h3 {
        font-size: 17px;
    }

    .timeline-content h6 {
        font-size: 15px;
    }

    .timeline-content p {
        font-size: 12px;
    }

    .langu span {
        font-size: 10px;
    }

    .skills h4,
    .service-box h3 {
        font-size: 17px;
    }

    .experience {
        padding: 100px 5rem 0;
    }
}