/* ===================================
   PocketVC Main Stylesheet
   Organized and Optimized
   =================================== */

/* =============
   CSS Variables
   ============= */
:root {
    --primary-50: #f0f4f8;
    --primary-100: #d9e6f2;
    --primary-200: #b3cce5;
    --primary-300: #8db3d8;
    --primary-400: #6699cb;
    --primary-500: #4080be;
    --primary-600: #336699;
    --primary-700: #264d73;
    --primary-800: #1a334d;
    --primary-900: #003366;
    --navy-blue: #003366;
}

/* ==============
   Base Styles
   ============== */
body {
    font-family: 'Inter', sans-serif;
}

/* ==============
   Mobile Performance Optimizations
   ============== */
@media (max-width: 768px) {
    /* Reduce motion on mobile for better performance */
    .category-carousel {
        animation-duration: 20s; /* Slower animation on mobile */
    }
    
    /* Optimize video loading on mobile */
    video {
        preload: metadata;
    }
    
    /* Reduce complex shadows and effects on mobile */
    .card, .benefit-card, .solution-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Optimize text rendering on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
    }
}

/* =============
   Hero Styles (used across multiple pages)
   ============= */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
}

/* ====================
   Navigation Styles
   ==================== */
nav,
nav *,
.mobile-menu,
.mobile-menu * {
    background: transparent !important;
}

nav {
    background: transparent !important;
    background-color: transparent !important;
}

/* Force complete transparency on mobile navigation */
nav,
nav *,
.mobile-menu,
.mobile-menu *,
.mobile-menu-dropdown,
nav div,
nav div * {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Specifically target the nav container */
nav.absolute {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Target the inner nav divs */
nav .max-w-7xl,
nav .flex,
nav .flex * {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* ==============
   Footer Styles
   ============== */
footer {
    background: white !important;
}

/* =============
   Card Styles (Base & Shared)
   ============= */
/* Base card style - used across all pages */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-100);
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.category-chip {
    background: white;
    border: 2px solid var(--primary-200);
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 500;
    color: var(--primary-700);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-chip:hover {
    border-color: var(--primary-500);
    color: var(--primary-900);
    transform: translateY(-2px);
}

.category-chip.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

/* Note: .benefit-card and .solution-card now inherit from .card base class
   No additional styles needed - they use the base card styles */

/* ==============
   Button Styles
   ============== */
/* Base button styles */
.cta-button {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

/* Solid primary button */
.cta-button-primary {
    background: var(--primary-600);
    color: white;
}

.cta-button-primary:hover {
    background: var(--primary-700);
}

/* Transparent button (for use on video/image backgrounds) */
.cta-button-transparent {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-button-transparent:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Secondary variant */
.cta-button-secondary {
    background: white;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.cta-button-secondary:hover {
    background: var(--primary-50);
}

.cta-button-secondary-transparent {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button-secondary-transparent:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* =============
   Form Styles
   ============= */
.search-input::placeholder {
    color: rgba(0, 75, 135, 0.7);
}

.search-input:focus::placeholder {
    color: rgba(0, 75, 135, 0.5);
}

/* =============
   Modal Styles (Base)
   ============= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    background: none;
    border: none;
    z-index: 1001;
}

.close:hover {
    color: #000;
    transform: scale(1.1);
}

/* ==================
   Carousel Styles
   ================== */
.category-carousel-container {
    position: relative;
    overflow: hidden;
}

.category-carousel {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
}

.animate-scroll {
    animation: scroll 7s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.category-carousel:hover {
    animation-play-state: paused;
}

/* =====================
   Phone Frame Styles
   ===================== */
.phone-frame {
    width: 320px;
    height: 665px;
    background: #1a1a1a;
    border-radius: 45px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
}

.carousel-dot.active {
    background-color: var(--primary-600);
}

/* ==================
   Interactive Styles
   ================== */
.step-item {
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(8px);
}

/* =============================
   Mobile Menu Dropdown Styles
   ============================= */
.mobile-menu-dropdown {
    background: white !important;
    background-color: white !important;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-dropdown a {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.mobile-menu-dropdown a:hover {
    background: rgba(0, 75, 135, 0.1);
}

/* ==================
   Responsive Styles
   ================== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    footer {
        background: white !important;
    }
}

