/* ===== CSS Variables ===== */
:root {
    --primary: #6C3CE1;
    --primary-light: #8B5CF6;
    --primary-dark: #4C1D95;
    --accent: #00D4FF;
    --accent-secondary: #06B6D4;
    --bg-dark: #0A0A1A;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --gradient-1: linear-gradient(135deg, #6C3CE1, #00D4FF);
    --gradient-2: linear-gradient(135deg, #4C1D95, #6C3CE1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-purple: 0 0 40px rgba(108, 60, 225, 0.3);
    --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.2);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* ===== Typography & Utilities ===== */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gradient-1);
}

/* ===== Loader ===== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(108, 60, 225, 0.15);
    border-top: 3px solid var(--accent);
    border-right: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-bar-container {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 2rem;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    border-radius: 10px;
    animation: loadBar 2s ease-in-out forwards;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.97);
    }
}

@keyframes loadBar {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ===== Particles Background ===== */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle var(--duration) var(--delay) infinite ease-in-out;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10%,
    90% {
        opacity: var(--max-opacity);
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* ===== Gradient Orbs ===== */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 60, 225, 0.15), transparent 70%);
    top: -200px;
    right: -200px;
    animation: orbFloat1 15s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 60, 225, 0.1), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-40px, 30px);
    }

    66% {
        transform: translate(20px, -20px);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -40px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* ===== Main Content ===== */
.main-content {
    position: relative;
    z-index: 1;
}

/* ===== Navbar ===== */
.navbar-custom {
    background: rgba(10, 10, 26, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-brand-text span {
    -webkit-text-fill-color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.85rem;
    display: block;
    margin-top: -4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-badge i {
    font-size: 0.7rem;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--glow-purple);
    cursor: pointer;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(108, 60, 225, 0.5);
    color: #fff;
}

.btn-outline-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.btn-outline-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ===== 3D iPhone & Floating Islands ===== */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1500px;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-image-glow {
    position: absolute;
    width: 300px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 60, 225, 0.4), transparent 70%);
    filter: blur(60px);
    z-index: 0;
    animation: imageGlow 4s ease-in-out infinite;
}

/* iPhone 17 Device CSS */
.iphone-frame {
    position: relative;
    width: 180px;
    height: 380px;
    background-color: #000;
    border-radius: 32px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(108, 60, 225, 0.2);
    overflow: hidden;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    border: 3px solid #1a1a1a;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Dynamic Island */
.iphone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 18px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    /* Slightly less for correct inset look */
    background-size: cover;
    background-position: top center;
    background-image: url('../images/iphone-mockup2.png');
    animation: scrollScreen 15s ease-in-out infinite alternate;
    background-color: #000;
    overflow: hidden;
}

/* Floating Islands Info Cards */
.floating-island {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 5;
    transition: transform 0.3s ease;
}

.floating-island.island-1 {
    top: 15%;
    left: -10%;
    animation: floatIsland 6s ease-in-out infinite;
}

.floating-island.island-2 {
    bottom: 20%;
    right: -15%;
    animation: floatIsland 8s ease-in-out infinite reverse;
}

.floating-island.island-3 {
    top: 50%;
    left: -20%;
    animation: floatIsland 7s ease-in-out infinite 1s;
}

.island-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-purple {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.2), rgba(108, 60, 225, 0.05));
    color: var(--primary-light);
    border: 1px solid rgba(108, 60, 225, 0.2);
}

.icon-cyan {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.island-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: var(--text-primary);
}

.island-text p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--text-secondary);
}

@keyframes floatIsland {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* ===== Partners Carousel ===== */
.partners-section {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 26, 0.5);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track-container::before,
.carousel-track-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.carousel-track-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.carousel-track-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.carousel-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    width: max-content;
    animation: scrollCarousel 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
    opacity: 0.6;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--text-primary);
    transform: scale(1.05);
}

.partner-logo i {
    font-size: 1.8rem;
    color: var(--accent);
}

@keyframes scrollCarousel {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===== Brand History Section ===== */
.history-section {
    padding: 8rem 0;
    position: relative;
}

.history-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
    /* Perspectiva 3D sutil no card inteiro */
    transform: perspective(1200px) rotateX(1deg);
    transition: transform 0.8s ease;
}

.history-card:hover {
    transform: perspective(1200px) rotateX(0deg) translateY(-4px);
    box-shadow: 0 30px 80px rgba(108, 60, 225, 0.3);
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-2);
}

.history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(108, 60, 225, 0.2);
    border-radius: 6px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.history-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.history-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.history-feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.history-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.history-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.history-feature-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 5px;
}

.history-feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.history-image-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.35), rgba(0, 212, 255, 0.35));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite alternate;
    box-shadow:
        inset 10px 10px 30px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(108, 60, 225, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Leve perspectiva 3D na forma abstrata */
    transform: perspective(600px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s ease;
}

.abstract-shape:hover {
    transform: perspective(600px) rotateY(8deg) rotateX(-4deg) scale(1.05);
}

.abstract-inner {
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* ===== Services Cards ===== */
.services-section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Perspectiva 3D para o efeito tilt */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-12px) rotateX(3deg) rotateY(-2deg);
    border-color: rgba(108, 60, 225, 0.4);
    box-shadow:
        var(--glow-purple),
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== Countdown / Info Section ===== */
.info-section {
    padding: 4rem 0 6rem;
}

.info-glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.info-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
}

.info-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.2), rgba(0, 212, 255, 0.1));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.info-glass-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-glass-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list li:hover {
    color: var(--text-primary);
    padding-left: 8px;
}

