/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-blue: #00BFFF;
    --primary-purple: #A63CFF;
    --primary-cyan: #5AF2FF;
    --dark-blue: #0A0E1A;
    --dark-bg: #1C1C1C;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #C5C5C5;
    --gray-dark: #404040;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 50%, var(--primary-purple) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark-blue) 0%, var(--black) 100%);
    --gradient-card: linear-gradient(135deg, rgba(10, 14, 26, 0.8) 0%, rgba(28, 28, 28, 0.6) 100%);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;

    /* Typography Improvements */
h1, h2, h3, .hero-title, .section-title, .service-title, .whatsapp-cta-content strong {
    text-wrap: balance;
}

p, .hero-subtitle, .section-subtitle, .about-description, .contact-description, .service-description {
    text-wrap: pretty;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* Spacing - Mobile First */
    --container-width: 1200px;
    --section-padding: 60px 0;
    --header-height: 70px;

    /* Effects */
    --blur: blur(10px);
    --glow: 0 0 20px rgba(0, 191, 255, 0.5);
    --glow-purple: 0 0 20px rgba(166, 60, 255, 0.5);
    --card-border: 1px solid rgba(90, 242, 255, 0.2);
    --text-main: var(--white);
    --text-secondary: var(--gray);
    --bg-main: var(--dark-blue);
    --nav-bg: rgba(10, 14, 26, 0.9);
}

/* Light Mode Overrides */
:root.light-mode {
    --bg-main: #F0F4F8;
    --text-main: #1A202C;
    --text-secondary: #4A5568;
    --gradient-dark: linear-gradient(180deg, #F0F4F8 0%, #E2E8F0 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    --card-border: 1px solid rgba(0, 191, 255, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --gray: #4A5568; /* Overriding gray for text contrast */
    --white: #1A202C; /* Swapping white for dark text in some contexts if needed, but better to use vars */
}

/* Fix specific elements for light mode that rely on --white being white */
.light-mode .btn-primary {
    color: #FFFFFF;
}
.light-mode .btn-secondary {
    color: var(--primary-purple);
    border-color: var(--primary-purple);
    background: rgba(166, 60, 255, 0.05);
}
.light-mode .nav-link {
    color: #1A202C;
}
.light-mode .nav-link:hover, .light-mode .nav-link.active {
    color: var(--primary-blue);
}
.light-mode .service-card:hover, .light-mode .why-card:hover {
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.light-mode .whatsapp-cta-content strong {
    color: #FFFFFF; 
}
.light-mode .whatsapp-cta-content span {
    color: rgba(255, 255, 255, 0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== ANIMATED BACKGROUND ==================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-dark);
    overflow: hidden;
    transition: background 0.5s ease;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-cyan), transparent);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--primary-purple), transparent);
    bottom: -75px;
    right: -75px;
    animation-delay: 7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-blue), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ==================== HEADER - MOBILE FIRST ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--nav-bg);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid rgba(90, 242, 255, 0.1);
}

.header.scrolled {
    background: var(--nav-bg);
    box-shadow: 0 5px 30px rgba(0, 191, 255, 0.15), 0 0 1px rgba(90, 242, 255, 0.3);
    border-bottom-color: rgba(90, 242, 255, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-logo img {
    height: 150px;
    filter: drop-shadow(var(--glow));
    transition: all 0.3s ease;
}

.header.scrolled .nav-logo img {
    height: 110px;
}

/* Mobile Menu - Full Screen Overlay */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: var(--blur);
    padding: 100px 30px 40px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.light-mode .nav-menu {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 244, 248, 0.98) 100%);
}

.nav-menu.show {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    align-items: center;
    height: 100%;
    justify-content: center;
    margin-top: -80px;
}

.nav-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.show .nav-item:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.nav-menu.show .nav-item:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.nav-menu.show .nav-item:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.nav-menu.show .nav-item:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.nav-menu.show .nav-item:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

.nav-link {
    color: var(--text-main); /* Updated to var */
    text-decoration: none;
    font-weight: 600;
    font-size: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 18px 40px;
    display: block;
    text-align: center;
    letter-spacing: 1px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 15px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
    text-shadow: 0 0 20px rgba(90, 242, 255, 0.5);
    transform: scale(1.05);
}

.light-mode .nav-link:hover,
.light-mode .nav-link.active {
    color: var(--primary-blue);
    text-shadow: none;
}

