@font-face {
    font-family: 'Saigon Melon';
    src: url('Assets/Fonts/Saigon Melon.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #ffffff;
    --text-color: #222222;
    --text-muted: #555555;
    --accent-color: #f28b82;
    --nav-height: 70px;
    --container-width: 1200px;
    --radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('Assets/Cursor.png'), auto !important;
}

body {
    font-family: 'Saigon Melon', cursive;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Saigon Melon', cursive;
    font-weight: normal;
}

/* Hero Image Only */
.hero-image-only {
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: #faf9f6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-only img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Covers the full width, cropping if necessary */
    display: block;
    object-position: center;
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-container.center-nav {
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: 'Saigon Melon', cursive;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.4rem;
    /* Slightly larger base size since decorative fonts often run small */
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Base Sections */
.section {
    padding: 4rem 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section.pt-0 {
    padding-top: 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.subsection-title {
    font-family: 'Saigon Melon', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin: 1rem 0 1.5rem;
    color: var(--text-color);
}

/* Custom 2-column layout for Greeting Cards */
.gallery-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    width: 100%;
}

.gallery-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 1 320px;
    /* Restricts width so image sizes perfectly match original scale */
}

@media (max-width: 768px) {
    .gallery-cards {
        flex-direction: column;
        align-items: center;
    }

    .gallery-col {
        width: 100%;
        max-width: 380px;
    }
}

/* Modal Implementation */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 850px;
    width: 90%;
    position: relative;
    text-align: left;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.modal-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
}

.modal-left {
    flex: 1.2;
    min-width: 250px;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-color);
}

/* Contact Form & Coming Soon Styles */
.coming-soon-wrapper {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.coming-soon-title {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: 'Saigon Melon', cursive;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: #faf9f6;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(242, 139, 130, 0.2);
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #e57373;
    transform: translateY(-2px);
}

/* Gallery - Centered Flex Grid (3 + 2 layout) */
.gallery-centered-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 2rem auto;
    width: 100%;
    max-width: 900px;
    /* Constrains width to roughly match navbar width spread */
}

.gallery-centered-flex .gallery-item {
    width: calc(33.333% - 14px);
    /* Fits exactly 3 in a row */
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background-color: #f1f1f1;
    cursor: pointer;
}

.gallery-centered-flex .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-centered-flex .gallery-item:hover img {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .gallery-centered-flex .gallery-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .gallery-centered-flex {
        gap: 15px;
    }

    .gallery-centered-flex .gallery-item {
        width: 100%;
    }
}

/* Gallery - CSS Native Masonry */
.gallery {
    column-count: 4;
    column-gap: 20px;
    margin-bottom: 2rem;
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background-color: #f1f1f1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* Fully visible, no crop */
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* Specific to Branding Page Hero */
.branding-hero {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
}

.branding-hero h1 {
    font-size: 4rem;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Playground Styles */
.playground-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.toolbar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: #fafafc;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    justify-content: center;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar button {
    padding: 0.6rem 1.2rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.toolbar button:hover,
.toolbar button.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.toolbar input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

#playground-canvas {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: crosshair;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    touch-action: none;
    max-width: 100%;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #eee;
    padding: 4rem 2rem 2rem;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.footer-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 992px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .nav-container.center-nav {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .gallery {
        column-count: 2;
        column-gap: 15px;
    }

    .gallery-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .gallery {
        column-count: 1;
    }
}