:root {
    --bg: #FFF0D4;
    --text: #181818;
    --color-text-description: #575757;
    --navbar-footer-dg: rgba(255, 255, 255, 0.6);
    --card-hero-dg: rgba(255, 226, 172, 0.5);
    --radius: 18px;
    --buttons-radius: 8px;
    --h1: 2.7rem;
    --h2: 1.5rem;
    --color-border-muted: #E8D39B;
    --color-text-link: #181818;
    --font-family: "Inter", sans-serif;
    --font-family-heading: "DM Sans", sans-serif;
}

body {
    margin: 0;
    width: 100%;
    font-family: var(--font-family-heading);
    background: var(--bg);
    line-height: 1.6;
    letter-spacing: .01em;
}

.nav-bar-logo {
    align-items: center;
}

.navbar {
    width: 100%;
    height: 60px;
    position: fixed;
    align-items: center;
    background-color: var(--navbar-footer-dg);
    backdrop-filter: blur(15px);
    top: 0;
}

.nav-bar-logo {
    height: 40px;
    min-height: 40px;
    min-width: 40px;
    width: 40px;
}

.navbar__inner {
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: space-between;
}

.nav-name {
    font-size: 40px;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: absolute;
    left: 44%;
}

.nav-menu {
    font-size: 20px;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 850px;
    padding: 100px 60px 2rem;
}

.hero-card {
    display: flex;
    flex-direction: row;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: 4rem;
    background-color: var(--card-hero-dg);
    border: 2px solid var(--color-border-muted);
    border-radius: 24px;
    padding: 32px;
}

.hero-card span {
    font-weight: bold;
    text-decoration: overline;
}

.hero-card del {
    text-transform: uppercase;
}

.hero-card p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    letter-spacing: 0.7px;
}

h1, h2, h3 {
    color: var(--text);
    font-family: var(--font-family-heading);
}

h1 {
    font-size: var(--h1);
    letter-spacing: .03rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 0;
}

h2 {
    font-size: var(--h2);
}

a {
    color: var(--color-text-link);
    text-decoration: none;
}

.hero-card h1 {
    margin-bottom: 1rem;
    margin-top: 0;
}

.img-example__warper {
    display: flex;
    flex-direction: row;
    gap: 5px
}

.img-example {
    float: right;
    margin-left: 15px;
    max-width: 100px;
}

.section {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.heading h2 {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: .5rem;
    margin-top: 0;
}

.navbar__theme-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text);
    display: flex;
    height: 40px;
    width: 40px;
    justify-content: center;
    padding: .5rem;
}

.nav-menu-theme__icon {
    cursor: pointer;
}

.see-all__botton {
    color: var(--color-text-description);
    font-size: .9rem;
    margin-top: .25rem;
    font-weight: 400;
    text-decoration: none;
}

.see-all__botton:hover {
    text-decoration: underline;
}

.heading .description {
    color: var(--color-text-description);
    font-size: 1.1rem;
}

.post {
    display: flex;
    flex-direction: column;
    padding: .75rem 0;
    text-decoration: none;
}

a.post {
    border-bottom: 1px solid var(--color-border-muted);
    display: flex;
    flex-direction: column;
    padding: .75rem 0;
}