/* Hamburger Menu Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(90, 242, 255, 0.4);
}

.nav-toggle:hover span {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    box-shadow: 0 0 15px rgba(90, 242, 255, 0.7);
}

/* Close Button - Centralizado */
.nav-close {
    display: flex;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    font-size: 0;
    cursor: pointer;
    color: var(--white);
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    background: rgba(166, 60, 255, 0.2);
    border-radius: 50%;
    border: 3px solid rgba(166, 60, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 1002;
    box-shadow: 0 0 30px rgba(166, 60, 255, 0.4);
}

.nav-menu.show .nav-close {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    transition-delay: 0.4s;
}

.nav-close::before,
.nav-close::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(90, 242, 255, 0.6);
}

.nav-close::before {
    transform: rotate(45deg);
}

.nav-close::after {
    transform: rotate(-45deg);
}

.nav-close:hover {
    background: rgba(166, 60, 255, 0.4);
    border-color: var(--primary-cyan);
    transform: translateX(-50%) scale(1.15) rotate(90deg);
    box-shadow: 0 0 40px rgba(166, 60, 255, 0.8), 0 0 60px rgba(90, 242, 255, 0.4);
}

.nav-close:hover::before,
.nav-close:hover::after {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    box-shadow: 0 0 15px rgba(90, 242, 255, 0.9);
    width: 30px;
}

.nav > .btn {
    display: none;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(90, 242, 255, 0.3);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    z-index: 1001;
}

.theme-toggle:hover {
    background: rgba(90, 242, 255, 0.1);
    border-color: var(--primary-cyan);
    transform: rotate(15deg);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    font-size: 15px;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF; /* Fixed white text for primary btn */
    box-shadow: 0 5px 20px rgba(0, 191, 255, 0.4);
    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 ease;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.6);
}

.btn-secondary {
    background: rgba(166, 60, 255, 0.05);
    color: var(--white); /* Should be text-main in dark, primary-purple in light */
    border: 2px solid var(--primary-purple);
    box-shadow: 0 5px 20px rgba(166, 60, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.btn-secondary:hover {
    background: rgba(166, 60, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(166, 60, 255, 0.5);
    border-color: var(--primary-cyan);
}

.btn-lg {
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 700;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ==================== HERO SECTION - MOBILE FIRST ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    z-index: 10;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 20;
    text-align: center;
}

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

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% auto;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

.prism-3d {
    position: relative;
    width: 250px;
    height: 250px;
    animation: levitate 6s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.prism-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: pulse 3s infinite ease-in-out;
}

.prism-logo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 191, 255, 0.7));
    animation: rotate3d 15s infinite linear;
    z-index: 2;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 35px;
    background: var(--gradient-primary);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateY(-15px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(15px); }
}

