:root {
    --color-dark-blue: #0D2E5F;
    --color-medium-blue: #1D4E8C;
    --color-vibrant-blue: #2979D8;
    --color-neon-cyan: #00D9FF;
    --color-ice-white: #F0F7FF;
    --color-light-gray: #B8C9E0;
    --color-dark-bg: #0F1E35;
    --color-accent-purple: #7C3AED;
    --color-accent-pink: #EC4899;
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background: var(--color-dark-bg);
    color: var(--color-ice-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== LOADING SCREEN ==================== */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--color-dark-bg);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 2rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
    width: 80px; height: 80px;
    border: 4px solid rgba(0, 217, 255, 0.1);
    border-top-color: var(--color-neon-cyan);
    border-radius: 50%; animation: spin 1s linear infinite;
}
.loader-text {
    color: var(--color-neon-cyan); font-size: 1.2rem;
    letter-spacing: 4px; text-transform: uppercase;
    animation: pulse-text 1.5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-text { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: transparent; transition: all 0.4s var(--transition-smooth); padding: 1.2rem 0;
}
.navbar.scrolled {
    background: rgba(13, 46, 95, 0.92); backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 217, 255, 0.1); padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 217, 255, 0.15);
}
.navbar-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.navbar-logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.5rem; font-weight: 700; color: var(--color-neon-cyan);
    text-shadow: 0 0 20px rgba(0, 194, 255, 0.5);
}
.navbar-menu { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-link {
    color: var(--color-ice-white); text-decoration: none; font-weight: 600;
    font-size: 0.95rem; transition: color 0.3s var(--transition-smooth);
    position: relative; padding: 0.3rem 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--color-neon-cyan), var(--color-vibrant-blue));
    transition: width 0.3s var(--transition-smooth); border-radius: 2px;
}
.nav-link:hover { color: var(--color-neon-cyan); }
.nav-link:hover::after { width: 100%; }

.hamburger {
    display: none; flex-direction: column; cursor: pointer; gap: 5px; padding: 4px;
}
.hamburger span {
    width: 26px; height: 3px; background: var(--color-neon-cyan);
    border-radius: 3px; transition: all 0.3s var(--transition-smooth); transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ==================== BOTÕES ==================== */
.btn-primary, .btn-secondary {
    padding: 0.85rem 2rem; border: none; border-radius: 50px;
    font-weight: 600; cursor: pointer; font-size: 0.95rem;
    transition: all 0.3s var(--transition-smooth); text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-vibrant-blue), var(--color-neon-cyan));
    color: var(--color-dark-blue); box-shadow: 0 4px 20px rgba(0, 194, 255, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(0, 194, 255, 0.5);
    transform: translateY(-3px); animation: btn-glow 2s ease-in-out infinite;
}
.btn-primary:active { transform: translateY(-1px); }

@keyframes btn-glow {
    0%, 100% { box-shadow: 0 8px 40px rgba(0, 194, 255, 0.5); }
    50% { box-shadow: 0 8px 60px rgba(0, 194, 255, 0.8), 0 0 100px rgba(0, 194, 255, 0.3); }
}

