:root {
    --primery-color: #000000;
    --secondary-color: #e3e4e0;
    --third-color: #e0fd2c;
    --border-radius: 20px;
    --secondary-color-transparent: #f1f1f1e8;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    background: #f6f6f2;
}

body {
    position: relative;
    min-height: 100vh;
    letter-spacing: -0.01em;
    padding-bottom: 80px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: 120px;

    position: sticky;
    top: 0;
    width: 100%;
    padding: 10px 20px;
    background: rgba(224, 253, 44, 0.97);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
    z-index: 1001;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

main {
    width: 100%;
    flex: 1;
    padding-bottom: 90px;
}

footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    padding: 0 20px;
}

footer a {
    position: relative;
    font-size: 15px;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
    opacity: 0.72;
    color: var(--primery-color);
    transform: translateY(-1px);
}

.color-beam {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 60px;
    background-color: var(--third-color);
    height: 10px;
    width: 100%;
    z-index: 1001;
}

h1 {
    font-weight: 700;
    font-size: 60px;
    text-align: center;
    letter-spacing: -0.05em;
    animation: fadeInDown 1.5s ease-out forwards;
}

h2 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: unset;
}

h3 {
    font-weight: 700;
    font-size: 17px;
}

h4 {
    font-weight: 700;
    font-size: 14px;
}

p {
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
}

a {
    font-weight: 400;
    font-size: 17px;
    color: var(--primery-color);
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
    opacity: 0.82;
}

ul,
li {
    font-weight: 400;
    font-size: 17px;
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
}



.logo {
    flex: 0 0 auto;
    align-items: center;
    cursor: pointer;

}

.logo img {
    height: 100px;
    width: auto;
    margin-right: 10px;

}

.header h2,
.header a {
    align-items: baseline;
    margin-left: 0;
    margin-bottom: unset;

    font-weight: 700;
    font-size: 30px;
    text-decoration: none;
    color: var(--third-color);
}

.header a:hover {
    color: var(--third-color);
}

nav {
    position: fixed;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: var(--primery-color);
    transition: transform 0.6s ease-in-out;

    transform: translateY(-100%);
}

#menu:target {
    transform: translateY(0);
}

#menu img {
    width: 220px;
    display: block;
}

