/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores do tema - Baseado em #64A5E6 */
    --primary: #64A5E6;
    --primary-dark: #4a8cd9;
    --accent: #02021d;
    --destructive: #ff0000;
    --background: #64A5E6;
    --foreground: #ffffff;
    --card: #4a8cd9;
    --secondary: #4a8cd9;
    --border: rgba(100, 165, 230, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #64A4E5;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(100, 165, 230, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    position: relative;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar-logo img {
    height: 48px;
    width: auto;
}

.navbar-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.navbar-menu.active {
    display: flex;
}

.navbar-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--accent);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.98) 0%, rgba(15, 20, 33, 0.98) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(100, 165, 230, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none;
    z-index: 60;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: rgba(123, 179, 234, 0.2);
}

.submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.submenu-toggle:hover {
    background-color: rgba(123, 179, 234, 0.2);
}

.submenu-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.98) 0%, rgba(15, 20, 33, 0.98) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(100, 165, 230, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    margin-left: 0.5rem;
    display: none;
    z-index: 70;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.submenu.active .submenu-menu {
    display: block;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4), 0 0 40px rgba(255, 0, 0, 0.2);
    padding: 10px 50px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1a1a 0%, #e60000 100%);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.5), 0 0 60px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: white;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

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

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-button svg {
    width: 28px;
    height: 28px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 0;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* Mobile Dropdown */
.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 0;
    text-align: left;
    transition: color 0.3s ease;
}

.mobile-dropdown-toggle:hover {
    color: var(--accent);
}

.mobile-dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle svg {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid rgba(100, 165, 230, 0.3);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: flex;
}

.mobile-dropdown-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.mobile-dropdown-menu a:hover {
    color: var(--accent);
}

/* Mobile Submenu */
.mobile-submenu {
    width: 100%;
}

.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    text-align: left;
    transition: color 0.3s ease;
}

.mobile-submenu-toggle:hover {
    color: var(--accent);
}

.mobile-submenu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-submenu.active .mobile-submenu-toggle svg {
    transform: rotate(180deg);
}

.mobile-submenu-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid rgba(100, 165, 230, 0.2);
}

.mobile-submenu.active .mobile-submenu-menu {
    display: flex;
}

.mobile-submenu-menu a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.mobile-submenu-menu a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 14, 26, 0.3) 0%,
        rgba(45, 95, 160, 0.4) 30%,
        rgba(45, 95, 160, 0.6) 70%,
        rgba(45, 95, 160, 0.75) 100%
    );
    z-index: 2;
    animation: glow-pulse 3s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    animation: fade-in 0.8s ease-out;
    line-height: 1.2;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in 0.8s ease-out 0.2s both;
}

.hero .btn {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    padding: 10px 50px;
    animation: fade-in 0.8s ease-out 0.4s both;
}

