/* -------------------------------------------------- */
/* Imports & Variables                                 */
/* -------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

:root {
    --primary-color: #13929b;
    --secondary-color: #1b8a72;
    --accent-color: #ff6b6b;
    --background-light: #f5f6fa;
    --text-color: #2f3542;
}

/* -------------------------------------------------- */
/* Reset & Base Styles                                 */
/* -------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    /* Minimal global scrollbar for consistency */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e0e6f7;
}

.body::-webkit-scrollbar {
    height: 6px;
    background: #e0e6f7;
}
body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
body::-webkit-scrollbar-track {
    background: #0035c5;
    border-radius: 4px;
}


a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
    transition: color 0.3s;
}
#logo {
    height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    aspect-ratio: 1/1.1;
    display: block;
}

/* -------------------------------------------------- */
/* Section: Hero & Container                          */
/* -------------------------------------------------- */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    overflow: hidden;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 20%);
    opacity: 0.5;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* -------------------------------------------------- */
/* Section: Gallery & Section Headers                 */
/* -------------------------------------------------- */

.section-header {
    text-align: center;
    margin: 2.5rem 0 2rem 0;
}

.section-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.section-header p {
    color: #555;
    max-width: 600px;
    margin: 0 auto 0.5rem auto;
    font-size: 1.1rem;
}

/* -------------------------------------------------- */
/* Carousel Styles                                    */
/* -------------------------------------------------- */

.art-carousel.collage-carousel,
.collage-carousel .swiper-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e0e6f7;
}

.art-carousel.collage-carousel::-webkit-scrollbar,
.collage-carousel .swiper-wrapper::-webkit-scrollbar {
    height: 6px;
    background: #e0e6f7;
}
.art-carousel.collage-carousel::-webkit-scrollbar-thumb,
.collage-carousel .swiper-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
.art-carousel.collage-carousel::-webkit-scrollbar-track,
.collage-carousel .swiper-wrapper::-webkit-scrollbar-track {
    background: #e0e6f7;
    border-radius: 4px;
}


.art-carousel.collage-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(74,105,189,0.10);
    background: #fff;
    padding: 2.5rem 1.5rem 2.5rem 1.5rem;
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    flex-wrap: wrap;
}

.collage-carousel .swiper-wrapper {
    margin-bottom: 0.5rem;
    justify-content: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-height: 700px;
    align-content: flex-start;
}

.collage-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    height: 220px !important;
    width: 220px !important;
    margin: 0 8px 24px 8px;
    box-sizing: border-box;
    /* Multi-row: allow wrapping */
    flex: 0 0 auto;
}

.carousel-art-image {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(74,105,189,0.10);
    object-fit: cover;
    background: #f5f6fa;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0;
}

.carousel-art-image:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(74,105,189,0.18);
}

/* Carousel Responsive Fixes */
@media (max-width: 600px) {
    .carousel-art-image {
        width: 90px;
        height: 90px;
    }
    .collage-carousel .swiper-slide {
        width: 100px !important;
        height: 100px !important;
        margin: 0 4px 10px 4px;
    }
    .collage-carousel .swiper-wrapper {
        max-height: 320px;
    }
    .art-carousel.collage-carousel {
        padding: 1rem 0.2rem 1rem 0.2rem;
        min-height: 120px;
    }
}

/* Carousel Responsive Fixes */
@media (max-width: 600px) {
    .carousel-art-image {
        width: 90px;
        height: 90px;
    }
    .collage-carousel .swiper-slide {
        width: 100px !important;
        height: 100px !important;
        margin: 0 4px 10px 4px;
    }
    .art-carousel.collage-carousel {
        padding: 1rem 0.2rem 1rem 0.2rem;
        min-height: 120px;
    }
}

/* -------------------------------------------------- */
/* See More Button                                    */
/* -------------------------------------------------- */

a.see-more-btn {
    display: block;
    font-size: 1.1rem;
    padding: 0.5em 1.2em;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74,105,189,0.10);
    text-align: center;
    margin: 0.5rem auto 3rem auto;
    transition: background 0.2s, color 0.2s, font-size 0.2s;
}

a.see-more-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

@media (max-width: 600px) {
    a.see-more-btn {
        font-size: 0.85rem;
        padding: 0.35em 0.7em;
        border-radius: 6px;
        margin: 0.5rem auto 3rem auto;
    }
}

/* -------------------------------------------------- */
/* Order Form                                         */
/* -------------------------------------------------- */

#paintingOrderForm {
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(74,105,189,0.10);
    padding: 2.5rem 1.5rem 2.5rem 1.5rem;
    margin-top: 2.5rem;
}

form {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,105,189,0.2);
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .address-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------- */
/* File Upload                                        */
/* -------------------------------------------------- */

.file-upload {
    position: relative;
    border: 3px dashed var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    background-color: rgba(74,105,189,0.05);
}

