/*fonts*/

/* Regular */
@font-face {
    font-family: "MyFont";
    src: url("./fonts/PlayfairDisplay-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Italic */
@font-face {
    font-family: "MyFont";
    src: url("./fonts/PlayfairDisplay-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: "MyFont";
    src: url("./fonts/PlayfairDisplay-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Հիմնական ոճավորում */
:root {
    --primary-text-color: #222222; /* Մուգ մոխրագույն, գրեթե սև */
    --secondary-text-color: #555555; /* Ավելի բաց մոխրագույն */
    --accent-color: rgba(69, 68, 68, 0.54); /* Ոսկեգույնի մոտիկ երանգ, BelleAme-ի ոճով */
    --light-bg: #c31c1c; /* Բաց մոխրագույն ֆոն */
    --white: rgba(255, 255, 255, 0.49);
    --dark-bg: #1a1a1a; /* Շատ մուգ, գրեթե սև ֆոն */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Սահուն սքրոլ անիմացիա */
}

body {
    font-family: "MyFont", serif;
    color: var(--primary-text-color);
    overflow-x: hidden;
}

.container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 25px; /* Ավելի մեծ padding կողքերից */
}

.section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    position: relative; /* Անիմացիաների համար */
    overflow: hidden; /* Կանխել տարրերի դուրս գալը */
}

h1,
h2,
h3 {
    color: var(--accent-color);
    line-height: 1.2;
}

h1 {
    font-size: 5rem;
    font-weight: 400;
}

h2 {
    font-size: 4vw;
    font-weight: normal;
    color: var(--accent-color);
}

h3 {
    font-size: 1.7em;
    margin-bottom: 15px;
    color: var(--primary-text-color);
    font-weight: 400;
}

.section-pre-title {
    font-size: 0.9em;
    color: var(--accent-color); /* Ոսկեգույն տեքստ */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Կոճակների ոճեր */
.btn-submit {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    padding: 16px 35px;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    width: clamp(200px, 15vw, 250px);
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 20px;
}

.hero-section::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./images/weddd.png");
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    animation: fadeInScale 2s ease-out forwards; /* Սկզբնական անիմացիա */
}

.hero-names-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.hero-photos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2%;
    margin: 30px 0 30px 0;
    animation: moving_photos 7s alternate linear infinite;
}

@keyframes moving_photos {
    0% {
        transform: translateX(-5vw);
    }

    100% {
        transform: translateX(5vw);
    }
}

.hero-photos-row > :nth-child(1) {
    width: 18%;
    height: 100%;
    object-fit: cover;
}

.hero-photos-row > :nth-child(2) {
    width: 22%;
    height: 100%;
    object-fit: cover;
}

.hero-photos-row > :nth-child(3) {
    width: 18%;
    height: 100%;
    object-fit: cover;
}

.image_block {
    width: 100%;
}

.image_block img {
    width: 100%;
}

.hero-content .tagline {
    font-size: clamp(2rem, 2vw, 3rem);
    font-weight: 300;
    color: var(--accent-color);
    opacity: 0;
    animation: fadeInText 1s ease-out 1.5s forwards;
}

.hero-content .date {
    font-size: clamp(3rem, 2vw, 4rem);
    font-weight: 500;
    color: var(--accent-color);
    opacity: 0;
    animation: fadeInText 1s ease-out 2s forwards;
}

/*music*/
.music-btn {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--accent-color, #000);
    background: none;
    color: var(--accent-color);
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.music-btn svg {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Чтобы SVG не мешал клику по кнопке */
}

.circle-text {
    position: absolute;
    width: 100%;
    height: 100%;
    font-family: "MyFont";
    animation: spin 6s linear infinite;
    transform-origin: 50% 50%;
    transition: ease 1s;
    pointer-events: none;
}

.play-icon {
    transform: scale(0.3);
    transition: ease 1s;
}

.pause-icon {
    transform: scale(0.3);
    transition: ease 1s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
        transform-origin: center;
    }
    100% {
        transform: rotate(360deg);
        transform-origin: center;
    }
}

/*arrow*/

.arrow_down {
    width: 3vw;
}

.arrow_down img {
    width: 100%;
    animation: fadeInArrow 1.5s forwards infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInArrow {
    from {
        opacity: 0;
        transform: translateY(0);
        transition: 1s;
    }
    to {
        transform: translateY(20px);
        transition: 1s;
    }
}

/*invite text*/

.section .invite_text {
    max-width: 40%;
    font-size: 1.5rem;
    font-style: italic;
}

/* Стили для Календаря */
.calendar-wrapper {
    max-width: 600px; /* Ограничим ширину календаря */
}

.calendar-header {
    padding: 2vw 0;
    text-align: center;
}

.calendar-header h3 {
    font-size: 3rem;
    font-weight: 500;
    color: var(--accent-color);
    margin: 0;
    letter-spacing: 1px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 столбцов для дней недели */
    gap: 2rem; /* Тонкие линии между днями */
    padding: 1px;
}

.day-name,
.day {
    padding: 15px 5px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Для позиционирования сердечка */
    transition: background-color 0.2s ease;
}

.day-name {
    color: var(--primary-text-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em;
}

.day.special-day {
    font-weight: 700;
    font-size: 1.5em;
    position: relative;
}

.day.special-day::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 90px;
    background-image: url("./images/ring1.png"); /* путь к вашей SVG-иконке */
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%) rotate(30deg);
    z-index: -1;
    animation: heart 2s ease-in-out alternate infinite;
}

@keyframes heart {
    0% {
        transform: translate(-50%, -50%) rotate(50deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(40deg);
    }
}

/* Տոնակատարության Մանրամասները */
.details-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Ավելի մեծ բացատ */
}

.detail-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.detail-block h2 {
    font-size: clamp(3rem, 4vw, 4rem);
}

.blocks {
    display: flex;
    justify-content: center;
}

.block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.detail-block ul {
    display: flex;
    flex-direction: column;
    justify-content: center;

    list-style: none;
    padding: 0;
}

.detail-block ul li {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 2em;
    color: var(--secondary-text-color);
}

.detail-block ul li img {
    max-width: 80px;
}

.detail-icon {
    font-size: 1.5em;
    font-weight: 100;
    color: var(--accent-color);
    line-height: 1; /* Որպեսզի տեղը կպած լինի տեքստին */
    position: relative;
    top: -5px;
}

.time_list img {
    filter: grayscale(100%) brightness(1);
}

.time_list .arrow {
    margin-right: 10%;
}

.detail-icon-text {
    font-size: 0.6em;
    width: 30%;
    text-align: left;
}

.map-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9em;
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--primary-text-color);
    transition: background 0.3s ease;
}

