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

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background: #f5f1e9;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 2rem;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

button, input[type="submit"] {
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    transform: scale(1.05);
}

#social-media a {
    display: inline-block;
    text-decoration: none;
}

.social-icon {
    width: 40px;
    height: 40px;
    filter: grayscale(1);
    transition: filter 0.3s, transform 0.3s;
}

.social-icon:hover {
    filter: none;
    transform: scale(1.1);
}

.social-icon.instagram:hover {
    fill: url(#insta-gradient);
}

#social-media defs {
    display: none;
}

#social-media svg.instagram defs {
    display: block;
}

#video-overlay {
    animation: pulse 2s ease-in-out infinite;
}

#video-overlay h1 {
    animation: fadeInScale 2s ease-in-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

#main-nav ul {
    list-style: none;
}

#main-nav a {
    transition: color 0.3s, transform 0.3s;
}

#main-nav a:hover {
    color: #d4a373;
    transform: translateY(-2px);
}

#gallery {
    padding: 2rem;
    background: #e8dfd4;
    text-align: center;
}

#gallery h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #3d2f1e;
}

#gallery-title span {
    display: inline-block;
    color: #3d2f1e;
    transition: color 0.3s;
}

#gallery-title span:hover {
    color: #d4a373;
}

#slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

#slideContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    overflow: hidden;
}

#slideContainer img {
    max-height: 100%;
    max-width: 100%;
    display: none;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
    cursor: pointer;
}

#slideContainer img.active {
    display: block;
    opacity: 1;
    transform: scale(1.02);
}

#slideContainer img:hover {
    transform: scale(1.05);
}

#prevBtn, #nextBtn {
    background: none;
    border: none;
    color: #3d2f1e;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: color 0.3s;
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

#prevBtn:hover, #nextBtn:hover {
    color: #d4a373;
}

#about {
    padding: 2rem;
    background: #f5f1e9;
    text-align: center;
}

#about h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #3d2f1e;
}

#about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-image img {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-text {
    max-width: 600px;
    text-align: left;
}

.about-text p {
    margin-bottom: 1rem;
    color: #7f6a54;
    font-size: 1.1rem;
}

#video-gallery {
    padding: 2rem;
    background: #e8dfd4;
    text-align: center;
}

#video-gallery h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #3d2f1e;
}

#video-gallery p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: #7f6a54;
    font-size: 1.1rem;
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-gallery-item {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s;
}

.video-gallery-item:hover {
    transform: scale(1.02);
}

.video-gallery-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#testimonials {
    padding: 2rem;
    background: #e8dfd4;
    text-align: center;
}

#testimonials h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #3d2f1e;
}

#testimonial-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

#testimonial-slideContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    overflow: hidden;
}

#testimonial-slideContainer img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s;
}

#testimonial-slideContainer img.active {
    display: block;
    opacity: 1;
    transform: scale(1.02);
}

#testimonial-slideContainer img:hover {
    transform: scale(1.05);
}

#testimonial-prevBtn, #testimonial-nextBtn {
    background: none;
    border: none;
    color: #3d2f1e;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: color 0.3s;
}

#testimonial-prevBtn { left: 10px; }
#testimonial-nextBtn { right: 10px; }

#testimonial-prevBtn:hover, #testimonial-nextBtn:hover {
    color: #d4a373;
}

#image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#image-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

#image-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#enlarged-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

#prev-overlay, #next-overlay, #close-overlay {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    z-index: 1001;
    transition: color 0.3s;
}

#prev-overlay { left: 10px; top: 50%; transform: translateY(-50%); }
#next-overlay { right: 10px; top: 50%; transform: translateY(-50%); }
#close-overlay { top: 10px; right: 10px; }

#prev-overlay:hover, #next-overlay:hover, #close-overlay:hover {
    color: #d4a373;
}

#success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#success-popup.hidden {
    opacity: 0;
    visibility: hidden;
}

#success-popup.visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #f5f1e9;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease-in-out;
}

#success-popup.visible .popup-content {
    transform: scale(1);
}

.popup-content h3 {
    font-size: 1.8rem;
    color: #3d2f1e;
    margin-bottom: 1rem;
}

.popup-content p {
    font-size: 1.1rem;
    color: #7f6a54;
    margin-bottom: 1.5rem;
}

.popup-content button {
    padding: 0.75rem 1.5rem;
    background: #d4a373;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, box-shadow 0.3s;
}

.popup-content button:hover {
    background: #b68a55;
    box-shadow: 0 6px 15px rgba(212, 163, 115, 0.5);
}

#contact {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #3d2f1e, #4a4035);
    color: #f5f1e9;
}

#contact h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #d9c8b2;
}

#contact form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(74, 64, 53, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#contact label {
    margin: 0.5rem 0 0.2rem;
    color: #f5f1e9;
}

