:root {
    --color-yellow: #F375C2;  /* Light Pink */
    --color-red: #B153D7;     /* Purple Pink */
    --color-blue: #4D2FB2;    /* Deep Purple */
    --color-navy: #0E21A0;    /* Space Navy */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --border-width: 8px;
}
* { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0E21A0 0%, #4D2FB2 50%, #111111 100%);
    background-color: var(--color-navy);
    background-attachment: fixed;
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh;
}
.page-wrapper { width: 100%; max-width: 600px; padding: 0; }
.mondrian-grid {
    display: grid;
    grid-template-columns: minmax(0, 15%) auto minmax(0, 20%);
    grid-template-rows: 200px 140px 140px auto auto;
    grid-template-areas:
        "m-top  m-top  m-top"
        "m-left photo  m-right"
        "y-left photo  b-right"
        "r-left quote  quote"
        "menu   menu   blue";
    gap: var(--border-width);
    background-color: var(--color-black);
    border: var(--border-width) solid var(--color-black);
}
.box { 
    background-color: var(--color-white); 
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(20px);
}
.section-yellow { background-color: var(--color-yellow); }
.section-red { background-color: var(--color-red); }
.section-blue { background-color: var(--color-blue); }
.section-black { background-color: var(--color-navy); }
.section-white { background-color: var(--color-white); }
.bg-white { background-color: var(--color-white); }
.bg-memphis {
    background-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M10,15 l10,-10 M40,20 l10,-5 M20,40 l-10,10 M50,50 l-10,10' stroke='%23000' stroke-width='4' stroke-linecap='round' /%3E%3C/svg%3E");
    background-size: 60px 60px;
}
.m-top { grid-area: 1 / 1 / 2 / 4; position: relative; } /* Spans all 3 cols for memphis background */
.item-header {
    /* Span from column 1 through column 2 so it is flush with left edge! */
    grid-area: 1 / 1 / 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    z-index: 2; /* Needs to sit above the wide memphis background */
}
.m-left { grid-area: m-left; overflow: visible; }
.m-right { grid-area: m-right; overflow: visible; }
.m-left::before, .m-right::before {
    content: ''; position: absolute;
    top: calc(var(--border-width) * -1);
    left: 0; right: 0; height: var(--border-width);
    background-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M10,15 l10,-10 M40,20 l10,-5 M20,40 l-10,10 M50,50 l-10,10' stroke='%23000' stroke-width='4' stroke-linecap='round' /%3E%3C/svg%3E");
    background-size: 60px 60px; z-index: 5;
}
.y-left { grid-area: y-left; }
.r-left { grid-area: r-left; }
.b-right { grid-area: b-right; }
.w-right { grid-area: w-right; }
.photo-container { grid-area: photo; }
.quote-container { grid-area: quote; }
.menu-box { grid-area: menu; }
.blue { grid-area: blue; }

