/* Базовий стиль */


body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #194b5b;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%; /* ✅ додаємо */
}

h2 {
    font-size: 2.5em;
    color: #f5a623;
    margin-bottom: 30px;
    text-align: center;
}

p {
	font-size: 1.1em;
    color: #d5d5d5;
    margin-bottom: 0px;
    text-align: center;
}


/* Полоса прокрутки */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #123841;
}

::-webkit-scrollbar-thumb {
    background: #f5a623;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d1881c;
}

/* Контейнер для контенту */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* Приховання заголовку "Головна"*/
#block-1 h2 {
    display: none;
}

/* Загальні блоки */
#block-2, #block-3, #block-4, #block-5, #block-6, #block-7, #block-8, #block-9, #block-10 {
	margin: auto;
    padding: 0px;
    background-color: #0f2d35;
    text-align: center;
}
/* Загальні блоки */
#block-1{
	margin: auto;
    padding: 0px;
    background-color: #0f2d35;
    text-align: center;
	margin-top: -2%;
}

/* Закріплення меню */
header {
    position: sticky;
	margin: 0px;
    top: 0;
    background-color: #123841;
    z-index: 1000;
    padding: 0px 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex	;
    align-items: center;
    justify-content: space-around;

}

.logo img {
    max-height: 80px;
    object-fit: contain;
    cursor: pointer;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 1px 5px;
    text-align-last: center;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #f5a623;
}

/* Гамбургер меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s;
}

/* Головний блок (Hero) */
#hero {
    width: 100%;
    margin: 0 auto;
    padding: 0;

    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

#hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.5em;
    max-width: 700px;
    margin-bottom: 40px;
}

.cta-button {
    background-color: #f5a623;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #d1881c;
    transform: translateY(-3px);
    color: #123841;
}

/* Секція "Про мене" */
#about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 10%;
    background-color: #0f2d35;
    color: #d5d5d5;
    text-align: center;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-photo {
    flex: 0 0 30%;
    height: 550px;
    border-radius: 10%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#about h2 {
    font-size: 2.5em;
    color: #f5a623;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.2em;
    margin: 0 auto;
    line-height: 1.8;
	font-style: italic;
    text-align: -webkit-left;
}

#about ul {
    font-size: 1.2em;
    margin: 0 auto;
	margin-left: -20px;
    line-height: 1.8;
	font-style: italic;
    text-align: -webkit-left;
}

#about li {
    font-size: 0.75em;
    margin: 0 auto;
    line-height: 1.24em;
    font-style: italic;
    text-align: -webkit-left;
}

/* Секція "Портфоліо" */
#portfolio {
    background-color: #0f2d35;
    color: #fff;
    text-align: center;
    width: 100%;
}

.portfolio-filters {
	display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.filter-btn {
    background-color: #f5a623;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.filter-btn:hover {
    background-color: #d1881c;
    transform: translateY(-2px);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.work-example img,
.work-example iframe {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}


/* Стилізація таблиці цін */
/* Стилізація таблиці цін */
.pricing-table {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pricing-column {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 25px;
    border-radius: 15px;
    width: 100%;
    max-width: 25%;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.pricing-column:hover {
    /*transform: scale(1.05);*/
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.4);
}

.pricing-column h3 {
    font-size: 1.8em;
    color: #f5a623;
    margin-bottom: 20px;
    text-align: center;
}

/* Стилізація списку */
.pricing-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #ddd;
    font-size: 0.9em;
    line-height: 1.8;
}


/* Стиль для розділення завдань і цін */
.pricing-column li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(245, 166, 35, 0.3);
    align-items: center; /* Центрування тексту всередині рядка */
}

.pricing-item-name {
    font-weight: bold;
    color: #f5a623;
    font-size: 1.2em;
    flex: 2; /* Робить текст завдання більшим */
}

.pricing-item-price {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #123841;
    padding: 5px 15px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
}
.pricing-item-price:hover {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #f5a623;
    padding: 5px 15px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
}

/* Легке підсвічування при наведенні */
.pricing-column li:hover {
    background-color: rgba(245, 166, 35, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Заголовки */
.pricing-column h3 {
    font-size: 1.8em;
    color: #f5a623;
    margin-bottom: 20px;
    text-align: center;
}


/* Адаптивність для таблиці цін */
@media (max-width: 768px) {
    .pricing-table {
        flex-direction: column;
        align-items: center;
    }

    .pricing-column {
        max-width: 90%;
    }
}



/* Стиль для кожного рядка в таблиці цін */
.pricing-column ul li {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(245, 166, 35, 0.3);
    transition: background-color 0.3s ease;
    flex-direction: column;
    align-items: stretch;
}

/* Окреме форматування для назви роботи і ціни */
.pricing-item-name {
    font-weight: bold;
    color: #f5a623;
    font-size: 1.1em;
}

.pricing-item-price {
	color: #d5d5d5;
    font-size: 0.95em;
    margin-left: 15px; /* Відступ між назвою і ціною */
}

.pricing-item-price:hover {
	color: #123841;
    font-size: 0.95em;
    margin-left: 15px; /* Відступ між назвою і ціною */
}


/* Легке виділення рядка при наведенні */
.pricing-column ul li:hover {
    background-color: rgba(245, 166, 35, 0.1);
    border-radius: 8px;
}


/* Секція "Контакти" */
#contact {
    padding: 80px 10%;
    background-color: #123841;
    color: #fff;
    text-align: center;
}

#contact h2 {
    font-size: 2.5em;
    color: #f5a623;
    margin-bottom: 20px;
}

#contact p {
    font-size: 1.1em;
    color: #ccc;
}

