/* ===========================================
   LOADED WITH LOVE - MOBILE FIRST STYLES
   Dark Theme with Orange Accents
   =========================================== */

/* Base mobile fix - helps prevent jank from starting */
@media (max-width: 767px) {
    .background-image {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    /* Improve scroll performance */
    html {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
}


/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #FFFFFF;
    background: #1A1A1A;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== BACKGROUND & PARALLAX ===== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: -50px; /* Lower the background image */
    left: 0;
    width: 100%;
    height: calc(100% + 50px); /* Adjust height to compensate */
    background-image: url('../images/bgi.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.7) 50%,
        rgba(26, 26, 26, 0.9) 100%
    );
    z-index: -1;
}

/* ===== GLASS NAVIGATION ===== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== RESPONSIVE LOGO SIZES ===== */
/* Mobile (88*40) - logo_1.png */
.logo-image {
    height: 40px; /* Mobile: logo_1.png - 88*40 */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: transparent;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Hide the heart icon when using image logo */
.nav-logo-image .logo-heart {
    display: none;
}

/* Tablet (110*50) - logo_2.png */
@media (min-width: 768px) and (max-width: 1199px) {
    .logo-image {
        height: 50px; /* Tablet: logo_2.png - 110*50 */
    }
}

/* Desktop (132*60) - logo_3.png */
@media (min-width: 1200px) {
    .logo-image {
        height: 60px; /* Desktop: logo_3.png - 132*60 */
    }
}

/* Keep the logo text visible on tablet and desktop */
@media (min-width: 768px) {
    .nav-logo .logo-text {
        display: inline;
        font-size: 1.25rem;
        margin-left: 8px;
        color: #FFFFFF;
    }
}

/* Mobile - hide text on small screens */
@media (max-width: 767px) {
    .nav-logo .logo-text {
        display: none;
    }
}

/* Desktop Menu */
.nav-menu {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF;
    background: rgba(255, 107, 53, 0.1);
}

.nav-link i {
    font-size: 1rem;
}

/* Admin Icon */
.admin-icon {
    opacity: 0.6;
    margin-left: 1rem;
    padding: 0.5rem;
}

.admin-icon:hover {
    opacity: 1;
    background: rgba(255, 107, 53, 0.2);
}

.admin-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF6B35;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== SIMPLE BLACK PANEL - GUARANTEED TO WORK ===== */
.black-panel {
    background: #000000 !important;
    color: #FFFFFF !important;
    padding: 60px 20px;
    position: relative;
    z-index: 50;
    min-height: 100vh;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.black-panel * {
    color: #FFFFFF !important;
}

.panel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.black-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #FFFFFF !important;
    border-bottom: 2px solid #FF6B35;
    padding-bottom: 20px;
}

.panel-content {
    background: #111111;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333333;
}

.panel-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #EEEEEE !important;
}

/* Image Grid */
.panel-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.panel-image {
    background: #222222;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333333;
}

.image-placeholder {
    text-align: center;
    color: #FF6B35 !important;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    color: #FF6B35 !important;
}

.image-placeholder span {
    display: block;
    font-weight: 600;
    color: #FFFFFF !important;
}

/* Columns */
.panel-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.column {
    background: #1A1A1A;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333333;
}

.column h3 {
    color: #FF6B35 !important;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.column h3 i {
    color: #FF6B35 !important;
}

/* Highlight Section */
.panel-highlight {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #FF6B35;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.panel-highlight h3 {
    color: #FF6B35 !important;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight {
    font-style: italic;
    color: #FF6B35 !important;
    border-left: 3px solid #FF6B35;
    padding-left: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Buttons */
.panel-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #333333;
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.panel-btn:hover {
    transform: translateY(-3px);
    background: #444444;
}

.panel-btn.primary {
    background: #FF6B35;
    color: #FFFFFF !important;
}

.panel-btn.primary:hover {
    background: #FF8E53;
}

/* Responsive */
@media (max-width: 768px) {
    .panel-image-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-columns {
        grid-template-columns: 1fr;
    }
    
    .panel-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .panel-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .black-panel h2 {
        font-size: 2rem;
    }
}

/* Force this panel to be visible */
body .black-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Debug styles - remove if working */
.debug-border {
    border: 3px solid red !important;
}


/* Mobile Menu Dropdown */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    display: none;
    flex-direction: column;
    padding: 1rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #FFFFFF;
    background: rgba(255, 107, 53, 0.15);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-badge {
    background: #FF6B35;
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.hero-container {
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

/* Logo Container */
.logo-container {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.logo-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.logo-main-heart {
    font-size: 5rem;
    color: #FF6B35;
    display: block;
}

.logo-truck {
    font-size: 2rem;
    color: #FFFFFF;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(26, 26, 26, 0.7);
    padding: 0.5rem;
    border-radius: 50%;
}

.logo-text-main {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===== CTA BUTTONS ===== */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto 3rem;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: none;
    cursor: pointer;
    min-height: 60px;
    transform-style: preserve-3d;
}

.cta-button:active {
    transform: translateY(4px);
}

.cta-button .btn-shadow {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    z-index: -1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button.pressed {
    transform: translateY(4px);
}

.cta-button.pressed .btn-shadow {
    top: 4px;
}

/* Book Button */
.book-btn {
    background: #FF6B35;
    color: #1A1A1A;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

.book-btn .btn-shadow {
    background: rgba(255, 107, 53, 0.4);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.book-btn.pressed .btn-shadow {
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.1);
}

/* Menu Button */
.menu-btn {
    background: #1A1A1A;
    color: #FF6B35;
    box-shadow: 0 8px 30px rgba(26, 26, 26, 0.3);
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.menu-btn .btn-shadow {
    background: rgba(26, 26, 26, 0.4);
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.2);
}

.menu-btn.pressed .btn-shadow {
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.1);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: #FF6B35;
}

/* ===== INFO CARD ===== */
.info-card-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h3 i {
    color: #FF6B35;
}

.card-toggle {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: #FF6B35;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-toggle:hover {
    background: rgba(255, 107, 53, 0.2);
}

.card-toggle.expanded i {
    transform: rotate(180deg);
}

.card-content {
    padding: 1.5rem;
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile: collapsed by default */
@media (max-width: 768px) {
    .card-content:not(.expanded) {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .card-content.expanded {
        max-height: 1000px;
    }
}

/* Info Items */
.info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: #FF6B35;
    font-size: 1.2rem;
}

.info-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-text p {
    font-size: 1.1rem;
    color: #FFFFFF;
    font-weight: 500;
}

.phone-link, .email-link {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.phone-link:hover, .email-link:hover {
    color: #FF8E53;
    text-decoration: underline;
}

.small-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #FF6B35;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== TABLET STYLES ===== */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
    
    .nav-logo .logo-text {
        display: inline;
    }
    
    .logo-image {
        height: 45px; /* Slightly larger on tablets */
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .logo-text-main {
        font-size: 3.5rem;
    }
    
    .cta-container {
        flex-direction: row;
        justify-content: center;
    }
    
    .cta-button {
        min-width: 180px;
    }
    
    .logo-icon {
        width: 150px;
        height: 150px;
    }
    
    .logo-main-heart {
        font-size: 6rem;
    }
    
    .logo-truck {
        font-size: 2.5rem;
    }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1024px) {
    .logo-text-main {
        font-size: 4rem;
    }
    
    .logo-image {
        height: 50px; /* Slightly larger on desktop */
    }
    
    .cta-button {
        min-width: 200px;
        padding: 1.5rem 2.5rem;
        font-size: 1.2rem;
    }
    
    .info-card {
        max-width: 600px;
    }
    
    .card-content {
        padding: 2rem;
    }
    
    .info-item {
        padding: 1.5rem 0;
    }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1200px) {
    .nav-container {
        padding: 1.5rem 2rem;
    }
    
    .hero-container {
        max-width: 1000px;
    }
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ===== NUCLEAR ANDROID FIX - ADD TO END OF STYLE.CSS ===== */
@media (max-width: 767px) {
    /* 1. Kill ALL animations and transitions on Android */
    body.android * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* 2. Force simple background for Android */
    body.android .background-container {
        display: none !important;
    }
    
    /* 3. Alternative background for Android */
    #android-bg-fallback {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: -9999 !important;
        background: #1A1A1A !important; /* Fallback solid color */
    }
    
    /* 4. Disable ALL hover effects */
    .panel-image:hover,
    .column:hover,
    .panel-highlight:hover,
    [onmouseover]:hover {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
    
    /* 5. Optimize scrolling */
    html {
        -webkit-overflow-scrolling: touch !important;
        overflow-scrolling: touch !important;
        scroll-behavior: auto !important; /* Disable smooth scroll if problematic */
    }
    
    /* 6. Force GPU layers */
    .glass-nav,
    .hero-section,
    .info-card,
    [style*="background-color: #000000"] {
        -webkit-transform: translate3d(0,0,0) !important;
        transform: translate3d(0,0,0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
}

/* ===== SAMSUNG A12 EMERGENCY OVERRIDES ===== */
/* These styles ONLY apply to A12 */
@media (max-width: 767px) {
    /* Detect A12 by pixel ratio and screen size */
    @media (-webkit-device-pixel-ratio: 2) and (max-height: 900px) {
        /* KILL all animations */
        * {
            animation: none !important;
            transition: none !important;
        }
        
        /* Use solid colors instead of gradients */
        .glass-nav {
            background: rgba(26, 26, 26, 0.95) !important;
            backdrop-filter: none !important;
        }
        
        .glass-card {
            background: rgba(40, 40, 40, 0.9) !important;
            backdrop-filter: none !important;
        }
        
        /* Simplify shadows */
        .glass-nav,
        .glass-card,
        .panel-content {
            box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
        }
        
        /* Remove image hover effects */
        .panel-image {
            transition: none !important;
        }
        
        .panel-image:hover {
            transform: none !important;
            box-shadow: none !important;
        }
        
        /* Ensure scroll works */
        html {
            scroll-behavior: auto !important;
        }
    }
}