/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Cyber Tech Theme (Unique) */
    --primary-gradient: linear-gradient(135deg, #00d9ff 0%, #00fff5 100%);
    --secondary-gradient: linear-gradient(135deg, #00ff88 0%, #39ff14 100%);
    --accent-gradient: linear-gradient(135deg, #0a84ff 0%, #00d9ff 100%);
    --success-gradient: linear-gradient(135deg, #00ff88 0%, #00fff5 100%);

    --primary-500: #00d9ff;
    --primary-600: #00b8d4;
    --primary-700: #0097a7;

    --bg-dark: #000510;
    --bg-dark-secondary: #0a0f1e;
    --bg-card: #0d1425;
    --bg-card-hover: #151d32;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(0, 217, 255, 0.15);
    --border-color-hover: rgba(0, 217, 255, 0.3);

    /* Spacing */
    --section-padding: 120px;
    --container-padding: 24px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4);

    /* Glass Effect */
    --glass-bg: rgba(26, 31, 58, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 217, 255, 0.02) 50%);
    background-size: 100% 4px;
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-base);
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-secondary {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-gradient);
    top: -250px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-gradient);
    bottom: -200px;
    right: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-gradient);
    top: 50%;
    right: 10%;
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-500);
    background: rgba(102, 126, 234, 0.1);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

/* ==========================================
   SECTION STYLES
   ========================================== */
section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: var(--primary-500);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================
   SOBRE SECTION
   ========================================== */
.section-sobre {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

.sobre-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 32px;
}

.sobre-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: all var(--transition-base);
}

.sobre-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.sobre-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.sobre-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.sobre-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   ESPECIALIDADES SECTION
   ========================================== */
.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.especialidade-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.especialidade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.especialidade-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-500);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}

.especialidade-card:hover::before {
    transform: scaleX(1);
}

.especialidade-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.especialidade-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.especialidade-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.especialidade-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-500);
    font-weight: 500;
}

/* ==========================================
   PROJETOS SECTION
   ========================================== */
.section-projetos {
    background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
}

.projeto-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 32px;
}

.projeto-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.projeto-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-xl);
}

.projeto-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary-500);
    position: relative;
    overflow: hidden;
}

.projeto-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.projeto-card:hover .projeto-image::before {
    opacity: 0.1;
}

.projeto-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projeto-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    width: fit-content;
}

.projeto-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.projeto-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.projeto-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   VIDEOS SECTION
   ========================================== */
.section-videos {
    background: var(--bg-dark-secondary);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 32px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-lg);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.video-card:hover .video-placeholder::before {
    opacity: 0.1;
}

.video-placeholder i {
    font-size: 64px;
    color: var(--primary-500);
    transition: all var(--transition-base);
}

.video-card:hover .video-placeholder i {
    transform: scale(1.2);
}

.video-placeholder span {
    font-weight: 500;
    font-size: 14px;
}

.video-card h3 {
    padding: 20px 24px 8px;
    font-size: 20px;
    font-weight: 700;
}

.video-card p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   GAMES SECTION
   ========================================== */
.section-games {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow:
        0 0 40px rgba(0, 217, 255, 0.1),
        var(--shadow-xl);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.game-header h3 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-header i {
    color: var(--primary-500);
}

.game-score {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.game-score strong {
    color: var(--primary-500);
    font-size: 18px;
    font-weight: 700;
}

#pacmanCanvas {
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 560 / 620;
    background: #000;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: block;
    margin: 0 auto 24px;
    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.2),
        inset 0 0 40px rgba(0, 217, 255, 0.05);
}

.game-controls {
    text-align: center;
}

.game-controls p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.game-controls i {
    color: var(--primary-500);
}

.game-controls .btn {
    margin: 0 auto;
}

/* ==========================================
   FLOATING BUTTONS
   ========================================== */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    pointer-events: none;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 217, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
    pointer-events: auto;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.float-btn:active {
    transform: translateY(-2px) scale(1);
}

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    text-decoration: none;
    animation-delay: 0.2s;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #2be477 0%, #15a890 100%);
    box-shadow:
        0 8px 24px rgba(37, 211, 102, 0.4),
        0 0 40px rgba(37, 211, 102, 0.3);
}

/* Back to Top Button */
.top-btn {
    background: var(--primary-gradient);
    color: white;
    animation-delay: 0.3s;
}

.top-btn:hover {
    box-shadow:
        0 8px 24px rgba(0, 217, 255, 0.5),
        0 0 40px rgba(0, 217, 255, 0.3);
}

.top-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   TECNOLOGIAS SECTION
   ========================================== */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 32px;
}

.tech-category {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-base);
}

.tech-category:hover {
    transform: translateY(-4px);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-lg);
}

.tech-category h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-category h3 i {
    color: var(--primary-500);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tech-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-item i {
    color: var(--primary-500);
}

.tech-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-500);
    transform: translateX(4px);
}

/* ==========================================
   CONTATO SECTION
   ========================================== */
.section-contato {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-base);
}