/* ==================== SECTIONS ==================== */
section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==================== SERVICES ==================== */
.services {
    background: rgba(0, 0, 0, 0.2);
}
.light-mode .services {
    background: rgba(0, 0, 0, 0.02);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-card {
    background: var(--gradient-card);
    backdrop-filter: var(--blur);
    border: var(--card-border);
    border-radius: 18px;
    padding: 35px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(90, 242, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.4), 0 0 1px rgba(90, 242, 255, 0.5);
    z-index: 10;
}

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

.service-icon {
    width: 65px;
    height: 65px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(0, 191, 255, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.5);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: #FFFFFF;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-main);
    text-align: left;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: left;
    font-size: 15px;
}

/* ==================== WHY PRISMA ==================== */
.why-prisma {
    background: rgba(166, 60, 255, 0.05);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 60px;
}

.why-card {
    background: var(--gradient-card);
    backdrop-filter: var(--blur);
    border: var(--card-border);
    border-radius: 18px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(166, 60, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.why-card:hover {
    transform: scale(1.03);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(166, 60, 255, 0.3);
}

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

.why-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.why-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.why-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ==================== ABOUT ==================== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text {
    position: relative;
    z-index: 20;
    order: 2;
}

.about-description {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px 20px;
    background: var(--gradient-card);
    border-radius: 15px;
    border: var(--card-border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.2);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

.tech-triangle {
    width: 260px;
    height: 260px;
    position: relative;
    perspective: 1000px;
    animation: containerFloat 10s ease-in-out infinite;
}

.triangle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle at center,
                rgba(90, 242, 255, 0.25) 0%,
                rgba(0, 191, 255, 0.15) 40%,
                rgba(166, 60, 255, 0.1) 70%,
                transparent 100%);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: glowPulse 3s ease-in-out infinite;
    will-change: opacity, transform;
}

.triangle-shape {
    position: relative;
    width: 0;
    height: 0;
    border-left: 130px solid transparent;
    border-right: 130px solid transparent;
    border-bottom: 225px solid rgba(90, 242, 255, 0.24);
    filter: drop-shadow(0 0 15px rgba(0, 191, 255, 0.45))
            drop-shadow(0 0 28px rgba(166, 60, 255, 0.3))
            drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
    transform-style: preserve-3d;
    animation: smoothRotate3D 12s linear infinite;
    will-change: transform;
}

.triangle-shape::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -120px;
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid rgba(0, 191, 255, 0.3);
    filter: drop-shadow(0 0 12px rgba(0, 191, 255, 0.4));
    animation: layerPulse 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.triangle-shape::after {
    content: '';
    position: absolute;
    top: 16px;
    left: -110px;
    width: 0;
    height: 0;
    border-left: 110px solid transparent;
    border-right: 110px solid transparent;
    border-bottom: 190px solid rgba(166, 60, 255, 0.28);
    filter: drop-shadow(0 0 12px rgba(166, 60, 255, 0.45));
    animation: layerPulse 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Rotação 3D contínua e suave */
@keyframes smoothRotate3D {
    0% {
        transform: rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateZ(360deg);
    }
}

/* Flutuação do container */
@keyframes containerFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulso das camadas */
@keyframes layerPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

/* Pulso do glow */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ==================== CONTACT ==================== */
.contact {
    background: rgba(166, 60, 255, 0.05);
}

.contact-content {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 45px;
    line-height: 1.8;
}

/* WhatsApp CTA Main Button */
.whatsapp-cta-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #25D366 0%, #1ebe5f 50%, #128C7E 100%);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45),
                0 0 0 0 rgba(37, 211, 102, 0.4);
    margin: 0 auto 45px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: ctaPulse 3s ease-in-out infinite;
}

.whatsapp-cta-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.whatsapp-cta-main::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.whatsapp-cta-main:hover::before {
    left: 100%;
}

.whatsapp-cta-main:hover::after {
    opacity: 1;
}

.whatsapp-cta-main:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.6),
                0 0 0 8px rgba(37, 211, 102, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.whatsapp-cta-main svg {
    width: 45px;
    height: 45px;
    color: #FFFFFF;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    animation: iconBounce 2s ease-in-out infinite;
}

.whatsapp-cta-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 6px;
    width: 100%;
}

.whatsapp-cta-content strong {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.whatsapp-cta-content span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45),
                    0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45),
                    0 0 0 12px rgba(37, 211, 102, 0);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(5deg);
    }
}

/* Contact Features */
.contact-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 650px;
    margin: 0 auto;
}

.feature-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.9) 0%, rgba(28, 28, 28, 0.7) 100%);
    backdrop-filter: var(--blur);
    border: 1px solid rgba(90, 242, 255, 0.25);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90, 242, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-badge:hover::before {
    opacity: 1;
}

.feature-badge:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.35),
                inset 0 0 20px rgba(90, 242, 255, 0.1);
    transform: translateY(-3px);
}

.feature-badge svg {
    width: 24px;
    height: 24px;
    color: var(--primary-cyan);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(90, 242, 255, 0.5));
    transition: all 0.3s ease;
}

.feature-badge:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(90, 242, 255, 0.8));
}

.feature-badge span {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* ==================== FOOTER - SIMPLIFICADO ==================== */
.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 35px 0 20px;
    border-top: 1px solid rgba(90, 242, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-contact {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 12px 20px;
    border: 1px solid rgba(90, 242, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(10, 14, 26, 0.5);
}

.email-link svg {
    width: 18px;
    height: 18px;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.email-link:hover {
    border-color: var(--primary-cyan);
    color: var(--text-main);
    background: rgba(10, 14, 26, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(90, 242, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #1ebe5f 50%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6),
                0 0 0 0 rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatBounce 2.5s infinite ease-in-out, floatPulse 2s infinite ease-in-out;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    overflow: visible;
}

/* Anel externo pulsante */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid rgba(37, 211, 102, 0.4);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brilho interno */
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover::before {
    opacity: 1;
    transform: scale(1.3);
    border-color: rgba(37, 211, 102, 0.6);
}

.whatsapp-float:hover::after {
    opacity: 1;
    transform: scale(1);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.9),
                0 0 0 8px rgba(37, 211, 102, 0.3),
                0 0 0 16px rgba(37, 211, 102, 0.15),
                0 0 60px rgba(37, 211, 102, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    animation: none;
}

.whatsapp-float svg {
    width: 42px;
    height: 42px;
    color: #FFFFFF;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.whatsapp-float:hover svg {
    transform: scale(1.2) rotate(-15deg);
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.4));
}

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

@keyframes floatPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6),
                    0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6),
                    0 0 0 20px rgba(37, 211, 102, 0);
    }
}