.header-content {
    background-color: var(--color-white);
    border: var(--border-width) solid var(--color-black);
    padding: 1.5rem 2rem 1.5rem calc(15% + 2rem + var(--border-width)); 
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: left;
}
.header-content h1 {
    font-family: 'Saira Stencil One', sans-serif;
    font-size: 3rem; font-weight: 400; font-style: normal; margin: 0; line-height: 1; text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--color-black);
}
.header-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem; font-weight: 400; margin: 0.3rem 0 0 0.1rem; color: #000;
}
.photo-container img, .photo-container video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.photo-container:hover img, .photo-container:hover video { transform: scale(1.08); }
.quote-container { display: flex; align-items: center; justify-content: center; padding: 0; }
.quote-inner { max-width: 90%; }
.quote-text {
    font-family: 'Story Script', sans-serif; font-size: 1.4rem; font-weight: 400; font-style: normal;
    line-height: 1.6; color: #333; margin: 0;
}
.quote-author {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem;
    color: var(--color-black); margin: 1rem 0 0 0; display: block;
}
.menu-box { background-color: var(--color-black); padding: 0; }
.menu-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--border-width); height: 100%; }
.menu-box li { display: flex; flex-grow: 1; }
.menu-box li:nth-child(1) { background-color: var(--color-red); }
.menu-box li:nth-child(2) { background-color: var(--color-blue); }
.menu-box li:nth-child(3) { background-color: var(--color-yellow); }
.menu-box li:nth-child(4) { background-color: var(--color-red); }
.menu-box li:nth-child(5) { background-color: var(--color-blue); }
.menu-box li a.menu-link {
    text-decoration: none; color: var(--color-white);
    font-family: 'Saira Stencil One', sans-serif; font-size: 3rem; font-weight: 400; font-style: normal;
    line-height: 1; text-transform: uppercase; transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 2rem 0;
}
.menu-box li a.menu-link:hover {
    color: var(--color-white); background-color: var(--color-black);
}
.hover-invert { transition: filter 0.3s ease, transform 0.3s ease; }
.hover-invert:hover { filter: saturate(1.5) brightness(1.1); cursor: crosshair; }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background */
    display: flex; justify-content: center; align-items: center;
    z-index: 100;
    opacity: 0; pointer-events: none; /* Hidden by default */
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1; pointer-events: all;
}
.text-center { text-align: center; }
.text-center p { margin-bottom: 2rem; }
.modal-content {
    background-color: var(--color-white);
    border: var(--border-width) solid var(--color-black);
    padding: 3rem;
    max-width: 800px; width: 90%; max-height: 90vh;
    overflow-y: auto; position: relative;
    box-shadow: 12px 12px 0px var(--color-black);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}
.modal-header-container {
    position: relative;
    border-bottom: var(--border-width) solid var(--color-black);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-header-container h2 {
    font-family: 'Saira Stencil One', sans-serif; font-size: 3rem; color: var(--color-black); font-weight: 400; font-style: normal;
    text-transform: uppercase; margin: 0;
    text-align: center;
    line-height: 1; letter-spacing: -1px;
}
.lang-toggle-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-yellow);
    border: 3px solid var(--color-black);
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--color-black);
    transition: all 0.2s ease;
}
.lang-toggle-btn:hover {
    transform: translateY(-50%) translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--color-black);
}
.modal-content p {
    font-family: 'Inter', sans-serif; font-size: 1.1rem; line-height: 1.6;
    margin-bottom: 1.5rem; color: #333; font-weight: 500;
}
.modal-content p:last-child { margin-bottom: 0; }
.close-btn {
    position: absolute; top: 0; left: 0;
    background-color: var(--color-red); color: var(--color-white);
    border: none;
    border-right: var(--border-width) solid var(--color-black);
    border-bottom: var(--border-width) solid var(--color-black);
    width: 60px; height: 60px; font-family: 'Saira Stencil One', sans-serif;
    font-size: 1.6rem; font-weight: 400; font-style: normal; cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex; justify-content: center; align-items: center;
    z-index: 50; /* Ensure it stays above scrolling text */
}
.close-btn:hover {
    background-color: #ff3333;
}