.contact-list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: var(--accent);
}

/* Stats */
.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== Footer ===== */
.footer-section {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    background: rgba(10, 10, 26, 0.5);
    backdrop-filter: blur(10px);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

/* ===== Animations Ext. ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes imageGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ===== GSAP Utility Classes ===== */
.gsap-reveal {
    opacity: 0;
    transform: translateY(50px);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .floating-island {
        display: none;
    }

    .hero-section {
        text-align: center;
        padding-top: 120px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 5rem;
    }

    .info-glass-card {
        padding: 2rem;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }

    .history-card {
        padding: 2rem;
    }

    .history-image-col {
        margin-top: 3rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-glow,
    .btn-outline-glass {
        width: 100%;
        justify-content: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .iphone-frame {
        width: 260px;
        height: 530px;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================
   HERO 3D CONTAINER (coluna direita inline)
   ========================================================== */
#hero3dContainer {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* Aspect ratio mais alto para exibir o laptop sem cortar */
    aspect-ratio: 4 / 3.2;
    /* Sem borda nem background — laptop flutua sobre a página */
    overflow: visible;
    border-radius: 0;
    border: none;
    background: transparent;
    /* Sombra de levitação simulada abaixo do laptop */
    filter: drop-shadow(0 32px 60px rgba(108, 60, 225, 0.45)) drop-shadow(0 0 40px rgba(0, 212, 255, 0.2));
}

#three-canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* Canvas transparente já está configurado no renderer */
}

/* z-index elevado para o conteúdo principal ficar sobre orbs/particles */
.main-content {
    position: relative;
    z-index: 2;
}

/* Gradient orbs e particles no fundo */
.gradient-orb,
.particles-container {
    z-index: 1;
}

/* ==========================================================
   HERO 3D WRAPPER — contém canvas + chips flutuantes
   ========================================================== */
.hero-3d-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 620px;
}

/* Chips flutuantes ao redor do laptop */
.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(10, 10, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-chip i {
    font-size: 0.85rem;
    color: var(--accent);
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chip-dot--green {
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: chipPulse 2s ease-in-out infinite;
}

@keyframes chipPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    }

    50% {
        box-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
    }
}

/* Posicionamento e animações de cada chip */
.chip-1 {
    top: 12%;
    left: -6%;
    animation: floatChip1 5s ease-in-out infinite;
}

.chip-2 {
    bottom: 22%;
    right: -4%;
    animation: floatChip2 6s ease-in-out infinite;
    border-color: rgba(108, 60, 225, 0.25);
}

.chip-3 {
    bottom: 8%;
    left: 2%;
    animation: floatChip3 7s ease-in-out infinite;
    border-color: rgba(0, 212, 255, 0.25);
}

@keyframes floatChip1 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatChip2 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes floatChip3 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Anel de glow abaixo do laptop — simula sombra de levitação */
.laptop-glow-ring {
    position: absolute;
    bottom: -2%;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 24px;
    background: radial-gradient(ellipse, rgba(108, 60, 225, 0.55) 0%, rgba(0, 212, 255, 0.2) 40%, transparent 70%);
    filter: blur(10px);
    border-radius: 50%;
    animation: glowRingPulse 2.2s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes glowRingPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.12);
    }
}

/* ==========================================================
   HERO — Versão 3D (layout 2 colunas)
   ========================================================== */
.hero-section {
    background: transparent !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 80px;
    position: relative;
}

/* Wrapper glassmorphic para o texto permanecer legível sobre a cena 3D */
.hero-glass-wrapper {
    padding: 3.5rem 2.5rem;
    border-radius: 28px;
    background: rgba(10, 10, 26, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: heroGlassAppear 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@keyframes heroGlassAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero badge e title já têm animations próprias — reset opacity dentro do wrapper */
.hero-glass-wrapper .hero-badge,
.hero-glass-wrapper .hero-title,
.hero-glass-wrapper .hero-description,
.hero-glass-wrapper .hero-cta-group {
    animation-delay: 0.5s, 0.7s, 0.9s, 1.1s;
}

/* ==========================================================
   SCROLL INDICATOR
   Seta animada no bottom da hero section.
   ========================================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: scrollBounce 2.5s ease-in-out infinite;
    opacity: 0;
    animation-delay: 1.5s;
    animation-fill-mode: forwards;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--primary-light), transparent);
    border-radius: 1px;
}

@keyframes scrollBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    90% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(10px);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================================
   RESPONSIVE ADJUSTMENTS — Layout 3D 2 colunas
   ========================================================== */

/* Tablet: container ligeiramente menor */
@media (max-width: 991.98px) {
    #hero3dContainer {
        max-width: 420px;
        margin-top: 3rem;
    }

    .hero-3d-wrapper {
        max-width: 460px;
        margin-top: 3rem;
    }

    .hero-section .col-lg-6:first-child {
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    /* Chips menores em tablet */
    .chip-1 {
        left: -2%;
    }

    .chip-2 {
        right: -2%;
    }
}

/* Mobile: containers compactos */
@media (max-width: 575.98px) {
    #hero3dContainer {
        max-width: 300px;
    }

    .hero-3d-wrapper {
        max-width: 320px;
        margin-top: 2rem;
    }

    /* Esconde chips em mobile para não sobrepor */
    .hero-chip {
        display: none;
    }

    /* Sem tilt nos cards em mobile (performance) */
    .service-card {
        transform: none !important;
    }
}