.info-card:hover {
    border-color: var(--primary-500);
    transform: translateX(8px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.info-card a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.info-card a:hover {
    color: var(--primary-500);
}

.contato-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    transition: all var(--transition-fast);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contato-form .btn {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 8px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 16px 0 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-500);
    transform: translateX(4px);
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--primary-500);
    width: 16px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom i {
    color: #e53e3e;
}

/* ==========================================
   RESPONSIVE - OTIMIZADO PARA MOBILE
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
        --container-padding: 20px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .contato-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .especialidades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 16px;
    }

    html {
        font-size: 14px;
        overflow-x: hidden !important;
    }

    body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    * {
        max-width: 100%;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 12px 0;
    }

    .navbar.scrolled {
        padding: 10px 0;
    }

    .logo {
        font-size: 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 20px;
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 16px;
        width: 100%;
        padding: 12px 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero Mobile */
    .hero {
        min-height: 90vh;
        padding-top: 60px;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 60px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }

    .hero-stats {
        gap: 32px;
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }

    .scroll-indicator {
        bottom: 24px;
        font-size: 12px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 48px;
    }

    .section-tag {
        font-size: 12px;
        padding: 6px 16px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 42px);
        margin-bottom: 16px;
    }

    .section-description {
        font-size: 15px;
    }

    /* Cards Mobile */
    .sobre-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sobre-card {
        padding: 28px 24px;
    }

    .sobre-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .sobre-card h3 {
        font-size: 20px;
    }

    /* Especialidades Mobile */
    .especialidades-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .especialidade-card {
        padding: 24px 20px;
    }

    .especialidade-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .especialidade-card h3 {
        font-size: 18px;
    }

    /* Projetos Mobile */
    .projeto-filters {
        gap: 8px;
        margin-bottom: 40px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projeto-image {
        height: 200px;
        font-size: 48px;
    }

    .projeto-content {
        padding: 20px;
    }

    .projeto-content h3 {
        font-size: 20px;
    }

    .tech-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Videos Mobile */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-placeholder i {
        font-size: 48px;
    }

    .video-card h3 {
        font-size: 18px;
        padding: 16px 20px 6px;
    }

    .video-card p {
        padding: 0 20px 20px;
        font-size: 14px;
    }

    /* Game Mobile */
    .game-container {
        padding: 20px 16px;
    }

    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .game-header h3 {
        font-size: 20px;
    }

    .game-score {
        gap: 16px;
        font-size: 13px;
    }

    .game-score strong {
        font-size: 16px;
    }

    #pacmanCanvas {
        border-radius: 8px;
        margin-bottom: 16px;
    }

    /* Tecnologias Mobile */
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-category {
        padding: 24px 20px;
    }

    .tech-category h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .tech-grid {
        gap: 10px;
    }

    .tech-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Contato Mobile */
    .contato-content {
        grid-template-columns: 1fr;
        gap: 32px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .info-card {
        padding: 20px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .info-card a {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .info-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .contato-form {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-group textarea {
        min-height: 100px;
    }

    /* Footer Mobile */
    .footer {
        padding: 48px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-brand p {
        margin: 12px 0 20px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-links a {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-contact p {
        font-size: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 13px;
    }

    /* Floating Buttons Mobile - OCULTAR */
    .floating-buttons {
        display: none !important;
    }

    /* Mouse Effects - Disable on Mobile */
    .cursor-glow,
    .mouse-trail,
    .particles-container {
        display: none;
    }

    /* Orbs - Smaller on Mobile */
    .orb-1,
    .orb-2,
    .orb-3 {
        filter: blur(80px);
        opacity: 0.2;
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px;
        --container-padding: 16px;
    }

    /* Hero Small Mobile */
    .hero-title {
        font-size: clamp(28px, 10vw, 38px);
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    /* Section Adjustments */
    .section-title {
        font-size: clamp(24px, 8vw, 36px);
    }

    .section-description {
        font-size: 14px;
    }

    /* Cards */
    .sobre-card,
    .especialidade-card {
        padding: 20px 16px;
    }

    .projeto-content {
        padding: 16px;
    }

    /* Forms */
    .contato-form {
        padding: 20px 16px;
    }

    /* Game */
    .game-container {
        padding: 16px 12px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 24px;
    }

    /* Navbar */
    .nav-links {
        width: 100%;
        padding: 80px 24px 24px;
    }

    .logo {
        font-size: 22px;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 22px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Hide elements with data-filter that don't match */
.projeto-card.hidden {
    display: none;
}

/* Smooth transitions for filtering */
.projeto-card {
    animation: fadeIn 0.4s ease-out;
}

/* ==========================================
   MOUSE EFFECTS
   ========================================== */

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: none;
    mix-blend-mode: screen;
}

/* Mouse Trail */
.mouse-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary-gradient);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

/* Particles Container */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Individual Particle */
.particle {
    position: absolute;
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle linear infinite;
    box-shadow: 0 0 4px rgba(0, 217, 255, 0.6);
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(100px) scale(0.5);
        opacity: 0;
    }
}

/* Glow on Interactive Elements */
.btn:hover,
.projeto-card:hover,
.especialidade-card:hover,
.sobre-card:hover {
    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.3),
        0 0 40px rgba(0, 217, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced button glow */
.btn-primary:hover {
    box-shadow:
        0 0 30px rgba(0, 217, 255, 0.6),
        0 0 60px rgba(0, 217, 255, 0.3),
        0 12px 32px rgba(0, 217, 255, 0.4);
}

/* Card hover cyber glow */
.projeto-card:hover,
.especialidade-card:hover {
    border-color: var(--primary-500);
    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.4),
        0 0 40px rgba(0, 217, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 217, 255, 0.05);
}

/* Navbar glow when scrolled */
.navbar.scrolled {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 217, 255, 0.1);
}

/* Section dividers with glow */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--primary-gradient);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    opacity: 0.3;
}

section:last-of-type::after {
    display: none;
}