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

:root {
    --primary-color: #0052a3;
    --secondary-color: #0077d4;
    --accent-color: #004a7f;
    --success-color: #26a69a;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-dark: #0f1419;
    --bg-darker: #0a0e14;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: white;
    padding: 11px 0;
    font-size: 13px;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 82, 163, 0.15);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideInLeft 0.6s ease;
    min-width: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-bar-right a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    font-size: 12px;
}

.top-bar-right a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 112, 67, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.top-bar-right a:hover::before {
    left: 0;
}

.top-bar-right a:hover {
    color: var(--accent-color);
    transform: translateX(2px);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 8px 32px rgba(0, 82, 163, 0.2);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 3px solid var(--accent-color);
}

.header-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    min-width: 0;
}

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

.logo i {
    font-size: 32px;
    animation: spin 3s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    flex-shrink: 0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.logo-text p {
    font-size: 10px;
    opacity: 0.95;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.search-bar-header {
    display: flex;
    gap: 6px;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 9px 14px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 0;
}

.search-bar-header:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: #26a69a;
    box-shadow: 0 0 20px rgba(38, 166, 154, 0.3), inset 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-bar-header input {
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 12px;
    flex: 1;
    min-width: 120px;
}

.search-bar-header input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    flex-shrink: 0;
}

.search-bar-header button {
    border: none;
    background: linear-gradient(135deg, #26a69a, #009688);
    color: white;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
    flex-shrink: 0;
}

.search-bar-header button:hover {
    background: linear-gradient(135deg, #009688, #00897b);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 166, 154, 0.4);
}

.search-bar-header button:active {
    transform: translateY(0);
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.navbar a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: var(--transition);
}

.navbar a:hover::after {
    width: 100%;
}

@media (max-width: 1200px) {
    .header-wrapper {
        gap: 15px;
    }

    .search-bar-header input {
        min-width: 100px;
    }

    .navbar ul {
        gap: 15px;
    }

    .navbar a {
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    .header-wrapper {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .navbar {
        grid-column: 1 / -1;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar ul {
        justify-content: flex-start;
        gap: 12px;
    }

    .search-bar-header {
        order: 1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .header-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .logo i {
        font-size: 26px;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-text p {
        font-size: 9px;
    }

    .search-bar-header {
        grid-column: 1 / -1;
        margin-top: 10px;
    }

    .navbar {
        grid-column: 1 / -1;
    }

    .navbar ul {
        gap: 10px;
        flex-wrap: wrap;
    }

    .navbar a {
        font-size: 11px;
    }
}

/* ===== HERO TECH SECTION ===== */
.hero-tech {
    background: linear-gradient(135deg, #e8f1f8 0%, #f0f7ff 50%, #f5f9fc 100%);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.tech-grid {
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 82, 163, 0.08) 25%, rgba(0, 82, 163, 0.08) 26%, transparent 27%, transparent 74%, rgba(0, 82, 163, 0.08) 75%, rgba(0, 82, 163, 0.08) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 82, 163, 0.08) 25%, rgba(0, 82, 163, 0.08) 26%, transparent 27%, transparent 74%, rgba(0, 82, 163, 0.08) 75%, rgba(0, 82, 163, 0.08) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    width: 100%;
    height: 100%;
    animation: moveGrid 20s linear infinite;
}

.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(0, 119, 212, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(38, 166, 154, 0.06) 0%, transparent 70%),
        radial-gradient(circle at 70% 30%, rgba(0, 82, 163, 0.05) 0%, transparent 60%);
    background-size: 80px 80px, 500px 500px, 600px 600px;
    animation: moveParticles 40s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes moveParticles {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.hero-content-tech {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 900;
    letter-spacing: -0.5px;
    animation: slideInUp 0.8s ease;
    line-height: 1.2;
}

.hero-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.7;
    animation: slideInUp 0.8s ease 0.1s both;
}

.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 82, 163, 0.1);
    border: 2px solid transparent;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    animation: slideInUp 0.8s ease 0.2s both;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 82, 163, 0.2);
    border-color: var(--accent-color);
}

.stat-item i {
    font-size: 28px;
    color: var(--secondary-color);
    filter: drop-shadow(0 2px 4px rgba(0, 82, 163, 0.2));
    flex-shrink: 0;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-box {
    position: absolute;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 40px rgba(0, 82, 163, 0.25);
    text-align: center;
    animation: float 5s ease-in-out infinite;
    gap: 10px;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    transition: var(--transition);
    cursor: pointer;
}

.floating-box:hover {
    box-shadow: 0 16px 50px rgba(0, 82, 163, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.floating-box i {
    font-size: 48px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    transition: var(--transition);
    flex-shrink: 0;
}

.floating-box:hover i {
    transform: scale(1.15) rotateZ(15deg);
}

.floating-box p {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.box1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.box2 {
    top: 110px;
    right: 0;
    animation-delay: 0.7s;
    background: linear-gradient(135deg, var(--secondary-color), #0099ff);
}

.box3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.4s;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.box4 {
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.35s;
    background: linear-gradient(135deg, #26a69a, var(--secondary-color));
    width: 140px;
    height: 140px;
}

.box5 {
    bottom: 60px;
    left: 10px;
    animation-delay: 1.05s;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 150px;
    height: 150px;
}

.box6 {
    bottom: 40px;
    right: 10px;
    animation-delay: 1.75s;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    width: 145px;
    height: 145px;
}

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

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

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

@keyframes float-box6 {
    0%, 100% { transform: translateY(0px) rotateZ(0deg); }
    50% { transform: translateY(-25px) rotateZ(3deg); }
}

.box4 {
    animation: float-box4 5.5s ease-in-out infinite;
}

.box5 {
    animation: float-box5 4.8s ease-in-out infinite;
}

.box6 {
    animation: float-box6 5.2s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .hero-tech {
        padding: 80px 20px;
    }

    .hero-content-tech {
        gap: 40px;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-visual {
        height: 350px;
    }

    .floating-box {
        width: 140px;
        height: 140px;
    }

    .floating-box i {
        font-size: 40px;
    }

    .box4 {
        width: 120px;
        height: 120px;
    }

    .box5 {
        width: 130px;
        height: 130px;
    }

    .box6 {
        width: 125px;
        height: 125px;
    }
}

@media (max-width: 768px) {
    .hero-tech {
        padding: 60px 15px;
    }

    .hero-content-tech {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hero-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-item {
        padding: 12px 14px;
        gap: 8px;
    }

    .stat-item i {
        font-size: 24px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 9px;
    }

    .hero-visual {
        height: 300px;
    }

    .floating-box {
        width: 110px;
        height: 110px;
        gap: 6px;
        padding: 12px;
    }

    .floating-box i {
        font-size: 32px;
    }

    .floating-box p {
        font-size: 11px;
    }

    .box1 {
        top: 20px;
        left: -20px;
    }

    .box2 {
        top: 80px;
        right: -20px;
    }

    .box3 {
        width: 110px;
        height: 110px;
    }

    .box4 {
        width: 100px;
        height: 100px;
        top: 20px;
    }

    .box5 {
        width: 105px;
        height: 105px;
        bottom: 50px;
        left: 0px;
    }

    .box6 {
        width: 105px;
        height: 105px;
        bottom: 30px;
        right: 0px;
    }
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    animation: expandWidth 0.8s ease;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 70px; }
}

.section-header p {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 20px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 14px;
    }
}

/* ===== SERVIÇOS ===== */
.servicos-destaque {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 50%, #e8f1f8 100%);
    position: relative;
    overflow: hidden;
}

.servicos-destaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(38, 166, 154, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 119, 212, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 82, 163, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.servicos-destaque::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    z-index: 1;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.servico-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.servico-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 212, 0.04), transparent);
    transition: var(--transition);
    z-index: 0;
}

.servico-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 32px rgba(0, 82, 163, 0.12);
    border-color: var(--primary-color);
}

.servico-card:hover::before {
    transform: scaleX(1);
}

.servico-card:hover::after {
    top: 0;
}

.servico-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 119, 212, 0.2));
    transition: var(--transition);
    flex-shrink: 0;
}

.servico-card:hover .servico-icon {
    transform: rotateY(360deg);
    animation: spinIcon 0.6s ease;
}

@keyframes spinIcon {
    0% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(1) rotateY(180deg); }
    100% { transform: scale(1) rotateY(360deg); }
}

.servico-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.servico-card p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.servico-detalhes {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    padding: 18px;
    background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 100%);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    position: relative;
    z-index: 1;
}

.servico-detalhes li {
    padding: 10px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.servico-detalhes li:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.servico-detalhes i {
    color: var(--success-color);
    font-weight: bold;
    font-size: 14px;
}

.preco {
    font-weight: 900;
    color: var(--accent-color);
    font-size: 22px;
    margin: 18px 0;
    position: relative;
    z-index: 1;
}

.servico-btn {
    margin-top: auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 16px rgba(38, 166, 154, 0.3);
}

.servico-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(38, 166, 154, 0.4);
}

.servico-btn:active {
    transform: translateY(-1px);
}

/* ===== PRODUTOS ===== */
.produtos-destaque {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f1f8 50%, #f5f7fa 100%);
    position: relative;
    overflow: hidden;
}

.produtos-destaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(0, 119, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(38, 166, 154, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(0, 82, 163, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.produtos-destaque::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    z-index: 1;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 2;
}

.produto-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative;
}

.produto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 212, 0.08), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.produto-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 16px 40px rgba(0, 82, 163, 0.12);
    border-color: var(--primary-color);
}

.produto-card:hover::before {
    opacity: 1;
}

.produto-imagem {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.produto-imagem::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent);
    z-index: 1;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
    position: relative;
    z-index: 2;
}