/* About Section */
.about {
    padding: 8rem 0 5rem 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(100, 165, 230, 0.3) 15%,
        rgba(85, 150, 215, 0.5) 30%,
        rgba(70, 135, 200, 0.55) 45%,
        rgba(50, 115, 180, 0.45) 60%,
        rgba(30, 85, 150, 0.3) 80%,
        rgba(15, 20, 33, 1) 100%
    );
    position: relative;
    overflow: hidden;
    margin-top: -150px;
    padding-top: 200px;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background:
        radial-gradient(ellipse 800px 200px at 20% 50px, rgba(100, 165, 230, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 600px 180px at 80% 100px, rgba(123, 179, 234, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 700px 150px at 50% 150px, rgba(100, 165, 230, 0.35) 0%, transparent 50%);
    filter: blur(60px);
    animation: float 10s ease-in-out infinite;
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 120%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(100, 165, 230, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 10s ease-in-out infinite reverse;
}

.about-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.about h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
}

.about p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about .accent {
    color: var(--accent);
    font-weight: 600;
}

/* Services Section */
.services {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(rgba(100, 165, 230, 0.75), rgba(100, 165, 230, 0.85));
    overflow: hidden;
}

.services-decorative {
    position: absolute;
    border-radius: 50%;
    filter: blur(96px);
    z-index: 0;
}

.services-decorative-1 {
    top: 5rem;
    left: 2.5rem;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(100, 165, 230, 0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.services-decorative-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(100, 165, 230, 0.2) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.services h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.services-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--accent);
}

.carousel-container {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 60px;
    z-index: 10;
}

.card {
    background: linear-gradient(145deg, rgba(123, 179, 234, 0.9) 0%, rgba(100, 165, 230, 0.85) 100%);
    border: 1px solid rgba(123, 179, 234, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(123, 179, 234, 0.8);
    box-shadow: 0 8px 40px rgba(123, 179, 234, 0.4), 0 0 60px rgba(123, 179, 234, 0.3);
    transform: translateY(-4px);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-header {
    padding: 1.5rem;
    flex-shrink: 0;
}

.card-image {
    margin-bottom: 1rem;
    width: 100%;
    height: 12rem;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(100, 165, 230, 0.05);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.card-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.card-features li::before {
    content: "•";
    color: var(--accent);
    margin-right: 0.5rem;
}

/* Slick Slider Custom Styles */
.slick-slider {
    position: relative;
}

.slick-list {
    overflow: hidden;
    padding: 20px 0 !important;
    margin: 0 -15px;
}

.slick-track {
    display: flex !important;
    align-items: stretch;
}

.slick-slide {
    height: inherit !important;
    float: none !important;
    display: flex !important;
}

.slick-slide > div {
    height: 100%;
    width: 100%;
    display: flex !important;
}

.carousel-item {
    height: 100%;
    display: flex !important;
    padding: 0 15px;
    box-sizing: border-box;
}

.carousel-item .card {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Technologies Carousel Specific Styles */
.technologies-carousel .carousel-item .card {
    min-height: 280px;
}

.technologies-carousel .card-header {
    padding-bottom: 0.5rem;
}

.technologies-carousel .card-content {
    padding-top: 0.5rem;
}

.technologies-carousel .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.technologies-carousel .card-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Icon Cards - Para páginas de serviços */
.card-content svg {
    display: block;
    margin-bottom: 1.5rem;
}

/* Slick Slider Custom Arrows */
.slick-prev,
.slick-next {
    width: 50px;
    height: 50px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slick-prev::before,
.slick-next::before {
    font-size: 24px;
    color: white;
    opacity: 1;
}

.slick-prev {
    left: -60px;
}

.slick-next {
    right: -60px;
}

@media (max-width: 1279px) {
    .carousel-container {
        padding: 0 20px;
    }

    .slick-prev {
        left: -10px;
    }

    .slick-next {
        right: -10px;
    }
}

@media (max-width: 767px) {
    .carousel-container {
        padding: 0 10px;
    }

    .slick-prev,
    .slick-next {
        width: 40px;
        height: 40px;
    }

    .slick-prev::before,
    .slick-next::before {
        font-size: 20px;
    }

    .slick-prev {
        left: -5px;
    }

    .slick-next {
        right: -5px;
    }
}

/* Contact Section */
.contact {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(123, 179, 234, 0.75) 0%, rgba(100, 165, 230, 0.85) 100%);
}

.contact-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(123, 179, 234, 0.3) 0%,
        rgba(100, 165, 230, 0.5) 50%,
        rgba(123, 179, 234, 0.4) 100%
    );
    z-index: 2;
}

.contact-content {
    position: relative;
    z-index: 10;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 48rem;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(145deg, rgba(123, 179, 234, 0.25) 0%, rgba(100, 165, 230, 0.3) 100%);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(123, 179, 234, 0.4), 0 4px 16px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(123, 179, 234, 0.35) 0%, rgba(100, 165, 230, 0.4) 100%);
}

.contact-icon {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(123, 179, 234, 0.4) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(123, 179, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.contact-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(100, 165, 230, 0.85) 0%, rgba(123, 179, 234, 0.75) 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer p:last-child {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* Responsive */
@media (min-width: 640px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .navbar-logo img {
        height: 56px;
    }

    .navbar-menu {
        display: flex;
    }

    .mobile-menu-button {
        display: none;
    }
}

@media (min-width: 1024px) {
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .carousel-button-prev {
        left: -3rem;
    }

    .carousel-button-next {
        right: -3rem;
    }
}

@media (max-width: 767px) {
    .carousel-button {
        width: 40px;
        height: 40px;
    }

    .carousel-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.accent {
    color: var(--accent);
}

.hidden {
    display: none;
}

/* Responsive Grids */
.benefits-grid,
.security-grid,
.two-col-grid {
    display: grid;
    gap: 2rem;
}

@media (max-width: 767px) {
    .benefits-grid,
    .security-grid,
    .two-col-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .benefits-grid,
    .security-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .two-col-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