.btn-secondary {
    background: transparent; color: var(--color-neon-cyan);
    border: 2px solid var(--color-neon-cyan);
}
.btn-secondary:hover {
    background: rgba(0, 194, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 194, 255, 0.3);
    transform: translateY(-3px);
}
.btn-large { padding: 1.1rem 2.8rem; font-size: 1.1rem; }

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, #0a2440 30%, #1a3a5c 60%, #0d2e5f 100%);
}
#particleCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-grid {
    position: absolute; width: 100%; height: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(0, 217, 255, 0.06) 25%, rgba(0, 217, 255, 0.06) 26%, transparent 27%, transparent 74%, rgba(0, 217, 255, 0.06) 75%, rgba(0, 217, 255, 0.06) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 217, 255, 0.06) 25%, rgba(0, 217, 255, 0.06) 26%, transparent 27%, transparent 74%, rgba(0, 217, 255, 0.06) 75%, rgba(0, 217, 255, 0.06) 76%, transparent 77%, transparent);
    background-size: 60px 60px; z-index: 0; opacity: 0.3;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 0 2rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(0, 217, 255, 0.1); border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 50px; padding: 0.5rem 1.2rem; font-size: 0.85rem;
    color: var(--color-neon-cyan); margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out; backdrop-filter: blur(4px);
}
.hero-badge-dot {
    width: 8px; height: 8px; background: #22c55e;
    border-radius: 50%; animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.logo-hero { margin-bottom: 2rem; display: flex; justify-content: center; }
.logo-img-hero {
    width: 200px; height: 200px; object-fit: contain;
    filter: drop-shadow(0 0 60px rgba(0, 217, 255, 0.4));
    animation: float-logo 4s ease-in-out infinite;
}
@keyframes float-logo {
    0%, 100% { transform: translateY(0px); filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.4)); }
    50% { transform: translateY(-20px); filter: drop-shadow(0 0 80px rgba(0, 217, 255, 0.7)); }
}
.hero-title {
    font-size: 4rem; font-weight: 800; margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-neon-cyan) 0%, #60d0ff 40%, var(--color-ice-white) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1.1; animation: fadeInUp 1s ease-out 0.3s both;
}
.hero-subtitle {
    font-size: 1.5rem; color: var(--color-light-gray); margin-bottom: 0.5rem;
    font-weight: 300; animation: fadeInUp 1s ease-out 0.5s both;
}
.hero-typing {
    font-size: 1.1rem; color: var(--color-neon-cyan);
    min-height: 2rem; margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.7s both; font-weight: 500;
}
.hero-typing .cursor {
    display: inline-block; width: 3px; height: 1.2em;
    background: var(--color-neon-cyan); margin-left: 2px;
    animation: blink-cursor 0.8s step-end infinite; vertical-align: text-bottom;
}
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-description {
    font-size: 1.1rem; color: var(--color-light-gray);
    max-width: 650px; margin: 0 auto 2rem; line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.9s both;
}
.hero-buttons {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.1s both;
}
.hero-stats {
    display: flex; gap: 4rem; justify-content: center; margin-top: 3rem;
    animation: fadeInUp 1s ease-out 1.3s both;
}
.hero-stat { text-align: center; }
.hero-stat-number {
    font-size: 2.5rem; font-weight: 800; color: var(--color-neon-cyan); line-height: 1;
}
.hero-stat-label { font-size: 0.85rem; color: var(--color-light-gray); margin-top: 0.3rem; }

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

/* ==================== SEÇÕES ==================== */
.section {
    max-width: 1400px; margin: 0 auto; padding: 6rem 2rem;
    scroll-margin-top: 100px;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    display: inline-block; background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2); border-radius: 50px;
    padding: 0.3rem 1rem; font-size: 0.8rem; color: var(--color-neon-cyan);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
    font-size: 2.8rem; font-weight: 800; margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-ice-white));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle {
    font-size: 1.1rem; color: var(--color-light-gray);
    max-width: 700px; margin: 0 auto; line-height: 1.8;
}

/* ==================== DOCKER EXPLAINER ==================== */
.docker-explainer { margin-bottom: 3rem; }
.explainer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.explainer-item {
    padding: 2rem; border-radius: 16px;
    background: linear-gradient(135deg, rgba(29, 78, 140, 0.15), rgba(15, 30, 53, 0.4));
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.4s var(--transition-smooth); text-align: center;
}
.explainer-item:hover {
    border-color: rgba(0, 217, 255, 0.3); transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.1);
}
.explainer-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.explainer-item h3 {
    color: var(--color-neon-cyan); font-size: 1.2rem;
    margin-bottom: 0.8rem; font-weight: 700;
}
.explainer-item p { color: var(--color-light-gray); font-size: 0.9rem; line-height: 1.7; }