.produto-card:hover .produto-imagem img {
    transform: scale(1.1);
}

.produto-info {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.produto-nome {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.produto-descricao {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 14px;
    flex-grow: 1;
    line-height: 1.5;
    font-weight: 500;
}

.produto-preco {
    font-size: 26px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(255, 112, 67, 0.15);
}

.produto-botoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.produto-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0, 82, 163, 0.15);
}

.produto-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 82, 163, 0.2);
}

.produto-btn:active {
    transform: translateY(-1px);
}

.produto-btn-comprar {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #26a69a, #009688);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(38, 166, 154, 0.15);
}

.produto-btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 166, 154, 0.2);
}

.produto-btn-comprar:active {
    transform: translateY(-1px);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 40px;
    border-radius: 18px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    border: 2px solid rgba(0, 119, 212, 0.1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--accent-color);
    background: rgba(255, 112, 67, 0.1);
    transform: rotate(90deg);
}

.modal-produto-imagem {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 82, 163, 0.2);
}

.modal-produto-imagem::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent);
    z-index: 1;
}

.modal-produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    position: relative;
    z-index: 2;
}

.modal-produto-nome {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 14px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.modal-produto-preco {
    font-size: 36px;
    color: var(--accent-color);
    font-weight: 900;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(255, 112, 67, 0.15);
}

.modal-produto-descricao {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
}

.modal-produto-specs {
    background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.modal-produto-specs h4 {
    color: var(--primary-color);
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.modal-produto-specs ul {
    list-style: none;
}

.modal-produto-specs li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.modal-produto-specs li:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.modal-produto-specs li:before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: bold;
    font-size: 14px;
}

.modal-produto-botoes {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.modal-btn-comprar {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #26a69a, #009688);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    transition: var(--transition);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(38, 166, 154, 0.25);
}

.modal-btn-comprar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(38, 166, 154, 0.35);
}

.modal-btn-comprar:active {
    transform: translateY(-1px);
}

/* ===== CONTATO ===== */
.contato {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 50%, #e8f1f8 100%);
    position: relative;
    overflow: hidden;
}

.contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 40%, rgba(38, 166, 154, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 75% 60%, rgba(0, 119, 212, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(0, 82, 163, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.contato::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    z-index: 1;
}

.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.contato-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contato-item::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 212, 0.06), transparent);
    transition: var(--transition);
    z-index: 0;
}

.contato-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 82, 163, 0.12);
    border-color: var(--primary-color);
}

