/* Source: mobile_menu.css */
:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-gray: #888888;
    --border-gray: #333333;
}

/* Menu Toggle */
.menu-toggle {
    background: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.menu-toggle span {
    position: absolute;
    width: 16px;
    height: 2px;
    background: var(--bg-black);
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle span:nth-child(1) {
    top: 19px;
}

.menu-toggle span:nth-child(2) {
    top: 24px;
}

.menu-toggle span:nth-child(3) {
    top: 29px;
}

.menu-toggle.active span:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Full Screen Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-black);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    padding: 80px 2rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain; /* Prevents scroll-chaining to the background */
    touch-action: pan-y; /* Ensures the menu handles its own vertical touch gestures */
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Close Button */
.menu-close {
    position: fixed;
    top: 1.2rem;
    right: 2rem;
    background: var(--text-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    opacity: 0;
    transform: scale(0.8);
}

.menu-close, .menu-logo {
    z-index: 20001 !important;
}

.mobile-menu.active .menu-close {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease 0.3s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.menu-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.menu-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--bg-black);
}

.menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

/* Modern Background Shapes */
.menu-bg-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.mobile-menu.active .menu-bg-shape {
    opacity: 1;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: -50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: rotate 25s linear infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -40px); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-30px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes morph {
    0%, 100% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }
    50% { 
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg);
    }
}

/* Gradient overlay */
.menu-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.mobile-menu.active .menu-gradient {
    opacity: 1;
}

/* Scrollbar */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 2px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

/* Menu Content */
.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 600px;
    width: 100%;
    min-height: calc(100vh - 120px);
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.menu-nav {
    list-style: none;
    padding: 0 0 2rem 0;
    margin: 0;
}

.menu-nav li {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .menu-nav li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .menu-nav li:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.active .menu-nav li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .menu-nav li:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu.active .menu-nav li:nth-child(4) { transition-delay: 0.3s; }
.mobile-menu.active .menu-nav li:nth-child(5) { transition-delay: 0.35s; }
.mobile-menu.active .menu-nav li:nth-child(6) { transition-delay: 0.4s; }
.mobile-menu.active .menu-nav li:nth-child(7) { transition-delay: 0.45s; }

.menu-nav a {
    font-size: 40px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 300;
    line-height: 1.2;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.2rem 0;
    width: fit-content;
}

.menu-nav a::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-nav a:hover {
    color: var(--text-white);
    padding-left: 1 rem;
    letter-spacing: 2px;
}

.menu-nav a:hover::before {
    height: 100%;
}

/* Footer */
.menu-footer {
    margin-top: auto;
    padding-top: 3rem;
    padding-bottom: 130px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .menu-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.menu-address {
    margin-bottom: 2rem;
}

.menu-address p {
    font-size: 0.8rem;
    color: var(--text-white);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.menu-social {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.menu-social::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.social-links a:hover::before {
    opacity: 1;
    width: 40px;
    height: 40px;
}

.social-links svg {
    width: 20px;
    height: 20px;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0));
    transition: filter 0.4s ease;
}

.social-links a:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.menu-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.menu-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

.menu-bottom a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-bottom a:hover {
    color: var(--text-white);
}

/* 1. Base State: Hidden and Clean */
.mobile-submenu {
    height: 0;             /* Changed from max-height to height */
    opacity: 0;            /* Start invisible */
    overflow: hidden;
    list-style: none;
    padding-left: 20px;
    /* background: rgba(255, 255, 255, 0.03); */
    margin-top: 0;         /* Handled by JS for smoothness */
    border-radius: 10px;
    /* REMOVED transition: max-height - JS handles timing now */
}

/* 2. Content Styles */
.mobile-submenu li a {
    font-size: 22px; 
    padding: 12px 0;
    opacity: 0.8;
    color: #ffffff;
    display: block;
    transition: color 0.3s ease;
}

.mobile-submenu li a:hover {
    color: #E03800;
}

/* 3. The Toggle Link (Parent) */
.mob-submenu-toggle {
    display: block; /* Ensures the + stays on the right */
    width: 100%;
}

/* 4. Indicator Logic */
.mob-submenu-toggle::after {
    content: '+';
    float: right;
    font-weight: 300;
    font-size: 3rem;
    margin-left: 5px;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Rotate the + to a x when active */
.mob-submenu-toggle.active::after {
    transform: rotate(45deg);
    color: #E03800;
}

/* Source: file_uploader.css */
:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-300: #fda4af;
    --rose-400: #fb7185;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-800: #1e293b;
}

.upload-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(251, 113, 133, 0.08), 0 1px 4px rgba(0,0,0,0.05);
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 680px;
}

/* label acts as the drop zone */
.drop-zone {
    display: block;
    border: 1px dashed #000000;
    border-radius: 16px;
    background: #e9e9e9;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #000000;
    background: rgb(231, 230, 230);
}

.upload-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transition: transform 0.25s ease;
}

.drop-zone:hover .upload-icon-wrap {
    transform: translateY(-3px);
}

.upload-icon-wrap svg {
    width: 26px;
    height: 26px;
    stroke: #323232;
}

.upload-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #323232;
    margin-bottom: 0.25rem;
}

.upload-browse {
    color: #323232;
    font-weight: 600;
}

.upload-meta {
    font-size: 0.78rem;
    color: #7c7c7c;
    font-weight: 500;
}

.file-preview {
    display: none;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1.5px solid #d3d3d3;
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    margin-top: 1rem;
}

.file-preview.show { display: flex; }

.file-icon {
    width: 36px;
    height: 36px;
    background: #323232;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-info { flex: 1; min-width: 0; }

.file-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size { font-size: 0.75rem; color: var(--slate-400); }

.btn-remove {
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.btn-remove:hover { color: var(--rose-400); background: var(--rose-50); }

#fileInput { display: none; }