.contact-info ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info ul li a {
    color: #f5a623;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

.contact-info ul li a:hover {
    color: #fff;
}

/* Адаптивність */
@media (max-width: 768px) {
    body {
        margin: 0 0%; /* Відступи для мобільних пристроїв */
    }
	
	p {
        font-size: 1.1em;
        color: #d5d5d5;
        text-align: center;
        width: 90%;
		margin: 0 auto;
	}

    h2 {
        font-size: 1.8em; /* Зменшення розміру заголовків */
    }

    /* Контейнер для мобільних */
    .container {
        width: 100%;
        padding: 0 5%; /* Додаткові відступи */
    }

    /* Блоки */
	#block-2, #block-3, #block-4, #block-5, #block-6, #block-7, #block-8, #block-9, #block-10 {
		padding: 15px;
        margin: 40px 0%;
    }

    /* Головний блок Hero */
    #hero {
        margin: 0;
        padding: 40px 20px;
        width: 100%;
        box-sizing: border-box; /* ✅ щоб не розтягувало */
    }


    #hero h2 {
        font-size: 2em;
    }

    #hero p {
        width: 100%;
        padding: 0 10px;
        font-size: 1em;
        box-sizing: border-box;
    }
	
	    .tradeoff-switches {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .switch-label {
        justify-content: center;
    }
	
	.about-container {
        flex-direction: column;
        text-align: center;
    }

	.about-photo {
		flex: 0 0 470px;
		height: 350px;
		border-radius: 20%;
		overflow: hidden;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	}

    .about-text {
        text-align: center;
    }

    /* Меню */
    .menu {
        display: none;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: rgba(19, 56, 65, 0.9);
        padding: 20px 10px;
        z-index: 1000;
    }

    .menu.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
        transition: all 0.3s;
    }

    .pricing-column {
        max-width: 70%;
        margin: 20px auto;
    }
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    justify-content: center;
    margin: 10px auto 0;
}

.like-btn i {
    font-size: 1.2em;
    color: #f5a623;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.like-btn:hover i {
    opacity: 1;
}

.like-count {
    color: #ccc;
    font-size: 0.9em;
}


.format-1-1 img { aspect-ratio: 1 / 1; }
.format-16-9 img, iframe { aspect-ratio: 16 / 9; }
.format-9-16 img { aspect-ratio: 9 / 16; }

.site-preview {
    display: inline-block;
    margin-top: 10px;
    background: #f5a623;
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    text-decoration: none;
}

.like-btn {
    background: none;
    border: none;
    color: #f5a623;
    cursor: pointer;
    font-size: 1em;
    margin-top: 5px;
}

/* ===== МОДАЛЬНЕ ВІКНО ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    padding-top: 60px;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    background-color: #123841;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

#modal-image {
    width: 65%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

#modal-description {
    margin-top: 20px;
}

#modal-title {
    font-size: 1.5em;
    color: #f5a623;
    margin-bottom: 10px;
}

#modal-text {
    font-size: 0.8em;
    color: #ddd;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

#close-modal:hover {
    color: #f5a623;
}

#modal-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-button {
    background-color: #f5a623;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 8px;
}

.nav-button:hover {
    background-color: #d1881c;
}


#contact {
    padding: 80px 10%;
    background-color: #123841;
    color: #fff;
    text-align: center;
}

#contact h2 {
    font-size: 2.5em;
    color: #f5a623;
    margin-bottom: 20px;
}

#contact p {
    font-size: 1.1em;
    color: #ccc;
}

.contact-info ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    padding: 0;
}

.contact-info ul li {
    font-size: 1.1em;
    color: #f5a623;
}

.contact-info ul li a {
    color: #fff;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.contact-info ul li a:hover {
    color: #f5a623;
}


#reviews {
    padding: 80px 10%;
    background-color: #123841;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

#reviews h2 {
    font-size: 2.2em;
    color: #f5a623;
    margin-bottom: 40px;
}

.infinite-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.review-track {
    display: flex;
    gap: 40px;
    animation: scroll-left 40s linear infinite;
    width: max-content;
}

.review-card {
    flex: 0 0 auto;
    background-color: #0f2d35;
    padding: 25px 30px;
    border-radius: 10px;
    font-style: italic;
    font-size: 1.2em;
    color: #f0f0f0;
    min-width: 90vw;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s;
    white-space: nowrap;
}

.review-card:hover {
    transform: scale(1.04);
    background-color: #194b5b;
}

/* Пауза при наведенні */
.infinite-carousel:hover .review-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* рухається вліво нескінченно */
}

.not-on-main {
    display: none;
}

section {
    max-width: 100%;
    overflow-x: hidden;
}	


.tradeoff-block {
    margin-top: 40px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.tradeoff-switches {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
}

/* приховати справжній чекбокс */
.switch-label input[type="checkbox"] {
    display: none;
}

.switch-text {
    min-width: 60px;
}

.switch-slider {
    width: 50px;
    height: 26px;
    background-color: #999;
    border-radius: 30px;
    position: relative;
    transition: background-color 0.3s ease;
}

.switch-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 2px;
    left: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.switch-label input[type="checkbox"]:checked + .switch-slider {
    background-color: #f5a623;
}

.switch-label input[type="checkbox"]:checked + .switch-slider::before {
    transform: translateX(24px);
}

.trade-output {
    font-size: 16px;
    color: #eee;
    opacity: 0.9;
    font-style: italic;
    margin-top: 10px;
}

@media (max-width: 500px) {
    .review-card {
        min-width: 100vw;
        padding: 20px;
    }
}
* {
    box-sizing: border-box;
    max-width: 100%;
}
