@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* Font Family Defaults & Smooth Scroll */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: #070a11;
    color: #f1f5f9;
    overflow-x: hidden;
}

/* Glassmorphism Panel Utilities */
.glass-panel {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 12px 30px -10px rgba(56, 189, 248, 0.15);
}

/* Feed Only Distinct Background Card Style */
.pkg-feed-card {
    background: linear-gradient(145deg, rgba(6, 44, 34, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pkg-feed-card:hover {
    border-color: rgba(52, 211, 153, 0.65);
    box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.25);
}

/* Ambient Glow Blobs */
.glow-blob-sky {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.glow-blob-indigo {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Custom Scrollbar Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Card Hover Elevation */
.card-hover-effect {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-4px);
}

/* Custom Text Gradient */
.text-gradient-sky {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-indigo {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Play Button Sizing */
@media (max-width: 768px) {
    .video-thumbnail-container .w-16 {
        width: 2.75rem;
    }

    .video-thumbnail-container .h-16 {
        height: 2.75rem;
    }

    .video-thumbnail-container .w-8 {
        width: 1.125rem;
    }

    .video-thumbnail-container .h-8 {
        height: 1.125rem;
    }

    .video-thumbnail-container .ml-1 {
        margin-left: 0.125rem;
    }
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
/* Ensure minimum touch target size (44x44px) for all interactive elements */
@media (max-width: 768px) {
    /* Buttons & links - minimum touch target */
    a[href], button, .tab-btn, .video-card, .carousel-card, .pkg-card a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Hero CTA buttons - larger touch targets */
    #about a[href="#pricing"],
    #about a[href="#portfolio"] {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        min-height: 52px;
    }

    /* Feature badges - prevent overflow */
    #about .flex-wrap .bg-slate-900\/60 {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.6875rem !important;
    }

    /* Tab buttons in pricing - ensure scrollable and touchable */
    .tab-btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.7rem !important;
        min-height: 48px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Pricing cards - responsive min-width */
    .pkg-card {
        min-width: 100% !important;
        max-width: 100%;
    }
    
    /* For small mobile (≤375px) */
    @media (max-width: 375px) {
        .pkg-card {
            min-width: 100% !important;
        }
        .tab-btn {
            padding: 0.625rem 1rem !important;
            font-size: 0.65rem !important;
        }
    }

    /* Ensure cards container doesn't overflow */
    #cards-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Mobile bottom bar - ensure proper positioning */
    .fixed.bottom-4 {
        bottom: env(safe-area-inset-bottom, 1rem) !important;
        left: 1rem !important;
        right: 1rem !important;
    }

    /* Hero section spacing */
    #about {
        padding-top: 6rem !important;
    }

    /* Fix video card play button size on mobile */
    .video-thumbnail-container .w-12,
    .video-thumbnail-container .h-12,
    .video-thumbnail-container .md\:w-14,
    .video-thumbnail-container .md\:h-14 {
        width: 3rem !important;
        height: 3rem !important;
    }
    .video-thumbnail-container .w-12 svg,
    .video-thumbnail-container .h-12 svg,
    .video-thumbnail-container .md\:w-14 svg,
    .video-thumbnail-container .md\:h-14 svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    /* Modal close buttons - larger touch targets */
    #close-modal, #close-carousel-modal,
    #prev-carousel-btn, #next-carousel-btn {
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 0.75rem !important;
    }

    /* Carousel indicators */
    .carousel-indicator {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        min-height: 10px !important;
    }

    /* Modal overlay fixes for Mobile Chrome dynamic viewport */
    #video-modal, #carousel-modal {
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Ensure body doesn't scroll horizontally */
    body {
        overflow-x: hidden !important;
        max-width: 100vw;
        -webkit-tap-highlight-color: transparent;
    }
    
    html {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
}

/* Extra small devices (≤320px) */
@media (max-width: 320px) {
    .tab-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.6rem !important;
    }
    
    #about h1 {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
    }
    
    #about .text-sm {
        font-size: 0.8125rem !important;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .fixed.bottom-4 {
        bottom: 0.5rem !important;
        padding: 0.5rem !important;
    }
    .fixed.bottom-4 a {
        padding: 0.5rem 1rem !important;
        min-height: 40px !important;
    }
}

/* Desktop Modal Sizing Adjustments */
@media (min-width: 769px) {
    #carousel-modal .relative.w-full {
        max-width: 720px;
    }

    #carousel-modal .aspect-\[4\/5\] {
        max-height: 65vh;
    }

    #carousel-description {
        max-width: 720px;
    }
}