/* Fonts loaded via preload/link in HTML head for better performance */

/* Layout Shift Prevention */
/* Prevent font swap layout shifts */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Prevent shifts in services grid */
#services .grid > * {
    min-height: 400px;
}

/* Non-critical styles loaded asynchronously */

/* Glass Card Effect with Layout Shift Prevention */
.glass-card {
    background: rgba(2, 2, 2, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    min-height: 400px; /* Reserve consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glass-card > * {
    flex-shrink: 0; /* Prevent content from shrinking */
}

/* Ensure consistent hover states */
.glass-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Glow Effects */
.glow-box-primary {
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.glow-box-secondary {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

/* Navigation Styles */
.nav-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(90deg, #00ff9d, #0066ff);
    color: #050505;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #00ff9d;
    color: #00ff9d;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(0, 255, 157, 0.1);
    transform: translateY(-2px);
}

/* Text Gradients */
.gradient-text {
    background: linear-gradient(135deg, #00ff9d 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: rgba(2, 2, 2, 0.95);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 12px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #e0e0e0;
    cursor: pointer;
    z-index: 1001;
}

/* FAQ Styles */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #e0e0e0;
}

.faq-answer {
    padding-top: 1rem;
    color: #a0a0a0;
    line-height: 1.6;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.subtle-float {
    animation: subtle-float 6s ease-in-out infinite;
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Responsive Image Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(2, 2, 2, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Tour Card Styles */
.tour-card {
    background: rgba(2, 2, 2, 0.8);
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tour-card:hover {
    border-color: rgba(0, 255, 157, 0.5);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.2);
    transform: translateY(-5px);
}

/* Technology Partner Cards */
.tech-card {
    transition: all 0.3s ease;
}

.tech-card:hover {
    background: rgba(0, 167, 125, 0.1) !important;
    border-color: rgba(0, 167, 125, 0.6) !important;
    box-shadow: 0 8px 25px rgba(0, 167, 125, 0.2) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(2, 2, 2, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 157, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 157, 0.7);
}

/* Utility Classes */
.text-primary { color: #00ff9d; }
.text-secondary { color: #0066ff; }
.text-light-text { color: #e0e0e0; }
.text-medium-text { color: #a0a0a0; }
.bg-dark { background-color: #0a0a0a; }
.bg-darker { background-color: #020202; }

/* Hero section gradient overlay */
.hero-gradient-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.05) 0%, rgba(2, 2, 2, 0) 60%);
}

/* Text glow effects */
.glow-text-primary {
    text-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
}
.glow-text-secondary {
    text-shadow: 0 0 12px rgba(0, 102, 255, 0.6);
}

/* Feature card enhancements */
.feature-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: #00ff9d;
    transform: translateY(-5px);
}
.feature-icon {
    transition: all 0.3s ease;
    color: #00ff9d;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.7));
}

/* Tech card hover effect */
.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 157, 0.15);
}

/* Responsive video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(90deg, #00ff9d, #0066ff);
    color: #050505;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #00ff9d;
    color: #00ff9d;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: rgba(0, 255, 157, 0.1);
    transform: translateY(-2px);
}

/* Stats item style */
.stats-item {
    border-left: 3px solid #00ff9d;
}

/* Testimonial card style */
.testimonial-card {
    background: rgba(25, 25, 25, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Form input styling */
input, textarea, select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    transition: all 0.3s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #00ff9d;
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.2);
}

/* Custom select dropdown */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300ff9d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}
select option {
    background-color: #000000;
    color: #ffffff;
}

/* Navigation and footer adjustments */
nav.fixed {
    background-color: rgba(2, 2, 2, 0.8);
}
footer {
    background-color: #050505;
}

/* Special button override */
#orcamentoModal .producao-virtual-btn:hover {
    color: #000 !important;
}

/* Hidden utility */
.hidden {
    display: none;
}

/* Content section styles */
.content-section {
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
}
.content-section:hover {
    border-color: #00ff9d;
}

/* Styled list for estudio page */
.styled-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.styled-list li i {
    color: #00ff9d;
    margin-right: 0.875rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
    font-size: 1.1em;
}

/* Hero complex gradient */
.hero-complex-gradient {
    background: linear-gradient(to bottom,
        rgba(2, 2, 2, 0.3) 0%,
        rgba(2, 2, 2, 0.5) 40%,
        rgba(2, 2, 2, 0.85) 70%,
        rgba(2, 2, 2, 1) 100%
    );
}

/* Section icon */
.section-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00ff9d;
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}