.file-upload.dragover {
    background-color: rgba(74,105,189,0.1);
    border-color: var(--primary-color);
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#upload-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 1rem;
}

#preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.preview-image {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* -------------------------------------------------- */
/* Submit Button                                      */
/* -------------------------------------------------- */

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74,105,189,0.3);
}

/* -------------------------------------------------- */
/* Canvas Size Options                                */
/* -------------------------------------------------- */

.canvas-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.canvas-size-option {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.canvas-size-option.selected,
.canvas-size-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(74,105,189,0.05);
}

/* -------------------------------------------------- */
/* Miscellaneous                                      */
/* -------------------------------------------------- */

#foot {
    display: block;
    margin: 20px;
    text-align: center;
    color: var(--primary-color);
}

#addShippingLater {
    display: inline !important;
    margin-bottom: 1rem;
    margin-right: 0.7rem;
}

input[type="checkbox"] {
    display: inline;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* -------------------------------------------------- */
/* Popup Overlay & Card                               */
/* -------------------------------------------------- */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.popup-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-width: 500px;
    width: 90%;
    padding: 40px;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
}

.popup-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    position: relative;
    overflow: hidden;
}

.popup-icon::before {
    content: "🚀";
    font-size: 60px;
    z-index: 1;
}

.popup-icon::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.popup-title {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.popup-message {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.popup-close:hover {
    background: #e0e0e0;
}

/* -------------------------------------------------- */
/* Artwork Popup Card                                 */
/* -------------------------------------------------- */

.artwork-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.artwork-popup-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(74,105,189,0.18);
    padding: 3.5rem 3.5rem 2.5rem 3.5rem;
    max-width: 98vw;
    max-height: 98vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: popIn 0.2s;
}

.artwork-popup-card img {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 16px rgba(74,105,189,0.10);
}

@media (max-width: 600px) {
    .artwork-popup-card {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        max-width: 98vw;
        max-height: 98vh;
    }
    .artwork-popup-card img {
        max-width: 96vw;
        max-height: 50vh;
    }
}

.artwork-popup-close {
    position: absolute;
    width: 2rem;
    top: 0.4rem;
    right: 0.2rem;
    font-size: 1.7rem;
    padding: 0.2rem;
    aspect-ratio: 1;
    border-radius: 50px;
    color: #252525;
    background: white;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s;
}

.artwork-popup-close:hover {
    color: var(--primary-color, #4a69bd);
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.92); opacity: 0.7; } to { transform: scale(1); opacity: 1; }
}

/* -------------------------------------------------- */
/* Contact Popup Styles                               */
/* -------------------------------------------------- */
.contact-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(30,34,44,0.22);
    backdrop-filter: blur(12px) saturate(1.2);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    transition: opacity 0.28s cubic-bezier(.4,0,.2,1);
    opacity: 0;
}
.contact-popup-overlay.show {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.22s;
}
.contact-popup-card {
    background: rgba(255,255,255,0.82); /* less transparent for better visibility */
    border-radius: 22px;
    box-shadow: 0 8px 40px 0 rgba(74,105,189,0.16), 0 1.5px 12px 0 rgba(30,34,44,0.07);
    padding: 2.3rem 2.2rem 1.7rem 2.2rem;
    min-width: 270px;
    max-width: 95vw;
    text-align: center;
    position: relative;
    animation: popIn 0.22s;
    border: 1.5px solid rgba(74,105,189,0.08);
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
    transition: box-shadow 0.2s;
}
.contact-popup-card h2 {
    color: var(--primary-color);
    font-size: 1.45rem;
    margin-bottom: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.contact-popup-list {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    margin-top: 0.5rem;
    align-items: center; /* ensure center alignment of children */
}
.contact-popup-list div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 1.08rem;
    background: rgba(255,255,255,0.22);
    border-radius: 10px;
    padding: 0.55em 1.1em;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: none;
    width: 100%;
    max-width: 320px; /* keeps the row compact and centered */
    margin-left: auto;
    margin-right: auto;
}
.contact-popup-list i {
    font-size: 1.22em;
    color: var(--primary-color);
    opacity: 0.85;
}
.contact-popup-list a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.08rem;
    transition: text-decoration 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.contact-popup-list a:hover {
    /* No color change, only underline */
    text-decoration: underline;
}
.contact-popup-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(74,105,189,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, top 0.2s, right 0.2s;
    z-index: 1;
    outline: none;
    line-height: 1;
    padding: 0;
}
.contact-popup-close:hover, .contact-popup-close:focus {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(74,105,189,0.18);
}
@media (max-width: 600px) {
    .contact-popup-card {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        min-width: 0;
    }
    .contact-popup-list div {
        font-size: 0.98rem;
        padding: 0.45em 0.7em;
    }
    /* Fix close button overlapping heading */
    .contact-popup-close {
        top: 0.7rem;
        right: 0.7rem;
        /* Move heading down to avoid overlap */
    }
    .contact-popup-card h2 {
        margin-top: 2.2rem;
    }
}