/* ==========================================
   MOBILE HOMEPAGE STYLES
   Koadly - Mobile First Design
   Light Theme (Matching Desktop)
   ========================================== */

/* Base Mobile Styles */
.mobile-body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e1e8f0 50%, #f0f4f8 100%);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 80px;
    position: relative;
    color: #1a1a2e;
}

.mobile-body .bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.mobile-body .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.mobile-body .blob-1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #0f2847 0%, #1e3a5f 100%);
    top: -150px;
    right: -100px;
    opacity: 0.35;
    animation: blobFloat 20s ease-in-out infinite;
}

.mobile-body .blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    bottom: 30%;
    left: -100px;
    opacity: 0.25;
    animation: blobFloat 25s ease-in-out infinite reverse;
}

.mobile-body .blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    bottom: -80px;
    right: 10%;
    opacity: 0.2;
    animation: blobFloat 22s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(25px, 25px) scale(1.05); }
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(30, 58, 95, 0.08);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.mobile-logo .logo-img {
    height: 32px;
    width: auto;
}

.mobile-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.2);
}

.mobile-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
}

.mobile-header-actions {
    display: flex;
    gap: 8px;
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(30, 58, 95, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.header-icon:hover {
    background: rgba(30, 58, 95, 0.15);
}

.header-icon.whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.notification-icon {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

/* Main Content */
.mobile-main {
    padding-top: 70px;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    z-index: 1;
}

/* Hero Section - Advanced */
.mobile-hero {
    text-align: center;
    padding: 25px 0 20px;
    position: relative;
}

/* Animated Ring Background */
.mobile-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border: 2px solid rgba(30, 58, 95, 0.08);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}

.mobile-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border: 1px solid rgba(30, 58, 95, 0.04);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite 0.5s;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.2; }
}