/* Mobile ajuste */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 65px;
        height: 65px;
    }

    .whatsapp-float svg {
        width: 38px;
        height: 38px;
    }
}

/* ==================== AOS ANIMATIONS ==================== */
[data-aos] {
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ==================== TABLET (768px+) ==================== */
@media (min-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --header-height: 85px;
    }

    .nav-logo img {
        height: 170px;
    }

    .header.scrolled .nav-logo img {
        height: 130px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .prism-3d {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 40px;
    }

    .section-subtitle {
        font-size: 19px;
    }

    .services-grid,
    .why-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .tech-triangle {
        width: 300px;
        height: 300px;
    }

    .triangle-shape {
        border-left: 150px solid transparent;
        border-right: 150px solid transparent;
        border-bottom: 260px solid rgba(90, 242, 255, 0.25);
    }

    .triangle-shape::before {
        top: 8px;
        left: -138px;
        border-left: 138px solid transparent;
        border-right: 138px solid transparent;
        border-bottom: 239px solid rgba(0, 191, 255, 0.35);
    }

    .triangle-shape::after {
        top: 16px;
        left: -127px;
        border-left: 127px solid transparent;
        border-right: 127px solid transparent;
        border-bottom: 220px solid rgba(166, 60, 255, 0.3);
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .contact-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* ==================== DESKTOP (1024px+) ==================== */
@media (min-width: 1024px) {
    :root {
        --section-padding: 120px 0;
        --header-height: 100px;
    }

    .container {
        padding: 0 40px;
    }

    .nav {
        padding: 0;
    }

    .nav-logo img {
        height: 200px;
    }

    .header.scrolled .nav-logo img {
        height: 150px;
    }

    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        box-shadow: none;
    }

    .light-mode .nav-menu {
        background: transparent;
    }

    .nav-list {
        flex-direction: row;
        gap: 40px;
    }

    .nav-link {
        font-size: 17px;
        padding: 8px 0;
    }

    .nav-toggle {
        display: none;
    }

    .nav-close {
        display: none;
    }

    .nav > .btn {
        display: inline-flex;
    }

    .hero-container {
        flex-direction: row;
        gap: 60px;
        text-align: left;
    }

    .hero-content {
        order: 1;
        flex: 1;
    }

    .hero-visual {
        order: 2;
        flex: 1;
    }

    .hero-title {
        font-size: 58px;
    }

    .hero-subtitle {
        font-size: 22px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .prism-3d {
        width: 400px;
        height: 400px;
    }

    .section-title {
        font-size: 50px;
    }

    .section-subtitle {
        font-size: 20px;
    }

    .section-header {
        margin-bottom: 70px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .why-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px;
        margin-bottom: 90px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .about-content {
        flex-direction: row;
        gap: 60px;
        align-items: center;
    }

    .about-text {
        order: 1;
        flex: 1;
    }

    .about-visual {
        order: 2;
        flex: 1;
    }

    .about-description {
        font-size: 18px;
    }

    .tech-triangle {
        width: 340px;
        height: 340px;
    }

    .triangle-shape {
        border-left: 170px solid transparent;
        border-right: 170px solid transparent;
        border-bottom: 294px solid rgba(90, 242, 255, 0.25);
    }

    .triangle-shape::before {
        top: 8px;
        left: -156px;
        border-left: 156px solid transparent;
        border-right: 156px solid transparent;
        border-bottom: 270px solid rgba(0, 191, 255, 0.35);
    }

    .triangle-shape::after {
        top: 16px;
        left: -143px;
        border-left: 143px solid transparent;
        border-right: 143px solid transparent;
        border-bottom: 248px solid rgba(166, 60, 255, 0.3);
    }

    .contact-description {
        font-size: 20px;
    }

    .whatsapp-cta-main {
        flex-direction: row;
        gap: 20px;
        padding: 28px 35px;
        max-width: 650px;
    }

    .whatsapp-cta-main svg {
        width: 50px;
        height: 50px;
    }

    .whatsapp-cta-content {
        text-align: left;
    }

    .whatsapp-cta-content strong {
        font-size: 20px;
    }

    .whatsapp-cta-content span {
        font-size: 14px;
    }

    .gradient-orb {
        filter: blur(100px);
        opacity: 0.3;
    }

    .orb-1 {
        width: 600px;
        height: 600px;
        top: -200px;
        left: -200px;
    }

    .orb-2 {
        width: 500px;
        height: 500px;
        bottom: -150px;
        right: -150px;
    }

    .orb-3 {
        width: 400px;
        height: 400px;
    }
}