nav a {
    font-size: 30px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

nav a:hover {
    font-weight: 400;
    color: var(--third-color);
    opacity: 0.9;
    transform: translateY(-1px);
}

.burger-icon {
    font-size: 40px;
    line-height: 1;
    text-decoration: none;
    color: var(--primery-color);
}

.close-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    display: block;
    color: var(--secondary-color);
    font-size: 40px;
    text-decoration: none;
    z-index: 1100;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    background-color: var(--third-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    --bs-dropdown-border-color: unset;
    padding: 5px 0;
    min-width: 120px;
    z-index: 1200;
}

.dropdown-menu a {
    display: block;
    padding: 5px 13px;
    color: var(--primery-color);
    font-size: 15px;
    line-height: normal;
    margin: 5px;
    text-transform: none;
}

.dropdown-menu a:hover {
    background-color: var(--third-color);
    color: var(--primery-color);
}

.dropdown-menu a:hover {
    background-color: var(--third-color);
    color: var(--primery-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}


.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    padding: 32px 20px 120px;
}

.box-headline,
.box-text,
.box-about-me,
.box-extra,
.box-skills,
.box-clients {
    width: 100%;
}

.box-headline {
    margin-bottom: 18px;
}

.box-headline h1 {
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0;
}

.box-text {
    max-width: 1100px;
    margin: 0 auto;
}

.box-text p,
.about-me-copy p {
    margin: 0 0 1.2rem;
}

.box-about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.about-me-copy {
    width: 100%;
}

.box {
    margin-top: 28px;
    width: 100%;
}

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

.image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.box-background {
    background-color: var(--secondary-color);
    width: 100vw;
    padding: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    text-align: center;
}

.box-background .formalities,
.box-background > * {
    padding: 40px 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.formalities {
    width: 100%;
    text-align: center;
}

.formalities p,
.formalities h2,
.formalities h3,
.formalities h4 {
    margin-bottom: 1rem;
}

.box-skills {
    background-color: var(--third-color);
    color: var(--primery-color);
    min-height: 70px;
    border-radius: 35px;
    padding: 24px 30px;
    margin-top: 34px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.box-skills h3 {
    margin-bottom: 0.8rem;
}

.box-extra {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    text-align: center;
}

.box-extra > div {
    width: 100%;
    text-align: center;
}

.button-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 36px;
    background-color: var(--primery-color);
    color: var(--secondary-color);
    border-radius: 45px;
    text-decoration: none;
    margin-top: 30px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.button-cta:hover {
    background-color: var(--third-color);
    font-weight: 700;
    color: var(--primery-color);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

main .container > div:last-child {
    margin-top: 30px;
    text-align: center;
}

main .container > div:last-child .button-cta {
    margin: 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(224, 253, 44, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 8px;
}

.overlay i {
    font-size: 1.5em;
    color: var(--primery-color);
}

.overlay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay p {
    color: var(--primery-color);
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    text-align: center;
    padding: 0 20px;
}

.overlay h2 {
    color: var(--primery-color);
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    text-align: center;
    padding: 0 20px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
}

.card {
   width: 250px;
   height: 250px;
   border-radius: 50%;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   text-align: center;
   padding: 10px;
   background: linear-gradient(180deg, rgba(224, 253, 44, 0.96), rgba(224, 253, 44, 0.86));
   --bs-card-border-color: unset;
   transition: transform 0.2s ease-in, box-shadow 0.2s ease;
   box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.card .projekt {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 12px;
   width: 100%;
   height: 100%;
}

.card h3 {
   font-size: 20px;
   font-weight: 700;
   line-height: 1.2;
}

.card:hover {
   transform: translateY(-7px);
   box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
}

.my-form {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

.my-form label {
    display: block;
    padding: 20px 0 5px 0;
    font-weight: 700;
}

.my-form input,
.my-form textarea {
    width: 100%;
    padding: 13px;
    border: 2px solid #D1D5DB;
    border-radius: 35px;
    outline: none;
}

.btns-row {
    margin: 40px;
    text-align: center;
}

.my-form button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 35px;
    border-color: transparent;
    background-color: var(--primery-color);
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

.my-form button:hover {
    background-color: var(--third-color);
    color: var(--primery-color);
    font-weight: 700;
}

.box-clients {
    background-color: var(--third-color);
    color: var(--primery-color);
    min-height: 70px;
    border-radius: 35px;
    padding: 24px 30px;
    margin-top: 34px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    h1 {
        font-size: 75px;
    }

    .burger-icon,
    .close-icon {
        display: none;
    }

    .burger-icon {
        font-size: 40px;
        line-height: 1;
    }

    header {
        padding: 10px 20px;
        min-height: 120px;
    }

    nav {
        position: static;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-wrap: nowrap;
        white-space: nowrap;
        transform: none;
        background-color: transparent;
        width: auto;
    }

    nav a {
        color: var(--primery-color);
        font-size: 20px;
        padding: 8px 12px;
        position: relative;
        white-space: nowrap;
        flex-shrink: 0;
        line-height: 1.2;
        transition: color 0.25s ease, transform 0.25s ease;
    }

    nav a:hover {
        font-weight: 400;
        color: black;
        transform: translateY(-1px);
    }
  
    .box-about-me {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        gap: 40px;
    }

    .about-me-copy {
        flex: 1 1 0;
        min-width: 0;
    }

    .about-me-copy p {
        margin: 0 0 1rem 0;
    }

    .image {
        flex: 0 0 300px;
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    .logo img {
        height: 100px;
        width: auto;
    }

    .cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cards > div:last-child {
        flex-basis: 100%;
        text-align: center;
    }

    .cards > div:last-child .button-cta {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .card {
        width: 280px;
        height: 280px;
        border-radius: 50%;
    }

    .gallery-item {
        width: 30%;
    }

    .box-background {
        padding: 40px 150px;
    }
}

@media (max-width: 767px) {

    h1 {
        max-width: 100%;
        font-size: clamp(36px, 10vw, 48px);
        overflow-wrap: break-word;
    }

    .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    header {
        padding: 10px 20px;
        min-height: 120px;
    }

    .logo img {
        height: 100px;
        width: auto;
    }

    .burger-icon {
        font-size: 40px;
        line-height: 1;
    }

    .box-about-me {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .image {
        max-width: 280px;
        margin: 0 auto;
    }

}


@media (min-width: 1024px) {
    h1 {
        font-size: 70px;
    }

    .logo img {
        height: 100px;
        width: auto;
    }

    .cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        width: 300px;
        height: 300px;
        border-radius: 50%;
    }

    .container {
        max-width: 1100px;
        margin: 0 auto;
    }

    .gallery-item {
        width: 30%;
    }

    .box-background {
        padding: 40px 150px;
    }

    #menu img {
        display: none;
    }

}

@keyframes fadeInDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}