/* ==================== ARCHITECTURE DIAGRAM ==================== */
.docker-architecture { margin-top: 3rem; }
.arch-title {
    text-align: center; color: var(--color-neon-cyan);
    margin-bottom: 2rem; font-size: 1.4rem; font-weight: 700;
}
.arch-diagram {
    max-width: 900px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 0;
}
.arch-layer {
    width: 100%; padding: 1.5rem;
    background: linear-gradient(135deg, rgba(29, 78, 140, 0.2), rgba(15, 30, 53, 0.4));
    border: 1px solid rgba(0, 217, 255, 0.15); border-radius: 16px;
    transition: all 0.3s ease;
}
.arch-layer:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.1);
}
.arch-label {
    text-align: center; color: var(--color-neon-cyan);
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 1rem;
}
.arch-boxes {
    display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.arch-box {
    padding: 0.6rem 1.2rem; border-radius: 10px;
    background: rgba(0, 217, 255, 0.08); border: 1px solid rgba(0, 217, 255, 0.2);
    font-size: 0.85rem; font-weight: 500; color: var(--color-ice-white);
    transition: all 0.3s ease;
}
.arch-box:hover {
    background: rgba(0, 217, 255, 0.15); transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2);
}
.arch-box.highlight {
    background: rgba(0, 217, 255, 0.15); border-color: var(--color-neon-cyan);
    color: var(--color-neon-cyan); font-weight: 600;
}
.arch-box.small { font-size: 0.8rem; padding: 0.4rem 1rem; }
.arch-connector {
    color: var(--color-neon-cyan); font-size: 1.5rem;
    opacity: 0.5; padding: 0.3rem 0;
    animation: pulse-connector 2s ease-in-out infinite;
}
@keyframes pulse-connector {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* ==================== CARDS ==================== */
.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.8rem; max-width: 1400px; margin: 0 auto;
}
.card {
    padding: 2rem; border-radius: 20px;
    background: linear-gradient(135deg, rgba(29, 78, 140, 0.15), rgba(15, 30, 53, 0.4));
    backdrop-filter: blur(10px); border: 1px solid rgba(0, 217, 255, 0.15);
    transition: all 0.4s var(--transition-smooth);
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-neon-cyan), var(--color-accent-purple), transparent);
    opacity: 0; transition: opacity 0.4s var(--transition-smooth);
}
.card::after {
    content: ''; position: absolute; inset: 0; border-radius: 20px; opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 217, 255, 0.08), transparent 70%);
    pointer-events: none;
}
.card:hover {
    border-color: rgba(0, 217, 255, 0.4); transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.15);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card-icon {
    font-size: 2.5rem; margin-bottom: 1.2rem; display: inline-block;
    transition: transform 0.4s var(--transition-smooth);
}
.card:hover .card-icon { transform: scale(1.2) rotate(5deg); animation: icon-bounce 0.6s ease; }
@keyframes icon-bounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3) rotate(8deg); }
    60% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1.2) rotate(5deg); }
}