.hero-greeting {
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.greeting-text {
    color: #1e3a5f;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.greeting-text::before,
.greeting-text::after {
    content: '';
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1e3a5f);
}

.greeting-text::after {
    background: linear-gradient(90deg, #1e3a5f, transparent);
}

.app-title {
    font-size: 48px;
    font-weight: 900;
    margin: 8px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #06b6d4 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 4s ease infinite;
    position: relative;
    z-index: 1;
}

@keyframes titleShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-tagline {
    color: rgba(30, 58, 95, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Quick Action Buttons */
.quick-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    text-decoration: none;
    color: #1e3a5f;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(30, 58, 95, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn.primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.3);
    color: white;
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(30, 58, 95, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1e3a5f;
}

.quick-action-btn.primary .action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    position: relative;
    z-index: 1;
}

.stat-card {
    flex: 1;
    padding: 18px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(30, 58, 95, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    opacity: 0.6;
}

.stat-number {
    display: block;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a5f, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: rgba(30, 58, 95, 0.6);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Sections */
.mobile-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
}

.see-all {
    font-size: 13px;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
}

/* AI Showcase */
.ai-showcase {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.1);
}

.ai-demo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
}

.live-indicator.pulse {
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.live-text {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 1px;
}

/* Chat Preview */
.ai-chat-preview {
    margin-bottom: 15px;
}

.chat-bubble {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.chat-bubble.user {
    justify-content: flex-end;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.bubble-content {
    background: rgba(30, 58, 95, 0.08);
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: #1e3a5f;
    max-width: 75%;
    line-height: 1.4;
}

.chat-bubble.user .bubble-content {
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    color: white;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(30, 58, 95, 0.08);
    border-radius: 16px;
    width: fit-content;
    margin-left: 42px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: rgba(30, 58, 95, 0.4);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Services App Grid */
.services-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s;
}

.service-app-icon:active {
    transform: scale(0.9);
}

.app-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.service-app-icon span {
    font-size: 11px;
    color: rgba(30, 58, 95, 0.7);
    font-weight: 500;
    text-align: center;
}

.hot-badge-mini {
    position: absolute;
    top: -4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 6px;
}

/* Portfolio Carousel */
.portfolio-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    min-width: 200px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid rgba(30, 58, 95, 0.1);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

.portfolio-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.portfolio-info {
    padding: 15px;
}

.portfolio-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 4px;
}

.portfolio-info p {
    font-size: 12px;
    color: rgba(30, 58, 95, 0.6);
    margin: 0 0 10px;
}

.tech-tags {
    display: flex;
    gap: 6px;
}

.tech-tags span {
    font-size: 10px;
    padding: 4px 8px;
    background: rgba(6, 182, 212, 0.15);
    color: #0891b2;
    border-radius: 6px;
    font-weight: 600;
}

/* Voice AI Card */
.voice-ai-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

.voice-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.voice-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.voice-icon.pulse {
    animation: voicePulse 2s infinite;
}

@keyframes voicePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(30, 58, 95, 0.3);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(30, 58, 95, 0);
    }
}

.voice-info {
    flex: 1;
}

.hot-label {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
}

.voice-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 2px 0;
}

.voice-info p {
    font-size: 13px;
    color: rgba(30, 58, 95, 0.6);
    margin: 0;
}

.voice-waves {
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 40px;
    align-items: center;
    margin-bottom: 15px;
}

.voice-waves span {
    width: 4px;
    background: linear-gradient(to top, #1e3a5f, #2d5a87);
    border-radius: 3px;
    animation: wave 1s infinite ease-in-out;
}

.voice-waves span:nth-child(1) { height: 15px; animation-delay: 0s; }
.voice-waves span:nth-child(2) { height: 25px; animation-delay: 0.1s; }
.voice-waves span:nth-child(3) { height: 35px; animation-delay: 0.2s; }
.voice-waves span:nth-child(4) { height: 25px; animation-delay: 0.3s; }
.voice-waves span:nth-child(5) { height: 15px; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

.testimonial-card .quote-icon {
    font-size: 24px;
    color: #06b6d4;
    margin-bottom: 10px;
}

.testimonial-card p {
    font-size: 14px;
    color: #1e3a5f;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.author-details {
    text-align: left;
    flex: 1;
}

.author-details strong {
    display: block;
    font-size: 14px;
    color: #1e3a5f;
}

.author-details span {
    font-size: 12px;
    color: rgba(30, 58, 95, 0.6);
}

.stars {
    color: #fbbf24;
    font-size: 12px;
}

/* CTA Card */
.cta-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(30, 58, 95, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 5px;
}

.cta-card p {
    font-size: 14px;
    color: rgba(30, 58, 95, 0.6);
    margin: 0 0 20px;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cta-buttons .btn {
    flex: 1;
    max-width: 150px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.25);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.btn-full {
    width: 100%;
}

.btn:active {
    transform: scale(0.97);
}

/* Bottom Spacer */
.bottom-spacer {
    height: 30px;
}

/* Enhanced Bottom Navigation for Mobile Homepage */
.mobile-body .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(30, 58, 95, 0.1);
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(30, 58, 95, 0.08);
}

.mobile-body .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    color: rgba(30, 58, 95, 0.5);
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-body .mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.mobile-body .mobile-nav-item.active {
    color: #1e3a5f;
}

.mobile-body .mobile-nav-item.active i {
    transform: scale(1.1);
}

.mobile-body .mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #1e3a5f, #06b6d4);
    border-radius: 0 0 3px 3px;
}

/* Center Nav Item (AI) */
.center-nav {
    position: relative;
}

.center-nav-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-top: -25px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.3);
    position: relative;
}

.center-nav-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #06b6d4);
    z-index: -1;
    opacity: 0.3;
    animation: centerPulse 2s infinite;
}

@keyframes centerPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0; }
}

.center-nav i {
    font-size: 22px !important;
    margin-bottom: 0 !important;
}

.center-nav span {
    margin-top: 8px;
}

/* Hide default mobile bottom nav styles conflict */
@media (min-width: 769px) {
    .mobile-body {
        display: none;
    }
}

/* Desktop Version Link */
.desktop-link {
    text-align: center;
    padding: 20px 0;
}

.desktop-link a {
    color: rgba(30, 58, 95, 0.5);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.desktop-link a:hover {
    color: #1e3a5f;
}