.contato-item:hover::before {
    top: 0;
}

.contato-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 12px rgba(0, 119, 212, 0.15));
    transition: var(--transition);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.contato-item:hover .contato-icon {
    transform: scale(1.15) rotateZ(10deg);
}

.contato-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.contato-item p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.contato-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    font-size: 13px;
    position: relative;
    z-index: 1;
    padding: 7px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contato-link:hover {
    color: var(--accent-color);
    background: rgba(255, 112, 67, 0.08);
    transform: translateX(3px);
}

.contato-label {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 100%);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 50%, #050709 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    border-top: 3px solid var(--accent-color);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(38, 166, 154, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 119, 212, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-size: 17px;
    margin-bottom: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: var(--accent-color);
    color: white;
}

.social-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVIDADE COMPLETA ===== */
@media (max-width: 768px) {
    .servicos-grid,
    .produtos-grid,
    .contato-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 30px;
        margin: 20% auto;
    }

    .modal-produto-nome {
        font-size: 24px;
    }

    .modal-produto-preco {
        font-size: 28px;
    }

    .produto-botoes {
        grid-template-columns: 1fr;
    }

    .servicos-destaque,
    .produtos-destaque,
    .contato {
        padding: 60px 0;
    }

    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }

    .top-bar-left span {
        font-size: 11px;
    }

    .top-bar-right {
        gap: 8px;
    }

    .top-bar-right a {
        font-size: 10px;
        padding: 4px 8px;
    }

    .stat-item {
        padding: 10px 12px;
        font-size: 11px;
    }

    .servico-card,
    .contato-item {
        padding: 25px 20px;
    }

    .modal-content {
        padding: 25px;
    }
}

/* Alterar cor de acentuação em elementos de entrada e foco */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f7fa;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #26a69a, #009688);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #009688, #00897b);
}

/* Seleção de texto com cores teal */
::selection {
    background-color: #26a69a;
    color: white;
}

::-moz-selection {
    background-color: #26a69a;
    color: white;
}

/* Estilo de focus para inputs */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #26a69a !important;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.1) !important;
}

/* Alterar cor do loading spinner */
@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading com cores teal */
.loading {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #26a69a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin-loader 1s linear infinite;
}

/* Adicionar animação de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Highlight de produtos encontrados */
.produto-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicador visual de busca ativa */
.search-bar-header.active {
    border-color: #26a69a;
    background: rgba(38, 166, 154, 0.1);
}