#contact input, #contact textarea, #contact select {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #d4a373;
    border-radius: 10px;
    color: #3d2f1e;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#contact input:focus, #contact textarea:focus, #contact select:focus {
    border-color: #b68a55;
    box-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
    outline: none;
}

#contact input:invalid:not(:placeholder-shown), #contact select:invalid:not(:placeholder-shown) {
    border-color: #ff4d4d;
}

#contact .services {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

#contact .t-input-group {
    width: calc(50% - 0.5rem);
    margin-bottom: 1rem;
}

#contact .t-input-block {
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    transition: background 0.3s;
}

#contact .t-input-block:hover {
    background: rgba(255, 255, 255, 0.2);
}

#contact .t-checkbox__control {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#contact .t-checkbox__control input {
    display: none;
}

#contact .t-checkbox__indicator {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #f5f1e9;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: background 0.3s;
}

#contact .t-checkbox__control input:checked + .t-checkbox__indicator {
    background: #d4a373;
}

#contact .t-checkbox__control input:checked + .t-checkbox__indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.6rem;
    height: 0.3rem;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -70%) rotate(-45deg);
}

#contact .t-checkbox__control span {
    color: #f5f1e9;
    font-size: 1rem;
}

#contact #other-service-details {
    margin-top: 0.5rem;
}

#contact #other-service-details input {
    width: 100%;
}

#contact button#form-submit {
    padding: 0.75rem;
    background: #d4a373;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.3);
    position: relative;
    transition: background 0.3s, box-shadow 0.3s;
}

#contact button#form-submit:hover {
    background: #b68a55;
    box-shadow: 0 6px 15px rgba(212, 163, 115, 0.5);
}

#contact button#form-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

#contact button#form-submit::after {
    content: '';
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

#contact button#form-submit.loading::after {
    display: block;
}

#contact .consent-text {
    font-size: 0.8rem;
    color: #f5f1e9;
    margin-top: 0.5rem;
}

#contact #formStatus {
    margin-top: 1rem;
    color: #b68a55;
}

#contact #other-event-details textarea {
    height: 100px;
}

#footer {
    background: linear-gradient(135deg, #3d2f1e, #4a4035);
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    color: #f5f1e9;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

#footer .copyright a {
    color: #d4a373;
    text-decoration: none;
}

#footer .copyright a:hover {
    color: #b68a55;
}

#home-nav {
    display: none;
}

#home-nav.hidden-desktop {
    display: none !important;
}

@media (max-width: 768px) {
    #video-section {
        height: 60vh;
        margin-top: 60px;
    }
    #video-section video, #video-section img.fallback {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    #video-overlay {
        width: 90%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    #main-nav {
        padding: 0.5rem;
    }
    #main-nav ul {
        gap: 1rem;
    }
    #main-nav a {
        font-size: 1rem;
    }
    #slideContainer { height: 450px; }
    #testimonial-slideContainer { height: 225px; }
    #about-container { flex-direction: column; text-align: center; }
    .about-image img { max-width: 100%; }
    #contact form { max-width: 100%; padding: 1.5rem; }
    #contact p { font-size: 0.9rem; }
    #contact .t-input-group { width: 100%; }
    #social-media { top: 5px; right: 5px; }
    .social-icon { width: 30px; height: 30px; }
    .video-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .video-gallery-item {
        padding-bottom: 56.25%;
        max-width: 100%;
    }
    #home-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #3d2f1e, #4a4035);
        z-index: 10;
        padding: 0.5rem;
        justify-content: space-around;
        border-top: 1px solid #d4a373;
    }
    #home-nav a {
        flex: 1;
        text-align: center;
        color: #f5f1e9;
        text-decoration: none;
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    #home-nav a.active {
        border-bottom: 2px solid #d4a373;
    }
    #gallery-title span { font-size: 1.8rem; }
    .popup-content {
        padding: 1.5rem;
        width: 95%;
    }
    .popup-content h3 { font-size: 1.5rem; }
    .popup-content p { font-size: 1rem; }
}

@media (max-width: 480px) {
    #video-section {
        height: 50vh;
    }
    #video-overlay h1 { font-size: 1.5rem; }
    #slideContainer { height: 300px; }
    #testimonial-slideContainer { height: 150px; }
    #social-media { flex-direction: column; gap: 5px; }
    .social-icon { width: 25px; height: 25px; }
    #contact form { padding: 1rem; }
    #main-nav ul { gap: 0.5rem; }
    #main-nav a { font-size: 0.9rem; }
    .video-gallery-grid { gap: 0.8rem; }
    #gallery-title span { font-size: 1.4rem; }
    .popup-content {
        padding: 1rem;
    }
    .popup-content h3 { font-size: 1.3rem; }
    .popup-content p { font-size: 0.9rem; }
}