.map-link:hover {
    background: none;
    transition: background 0.3s ease;
}

.block .venue-name {
    width: 65%;
    font-size: 1.5rem;
}

.church-img {
    width: 50%;
    filter: grayscale(80%) brightness(0.9);
}

.restoran-img {
    width: 60%;
    filter: grayscale(80%) brightness(0.9);
}

.venue-address {
    font-size: 1.5rem;
}

.gift-info {
    font-weight: 600;
    color: var(--primary-text-color);
}

/*dress code*/
.detail-block p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #555;
    width: 60%;
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.color-swatch::after {
    content: attr(data-color-name);
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

/* Պատկերասրահ */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    margin: 60px auto;
    padding: 0 20px;
    max-width: 70vw;
}

.gallery-item {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    filter: grayscale(100%) brightness(0.95);
    transition: all 0.4s ease;
    break-inside: avoid;
    cursor: pointer;
}

/* RSVP */

#rsvp-form {
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 5vh;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--primary-text-color);
    font-size: 1.05em;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-bottom-width: 1px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-color: var(--accent-color);
    outline: none;
    background: none;
    font-size: 1em;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 15px;
}

#invited_by_block {
    height: 0;
    opacity: 0;
    transition: 1s;
}

#invited_by_block p {
    text-align: left;
}

#invited_by_block.show {
    opacity: 1;
    height: auto;
    transition: 2s;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    gap: 22px;
    cursor: pointer;
    font-weight: 400;
    /* width: 1%; */
    margin-bottom: 2vh;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    background: none;
    transform: scale(1.5); /* Մեծացնենք ռադիո կոճակները */
    accent-color: var(--dark-bg); /* Փոխենք գույնը */
}




/*timer*/

