/*start global styles*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #121020;
    color: #ffffff;
    overflow-x: hidden;
}
body.light-mode {
    background-color: #f5f5f5;
    color: #121020;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/*end global styles*/


/*start header section*/

header {
    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;

}

nav {
    width: 100%;
    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 60px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul a {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

nav ul a:hover {
    color: #e61c3e;
}

.btn-nav {
    padding: 12px 24px;

    border: none;
    border-radius: 6px;

    background-color: #e61c3e;
    color: #ffffff;

    font-size: 0.875rem;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: #c81432;
}
.btn-mod {
    padding: 12px 24px;

    border: none;
    border-radius: 6px;

    background-color: #29233f;
    color: #ffffff;

    font-size: 0.875rem;
    font-weight: 600;
}

/*end header section*/


/*start hero section*/

.hero {
    width: 100%;
    min-height: 430px;

    padding: 40px 6% 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    position: relative;
}

.hero-text {
    width: 50%;
    max-width: 480px;
}

.hero-text > span {
    display: inline-block;

    margin-bottom: 20px;
    padding: 8px 16px;

    border-radius: 4px;

    background-color: #3b1120;
    color: #e61c3e;

    font-size: 0.8rem;
    font-weight: 600;
}

.hero-text h1 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 2.9rem;
    font-weight: 700;
}

.subtitle {
    margin-bottom: 25px;

    color: #d1d5db;
    font-size: 1rem;
}

.desc {
    color: #a0a5b5;

    font-size: 0.875rem;
    line-height: 1.8;
}

.hero-img {
    width: 30%;

    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-img::before {
    content: "";

    width: 420px;
    height: 420px;

    position: absolute;
    left: 50%;
    bottom: 10px;

    transform: translateX(-50%);

    border-radius: 50%;

    background-color: #e61c3e;
}

.hero-img img {
    width: 100%;

    position: relative;
    z-index: 1;
}

/*end hero section*/


/*start social links*/

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 15px;
}

.social-links span {
    margin-bottom: 50px;

    position: relative;

    color: #e61c3e;

    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;

    writing-mode: vertical-rl;
}

.social-links span::after {
    content: "";

    width: 1px;
    height: 40px;

    position: absolute;

    bottom: -50px;
    right: 50%;

    background-color: #e61c3e;
}

.social-links a img {
    width: 16px;
}

/*end social links*/


/*start stats section*/

.stats-cards {
    width: 100%;

    padding: 60px 6%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    background-color: #29233f;
}

.stat-box {
    width: 170px;
    height: 160px;

    padding-top: 15px;

    border: 2px dashed #3a2232;
    border-radius: 8px 30px 8px 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;
}

.stat-box:hover {
    border-color: #e61c3e;
    box-shadow: 0 0 15px rgba(230, 28, 62, 0.15);
}

.stat-box img {
    width: 40px;
    height: 40px;

    padding: 10px;

    position: absolute;
    top: -20px;

    border-radius: 4px;

    background-color: #e61c3e;

    object-fit: contain;
}

.stat-box strong {
    margin-bottom: 5px;

    color: #ffffff;

    font-size: 2rem;
    font-weight: 700;
}

.stat-box h3 {
    color: #d1d5db;

    font-size: 0.875rem;
    font-weight: 400;
}

/*end stats section*/


/*start portfolio section*/

.portfolio {
    width: 100%;

    padding: 80px 10%;

    background-color: #121020;

    position: relative;
}

.portfolio h2 {
    margin-bottom: 10px;

    font-family: Georgia, serif;
    font-size: 2.6rem;
}

.portfolio > p {
    max-width: 420px;

    margin-bottom: 40px;

    color: #a0a5b5;

    font-size: 0.875rem;
    line-height: 1.6;
}

.portfolio-filters {
    position: absolute;
    top: 80px;
    right: 10%;

    padding: 6px;

    display: flex;
    gap: 10px;

    border-radius: 6px;

    background-color: #19162a;
}

.portfolio-filters button {
    padding: 10px 20px;

    border: none;
    border-radius: 4px;

    background-color: transparent;
    color: #a0a5b5;

    font-size: 0.8rem;
}

.portfolio-filters button:hover {
    background-color: #e61c3e;
    color: #ffffff;
}

.portfolio-grid {
    margin: 50px 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.portfolio-card {
    height: 320px;

    overflow: hidden;

    border-radius: 8px;
}

.portfolio-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.application-card {
    padding: 35px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background-color: #e61c3e;
}

.application-card h3 {
    margin-bottom: 5px;

    color: #ffffff;
    font-size: 1.4rem;
}

.application-card span {
    margin-bottom: 20px;

    color: #fcdab7;
    font-size: 0.8rem;
}

.application-card p {
    margin-bottom: 25px;

    color: #ffffff;

    font-size: 0.8rem;
    line-height: 1.7;
}

.application-card button {
    width: fit-content;

    padding: 10px 18px;

    border: none;
    border-radius: 4px;

    background-color: #ffffff;
    color: #121020;

    font-size: 0.75rem;
    font-weight: 600;
}

.view-all {
    display: block;

    margin: auto;

    padding: 12px 35px;

    border: none;
    border-radius: 6px;

    background-color: #e61c3e;
    color: #ffffff;

    font-size: 0.875rem;
    font-weight: 600;
}

/*end portfolio section*/


/*start experience section*/

.experience {
    width: 100%;

    padding: 80px 8%;

    background-color: #29233f;
    color: #ffffff;

    text-align: center;
}

.experience h2 {
    margin-bottom: 15px;

    font-size: 2.6rem;
}

.experience > p {
    max-width: 650px;

    margin: 0 auto 100px;

    color: #a0a5b5;

    font-size: 0.875rem;
    line-height: 1.6;
}

.timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.timeline-item {
    flex: 1;

    height: 330px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.timeline-item > div {
    width: 160px;
    min-height: 120px;

    position: relative;
}

.timeline-item > div::before {
    content: "";

    width: 3px;
    height: 100px;

    position: absolute;
    left: -3px;

    background-color: #e61c3e;
}

.timeline-item h3 {
    margin-bottom: 8px;

    color: #ffffff;

    font-size: 1.125rem;
}

.timeline-item p {
    max-width: 180px;

    color: #a0a5b5;

    font-size: 0.75rem;
    line-height: 1.6;
}

.timeline-item span {
    width: 160px;

    margin-top: 25px;
    padding: 8px 0;

    position: relative;

    background-color: #e61c3e;
    color: #ffffff;

    font-size: 1.125rem;
    font-weight: 700;
}

.timeline-item span::before {
    content: "";

    width: 100px;
    height: 2px;

    position: absolute;

    right: -100px;
    top: 50%;

    background-color: #e61c3e;
}

.timeline-item-end span::before {
    display: none;
}

.timeline-item:nth-child(even) {
    flex-direction: column-reverse;
    padding-top: 140px;
}

.timeline-item:nth-child(even) span {
    margin-top: 0;
    margin-bottom: 25px;
}

/*end experience section*/


/*start contact section*/

.contact {
    width: 100%;

    padding: 80px 10%;

    display: flex;
    justify-content: space-between;

    gap: 60px;

    background-color: #121020;
}

.contact-info,
.contact-form {
    width: 50%;
}

.contact-info {
    max-width: 400px;
}

.contact h2 {
    margin-bottom: 20px;

    font-family: Georgia, serif;
    font-size: 2.4rem;
}

.contact-info > p {
    margin-bottom: 40px;

    color: #a0a5b5;

    font-size: 0.875rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;

    gap: 25px;
}

.detail {
    display: flex;
    align-items: center;

    gap: 20px;
}

.detail > img {
    width: 45px;
    height: 45px;

    padding: 12px;

    border-radius: 50%;

    background-color: #e61c3e;
}

.detail div {
    display: flex;
    flex-direction: column;
}

.detail span {
    margin-bottom: 4px;

    color: #a0a5b5;
    font-size: 0.75rem;
}

.detail strong {
    color: #ffffff;
    font-size: 0.9375rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 16px 20px;

    border: 1px solid #2a253c;
    border-radius: 4px;
    outline: none;

    background-color: #121020;
    color: #ffffff;

    font-size: 0.875rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e61c3e;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #717585;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: fit-content;

    padding: 14px 40px;

    border: none;
    border-radius: 4px;

    background-color: #e61c3e;
    color: #ffffff;

    font-size: 0.875rem;
    font-weight: 600;
}

.contact-form button:hover {
    background-color: #c81432;
}

/*end contact section*/


/*start cta section*/

.cta {
    width: 100%;

    padding: 100px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;

    background-color: #29233f;

    text-align: center;
}

.cta::before {
    content: "";

    width: 280px;
    height: 280px;

    position: absolute;

    border: 1px dashed #ffffff40;
    border-radius: 50%;
}

.cta h2 {
    margin-bottom: 10px;

    position: relative;
    z-index: 1;

    font-family: Georgia, serif;
    font-size: 2.25rem;
}

.cta > a {
    margin-bottom: 25px;

    position: relative;
    z-index: 1;

    color: #a0a5b5;

    font-size: 0.9375rem;
}

.cta > a:hover {
    color: #e61c3e;
}

.cta-social {
    display: flex;

    gap: 15px;

    position: relative;
    z-index: 1;
}

.cta-social a {
    width: 36px;
    height: 36px;

    overflow: hidden;

    border-radius: 50%;
}

.cta-social img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/*end cta section*/


/*start footer section*/

footer {
    width: 100%;

    padding: 25px 20px;

    background-color: #29233f;

    text-align: center;

    border-top: 1px solid #93918f;
}

footer p {
    color: #a0a5b5;

    font-size: 0.8125rem;
    letter-spacing: 0.5px;
}

/*end footer section*/


/*start tablet responsive*/

@media (max-width: 768px) {

    /*start header*/

    header {
        height: 75px;
    }

    nav {
        padding: 0 5%;
    }

    .logo img {
        width: 50px;
    }

    nav ul {
        gap: 15px;
    }

    nav ul a {
        font-size: 0.8rem;
    }

    .btn-nav {
        padding: 9px 15px;
    }

    /*end header*/


    /*start hero*/

    .hero {
        padding: 50px 6%;

        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        width: 100%;
        max-width: 600px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-img {
        width: 70%;
    }

    .hero-img::before {
        width: 350px;
        height: 350px;
    }

    .social-links {
        display: none;
    }

    /*end hero*/


    /*start stats*/

    .stats-cards {
        flex-wrap: wrap;

        padding: 50px 5%;
    }

    /*end stats*/


    /*start portfolio*/

    .portfolio {
        padding: 60px 6%;
    }

    .portfolio-filters {
        position: static;

        width: fit-content;

        margin-bottom: 30px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /*end portfolio*/


    /*start experience*/

    .experience {
        padding: 60px 5%;
    }

    .experience > p {
        margin-bottom: 60px;
    }

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        width: 100%;
        height: auto;

        padding: 20px 0;
    }

    .timeline-item:nth-child(even) {
        padding-top: 20px;

        flex-direction: column;
    }

    .timeline-item:nth-child(even) span {
        margin-top: 25px;
        margin-bottom: 0;
    }

    .timeline-item span::before {
        display: none;
    }

    .timeline-item > div::before {
        display: none;
    }

    /*end experience*/


    /*start contact*/

    .contact {
        padding: 60px 6%;

        flex-direction: column;

        gap: 50px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    /*end contact*/

}

/*end tablet responsive*/


/*start mobile responsive*/

@media (max-width: 576px) {

    /*start header*/

    header {
        height: 70px;
    }

    nav {
        padding: 0 5%;
    }

    .logo img {
        width: 42px;
    }

    nav ul {
        gap: 8px;
    }

    nav ul a {
        font-size: 0.7rem;
    }

    .btn-nav {
        padding: 7px 10px;

        font-size: 0.7rem;
    }

    /*end header*/


    /*start hero*/

    .hero {
        min-height: auto;

        padding: 45px 5%;

        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text > span {
        font-size: 0.7rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .desc {
        font-size: 0.8rem;
    }

    .hero-img {
        width: 100%;
    }

    .hero-img::before {
        width: 280px;
        height: 280px;
    }

    /*end hero*/


    /*start stats*/

    .stats-cards {
        padding: 45px 5%;

        gap: 35px 15px;
    }

    .stat-box {
        width: 140px;
        height: 140px;
    }

    .stat-box strong {
        font-size: 1.7rem;
    }

    /*end stats*/


    /*start portfolio*/

    .portfolio {
        padding: 50px 5%;
    }

    .portfolio h2 {
        font-size: 2rem;
    }

    .portfolio > p {
        font-size: 0.8rem;
    }

    .portfolio-filters {
        width: 100%;

        display: flex;
        justify-content: center;

        gap: 5px;
    }

    .portfolio-filters button {
        padding: 8px 12px;

        font-size: 0.7rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;

        gap: 20px;

        margin: 35px 0;
    }

    .portfolio-card {
        height: 280px;
    }

    /*end portfolio*/


    /*start experience*/

    .experience {
        padding: 50px 5%;
    }

    .experience h2 {
        font-size: 2rem;
    }

    .experience > p {
        margin-bottom: 40px;

        font-size: 0.8rem;
    }

    .timeline-item {
        min-height: 180px;
    }

    .timeline-item h3 {
        font-size: 1rem;
    }

    /*end experience*/


    /*start contact*/

    .contact {
        padding: 50px 5%;

        gap: 40px;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-info > p {
        font-size: 0.8rem;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px 15px;

        font-size: 0.8rem;
    }

    .contact-form button {
        padding: 12px 30px;
    }

    /*end contact*/


    /*start cta*/

    .cta {
        padding: 80px 20px;
    }

    .cta::before {
        width: 220px;
        height: 220px;
    }

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

    .cta > a {
        font-size: 0.8rem;
    }

    /*end cta*/


    /*start footer*/

    footer {
        padding: 20px 15px;
    }

    footer p {
        font-size: 0.75rem;
    }

    /*end footer*/

}

/*end mobile responsive*/


/*start very small mobile*/

@media (max-width: 380px) {

    /*start header*/

    nav {
        padding: 0 4%;
    }

    .logo img {
        width: 35px;
    }

    nav ul {
        gap: 5px;
    }

    nav ul a {
        font-size: 0.65rem;
    }

    .btn-nav {
        padding: 6px 8px;
        font-size: 0.65rem;
    }

    /*end header*/


    /*start hero*/

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-img::before {
        width: 240px;
        height: 240px;
    }

    /*end hero*/


    /*start stats*/

    .stat-box {
        width: 125px;
        height: 130px;
    }

    .stat-box strong {
        font-size: 1.5rem;
    }

    /*end stats*/


    /*start portfolio*/

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

    .portfolio-filters button {
        padding: 7px 8px;
    }

    /*end portfolio*/


    /*start contact*/

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

    /*end contact*/

}

/*end very small mobile*/
