/* Reset & Variáveis Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0b0f19;
    --bg-light-dark: #131c2e;
    --primary: #1e62d0;
    --primary-gradient: linear-gradient(135deg, #2575fc 0%, #1a4cb0 100%);
    --accent: #00f2fe;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

/* Utilitários */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.alternative-bg {
    background-color: var(--bg-light-dark);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;      
  justify-content: center;  
  flex-direction: column;   
  text-align: center;       
  position: relative;
  padding: 100px 5% 60px;   
}

.hero-content {
    max-width: 600px;
}

.badge {
    background: rgba(30, 98, 208, 0.2);
    border: 1px solid var(--primary);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 25px;
}


.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    padding: 15px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.6);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: white;
    text-decoration: none;
    padding: 15px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

/* Efeito Abstrato de IoT no Hero */
.hero-visual {
  position: relative;
  width: 400px;   /* tamanho final */
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.hero-logo {
    position: absolute;
    width: 250px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.tech-sphere {
  width: 300px;   /* escolha o tamanho final */
  height: 300px;
  position: relative;
  background: radial-gradient(circle, #1e62d0 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease infinite alternate;
}

.tech-sphere::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(0, 242, 254, 0.4);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

/* Sobre (Cards) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.3);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Ferramentas */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tool-card {
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tool-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Linha do Tempo */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    left: -39px;
    top: 5px;
    box-shadow: 0 0 10px var(--accent);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.record-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.record-gallery::-webkit-scrollbar {
    height: 8px;
}

.record-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.record-card {
    flex: 0 0 220px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    scroll-snap-align: start;
}

.record-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.record-card:active {
    transform: translateY(-2px) scale(0.98);
}

.record-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.record-card figcaption {
    padding: 14px 12px;
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
}

.record-video-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.record-video {
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.record-video video {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.record-video-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 900px) {
    .record-video-wrapper {
        gap: 14px;
    }
}

@media (max-width: 680px) {
    .record-video-wrapper {
        flex-direction: column;
    }
}

/* Rodapé */
.footer {
    background: #060911;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-info h3 span {
    color: var(--accent);
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Animações */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.05); opacity: 0.9; }
}

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

/* Responsividade Básica */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: px;
    }

    .hero-visual {
        margin-top: 50px;
        width: 320px;
        height: 320px;
    }
     .tech-sphere {
    width: 180px;
    height: 180px;
}
    .hero-logo {
        width: 220px;
    }
    .hero h1 {
        font-size: 2.6rem;
    }
    .hero-btns {
        justify-content: center;
        flex-direction: column;
    }
    .nav-links {
        display: none; /* Simplificado para focar nos arquivos principais */
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 5%;
    }
    .logo {
        font-size: 1.6rem;
    }
    .btn-nav {
        width: 100%;
        text-align: center;
    }
    .hero {
        padding: 140px 5% 60px;
    }
    .hero-visual {
        width: 260px;
        height: 260px;
    }
    .tech-sphere {
        width: 200px;
        height: 200px;
    }
    .hero-logo {
        width: 180px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 0.98rem;
    }
    .hero-btns {
        gap: 15px;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    .footer-container,
    .grid-cards,
    .tools-grid {
        width: 100%;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        align-items: center;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline-item::before {
        left: -30px;
    }
}