.countdown-block {
    text-align: center;
    padding: 40px 20px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.countdown-timer div {
    border: 2px solid #dcbfa6;
    border-radius: 10px;
    padding: 15px 10px;
    width: 80px;
}

.countdown-timer span {
    font-size: 28px;
    color: #5a3f31;
    display: block;
    font-weight: bold;
}

.countdown-timer small {
    font-size: 14px;
    color: #a07d60;
    margin-top: 5px;
    display: block;
}

/*order*/

.order {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}

.order h2 {
    font-size: 24px;
    color: #333;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-form input {
    background: var(--white);
    width: 100%;
    padding: 12px 14px;
    border: none;
    outline: none;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.2s;
}

.order-form button {
    background: rgba(104, 184, 27, 0.47);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.order-form button:hover {
    background: #91cc57;
}

.iti__flag-container {
    font-family: initial;
}

.iti--separate-dial-code .iti__selected-flag {
    background: initial !important;
}

/* Անիմացիոն կլասեր */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.logo {
    width: 150px;
}

.logo a {
    cursor: pointer;
}

.logo img {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 4.5em;
    }

    .story-item,
    .detail-block,
    #rsvp-form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.5em;
    }

    .section {
        padding: 0;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .story-grid,
    .details-grid {
        gap: 30px;
    }

    .arrow_down {
        margin-bottom: 20px;
    }

    .calendar-wrapper {
        margin: 30px auto;
        max-width: 90%;
    }

    .day-name,
    .day {
        padding: 10px 3px;
        font-size: 0.8em;
    }

    .section .invite_text {
        max-width: 80%;
        font-size: 1.2rem;
    }

    .block .venue-name {
        width: 90%;
        font-size: 1.2rem;
    }

    .map-link {
        font-size: 1em; /* Reduce font size */
        padding: 8px 15px; /* Adjust padding */
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 10px;
    }

    h1 {
        font-size: 2.8em; /* Ուվելիքացում չափը */
        line-height: 1.3; /* Օպտիմալացում միջտողային间隔 */
    }

    h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 1.1em;
        line-height: 1.8;
    }

    /* Adjustments for Hero Section */
    .hero-section {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--white);
        text-align: center;
        padding: 20px;
    }

    .hero-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .hero-names-block {
        margin-bottom: 0;
    }

    .hero-photos-row {
        width: 100%;
        margin: 0;
    }

    .hero-photos-row > :nth-child(1) {
        width: 25%;
        height: 100%;
        object-fit: cover;
    }

    .hero-photos-row > :nth-child(2) {
        width: 40%;
        height: 100%;
        object-fit: cover;
    }

    .hero-photos-row > :nth-child(3) {
        width: 25%;
        height: 100%;
        object-fit: cover;
    }

    .hero-section .tagline {
        font-size: 1.5em;
        margin: 10px 0;
    }

    .calendar-wrapper {
        max-width: 100%;
        margin: 20px auto;
        padding: 0;
    }

    .calendar-grid {
        gap: 0.5rem;
        padding: 5px;
    }

    .day-name,
    .day {
        padding: 8px 2px;
        font-size: 0.7em;
    }

    .section {
        padding: 0;
    }

    .container {
        max-width: 100vw;
        padding: 0;
    }

    h2 {
        font-size: 7vw;
    }

    .detail-block h2 {
        padding: 0;
        margin: 0;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 1em;
    }

    .arrow_down {
        width: 5vw;
    }

    .details-grid {
        gap: 20px; /* Reduce gap for smaller screens */
    }

    .detail-block {
        gap: 30px; /* Adjust spacing */
    }

    .detail-block p {
        font-size: 1.2rem;
        width: 100%;
    }

    .blocks {
        flex-direction: column; /* Stack blocks vertically */
        gap: 20px; /* Add spacing between blocks */
    }

    .block {
        width: 100%; /* Ensure blocks take full width */
    }

    .block .venue-name {
        width: 100%;
        font-size: 1.2rem;
    }

    .church-img,
    .restoran-img {
        width: 80%;
    }

    .map-link {
        font-size: 0.8em;
        padding: 8px 15px;
    }

    .detail-block ul {
        gap: 20px;
    }

    .detail-block ul li {
        flex-direction: column;
        gap: 10px;
        font-size: 1.2em;
        text-align: center;
    }

    .detail-block ul li img {
        max-width: 50px;
    }

    .time_list li span {
        text-align: center;
        gap: 0;
    }

    .time_list .arrow {
        margin: 0;
    }

    .detail-icon {
        font-size: 1.2em;
    }

    .detail-icon-text {
        font-size: 1em;
        width: 100%;
    }

    .gallery-grid {
        margin-bottom: 0;
        width: 100%;
    }

    #rsvp-form {
        margin: 0;
    }

    .checkbox-group input[type="checkbox"],
    .radio-group input[type="radio"] {
        transform: scale(2);
        margin: 10px;
    }

    .checkbox-group label,
    .radio-group label {
        font-size: 1.2em;
    }

}