.card-title {
    font-size: 1.3rem; font-weight: 700; color: var(--color-neon-cyan);
    margin-bottom: 0.5rem;
}
.card-description {
    color: var(--color-light-gray); margin-bottom: 1.2rem;
    font-size: 0.9rem; line-height: 1.7;
}
.card-features { list-style: none; padding: 0; }
.card-features li {
    color: var(--color-ice-white); padding: 0.4rem 0;
    padding-left: 1.5rem; position: relative; font-size: 0.85rem; line-height: 1.5;
}
.card-features li::before {
    content: '\2713'; position: absolute; left: 0; color: var(--color-neon-cyan);
    font-weight: bold;
}
.card-footer-info {
    margin-top: 1.2rem; padding: 0.8rem 1rem;
    background: rgba(0, 217, 255, 0.06); border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--color-light-gray);
    border: 1px solid rgba(0, 217, 255, 0.08);
}
.status-badge {
    font-weight: 600; font-size: 0.75rem; padding: 0.2rem 0.6rem;
    border-radius: 20px; letter-spacing: 0.5px;
}
.status-badge.online {
    background: rgba(34, 197, 94, 0.15); color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-badge.gpu {
    background: rgba(124, 58, 237, 0.15); color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ==================== CTA ==================== */
.cta-section {
    background: linear-gradient(135deg, rgba(29, 78, 140, 0.3), rgba(41, 121, 216, 0.2));
    border-radius: 24px; border: 1px solid rgba(0, 217, 255, 0.2);
    text-align: center; margin: 4rem auto; padding: 5rem 3rem;
    position: relative; overflow: hidden; max-width: 1200px; width: 90%;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 217, 255, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
}
.cta-content { position: relative; z-index: 2; }
.cta-values {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem; margin: 2.5rem auto; max-width: 1000px;
}
.value-item {
    padding: 1.5rem 1rem; border-radius: 16px;
    background: rgba(29, 78, 140, 0.25); border: 1px solid rgba(0, 217, 255, 0.15);
    transition: all 0.3s var(--transition-smooth); cursor: default;
}
.value-item:hover {
    background: rgba(29, 78, 140, 0.45); border-color: var(--color-neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.15);
    transform: translateY(-5px) scale(1.03); animation: value-pulse 1s ease-in-out;
}
@keyframes value-pulse {
    0%, 100% { transform: translateY(-5px) scale(1.03); }
    50% { transform: translateY(-8px) scale(1.06); }
}
.value-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.value-item h4 { color: var(--color-ice-white); font-size: 0.9rem; font-weight: 600; }

/* ==================== TECH STACK ==================== */
.tech-cloud {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center; max-width: 900px; margin: 2rem auto 0;
}
.tech-item {
    padding: 0.6rem 1.2rem; border-radius: 50px;
    background: rgba(29, 78, 140, 0.2); border: 1px solid rgba(0, 217, 255, 0.15);
    color: var(--color-light-gray); font-size: 0.85rem; font-weight: 500;
    transition: all 0.3s var(--transition-smooth); cursor: default;
    position: relative; overflow: hidden;
}
.tech-item::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.tech-item:hover::before { left: 100%; }
.tech-item:hover {
    background: rgba(0, 217, 255, 0.1); border-color: var(--color-neon-cyan);
    color: var(--color-neon-cyan); transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.15);
}

/* ==================== TIMELINE ==================== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 0; }
.timeline::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: 2px; height: 100%;
    background: linear-gradient(180deg, transparent, var(--color-neon-cyan), transparent);
    opacity: 0.3;
}
.timeline-item {
    display: flex; align-items: flex-start; gap: 2rem;
    margin-bottom: 3rem; position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
    flex: 1; padding: 1.5rem; border-radius: 16px;
    background: rgba(29, 78, 140, 0.15); border: 1px solid rgba(0, 217, 255, 0.12);
    transition: all 0.3s var(--transition-smooth);
}
.timeline-content:hover {
    background: rgba(29, 78, 140, 0.3); border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-3px);
}
.timeline-dot {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--color-neon-cyan); border: 3px solid var(--color-dark-bg);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    flex-shrink: 0; margin-top: 1.5rem; position: relative; z-index: 2;
}
.timeline-date {
    font-size: 0.8rem; color: var(--color-neon-cyan);
    font-weight: 600; margin-bottom: 0.5rem;
}
.timeline-title {
    font-size: 1.1rem; font-weight: 700;
    color: var(--color-ice-white); margin-bottom: 0.3rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(180deg, rgba(13, 46, 95, 0.5) 0%, #0a1a30 100%);
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    padding: 4rem 2rem 2rem; margin-top: 4rem;
}
.footer-content {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-section h4 {
    color: var(--color-neon-cyan); margin-bottom: 1.2rem; font-size: 1.1rem;
}
.footer-section p { color: var(--color-light-gray); line-height: 1.8; font-size: 0.9rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a {
    color: var(--color-light-gray); text-decoration: none;
    transition: color 0.3s var(--transition-smooth); font-size: 0.9rem;
}
.footer-section a:hover { color: var(--color-neon-cyan); }
.footer-bottom {
    border-top: 1px solid rgba(0, 194, 255, 0.08);
    padding-top: 2rem; text-align: center;
    color: var(--color-light-gray); font-size: 0.85rem;
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-vibrant-blue), var(--color-neon-cyan));
    color: var(--color-dark-blue); border: none; cursor: pointer;
    font-size: 1.3rem; box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
    transition: all 0.3s var(--transition-smooth); z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(20px);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
    transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
}

/* ==================== ANIMATIONS ADDITIONAL ==================== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes glow-border {
    0%, 100% { border-color: rgba(0, 217, 255, 0.2); }
    50% { border-color: rgba(0, 217, 255, 0.6); }
}
@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes rotate-in {
    from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

/* Stagger animation for cards */
.cards-grid .card:nth-child(1) { animation-delay: 0s; }
.cards-grid .card:nth-child(2) { animation-delay: 0.1s; }
.cards-grid .card:nth-child(3) { animation-delay: 0.2s; }
.cards-grid .card:nth-child(4) { animation-delay: 0.3s; }
.cards-grid .card:nth-child(5) { animation-delay: 0.4s; }
.cards-grid .card:nth-child(6) { animation-delay: 0.5s; }

/* Glow animation on section tags */
.section-tag {
    transition: all 0.3s ease;
}
.section-tag:hover {
    background: rgba(0, 217, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
    animation: glow-border 2s ease-in-out infinite;
}

/* Floating animation for explainer items */
.explainer-item:nth-child(1) { animation: float 6s ease-in-out infinite; }
.explainer-item:nth-child(2) { animation: float 6s ease-in-out 0.5s infinite; }
.explainer-item:nth-child(3) { animation: float 6s ease-in-out 1s infinite; }
.explainer-item:nth-child(4) { animation: float 6s ease-in-out 1.5s infinite; }
.explainer-item:nth-child(5) { animation: float 6s ease-in-out 2s infinite; }
.explainer-item:nth-child(6) { animation: float 6s ease-in-out 2.5s infinite; }

/* Tech item stagger */
.tech-cloud .tech-item:nth-child(odd) { animation: float 5s ease-in-out infinite; }
.tech-cloud .tech-item:nth-child(even) { animation: float 5s ease-in-out 1s infinite; }

/* ==================== RESPONSIVO ==================== */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 3rem; }
    .hero-stats { gap: 2.5rem; }
    .cards-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed; left: -100%; top: 0;
        flex-direction: column; background: rgba(13, 46, 95, 0.98);
        backdrop-filter: blur(20px); width: 75%; height: 100vh;
        text-align: left; transition: left 0.4s var(--transition-smooth);
        padding: 5rem 2rem 2rem; gap: 0.5rem;
        border-right: 1px solid rgba(0, 217, 255, 0.1);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3); z-index: 999;
    }
    .navbar-menu.active { left: 0; }
    .nav-link { font-size: 1.1rem; padding: 0.8rem 0; }
    .hamburger { display: flex; z-index: 1001; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .hero-stat-number { font-size: 1.8rem; }
    .section-title { font-size: 2rem; }
    .cards-grid { grid-template-columns: 1fr; justify-items: center; }
    .card { max-width: 450px; }
    .timeline::before { left: 20px; }
    .timeline-item { flex-direction: row !important; gap: 1rem; }
    .timeline-dot { margin-top: 1rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .cta-values { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .cta-section { padding: 3rem 1.5rem; }
    .arch-boxes { gap: 0.4rem; }
    .arch-box { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
    .explainer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .navbar-container { padding: 0 1rem; }
    .hero-title { font-size: 1.8rem; }
    .logo-img-hero { width: 140px; height: 140px; }
    .section { padding: 3rem 1rem; }
    .section-title { font-size: 1.6rem; }
    .cta-values { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-large { width: 100%; justify-content: center; }
    .tech-item { font-size: 0.8rem; padding: 0.4rem 1rem; }
    .arch-layer { padding: 1rem; }
}