@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Pacifico&display=swap');
body {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
body.loaded {
    opacity: 1;
}
body {
    background-color: #111;
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}
header {
    font-size: 2.5rem; /* Збільшення розміру шрифту */
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a, #444);
    font-family: 'Pacifico', cursive;
}
@keyframes glow {
    0% { text-shadow: 0 0 5px #ffcc00; }
    50% { text-shadow: 0 0 15px #ffcc00, 0 0 30px #ffcc00; }
    100% { text-shadow: 0 0 5px #ffcc00; }
}
header h1 {
    animation: glow 2.5s infinite alternate;
}
.title-span {
    display: flex;
    margin: 40px auto;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
}
nav {
    position: relative;
    width: 100%;
    background: transparent;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out, height 0.3s ease-in-out;
}

nav.fixed {
    position: fixed;
    height: 60px;
    padding: 10px 0;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffcc00;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

nav.fixed ul li a {
    font-size: 1rem;
    color: black;
}

nav.fixed ul li.active a {
    color: #ff6600; /* Змінюємо підсвічування активного пункту */
}
nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}
nav ul li {
    display: inline;
    margin: 0 20px;
    position: relative;
}
nav ul li a {
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease-in-out;
}
nav ul li.active a {
    color: #fff !important;
    text-shadow: 0px 0px 10px #fff !important;
}
nav ul li::before, nav ul li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: #ffcc00;
    transition: width 0.3s ease-in-out;
}
nav ul li::before {
    top: -5px;
    left: 0;
}
nav ul li::after {
    bottom: -5px;
    right: 0;
}
nav ul li:hover::before, nav ul li:hover::after {
    width: 100%;
}
nav ul li:hover a {
    color: #ffcc00;
}
.container {
    width: 80%;
    margin: auto;
    padding: 40px 0;
}
.about {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    background: #222;
    padding: 40px;
    border-radius: 15px;
}
.about img {
    max-width: 250px;
    border-radius: 15px;
    border: 5px solid #ffcc00;
}
.button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease-in-out;
}
.button:hover::before {
    left: 100%;
}
.button:hover {
    transform: scale(1.05);
    background-color: #ffdb4d;
    color: black;
}
.section {
    padding: 50px 0;
    text-align: center;
}
.extra {
    text-align: center;
}
.skills {
    background: #222;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    width: 60%;
}
.skills {
    background: #222;
    padding: 40px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.skills .skill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #333;
    padding: 10px 20px;
    border-radius: 10px;
    width: 150px;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
}
.skills .skill:hover {
    transform: scale(1.1);
    background: #ffcc00;
    color: black;
}
.skills .skill::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    bottom: 5px;
    right: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.5s infinite alternate;
}
.skills .skill:hover::after {
    opacity: 1;
    animation: blink 1s infinite alternate;
}
@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.3; transform: scale(1.2); }
}
.skills .skill img {
    width: 30px;
    height: 30px;
}
.portfolio {
    text-align: center;
    padding: 50px 0;
}
.project-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.project {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    color: white;
    font-weight: bold;
    overflow: hidden;
    position: relative;
}
.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.project:hover {
    border-radius: 15px;
    transform: scale(1.05);
}
.project a {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1;
    text-decoration: none;
    font-weight: bold;
}
.why-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.why-box-title {
    width: 45%;
}
.why-box-title h2 {
    font-size: 3rem;
}
.why-box-text {
    width: 50%;
    max-width: 800px;
    border-collapse: collapse;
    text-align: left;
}

.why-box-text table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.why-box-text thead tr:hover::before,
.why-box-text thead tr:hover::after {
    width: 0;
}
.why-box-text th, 
.why-box-text td {
    padding: 15px 20px;
    font-size: 18px;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.8);
}

.why-box-text th {
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
}

.why-box-text tr {
    position: relative;
    transition: background 0.3s ease-in-out;
}

