/**
 * Kingofit - Estilos Principais
 * Cores: #03989e (Primary) | #5e17eb (Secondary)
 */

:root {
    --primary: #03989e;
    --primary-dark: #027a7f;
    --secondary: #5e17eb;
    --secondary-dark: #4a12bb;
    --dark: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand img {
    height: 45px;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 38px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(3, 152, 158, 0.4);
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient-primary);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 80%;
    height: 100%;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(100px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-section h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(3, 152, 158, 0.4);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========== SECTIONS ========== */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-title span {
    color: var(--primary);
}

/* ========== SERVICES ========== */
.services-section {
    background: var(--gray-100);
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: rotateY(180deg);
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ========== ABOUT ========== */
.about-section .about-image {
    position: relative;
}

.about-section .about-image img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-section .about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 20px;
    z-index: -1;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: 25px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
}

.about-feature i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 15px;
}

.about-feature span {
    font-weight: 600;
    color: var(--dark);
}

/* ========== CLIENTS ========== */
.clients-section {
    background: var(--gray-100);
    color: var(--dark);
}

.clients-section .section-title h2,
.clients-section .section-title p {
    color: var(--dark);
}

.clients-section .section-title p {
    color: var(--gray-600);
}

.client-logo {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.client-logo:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.client-logo img {
    max-height: 45px;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    transform: scale(1.05);
}

/* ========== BLOG/TECH ========== */
.blog-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.blog-card-link:hover {
    text-decoration: none;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.blog-card .card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Blog placeholder images with icons */
.blog-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-placeholder[data-category="1"] {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.blog-placeholder[data-category="1"]::before {
    content: "\f544";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 4rem;
    color: #03989e;
    opacity: 0.8;
}

.blog-placeholder[data-category="2"] {
    background: linear-gradient(135deg, #5e17eb 0%, #7c3aed 100%);
}

.blog-placeholder[data-category="2"]::before {
    content: "\f0c0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.blog-placeholder[data-category="3"] {
    background: linear-gradient(135deg, #03989e 0%, #04b5bd 100%);
}

.blog-placeholder[data-category="3"]::before {
    content: "\f121";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.blog-placeholder[data-category="4"] {
    background: linear-gradient(135deg, #1a1a2e 0%, #03989e 100%);
}

.blog-placeholder[data-category="4"]::before {
    content: "\f2db";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 4rem;
    color: #5e17eb;
    opacity: 0.8;
}

/* Default placeholder */
.blog-placeholder:not([data-category])::before,
.blog-placeholder[data-category=""]::before {
    content: "\f15c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.blog-placeholder:not([data-category]),
.blog-placeholder[data-category=""] {
    background: linear-gradient(135deg, #03989e 0%, #5e17eb 100%);
}

/* Blog Categories Navigation */
.blog-categories-nav {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blog-categories-nav .categories-wrapper {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 15px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-categories-nav .categories-wrapper::-webkit-scrollbar {
    display: none;
}

.blog-categories-nav .category-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--gray-100);
    border-radius: 50px;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-categories-nav .category-tab:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.blog-categories-nav .category-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.blog-categories-nav .category-tab .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.blog-categories-nav .category-tab:not(.active) .count {
    background: var(--gray-200);
    color: var(--gray-600);
}

.blog-listing {
    background: var(--gray-100);
    min-height: 50vh;
}

.blog-card .card-body {
    padding: 25px;
}

.blog-card .category {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.blog-card:hover h5 {
    color: var(--primary);
}

.blog-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.blog-card .card-footer {
    background: none;
    border-top: 1px solid var(--gray-200);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card .date {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.blog-card .read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .read-more:hover {
    color: var(--secondary);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-section .btn {
    background: white;
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========== CONTACT ========== */
.contact-section {
    background: var(--gray-100);
}

.contact-info {
    background: var(--gradient-dark);
    border-radius: 20px;
    padding: 40px;
    color: white;
    height: 100%;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

.contact-info-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-info-item p {
    opacity: 0.8;
    margin-bottom: 0;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form .form-control {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 152, 158, 0.1);
}

.contact-form .btn-submit {
    background: var(--gradient-primary);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    color: white;
    width: 100%;
}

.contact-form .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(3, 152, 158, 0.4);
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* ========== PAGES ========== */
.page-header {
    background: var(--gradient-dark);
    padding: 150px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--gradient-primary);
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    position: relative;
}

.breadcrumb {
    background: none;
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* ========== BLOG SINGLE ========== */
.blog-single {
    padding: 80px 0;
}

.blog-single .post-meta {
    color: var(--gray-600);
    margin-bottom: 30px;
}

.blog-single .post-meta span {
    margin-right: 20px;
}

.blog-single .post-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.blog-single .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-single .post-content h2,
.blog-single .post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--dark);
}

.blog-single .post-content p {
    margin-bottom: 20px;
}

.blog-single .post-content ul,
.blog-single .post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-single .post-content li {
    margin-bottom: 10px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* ========== SERVICE FEATURED (Apps Android/iOS) ========== */
.service-card.service-featured {
    position: relative;
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(3, 152, 158, 0.05) 0%, rgba(94, 23, 235, 0.05) 100%);
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(3, 152, 158, 0.2);
}

.service-card.service-featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.service-card.service-featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 70px rgba(3, 152, 158, 0.3);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(3, 152, 158, 0.4);
    white-space: nowrap;
}

.featured-badge i {
    font-size: 0.7rem;
}

.platform-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge-android,
.badge-ios {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-android {
    background: #3ddc84;
    color: #073d1b;
}

.badge-ios {
    background: #333;
    color: white;
}

/* ========== SERVICES PAGE - FULL DESCRIPTION ========== */
.service-full-description {
    color: var(--gray-600);
    line-height: 1.8;
}

.service-full-description strong {
    color: var(--dark);
    font-weight: 600;
}

.service-full-description ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-full-description ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-full-description ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 0.9rem;
}

.service-full-description ul li strong {
    color: var(--primary);
}

.service-full-description p {
    margin-bottom: 15px;
}

/* Estilo especial para o serviço de apps */
.service-card.service-featured .service-full-description ul li::before {
    color: var(--secondary);
}