a.post:hover {
    .post__description {
        color: var(--text);
    }

    .post__name {
        text-decoration: underline;
    }

    background: rgba(255, 226, 172, 0.5);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.post__name {
    align-items: center;
    display: flex;
    font-weight: 600;
    gap: .5rem;
    margin: 0;
    order: 2;
}

.post__description {
    color: var(--color-text-description);
    display: block;
    font-size: .8rem;
    text-decoration: none;
    width: 150px;
}

.projects-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-card {
    flex: 0 0 calc(50% - 10px);
    box-sizing: border-box;
    background: var(--card-hero-dg);
    border: 2px solid var(--color-border-muted);
    border-radius: var(--radius);
    padding: 0.7rem;
}

.project-card__name time {
    margin: 2px auto 2px;
}

.project-card__name .h3 {
    display: flex;
    margin: 2px auto 2px;
    text-decoration: none;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-card__tags .project-card__tags__tag {
    background: transparent;
    border: 1px solid black;
    border-radius: var(--buttons-radius);
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
}

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

.footer {
    font-size: 14px;
    padding: 1.5rem 0;
    height: 150px;
    background-color: var(--navbar-footer-dg);
    backdrop-filter: blur(15px);
}

.footer-section {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    max-width: 850px;
    gap: .75rem;
    padding: 0 60px 2rem;
}

.footer-button {
    padding: .5rem .75rem;
    align-items: center;
    width: auto;
    max-width: 80px;
    display: inline-flex;
    border: 1px solid black;
    border-radius: var(--buttons-radius);
    box-shadow: rgba(0, 5, 10, .30) 0 3px 8px;
}

.footer-button:hover {
    background-color: rgba(255, 226, 172, 0.5);
}

.footer-button img {
    margin-right: .25rem;
    max-height: 20px;
    min-height: 20px;
    min-width: 20px;
}


.about-page__headings {
    border-bottom: 1px solid var(--color-border-muted);
    padding-bottom: .25rem;
    margin-top: 3rem;
    font-size: var(--h2);
    font-weight: 600;
}

.navbar__menu-button {
    display: none;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    height: 40px;
    width: 40px;
    justify-content: center;
    padding: .5rem;
}

.navbar__menu-button_active {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    height: 40px;
    width: 40px;
    justify-content: center;
    padding: .5rem;
}


.nav-menu__active-menu {
    position: absolute;
    top: 65px;
    right: 5px;
    display: none;
    min-width: 200px;
    background: white;
    border: 2px solid var(--color-border-muted);
    border-radius: 8px;
    padding: 0 0;
}

.navbar__menu-button_active {
    display: none;
}

.nav-menu__active-menu.show {
    display: block;
}

.nav-menu__active-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
}

.nav-menu__active-menu a.active {
    background: pink;
}

.nav-menu__active-menu a:hover {
    background: rgba(255, 226, 172, 0.5);
}

@media screen and (max-width: 830px) {
    .img-example__warper {
        display: none;
    }
}


@media screen and (max-width: 950px) {
    .navbar__menu-button {
        display: flex;
    }

    .nav-menu__blog {
        display: none;
    }

    .nav-menu__project {
        display: none;
    }

    .nav-menu__about {
        display: none;
    }
}

@media screen and (min-width: 950px) {
    .navbar__menu-button {
        display: none;
    }

    .navbar__menu-button_active {
        display: none;
    }
}

@media screen and (max-width: 1000px) {
    .project-card {
        flex: 0 0 calc(100% - 20px);
    }
}


@media screen and (max-width: 375px) {
    .nav-menu__blog, .nav-menu__project {
        display: none;
    }
}

.blog-page__year {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;

}

.blog-page__year__name {
    border: 0;
    margin-bottom: 0;
    padding-bottom: .5rem;
    gap: .75rem;
    display: flex;
}

.blog-page__year__count {
    align-items: center;
    color: var(--color-text-description);
    display: flex;
    font-size: .9rem;
    justify-content: center;
    padding: 3px;
}

.blog-page__posts:last-child {
    border-bottom: none;
}

.blog-page__posts {
    border-bottom: 1px solid var(--color-border-muted);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: .25rem 0;
    text-decoration: none;
}

.blog-page__posts:hover {
    background: rgba(255, 226, 172, 0.5);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;

    div {
        text-decoration-line: underline;
    }

    time {
        color: var(--text);
    }
}


.blog-page__posts time {
    color: var(--color-text-description);
    align-items: center;
    display: flex;
    font-size: .9rem;
    text-decoration: none;
}

.hero__see-all__button {
    text-decoration: underline;
}

.hero__see-all__button:hover {
    background-color: rgba(255, 226, 172, 0.5);
}

.todo-form {
    background-color: var(--card-hero-dg);
    border: 2px solid var(--color-border-muted);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-family-heading);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border-muted);
    border-radius: var(--buttons-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: var(--bg);
    color: var(--text);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(24, 24, 24, 0.1);
}

.form-input:invalid {
    border-color: #e74c3c;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

.todo-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--text);
    border-radius: var(--buttons-radius);
    font-family: var(--font-family-heading);
    font-weight: 600;
    font-size: 1rem;
    background-color: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.todo-button:hover {
    background-color: var(--card-hero-dg);
    box-shadow: rgba(0, 5, 10, .30) 0 3px 8px;
}

.todo-button--primary {
    background-color: var(--text);
    color: var(--bg);
}

.todo-button--primary:hover {
    background-color: var(--color-text-description);
}

.todo-button--small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.todo-button--danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.todo-button--danger:hover {
    background-color: #e74c3c;
    color: white;
}

.todo-button--edit {
    border-color: #3498db;
    color: #3498db;
}

.todo-button--edit:hover {
    background-color: #3498db;
    color: white;
}

.task-counter {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text-description);
}

