/* Base styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-color: #000;
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background-color: #625e5e
}

body {
    font-family: "Sedgwick Ave Display", serif;
    width: 100%;
    height: auto;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transition: opacity 1s ease;
    width: 100%;
    height: 100%;
}

.main-content {
    display: none;
    padding: 20px;
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    display: block;
    opacity: 1;
}

svg path {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 0.1;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: textAnimation 4s ease-in-out forwards;
}

@keyframes textAnimation {
    0% {
        stroke-dashoffset: 60;
    }

    50% {
        fill: transparent;
    }

    100% {
        fill: #ffffff;
        stroke-dashoffset: 0;
    }
}

.content {
    width: 90%;
    max-width: 1000px;
}

.top-content,
.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.top-content p,
.bottom-content p {
    font-family: "Space Grotesk", sans-serif;
}

.middle-content {
    width: 100%;
    font-size: 40px;
    text-align: center;
    line-height: 80px;
}

.introduction {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px;
}

.fa-circle-half-stroke {
    font-size: 24px;
    font-weight: 200;
    color: #625e5e;
}

.new-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    gap: 40px;
    flex-wrap: nowrap;
}

.left-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.right-content {
    font-family: "Space Grotesk", sans-serif;
    max-width: 800px;
}

.right-content h2 {
    font-family: "Sedgwick Ave Display", serif;
    font-size: 30px;
    margin-bottom: 20px;
}

.right-content p {
    font-size: 18px;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

.main-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-gap: 20px;
    justify-content: center;
}

.card {
    position: relative;
    background-color: #0D0D0D;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
    object-fit: cover;
    filter: grayscale(100%);
}

.card h2 {
    background-color: #0D0D0D;
    font-size: 1.8em;
    margin: 0;
}

.card p {
    background-color: #0D0D0D;
    font-size: 1.2em;
    margin-top: 10px;
    font-family: "Space Grotesk", sans-serif;
}


.skills {
    grid-column: 1 / -1;
}

.skills img {
    width: 75%;
}


.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(89, 88, 88, 0.6), #0D0D0D);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 70px;
    text-align: justify;
    font-size: 1em;
    color: #fff;
    transition: height 0.5s;
}

.layer ul {
    background: none;
}

.layer ul li {
    background: none;
    font-family: "Space Grotesk", sans-serif;
}

.layer p {
    font-size: 1em;
    background: none;
}

.card:hover .layer {
    height: 100%;
    visibility: visible;
}

.projects {

    padding: 40px 20px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.projects h2 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    font-family: "Sedgwick Ave Display", serif;
}

.project-contents {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project summary {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    font-family: "Space Grotesk", sans-serif;
}

.project summary:hover {
    color: #434445;
}

.project hr {
    border: 0;
    height: 2px;
    margin: 10px 0;
    background: linear-gradient(to right, #585858, #060606);

}

.project p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    font-family: "Space Grotesk", sans-serif;
    padding-left: 10px;
}

.project a {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
}

.project a:hover {
    text-decoration: underline;
}

/* section {
    animation: CSSScrollReveals ease-in-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 50%;
} */

@keyframes CSSScrollReveals {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.counters {
    width: 100%;
    padding: 80px 70px;
    text-align: center;
    margin-top: 5em;
}

.counters>div {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
}

.counter {
    position: relative;
}

.counter h1 {
    font-size: 3em;
    font-family: "Space Grotesk", sans-serif;

    margin-bottom: 0.5em;
}

.counter h3 {
    font-family: "Space Grotesk", sans-serif;

}

.counter:not(:last-child)::before {
    content: '';
    background-color: #fff;
    position: absolute;
    width: 2px;
    height: 3em;
    top: 50%;
    transform: translateY(-50%);
    right: -1em;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.contact h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    font-family: "Sedgwick Ave Display", serif;
}

.contact h3 {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    display: inline-block;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    color: #000;
}

.social-icons a:hover {
    transform: scale(1.1);
    color: #000;
}

.social-icons i,
.social-icons svg {
    font-size: 2em;
    border-radius: 50%;

    padding: 10px;
    border: 2px solid #fff;
}

.copyright {
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    font-family: "Space Grotesk", sans-serif;
}

.copyright p {
    font-size: 14px;
    color: #fff;
}

/* Responsive styles */
@media (max-width: 1200px) {

    .top-content,
    .bottom-content {
        left: 50px;
        right: 50px;
    }

    .middle-content {
        font-size: 35px;
        line-height: 70px;
    }

    .introduction {
        padding: 50px;
    }

    .new-content {
        gap: 20px;
    }

    .left-content img {
        width: 60px;
        height: 60px;
    }

    .right-content h2 {
        font-size: 28px;
    }

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

    section {
        animation: none;
    }

}

@media (max-width: 992px) {
    .container {
        height: 50vh;
    }

    .top-content,
    .bottom-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        font-size: 16px;
    }

    .middle-content {
        font-size: 30px;
        line-height: 60px;
    }

    .introduction {
        padding: 30px;
    }

    .new-content {
        width: 80%;
        flex-direction: column;
        gap: 20px;
        position: relative;
    }

    .left-content img {
        width: 50px;
        height: 50px;
    }

    .right-content h2 {
        position: absolute;
        top: 1px;
        left: 55px;
        font-size: 24px;
    }

    .right-content p {
        font-size: 14px;
    }

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

    .features {
        grid-template-columns: 1fr;
    }

    .card h2 {
        font-size: 24px;
    }

    .card p {
        font-size: 12px;
    }

    .layer {
        padding: 0 40px;
    }

    .layer ul {
        font-size: 0.7em;
    }

    .projects {
        padding: 20px 10px;
    }

    .projects h2 {
        font-size: 1.8rem;
    }

    .project summary {
        font-size: 1.3rem;
    }

    .counters>div {
        grid-template-columns: 1fr 1fr;
    }

    .counter:nth-child(2)::before {
        display: none;
    }

    .contact {
        padding: 30px 10px;
    }

    .contact h1 {
        font-size: 2em;
    }

    .contact h3 {
        font-size: 1em;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
    }

    .social-icons i {
        font-size: 1.2em;
    }

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

    section {
        animation: none;
    }
}

@media (max-width: 768px) {

    .top-content,
    .bottom-content {
        font-size: 14px;
    }

    .middle-content {
        font-size: 25px;
        line-height: 50px;
    }

    .introduction {
        padding: 20px;
    }

    .new-content {
        flex-direction: column;
    }

    .left-content img {
        width: 40px;
        height: 40px;
    }

    .right-content h2 {
        font-size: 20px;
    }

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

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

    section {
        animation: none;
    }
}

@media (max-width: 576px) {
    .middle-content {
        font-size: 20px;
        line-height: 40px;
    }

    .introduction {
        padding: 10px;
    }

    .left-content img {
        width: 30px;
        height: 30px;
    }

    .right-content h2 {
        font-size: 18px;
    }

    .right-content p {
        font-size: 10px;
    }

    .counters>div {
        grid-template-columns: 1fr;
        row-gap: 5em;
    }

    .counter:not(:last-child)::before {
        width: 90%;
        height: 2px;
        top: initial;
        right: initial;
        bottom: -3em;
        left: 50%;
        transform: translateX(-50%);
    }

    .copyright p {
        font-size: 10px;
    }

    section {
        animation: none;
    }
}