/* Base Styles */
:root {
    --primary-color: #030c24;
    --secondary-color: #e4d17c;
    --text-color: #ffffff;
    --dark-text: #333333;
    --light-bg: #f5f5f5;
    --pure-white: #ffffff;
    --light-gray: #f9f9f9;
    --medium-gray: #eaeaea;
    --dark-gray: #555555;
    --transition: all 0.3s ease;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    background: #000;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: var(--font-bold);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: #cccccc;
    font-size: 1.1rem;
    font-weight: var(--font-regular);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: var(--font-semibold);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.primary-btn:hover {
    background-color: #d1be6a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.highlight {
    color: var(--secondary-color);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    max-width: 150px;
    animation: pulse 2s infinite;
}

.welcome-text {
    font-size: 2rem;
    color: var(--text-color);
}

.typing-welcome::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Floating Buttons */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
}

.contact-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.contact-toggle i {
    color: var(--primary-color);
    font-size: 24px;
}

.contact-options {
    position: absolute;
    bottom: 70px;
    left: 10px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-contact.active .contact-options {
    opacity: 1;
    visibility: visible;
}

.contact-options a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.contact-options a:hover {
    transform: scale(1.1);
}

.whatsapp {
    background-color: #25D366;
}

.telegram {
    background-color: #0088cc;
}

.contact-options a i {
    color: white;
    font-size: 20px;
}

/* Language Selector */
.language-selector {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.language-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.language-toggle i {
    color: var(--primary-color);
    font-size: 24px;
}

.language-options {
    position: absolute;
    bottom: 70px;
    right: 10px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.language-selector.active .language-options {
    opacity: 1;
    visibility: visible;
}

.language-options a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.language-options a:hover {
    background-color: #f5f5f5;
}

.language-options a.active {
    background-color: var(--secondary-color);
}

.language-options a img {
    width: 20px;
    margin-right: 10px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 997;
    transition: all 0.3s ease;
    background: transparent;
    padding: 20px 0;
    transform: translateY(0); /* Mostrar desde o início */
}

header.scrolled {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: var(--transition);
    position: relative;
    font-family: 'Poppins', sans-serif;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.mobile-menu-toggle i {
    font-size: 24px;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../images/background.jpg');
    background-size: 100%;
    background-position: center 15%;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
                               rgba(3, 12, 36, 0.98), 
                               rgba(3, 12, 36, 0.95) 20%,
                               rgba(25, 15, 65, 0.8) 40%, 
                               rgba(40, 27, 90, 0.2) 80%);
    backdrop-filter: blur(0px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: var(--font-extrabold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    color: #cccccc;
    font-weight: var(--font-regular);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content .btn {
    font-size: 1.2rem;
    padding: 15px 40px;
}

.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

/* Media Queries para Dispositivos Móveis */
@media (max-width: 768px) {
    .hero {
        background-size: 200%;
        background-position: center 10%;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        background-size: 250%;
        background-position: center 5%;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

/* About Section */
.about {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050e266b;
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.about-text {
    max-width: 800px;
    padding-right: 30px;
}

.about-text h2 {
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 992px) {
    .about-text h2 {
        font-size: 2.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .about-text {
        padding-right: 0;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
}

.about-globe {
    flex: 1;
}

.globe-container {
    width: 100%;
    max-width: 500px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-text h2 {
        font-size: 2.8rem;
    }
    
    .about-text p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .about .video-background {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        z-index: 0 !important;
    }
    
    .about .video-background video {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Stats Section */
.stats {
    background-color: var(--primary-color);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    display: none;
}

.stats::after {
    display: none;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 25px;
    flex: 1;
    min-width: 180px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    border-radius: var(--card-radius);
    background: linear-gradient(145deg, #030e26, #02091e);
    box-shadow: 10px 10px 20px #010715, -10px -10px 20px #040f27;
    margin: 10px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.stat-number-wrapper {
    margin-bottom: 5px;
    position: relative;
}

.stat-number {
    font-size: 4rem;
    font-weight: var(--font-extrabold);
    line-height: 1;
    color: var(--secondary-color);
    letter-spacing: -1px;
}

.stat-title {
    font-size: 1rem;
    color: #cccccc;
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
}

/* Decorative Elements */
.decorative-element {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.decorative-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 209, 124, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    left: -100px;
    top: 100px;
    animation: float 15s ease-in-out infinite;
}

.decorative-circle.decorative-right {
    left: auto;
    right: -100px;
    top: 200px;
    background: radial-gradient(circle, rgba(228, 209, 124, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    animation-delay: 2s;
}

.decorative-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--secondary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    right: 100px;
    bottom: 100px;
    animation: float 20s ease-in-out infinite reverse;
}

.decorative-dots.decorative-left {
    right: auto;
    left: 100px;
    top: 100px;
    width: 150px;
    height: 150px;
    background-size: 15px 15px;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, 15px) rotate(2deg);
    }
    50% {
        transform: translate(0, 30px) rotate(0deg);
    }
    75% {
        transform: translate(-15px, 15px) rotate(-2deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Services Section - Light Background Enhanced */
.services {
    background-color: var(--pure-white);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.services::before {
    display: none;
}

.services::after {
    display: none;
}

.services .section-header h2 {
    color: var(--dark-text);
    font-size: 3rem;
    font-weight: var(--font-extrabold);
}

.services .section-header p {
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.service-item {
    background-color: var(--light-gray);
    padding: 40px 30px;
    border-radius: var(--card-radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--box-shadow);
    border-bottom: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: translateX(0);
}

.service-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.service-item.highlight-service {
    animation: highlight-pulse 1s ease-in-out;
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(228, 209, 124, 0.3);
    background-color: #ffffff;
    border: 2px solid var(--secondary-color);
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(228, 209, 124, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(228, 209, 124, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(228, 209, 124, 0);
    }
}

.service-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(228, 209, 124, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon::after {
    width: 70px;
    height: 70px;
    background-color: rgba(228, 209, 124, 0.2);
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: var(--font-bold);
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.service-item:hover h3 {
    color: var(--primary-color);
}

.service-item p {
    color: var(--dark-gray);
    font-weight: var(--font-regular);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Portfolio Section - Dark Background Enhanced */
.portfolio {
    background-color: var(--primary-color);
    position: relative;
    padding: 60px 0 120px;
    overflow: hidden;
}

.portfolio::before {
    display: none;
}

.portfolio::after {
    display: none;
}

.portfolio .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
}

.portfolio .section-header h2 {
    color: var(--light-text);
    font-size: 3rem;
    font-weight: var(--font-extrabold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.portfolio .section-header p {
    color: var(--medium-gray);
    font-size: 1.2rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.portfolio-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    animation-fill-mode: both;
    animation-play-state: paused;
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(4, 15, 45, 0.9) 0%, rgba(4, 15, 45, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: var(--light-text);
    font-size: 1.8rem;
    font-weight: var(--font-bold);
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: var(--medium-gray);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.portfolio-link, .view-project {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: var(--font-semibold);
    border-radius: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.1s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.portfolio-item:hover .portfolio-link, 
.portfolio-item:hover .view-project {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-link:hover, 
.view-project:hover {
    background-color: #d1be6a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Transition between dark and white sections */
.transition-dark-to-light {
    height: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.transition-light-to-dark {
    height: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Portfolio Modal - Revisado para garantir compatibilidade */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 95%;
    max-width: 900px;
    background-color: #050e26;
    border-radius: 10px;
    margin: 20px auto;
    position: relative;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(0);
    z-index: 10000; /* Garantir que seja exibido acima de tudo */
    display: block; /* Garantir que seja exibido */
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-modal:hover {
    color: #fff;
}

.modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-right: 30px;
}

.modal-body {
    padding: 0;
}

.project-slider {
    margin-bottom: 25px;
}

/* Slider do modal */
.slider-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    background-color: #050e26;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(228, 209, 124, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Alterado para 'contain' para manter a proporção da imagem */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.slider-container img[style*="opacity: 1"] {
    z-index: 1;
}

.slider-controls {
    text-align: center;
    margin-bottom: 15px;
}

.slider-controls button {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.project-description {
    padding: 0;
}

.project-description h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #aaa;
    font-weight: 500;
}

.project-details {
    margin-top: 20px;
}

.detail {
    margin-bottom: 10px;
    display: flex;
}

.detail span:first-child {
    font-weight: var(--font-medium);
    color: #aaa;
    min-width: 100px;
    display: inline-block;
}

.modal-actions {
    margin-top: 25px;
}

.modal-actions .btn {
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.modal-actions .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsividade do modal - Tablets */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 30px auto;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .project-description h3 {
        font-size: 1.1rem;
    }
    
    .detail {
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .detail span:first-child {
        margin-bottom: 5px;
    }
}

/* Responsividade do modal - Smartphones */
@media (max-width: 480px) {
    .portfolio-modal {
        align-items: flex-start;
    }
    
    .modal-content {
        width: 92%;
        padding: 15px;
        margin: 60px auto 20px;
        max-height: none;
    }
    
    .slider-container {
        height: 200px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 22px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
        padding-right: 25px;
    }
    
    .project-description h3 {
        font-size: 1rem;
    }
    
    .project-description p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .detail span {
        font-size: 0.9rem;
    }
    
    .modal-actions .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .slider-controls button {
        width: 35px;
        height: 35px;
    }
}

/* Ajuste específico para smartphones muito pequenos */
@media (max-width: 375px) {
    .modal-content {
        margin: 50px auto 15px;
        padding: 12px;
    }
    
    .slider-container {
        height: 150px;
    }
}

/* Contact Section - White Background Enhanced */
.contact {
    background-color: var(--pure-white);
    position: relative;
    padding: 80px 0;
}

.contact::before {
    display: none;
}

.contact::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 209, 124, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.contact .section-header {
    position: relative;
    z-index: 2;
}

.contact .section-header h2 {
    color: var(--dark-text);
    font-size: 3rem;
    font-weight: var(--font-extrabold);
}

.contact .section-header p {
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--secondary-color);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.1) rotate(10deg);
}

.info-icon i {
    color: var(--primary-color);
    font-size: 24px;
}

.info-content h3 {
    margin-bottom: 10px;
    font-weight: var(--font-bold);
    color: var(--dark-text);
    font-size: 1.4rem;
}

.info-content p {
    color: var(--dark-gray);
    font-weight: var(--font-regular);
    font-size: 1.05rem;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.contact-form:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--pure-white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    color: var(--dark-text);
    font-size: 1rem;
    font-weight: var(--font-regular);
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(228, 209, 124, 0.2);
}

.contact-form .primary-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: var(--font-semibold);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.contact-form .primary-btn:hover {
    background-color: #d1be6a;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 50px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .globe-container {
        width: 100%;
        max-height: 300px;
    }

    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .network-node {
        width: 80%;
        min-height: 160px;
        padding: 20px;
    }
    
    .node-1 {
        top: 120px;
    }
    
    .node-2 {
        top: 300px;
    }
    
    .node-3 {
        top: 480px;
    }
    
    .node-4 {
        top: 660px;
    }
    
    .network-container {
        height: 860px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }
    
    .network-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 30px;
        height: auto !important;
        align-items: center;
        margin-bottom: 100px; /* Aumentando espaço abaixo do container */
    }
    
    .network-center {
        position: static;
        transform: none;
        margin: 0 auto 60px auto;
        width: 100px;
        height: 100px;
    }
    
    .network-logo {
        width: 100px;
        height: 100px;
        margin: 20px auto 0;
        padding: 10px;
        border-radius: 12px;
    }
    
    .mobile-network-center {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .mobile-network-center .network-logo {
        display: inline-flex;
        width: 100px;
        height: 100px;
        margin: 20px auto 0;
    }
    
    .network-node {
        position: static;
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        min-height: auto;
        transform: none !important;
    }
    
    .node-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        text-align: center; /* Centraliza o texto */
    }
    
    .network-node .node-icon {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .network-node h3 {
        margin-bottom: 10px;
    }
    
    .node-left, .node-right {
        left: auto;
        right: auto;
        transform: none !important;
    }
    
    .vertical-line {
        height: 100%;
    }
    
    .network-node::before,
    .network-container::before,
    .network-container::after {
        display: none;
    }
    
    .connection-dot {
        display: none;
    }
    
    /* Esconder o canvas em mobile */
    #network-canvas {
        display: none;
    }
    
    .floating-contact, .language-selector {
        bottom: 10px;
    }
    
    .floating-contact {
        right: 10px;
    }
    
    .language-selector {
        right: 70px;
    }
    
    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: rgba(10, 10, 20, 0.9);
        width: 100%;
        padding: 20px;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-top: 20px;
    }
    
    .network-container {
        display: none;
    }
    
    .network-mobile {
        display: block;
    }
    
    .mobile-nodes-wrapper .network-node:nth-child(odd) {
        margin-right: 5%;
        left: -5%;
    }

    .mobile-nodes-wrapper .network-node:nth-child(even) {
        margin-left: 5%;
        left: 5%;
    }
}

@media (max-width: 480px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    
    .minimal-card-img {
        height: 200px;
    }

    .hero {
        background-size: 250%;
        background-position: center 5%;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .network-node {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        align-items: center;
    }
    
    .node-content {
        width: 100%;
    }
    
    .network-node .node-icon {
        margin-bottom: 10px;
    }
    
    .network-node h3 {
        font-size: 1.2rem;
    }
    
    .network-node p {
        font-size: 0.9rem;
    }
    
    .mobile-nodes-wrapper .network-node:nth-child(odd),
    .mobile-nodes-wrapper .network-node:nth-child(even) {
        margin-left: auto;
        margin-right: auto;
        left: 0;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
    }
    
    .info-content p {
        font-size: 0.9rem;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 10px;
    }
    
    .modal-content {
        width: 98%;
        padding: 15px 10px;
        margin: 5px auto;
        max-height: 98vh;
    }
    
    .slider-container {
        height: 180px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
        padding-right: 25px;
        margin-bottom: 15px;
    }
    
    .project-description h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .project-description p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .detail {
        margin-bottom: 10px;
    }
    
    .detail span {
        font-size: 0.9rem;
    }
    
    .modal-actions .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .slider-controls button {
        width: 35px;
        height: 35px;
    }
}

/* Network Section - Layout em fila vertical */
.network {
    background-color: var(--primary-color);
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
}

.network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(4, 16, 45, 0.7) 0%, rgba(3, 12, 36, 1) 70%);
    z-index: 0;
}

.network .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.network-container {
    position: relative;
    z-index: 2;
    height: 800px;
    max-width: 800px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

/* Posicionamento vertical dos nós - começando do topo */
.node-1 {
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.node-2 {
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
}

.node-3 {
    top: 380px;
    left: 50%;
    transform: translateX(-50%);
}

.node-4 {
    top: 560px;
    left: 50%;
    transform: translateX(-50%);
}

/* Linha vertical para desktop */
.vertical-line {
    position: absolute;
    width: 2px;
    left: 50%;
    top: 170px;
    bottom: 20px;
    height: calc(100% - 190px);
    background: rgba(228, 209, 124, 0.2);
    transform: translateX(-50%);
    z-index: 1;
    overflow: hidden;
    box-shadow: none;
}

.vertical-line::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, 
        rgba(228, 209, 124, 0) 0%,
        rgba(228, 209, 124, 1) 50%,
        rgba(228, 209, 124, 0) 100%);
    animation: energy-flow 2.5s infinite linear;
    box-shadow: none;
}

/* Adding a stronger gradient at the bottom of the vertical line */
.vertical-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom,
        rgba(228, 209, 124, 0.2) 0%,
        rgba(228, 209, 124, 0.4) 40%,
        rgba(22, 22, 26, 1) 100%);
    z-index: 1;
}

.connection-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(228, 209, 124, 0.9);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px 3px rgba(228, 209, 124, 0.7);
}

.node-icon {
    min-width: 60px;
    height: 60px;
    background-color: rgba(228, 209, 124, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.node-icon i {
    font-size: 24px;
    color: var(--secondary-color);
    text-align: center;
    margin: 0 auto;
    display: block;
}

.network-node:hover .node-icon {
    background-color: rgba(228, 209, 124, 0.2);
    transform: rotate(10deg);
}

.network-node h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: var(--font-semibold);
}

.network-node p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: var(--font-regular);
    line-height: 1.4;
}

.network-node:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(228, 209, 124, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Para nós 1 e 2 */
.node-1:hover, .node-2:hover {
    transform: translate(0, -10px);
}

/* Para nós 3 e 4 */
.node-3:hover, .node-4:hover {
    transform: translate(0, -10px);
}

/* Posicionamento dos nós alternados */
.node-left {
    left: 5%;
    transform: translateX(0);
}

.node-right {
    right: 5%;
    left: auto;
    transform: translateX(0);
}

/* Animação do fluxo de energia */
@keyframes energy-flow {
    0% {
        top: -50%;
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.7;
    }
}

/* Media query para telas menores */
@media (max-width: 1024px) {
    .network-node {
        width: 42%;
        min-height: 160px;
        padding: 20px;
    }
    
    .node-left {
        left: 2%;
    }
    
    .node-right {
        right: 2%;
    }
}

/* Layout para dispositivos móveis */
@media (max-width: 768px) {
    .network-container {
        display: flex;
        flex-direction: column;
        height: auto !important;
        align-items: center;
        margin-bottom: 100px; /* Aumentando espaço abaixo do container */
    }
    
    .network-center {
        position: static;
        transform: none;
        margin: 0 auto 60px auto;
        width: 100px;
        height: 100px;
    }
    
    .network-logo {
        width: 100px;
        height: 100px;
        margin: 20px auto 0;
        padding: 10px;
        border-radius: 12px;
    }
    
    .mobile-network-center {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .mobile-network-center .network-logo {
        display: inline-flex;
        width: 100px;
        height: 100px;
        margin: 20px auto 0;
    }
    
    .network-node {
        position: static;
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        min-height: auto;
        transform: none !important;
    }
    
    .node-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        text-align: center; /* Centraliza o texto */
    }
    
    .network-node .node-icon {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .network-node h3 {
        margin-bottom: 10px;
    }
    
    .node-left, .node-right {
        left: auto;
        right: auto;
        transform: none !important;
    }
    
    .vertical-line {
        height: 100%;
    }
    
    .network-node::before,
    .network-container::before,
    .network-container::after {
        display: none;
    }
    
    .connection-dot {
        display: none;
    }
    
    /* Esconder o canvas em mobile */
    #network-canvas {
        display: none;
    }
    
    .network-mobile {
        display: block;
    }
    
    .mobile-nodes-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
        position: relative;
    }
    
    .mobile-vertical-line {
        position: absolute;
        left: 50%;
        top: 50px;
        height: calc(100% - 100px);
        width: 3px;
        background: rgba(228, 209, 124, 0.2);
        transform: translateX(-50%);
        overflow: hidden;
        z-index: 1;
    }
    
    .mobile-vertical-line::before {
        content: '';
        position: absolute;
        top: -50%;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to bottom, 
            rgba(228, 209, 124, 0) 0%,
            rgba(228, 209, 124, 1) 50%,
            rgba(228, 209, 124, 0) 100%);
        animation: energy-flow 2.5s infinite linear;
    }
    
    .mobile-nodes-wrapper .network-node:nth-child(odd) {
        margin-right: 5%;
        left: -5%;
    }

    .mobile-nodes-wrapper .network-node:nth-child(even) {
        margin-left: 5%;
        left: 5%;
    }
}

@media (max-width: 480px) {
    .network-container {
        margin-bottom: 80px;
    }
    
    .network-node {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        align-items: center;
        margin-bottom: 25px; /* Espaço entre os nós */
    }
    
    .network-stats {
        margin-top: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .network-spacer {
        height: 80px; /* Espaçador ainda maior para telas muito pequenas */
    }
}

/* Ajustes específicos para a seção de rede no celular */
@media (max-width: 768px) {
    .network-stats {
        gap: 30px;
        flex-direction: column;
        align-items: center;
        margin-top: 50px;
    }
    
    .net-stat-item {
        width: 85%;
        max-width: 320px;
        margin-bottom: 15px;
    }
    
    .network-action {
        margin-top: 60px;
        margin-bottom: 40px;
    }
}

/* Ajustes para títulos e textos específicos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: var(--font-bold);
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: var(--font-regular);
}

.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: var(--font-semibold);
}

nav ul li a {
    font-family: 'Poppins', sans-serif;
    font-weight: var(--font-medium);
}

.section-header h2 {
    font-weight: var(--font-bold);
}

.hero-content h1 {
    font-weight: var(--font-extrabold);
}

.about-text h2 {
    font-weight: var(--font-extrabold);
}

.stat-number {
    font-weight: var(--font-bold);
}

.service-item h3 {
    font-weight: var(--font-bold);
}

.portfolio-overlay h3 {
    font-weight: var(--font-bold);
}

.view-project {
    font-weight: var(--font-semibold);
}

.modal-header h2 {
    font-weight: var(--font-bold);
}

.project-description h3 {
    font-weight: var(--font-bold);
}

.detail span:first-child {
    font-weight: var(--font-semibold);
}

.info-content h3 {
    font-weight: var(--font-bold);
}

/* Angle Dividers */
.angle-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 2;
    pointer-events: none;
}

.angle-divider-top {
    top: 0;
    background: linear-gradient(to right bottom, var(--pure-white) 0%, var(--pure-white) 50%, transparent 50%, transparent 100%);
}

.angle-divider-bottom {
    bottom: 0;
    background: linear-gradient(to right top, var(--pure-white) 0%, var(--pure-white) 50%, transparent 50%, transparent 100%);
}

/* Animation Styles */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    animation-fill-mode: both;
    animation-play-state: paused;
}

.portfolio-container:hover .portfolio-item {
    animation-play-state: running;
}

.network-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    padding-top: 0;
}

.net-stat-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    padding: 30px 40px;
    border-radius: 15px;
    border: 1px solid rgba(228, 209, 124, 0.1);
    transition: transform 0.3s ease;
    margin: 10px;
}

.net-stat-item:hover {
    transform: translateY(-10px);
    border-color: rgba(228, 209, 124, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.net-stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: var(--font-bold);
}

.net-stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: var(--font-medium);
}

/* Botão Action */
.network-action {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.network-action .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .network-stats {
        gap: 30px;
        flex-direction: column;
        align-items: center;
        margin-top: 50px;
    }
    
    .net-stat-item {
        width: 85%;
        max-width: 320px;
        margin-bottom: 15px;
    }
    
    .network-action {
        margin-top: 60px;
        margin-bottom: 40px;
    }
}

.network-spacer {
    height: 30px;
    width: 100%;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .network-spacer {
        height: 20px;
    }
}

/* Ajustando os tamanhos dos nós para melhor harmonia */
.network-node {
    position: absolute;
    width: 45%;
    max-width: 450px;
    min-height: 150px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(228, 209, 124, 0.15);
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.node-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ajuste específico para centralizar os ícones nos nodes */
.network-node .node-icon {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste para mobile garantindo centralização */
@media (max-width: 768px) {
    .network-node {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
    
    .network-node .node-icon {
        margin: 0 auto 25px;
    }
    
    .node-content {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .network-node h3,
    .network-node p {
        text-align: center;
    }
}

/* Portfólio com layout minimalista */
.minimal-card {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.minimal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
}

.minimal-card-img {
    background-color: #050e26;
    position: relative;
    overflow: hidden;
}

.minimal-card-img img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.minimal-card:hover .minimal-card-img img {
    transform: scale(1.05);
}

.minimal-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.minimal-category {
    display: inline-block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.minimal-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}

.minimal-card p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.minimal-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid rgba(228, 209, 124, 0.2);
    color: #e4d17c;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    border-radius: 4px;
    text-align: center;
    position: relative;
    z-index: 5;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    outline: none;
    touch-action: manipulation;
}

.minimal-btn:hover,
.minimal-btn:active,
.minimal-btn:focus {
    background-color: rgba(228, 209, 124, 0.1);
    border-color: rgba(228, 209, 124, 0.4);
    transform: translateY(-2px);
}

/* Adaptações para o grid de portfólio */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .minimal-card-img {
        height: 180px;
    }
    
    .minimal-card h3 {
        font-size: 1.1rem;
    }
    
    .minimal-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    
    .minimal-card-img {
        height: 200px;
    }
    
    .modal-content {
        width: 98%;
        padding: 15px 10px;
        margin: 5px auto;
        max-height: 98vh;
    }
    
    .slider-container {
        height: 180px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
        padding-right: 25px;
        margin-bottom: 15px;
    }
    
    .project-description h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .project-description p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .detail {
        margin-bottom: 10px;
    }
    
    .detail span {
        font-size: 0.9rem;
    }
    
    .modal-actions .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .slider-controls button {
        width: 35px;
        height: 35px;
    }
}

/* Melhorias na responsividade do site */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    nav ul {
        display: none;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Melhor exibição para o portfólio em dispositivos móveis */
    .portfolio-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* Ajuste no comportamento de scroll do modal do portfólio */
    .portfolio-modal {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    /* Ajustes específicos para o portfólio */
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .minimal-card-img {
        height: 200px;
    }
    
    .minimal-card h3 {
        font-size: 1.2rem;
    }
    
    /* Melhorar visibilidade dos links no portfólio */
    .minimal-btn {
        padding: 10px 20px;
        font-size: 1rem;
        border-color: rgba(228, 209, 124, 0.3);
    }
    
    /* Comportamento do modal para touch */
    .modal-content {
        touch-action: pan-y;
    }
    
    /* Melhorar visibilidade dos botões do slider para toque */
    .slider-controls button {
        width: 40px;
        height: 40px;
    }
    
    .slider-controls button i {
        font-size: 18px;
    }
}

/* Ajustes de compatibilidade para dispositivos antigos */
@media screen and (max-width: 480px) {
    /* Simplificar efeitos visuais para melhorar performance */
    .portfolio-modal {
        background-color: rgba(0, 0, 0, 0.9); /* Fundo mais opaco para dispositivos antigos */
    }
    
    .slider-container {
        background-color: #050e26; /* Fundo sólido para evitar problema de renderização */
    }
    
    .slider-container img {
        position: absolute;
        top: 0;
        left: 0;
        /* Transição mais simples para dispositivos antigos */
        transition: opacity 0.3s ease;
    }
    
    /* Ajuste adicional para evitar problemas de rolagem */
    body.modal-open {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    /* Reduzir camadas para melhorar performance */
    .close-modal, 
    .slider-controls button, 
    .modal-actions .btn {
        transform: translateZ(0);
    }
}

/* Correção para botões de controle do slider em telas pequenas */
@media (max-width: 375px) {
    .slider-controls {
        padding: 5px 0;
    }
    
    .slider-controls button {
        width: 36px;
        height: 36px;
    }
}

/* Estilo para imagens de fallback */
.slider-container {
    background-color: #050e26;
    position: relative;
}

.slider-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Corrigir o problema com imagens nos cards do portfólio */
.minimal-card-img {
    background-color: #050e26;
    position: relative;
    overflow: hidden;
}

.minimal-card-img img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Evitar texto comprido no modal do portfólio para dispositivos móveis */
@media (max-width: 768px) {
    .project-description p,
    .detail span {
        word-break: break-word;
    }
}

/* Tech Stack Carousel Section */
.tech-stack {
    padding: 80px 0;
    background-color: #030c24;
    position: relative;
    overflow: hidden;
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 152, 224, 0.05) 0%, rgba(27, 152, 224, 0) 70%);
    z-index: 0;
}

.tech-stack::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 152, 224, 0.05) 0%, rgba(27, 152, 224, 0) 70%);
    z-index: 0;
}

.tech-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
    z-index: 1;
}

.tech-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.tech-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(to right, #030c24 0%, rgba(3, 12, 36, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.tech-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(to left, #030c24 0%, rgba(3, 12, 36, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.tech-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.tech-item {
    flex: 0 0 calc(25% - 40px);
    margin: 0 20px;
    padding: 25px 15px;
    border-radius: 8px;
    transition: all 0.5s ease;
    text-align: center;
    background-color: rgba(12, 24, 50, 0.6);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    border: 1px solid rgba(27, 152, 224, 0.2);
    animation: tech-item-entry 0.7s ease-out both;
}

@keyframes tech-item-entry {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(0.95);
    }
}

.tech-item.central {
    transform: scale(0.95);
    background-color: rgba(12, 24, 50, 0.6);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(27, 152, 224, 0.8) 50%,
        transparent 100%
    );
    transform-origin: left;
    animation: tech-scan 3s infinite linear;
}

.tech-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(27, 152, 224, 0.8) 50%,
        transparent 100%
    );
    transform-origin: right;
    animation: tech-scan 3s infinite linear reverse;
}

@keyframes tech-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.tech-name {
    color: rgba(27, 152, 224, 0.9);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    position: relative;
    animation: tech-text-flicker 5s infinite alternate;
}

@keyframes tech-text-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(27, 152, 224, 0.5), 0 0 10px rgba(27, 152, 224, 0.3);
    }
    20%, 24%, 55% {
        opacity: 0.8;
        text-shadow: none;
    }
}

.tech-item:hover .tech-name {
    transform: scale(1.1);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: none;
}

.tech-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.tech-control {
    background-color: rgba(12, 24, 50, 0.6);
    border: 1px solid rgba(27, 152, 224, 0.3);
    color: rgba(27, 152, 224, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.tech-control:hover {
    background-color: rgba(27, 152, 224, 0.2);
    border-color: rgba(27, 152, 224, 0.8);
    transform: scale(1.1);
}

/* Tech Stack Responsiveness */
@media (max-width: 1200px) {
    .tech-item {
        flex: 0 0 calc(20% - 40px);
    }
    .tech-name {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .tech-item {
        flex: 0 0 calc(25% - 40px);
    }
    .tech-name {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .tech-item {
        flex: 0 0 calc(33.333% - 40px);
        min-height: 80px;
    }
    .tech-name {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .tech-item {
        flex: 0 0 calc(50% - 40px);
        min-height: 70px;
        padding: 15px 10px;
    }
    
    .tech-carousel {
        padding: 10px 0;
    }
    
    .tech-name {
        font-size: 15px;
    }
}

/* Ajustes adicionais para evitar sobreposição no mobile */
@media (max-width: 768px) {
    /* Melhorar separação entre seções */
    .network {
        position: relative;
        overflow: visible;
    }
    
    .network-container {
        position: relative;
        margin-bottom: 160px; /* Espaço maior para evitar sobreposição */
    }
    
    .network-stats {
        position: relative;
        z-index: 5;
        top: auto;
        margin-top: 80px;
        padding-top: 40px;
    }
    
    /* Container separado para estatísticas */
    .stats-container-wrapper {
        margin-top: 120px;
        position: relative;
        z-index: 10;
        background-color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .network-container {
        margin-bottom: 100px;
    }
    
    .network-stats {
        margin-top: 120px;
    }
}

/* Estilo para o wrapper de estatísticas */
.stats-container-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
}

/* Ajuste para telas médias */
@media (max-width: 992px) {
    .stats-container-wrapper {
        margin-top: 30px;
    }
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .stats-container-wrapper {
        margin-top: 60px;
        padding-top: 20px;
        position: relative;
    }
    
    /* Forçar quebra de fluxo entre container e estatísticas */
    .network > .container {
        display: flex;
        flex-direction: column;
    }
    
    /* Garantir que os nós fiquem bem posicionados */
    .network-node {
        position: relative;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .stats-container-wrapper {
        margin-top: 80px;
        padding-top: 40px;
    }
    
    /* Ajustar espaçamento entre elementos no mobile */
    .network-spacer {
        height: 100px;
    }
}

/* Ajustes para os cards de serviços no mobile */
@media (max-width: 768px) {
    .network-node {
        position: static;
        width: 90%;
        max-width: 300px; /* Limitando largura para formato mais quadrado */
        margin: 20px auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
        min-height: 300px; /* Altura mínima para parecer mais quadrado */
        transform: none !important;
        border-radius: 12px;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(228, 209, 124, 0.15);
    }
    
    .node-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .network-node .node-icon {
        flex-shrink: 0;
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
        margin-right: 0;
    }
    
    .network-node h3 {
        margin-bottom: 16px;
        margin-top: 5px;
        font-size: 18px;
    }
    
    .network-node p {
        font-size: 14px;
        line-height: 1.5;
        margin: 0 auto;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .network-node {
        padding: 25px 15px;
        min-height: 280px;
        max-width: 280px;
    }
    
    .network-node .node-icon {
        width: 60px;
        height: 60px;
    }
    
    .network-node h3 {
        font-size: 17px;
    }
    
    .network-node p {
        font-size: 13px;
    }
}

/* Melhorando layout dos cards para formato quadrado no mobile */
@media (max-width: 768px) {
    .network-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 160px;
    }
    
    .network-node {
        aspect-ratio: 1/1.2; /* Proporção mais quadrada */
        width: 95%;
        max-width: 340px; /* Card maior */
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; /* Centralizar todo o conteúdo */
        margin: 20px auto;
        padding: 35px 20px; /* Mais padding */
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
        border-radius: 15px;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(228, 209, 124, 0.2);
    }
    
    .node-icon {
        margin: 0 auto 25px auto; /* Mais espaço abaixo do ícone */
        width: 80px; /* Ícone maior */
        height: 80px; /* Ícone maior */
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 15px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .node-icon i {
        font-size: 32px; /* Ícone maior */
    }
    
    .network-node h3 {
        margin: 0 auto 18px auto;
        text-align: center;
        font-size: 20px; /* Título maior */
        font-weight: var(--font-semibold);
    }
    
    .network-node p {
        text-align: center;
        margin: 0 auto;
        line-height: 1.5;
        font-size: 14.5px; /* Descrição maior */
        padding: 0 10px;
    }
    
    .node-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .network-node {
        max-width: 300px; /* Card maior em telas pequenas */
        aspect-ratio: 1/1.3;
        padding: 30px 15px;
    }
    
    .node-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .node-icon i {
        font-size: 28px;
    }
    
    .network-node h3 {
        font-size: 19px;
        margin-bottom: 15px;
    }
    
    .network-node p {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Estilos aprimorados para cards de serviço no mobile */
@media (max-width: 768px) {
    .network-node .node-icon {
        background-color: rgba(228, 209, 124, 0.15);
        box-shadow: 0 0 15px rgba(228, 209, 124, 0.2);
    }
    
    .network-node:hover .node-icon {
        transform: scale(1.1);
        background-color: rgba(228, 209, 124, 0.2);
        box-shadow: 0 0 20px rgba(228, 209, 124, 0.3);
    }
    
    .network-node .node-icon i {
        color: var(--secondary-color);
    }
    
    .network-node h3 {
        color: var(--secondary-color);
    }
    
    .network-node p {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Aumentando espaçamento e tamanho para telas pequenas */
@media (max-width: 480px) {
    .network-node .node-icon {
        background-color: rgba(228, 209, 124, 0.15);
        box-shadow: 0 0 15px rgba(228, 209, 124, 0.2);
    }
}

/* Icon Menu - Desktop */
.icon-menu {
    display: none;
}

/* Mobile Icon Menu */
.mobile-icon-menu {
    display: none;
}

/* Floating Icon Menu - Desktop */
.floating-icon-menu {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    width: 80px;
    background: #030c2461;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    display: none; /* Hide by default on all devices */
}

.floating-icon-menu:hover, 
.floating-icon-menu.expanded {
    width: 200px;
}

.floating-menu-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.floating-menu-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-small {
    width: 70%;
    height: auto;
}

.menu-app-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-icon-menu:hover .menu-app-name,
.floating-icon-menu.expanded .menu-app-name {
    opacity: 1;
    transform: translateX(0);
}

.floating-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-nav li {
    position: relative;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.floating-nav li.menu-active {
    background: rgba(255, 255, 255, 0.1);
}

.floating-nav li:hover:not(.menu-active) {
    background: rgba(255, 255, 255, 0.05);
}

.floating-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    text-decoration: none;
    color: #fff;
    position: relative;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.floating-nav li.menu-active .menu-icon {
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    box-shadow: 0 4px 10px rgba(78, 84, 200, 0.3);
}

.floating-nav li:hover .menu-icon {
    transform: translateY(-3px);
}

.floating-nav i {
    font-size: 18px;
    color: #fff;
    transition: transform 0.2s ease;
}

.floating-nav span {
    white-space: nowrap;
    font-size: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-icon-menu:hover .floating-nav span,
.floating-icon-menu.expanded .floating-nav span {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Floating Menu */
.mobile-floating-menu {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 85%;
    max-width: 400px;
    background: #030c2461;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: block; /* Mostrar por padrão */
    transition: background 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.9;
}

.mobile-floating-menu:hover {
    opacity: 1;
}

.mobile-menu-content ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.mobile-menu-content li {
    position: relative;
}

.mobile-menu-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
}

.mobile-menu-content .menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.mobile-menu-content li.menu-active .menu-icon {
    background: #e4d17c;
    box-shadow: 0 4px 10px rgba(78, 84, 200, 0.3);
}

.mobile-menu-content li:hover .menu-icon {
    transform: translateY(-3px);
}

.mobile-menu-content i {
    font-size: 18px;
    color: #fff;
}

/* Label do menu no desktop */
.mobile-menu-content .menu-label {
    display: none; /* Escondido por padrão (mobile) */
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Versão Desktop do Menu Flutuante */
@media (min-width: 769px) {
    header {
        display: none; /* Esconder o header tradicional */
    }
    
    .mobile-floating-menu {
        bottom: 20px; /* Posicionar na parte inferior como no mobile */
        display: flex;
        align-items: center;
        max-width: 90%;
        width: auto;
        padding: 10px 20px;
        justify-content: space-between;
    }
    
    .mobile-menu-content {
        width: auto;
    }
    
    .mobile-menu-content ul {
        justify-content: flex-start;
        gap: 15px;
    }
    
    .mobile-menu-content li {
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-content a {
        justify-content: flex-start;
        padding: 5px 10px;
    }
    
    /* Ajuste para hover no desktop */
    .mobile-menu-content li:hover a {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    /* Mostrar labels no desktop */
    .mobile-menu-content .menu-label {
        display: block;
    }
    
    /* Logo/Título no menu desktop */
    .menu-title {
        display: flex;
        align-items: center;
        margin-right: 30px;
        padding-right: 20px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .menu-logo {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
    }
    
    .menu-logo img {
        width: 70%;
        height: auto;
    }
    
    .menu-name {
        color: #fff;
        font-weight: 600;
        font-size: 18px;
    }
}

/* Versão Mobile */
@media (max-width: 768px) {
    .floating-icon-menu {
        display: none; /* Keep hidden on mobile */
    }
    
    .mobile-floating-menu {
        bottom: 20px; /* Menu no rodapé para mobile */
    }
    
    header {
        display: none; /* Hide header on mobile */
    }
    
    .menu-title {
        display: none; /* Esconder título no mobile */
    }
}

/* Estilo específico para o nó de Websites (node-1) */
.network-node .node-icon {
    min-width: 60px;
    height: 60px;
    background-color: rgba(228, 209, 124, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

/* Específico para cards em modo mobile - ajuste para centralização melhor */
@media (max-width: 768px) {
    .network-node {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .network-node .node-icon {
        margin: 0 auto 25px auto;
    }
    
    .node-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .network-node h3, 
    .network-node p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Video Play Button */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.video-play-button i {
    font-size: 30px;
    color: #333;
    margin-left: 5px; /* Offset slightly for the play icon */
}

.video-play-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Video container styles */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #000;
}

.video-container:hover .video-play-button {
    opacity: 1;
    visibility: visible;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-play-button i {
        font-size: 20px;
    }
    
    /* Always show play button on mobile when video is paused */
    .video-container .video-play-button.visible {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Video post styles */
.post-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Add a subtle loading indicator */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #4CAF50, #8BC34A);
    z-index: 9;
    animation: loading 1.5s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-loading.active {
    opacity: 1;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* iOS specific fixes */
.ios-device .video-container {
    -webkit-tap-highlight-color: transparent;
}

.ios-device .post-video {
    -webkit-transform: translateZ(0);
    position: relative;
}

/* iOS specific video fixes */
.ios-device video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    object-fit: cover;
    pointer-events: auto;
    z-index: 1;
    will-change: transform, opacity;
    backface-visibility: hidden;
    position: absolute !important;
    z-index: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: translateX(-50%) translateY(-50%) !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

.ios-device .video-background {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.ios-device #video-play-btn {
    z-index: 10;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.ios-device #video-play-btn:active {
    transform: translate(-50%, -50%) scale(0.9);
}