.why-box-text tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.why-box-text tr:hover {
    background: rgba(255, 204, 0, 0.3);
    transform: scale(1.01);
}

.why-box-text tr::before,
.why-box-text tr::after {
    content: "";
    position: absolute;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffcc00;
    transition: width 0.4s ease-in-out;
}

.why-box-text tr::before {
    top: 0;
}

.why-box-text tr::after {
    bottom: 0;
}

.why-box-text tr:hover::before,
.why-box-text tr:hover::after {
    width: 100%;
}
.price-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px auto;
}
.price-card {
    background: #222;
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.price-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 204, 0, 1);
}
.price-card h2 {
    color: #ffcc00;
    font-size: 1.8rem;
}
.price-card p {
    font-size: 1.2rem;
}
.price-list {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}
.price-list li {
    font-size: 1rem;
    padding: 5px 0;
}
.contact-form-block {
    display: flex;
    flex-direction: column;
}
.contact-form-block h1 {
    font-size: 4rem;
    margin: 40px auto;
}
.contact-form {
    background: #222;
    padding: 30px;
    border-radius: 15px;
    width: 50%;
    margin: 40px auto;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
    text-align: center;
}
.contact-form button:active {
    transform: scale(0.98);
}
.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(255, 204, 0, 0.8);
}
.button:focus {
    outline: none;
    box-shadow: 0px 0px 10px #ffcc00;
}
.contact-form h2 {
    color: #ffcc00;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 70px;
    margin-bottom: 20px;
}
.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.contact-options label {
    background: #333;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    text-align: center;
}
.contact-options input {
    display: none;
}
.contact-options input:checked + label {
    background: #ffcc00;
    color: black;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: #333;
    color: white;
    font-size: 1rem;
}
.button_form {
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-form button {
    display: flex;
  align-items: center;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
  padding: 0.8em 1.3em 0.8em 0.9em;
  color: black;
  background: #ffcc00;
  background: linear-gradient(to right, #ffcc00, #ffdb4d, #ffbf00);
  border: none;
  letter-spacing: 0.05em;
  border-radius: 16px;
}
.contact-form button svg {
    margin-right: 3px;
    transform: rotate(30deg);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.contact-form  button span {
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.contact-form button:hover svg {
    transform: translateX(5px) rotate(90deg);
}

.contact-form button:hover span {
    transform: translateX(7px);
}
.phone-input {
    display: flex;
    align-items: center;
    gap: 5px;
}
.phone-input select {
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}
.iti {
    width: 100%;
}
.iti--allow-dropdown .iti__flag-container {
    background: #333;
    border-radius: 5px 0 0 5px;
    height: 38px;
}
.iti__selected-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.iti__country-list {
    background: #000;
}
footer {
    text-align: center;
    padding: 20px;
    background-color: #222;
    width: auto;
}

/* ======== АДАПТИВНІСТЬ ДЛЯ ПЛАНШЕТІВ (1024px) ======== */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about img {
        max-width: 200px;
    }

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

    .why-box-title {
        width: 100%;
        text-align: center;
    }

    .why-box-text {
        width: 100%;
    }

    .price-card {
        width: 100%;
    }
}

/* ======== АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ (768px) ======== */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Приховуємо навігацію для бургер-меню */
        flex-direction: column;
        background: #ffcc00;
        position: absolute;
        width: 100%;
        left: 0;
        top: 60px;
        z-index: 999;
        padding: 10px 0;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    .burger {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        cursor: pointer;
    }

    .burger div {
        width: 30px;
        height: 3px;
        background: white;
        margin: 6px;
        transition: 0.3s;
    }

    .container {
        width: 95%;
        padding: 20px 0;
    }

    .about {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .about img {
        max-width: 180px;
    }

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

    .project {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .contact-form {
        width: 80%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .why-box-text table {
        font-size: 14px;
        overflow-x: scroll;
        display: block;
    }

    .why-box-text th, 
    .why-box-text td {
        padding: 10px;
    }
}