.todo-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border-muted);
    border-radius: var(--buttons-radius);
    background-color: transparent;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.filter-button:hover, .filter-button--active {
    background-color: var(--card-hero-dg);
    border-color: var(--text);
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--card-hero-dg);
    border: 2px solid var(--color-border-muted);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.todo-item:hover {
    border-color: var(--text);
    box-shadow: rgba(0, 5, 10, .15) 0 3px 12px;
}

.todo-item--completed {
    opacity: 0.7;
}

.todo-item--completed .todo-item__title, .todo-item--completed .todo-item__description {
    text-decoration: line-through;
    color: var(--color-text-description);
}

.todo-item__checkbox-wrapper {
    position: relative;
    margin-top: 0.25rem;
}

.todo-item__checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.todo-item__content {
    flex: 1;
}

.todo-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.todo-item__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-family-heading);
}

.todo-item__priority {
    padding: 0.25rem 0.5rem;
    border-radius: var(--buttons-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.todo-item__priority--high {
    background-color: #e74c3c;
    color: white;
}

.todo-item__priority--medium {
    background-color: #f39c12;
    color: white;
}

.todo-item__priority--low {
    background-color: #27ae60;
    color: white;
}

.todo-item__description {
    margin: 0 0 1rem 0;
    color: var(--color-text-description);
    line-height: 1.5;
}

.todo-item__meta {
    font-size: 0.85rem;
    color: var(--color-text-description);
}

.todo-item__actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.todo-list--empty {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-description);
    font-style: italic;
}

@media (max-width: 768px) {
    .todo-item {
        flex-direction: column;
        align-items: stretch;
    }

    .todo-item__header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .todo-item__actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .todo-filters {
        justify-content: center;
    }
}

.main-projects-swiper {
    width: 100%;
    height: auto;
    padding: 20px 0 60px 0;
    position: relative;
}


.main-projects-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.main-projects-swiper .project-card {
    width: 100%;
    max-width: 100%;
    flex: none;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-projects-swiper .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(24, 24, 24, 0.15);
}

.main-projects-next,
.main-projects-prev {
    color: var(--text) ;
    background-color: var(--card-hero-dg) ;
    border: 2px solid var(--color-border-muted) ;
    border-radius: var(--buttons-radius) ;
    width: 44px ;
    height: 44px ;
    margin-top: -22px ;
    transition: all 0.3s ease ;
}

.main-projects-next:after,
.main-projects-prev:after {
    font-size: 18px ;
    font-weight: bold ;
    color: var(--text) ;
}

.main-projects-next:hover,
.main-projects-prev:hover {
    background-color: var(--bg) ;
    border-color: var(--text) ;
    transform: scale(1.1);
}

.main-projects-next {
    right: 10px ;
}

.main-projects-prev {
    left: 10px ;
}

.main-projects-pagination {
    bottom: 10px ;
    position: absolute ;
    text-align: center;
}

.main-projects-pagination .swiper-pagination-bullet {
    background-color: var(--color-border-muted) ;
    border: 1px solid var(--text) ;
    opacity: 0.7 ;
    width: 12px ;
    height: 12px ;
    margin: 0 6px ;
    transition: all 0.3s ease ;
}

.main-projects-pagination .swiper-pagination-bullet-active {
    background-color: var(--text) ;
    opacity: 1 ;
    transform: scale(1.2);
}

.main-projects-pagination .swiper-pagination-bullet:hover {
    transform: scale(1.1);
    opacity: 1 ;
}

@media (max-width: 640px) {
    .main-projects-swiper {
        padding: 15px 0 50px 0;
    }

    .main-projects-next,
    .main-projects-prev {
        display: none ;
    }

    .main-projects-pagination .swiper-pagination-bullet {
        width: 14px ;
        height: 14px ;
        margin: 0 8px ;
    }
}

@media (min-width: 1024px) {
    .main-projects-next {
        right: -15px ;
    }
    
    .main-projects-prev {
        left: -15px ;
    }
    .main-projects-swiper:not(:hover) .main-projects-next,
    .main-projects-swiper:not(:hover) .main-projects-prev {
        opacity: 0.3;
    }
    
    .main-projects-swiper:hover .main-projects-next,
    .main-projects-swiper:hover .main-projects-prev {
        opacity: 1;
    }
}

.main-projects-swiper .swiper-slide {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-projects-swiper .swiper-slide-active,
.main-projects-swiper .swiper-slide-prev,
.main-projects-swiper .swiper-slide-next {
    opacity: 1;
    transform: translateX(0);
}

.main-projects-swiper .project-card__description {
    margin-bottom: 1rem;
}

.main-projects-swiper .project-card__tags {
    margin-top: auto;
}
