/* Custom Styles for Kifomi Landing Page */

:root {
    --primary-color: #ff3131; /* Cor vibrante para tecnologia/alimentos */
    --secondary-color: #1a1a1a;
    --accent-color: #00d2ff;
    --dark-bg: #0f0f0f;
    --light-bg: #f8f9fa;
    --text-main: #333;
    --text-light: #666;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: #fff !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(15, 15, 15, 0.85), rgba(15, 15, 15, 0.85)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Efeito parallax suave */
    color: #fff;
    padding-top: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: backgroundZoom 20s infinite alternate ease-in-out;
}

@keyframes backgroundZoom {
    from { background-size: 100% auto; }
    to { background-size: 110% auto; }
}

/* Fallback para mobile onde background-attachment: fixed pode não funcionar bem */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        animation: none;
        background-size: cover;
    }
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #e62e2e;
    border-color: #e62e2e;
    transform: translateY(-3px);
}

.dashboard-mockup {
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.mockup-header {
    background: #333;
    padding: 10px 15px;
}

.mockup-header .dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f56;
    margin-right: 5px;
}

.mockup-header .dots span:nth-child(2) { background: #ffbd2e; }
.mockup-header .dots span:nth-child(3) { background: #27c93f; }

/* Feature Cards */
.section-bg {
    background-color: var(--light-bg);
}

.feature-card {
    background: #fff;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 49, 49, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* WhatsApp Section */
.whatsapp-container {
    background: #e5ddd5;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.whatsapp-header {
    background: #075e54;
    color: #fff;
    padding: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.whatsapp-body {
    padding: 20px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar for WhatsApp body */
.whatsapp-body::-webkit-scrollbar {
    width: 5px;
}
.whatsapp-body::-webkit-scrollbar-track {
    background: transparent;
}
.whatsapp-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.chat-bubble {
    padding: 12px 15px;
    border-radius: 8px;
    max-width: 90%;
    font-size: 0.9rem;
    position: relative;
    line-height: 1.4;
}

.chat-bubble.left {
    background: #fff;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.msg-header {
    color: #075e54;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.msg-time {
    font-size: 0.7rem;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* iFood Section */
.section-bg-dark {
    background: #111;
}

.mini-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.mini-card:hover {
    background: rgba(255,255,255,0.1);
}

.mini-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.desktop-mockup, .image-frame-mockup {
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.frame-header {
    background: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.frame-title {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.frame-content {
    background: #000;
}

.tv-mockup {
    position: relative;
    border: 10px solid #111;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.tv-mockup video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

.mockup-header-dark {
    background: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-title {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* Order Control */
.order-type-card {
    border-radius: 15px;
    background: #fff;
    transition: var(--transition);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.order-type-card:hover .icon-circle {
    background: var(--primary-color);
    color: #fff;
}

/* Benefits */
.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-preview {
    background: #f1f1f1;
    padding: 30px;
    border-radius: 20px;
    border: 8px solid #fff;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.text-light-50 {
    color: rgba(255,255,255,0.6) !important;
}

/* Animations */
[data-aos] {
    pointer-events: none;
}
.aos-animate {
    pointer-events: auto;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }
    .hero-section .d-flex {
        justify-content: center;
    }
}