/* Contact Form Styles */
.contact-form {
    display: flex; flex-direction: column; gap: 1.5rem;
}
.form-group {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.form-group label {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem;
    color: var(--color-black); text-transform: uppercase; letter-spacing: 1px;
}
.contact-form input, .contact-form textarea {
    font-family: 'Inter', sans-serif; font-size: 1.1rem;
    padding: 1rem;
    border: 3px solid var(--color-black);
    background-color: #f9f9f9;
    color: var(--color-black);
    box-shadow: 4px 4px 0px var(--color-black);
    transition: all 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; background-color: var(--color-white);
    box-shadow: 2px 2px 0px var(--color-black);
    transform: translate(2px, 2px);
}
.submit-btn {
    font-family: 'Saira Stencil One', sans-serif; font-size: 2rem; font-weight: 400; font-style: normal;
    background-color: var(--color-yellow); color: var(--color-black);
    border: 4px solid var(--color-black); padding: 1rem;
    text-transform: uppercase; cursor: pointer;
    box-shadow: 6px 6px 0px var(--color-black);
    transition: all 0.2s ease; margin-top: 1rem;
}
.submit-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0px var(--color-black);
    background-color: var(--color-white);
}
.contact-status {
    font-family: 'Inter', sans-serif; font-weight: 700; text-align: center; font-size: 1.1rem;
    margin-top: 1rem; padding: 0.5rem;
}
.status-success { color: #00aa00; }
.status-error { color: var(--color-red); }

/* -------------------------------------------
   RESPONSIVE DESIGN ADAPTATIONS 
------------------------------------------- */

/* Mobile Devices (Smartphones) */
@media (max-width: 767px) {
    .page-wrapper { padding: 0.5rem; }
    .mondrian-grid {
        --border-width: 6px;
        grid-template-columns: minmax(0, 15%) auto minmax(0, 15%);
        grid-template-rows: 150px 140px 140px auto auto;
        gap: var(--border-width);
        border-width: var(--border-width);
        grid-template-areas:
            "m-top  m-top  m-top"
            "m-left photo  m-right"
            "y-left photo  b-right"
            "r-left quote  quote"
            "menu   menu   blue";
    }
    .m-top { grid-area: 1 / 1 / 2 / 4; position: relative; } 
    .item-header { grid-area: 1 / 1 / 2 / 3; padding: 0; align-items: stretch; }
    .header-content { 
        padding: 1rem 1rem 1rem calc(15% + 1rem + 6px); 
        align-items: flex-start; text-align: left;
    }
    .header-content h1 { font-size: 2.2rem; letter-spacing: -1px; }
    .header-content p { font-size: 1rem; margin-top: 0.2rem; }
    
    .quote-container { padding: 0; }
    .quote-text { font-size: 1rem; line-height: 1.4; }
    .quote-author { font-size: 1rem; margin-top: 1rem; }
    
    .menu-box { padding: 0; }
    .menu-box li a.menu-link { font-size: 2.2rem; line-height: 1.2; padding: 1.5rem 0; }
    
    /* Modal responsive */
    .modal-content { padding: 1.5rem; }
    .modal-header-container { flex-direction: column; gap: 1rem; }
    .modal-header-container h2 { font-size: 2.2rem; }
    .lang-toggle-btn { position: relative; top: auto; right: auto; transform: none; align-self: center; }
    .lang-toggle-btn:hover { transform: translate(2px, 2px); }
    .modal-content p { font-size: 1rem; }
    .close-btn { width: 45px; height: 45px; font-size: 1.2rem; }
}

/* Tablet & Laptop Horizontal (Desktop Default) */
@media (min-width: 768px) {
    .page-wrapper { max-width: 900px; padding: 2rem; }
    .mondrian-grid {
        --border-width: 10px;
        grid-template-columns: 20% auto 25%;
        grid-template-rows: 250px 200px 200px auto auto;
        gap: var(--border-width);
        border-width: var(--border-width);
    }
    .header-content { padding: 2rem 3rem; }
    .header-content h1 { font-size: 4rem; letter-spacing: -2px; }
    .header-content p { font-size: 1.5rem; margin-top: 0.5rem; }
    .menu-box { padding: 0; }
    .menu-box li a.menu-link { font-size: 3.5rem; line-height: 1.2; }
    .quote-container { padding: 0; }
    .quote-text { font-size: 1.4rem; line-height: 1.6; }
    .quote-author { font-size: 1.2rem; margin-top: 1.5rem; }
}

/* Widescreen Displays */
@media (min-width: 1200px) {
    .page-wrapper { max-width: 1200px; padding: 3rem; }
    .mondrian-grid {
        --border-width: 12px;
        grid-template-rows: 350px 230px 230px auto auto;
        gap: var(--border-width);
        border-width: var(--border-width);
    }
    .header-content { padding: 3rem 4rem; }
    .header-content h1 { font-size: 6rem; }
    .header-content p { font-size: 2rem; }
    .menu-box li a.menu-link { font-size: 5rem; }
    .quote-text { font-size: 2rem; }
    .quote-author { font-size: 1.6rem; }
}

/* AI BG Remover Integrations */
.bg-remove-wrapper {
    padding: 0;
    background-color: #12131A;
    max-width: 414px;
    box-shadow: 12px 12px 0px var(--color-black);
}

.bg-remove-wrapper .close-btn {
    border-right: var(--border-width) solid var(--color-black);
    border-bottom: var(--border-width) solid var(--color-black);
}

.bg-remove-app {
    width: 100%;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 85vh; 
    overflow-y: auto;
}

.bg-remove-app .app-header {
    display: flex; justify-content: space-between; align-items: center; padding: 24px 20px 24px 70px;
}

.bg-remove-app .logo-area { display: flex; align-items: center; gap: 12px; }
.bg-remove-app .logo-icon {
    width: 36px; height: 36px; background: linear-gradient(135deg, #FFB0D2 0%, #BA77F5 100%);
    border-radius: 10px; display: flex; justify-content: center; align-items: center; color: white;
}
.bg-remove-app .app-title { font-size: 18px; font-weight: 700; color: #FFFFFF; font-family: 'Inter', sans-serif;}

.bg-remove-app .history-btn {
    background: #1C1E2A; border: none; width: 40px; height: 40px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; color: #FFFFFF; cursor: pointer; transition: background 0.2s;
}
.bg-remove-app .history-btn:hover { background: #2A2C38; }

.bg-remove-app .app-main-content { flex: 1; padding: 10px 20px 24px; display: flex; flex-direction: column; }

.bg-remove-app .badge-wrapper { margin-bottom: 24px; text-align: left; }
.bg-remove-app .ai-badge {
    background: linear-gradient(90deg, #F375C2 0%, #FA95B9 100%); color: white; padding: 6px 14px;
    border-radius: 20px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center;
    box-shadow: 0 4px 15px rgba(243, 117, 194, 0.3);
}

.bg-remove-app .hero-title {
    font-size: 42px; line-height: 1.15; font-weight: 800; margin-top: 0; margin-bottom: 16px;
    letter-spacing: -0.5px; text-align: left; color: #FFFFFF; font-family: 'Inter', sans-serif; text-transform: none;
}
.bg-remove-app .hero-subtitle {
    color: #8B8C96; font-size: 14px; line-height: 1.5; margin-bottom: 24px; text-align: left;
    font-family: 'Inter', sans-serif; font-weight: 400; text-transform: none;
}

.bg-remove-app .feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.bg-remove-app .tag {
    background: #1C1D26; color: #C0C3D6; padding: 8px 14px; border-radius: 10px;
    font-size: 13px; font-weight: 500; border: 1px solid #2B2D3A;
}

.bg-remove-app .upload-area {
    margin-top: auto; margin-bottom: 24px; border: 2px dashed #303240; border-radius: 20px;
    padding: 40px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #161821; cursor: pointer; transition: all 0.2s;
}
.bg-remove-app .upload-area:hover { border-color: #F375C2; background: #191B26; }
.bg-remove-app .upload-icon-wrapper {
    width: 64px; height: 64px; background: linear-gradient(135deg, #F581A7 0%, #A675EB 100%);
    border-radius: 18px; display: flex; justify-content: center; align-items: center;
    margin-bottom: 20px; box-shadow: 0 8px 16px rgba(166, 117, 235, 0.25);
}
.bg-remove-app .upload-text { font-weight: 700; font-size: 17px; margin-bottom: 8px; color: #FFFFFF; }
.bg-remove-app .upload-subtext { color: #8B8C96; font-size: 13px; font-weight: 500; margin: 0; }

.bg-remove-app .action-buttons { display: flex; gap: 12px; margin-bottom: 16px; min-height: 56px;}
.bg-remove-app .action-btn {
    flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px;
    background: #8D76EC; color: white; border: none; padding: 18px 0; border-radius: 12px;
    font-weight: 700; font-size: 14px; letter-spacing: 0.5px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(141, 118, 236, 0.2); transition: transform 0.2s, background 0.2s;
    font-family: 'Inter', sans-serif;
}
.bg-remove-app .action-btn:hover { transform: translateY(-2px); background: #9B86FA; }

@media (max-width: 767px) {
    .bg-remove-wrapper { max-width: 90%; height: auto; }
    .bg-remove-app .hero-title { font-size: 32px; }
}
