:root {
    --primary-color: #f95d1f;
    --on-primary: #ffffff;
    --background: #ffffff;
    --surface-low: #f9fafb;
    --on-background: #0f172a;
    --on-surface-variant: #475569;
    --outline: #e2e8f0;
    --primary-container: #fff1eb;
    --primary-color-hover: #e04c14;
}

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.font-headline {
    font-family: 'Manrope', sans-serif;
}

.fw-black {
    font-weight: 900;
}

.fw-extrabold {
    font-weight: 800;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.kinetic-gradient {
    background: linear-gradient(135deg, #fb923c 0%, #f95d1f 100%) !important;
    border: none;
    color: white;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(249, 93, 31, 0.1);
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 1) !important;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.nav-link {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #64748b !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

@media (min-width: 768px) {
    .nav-link.active {
        border-bottom: 2px solid var(--primary-color);
    }
}

.nav-link:hover {
    color: var(--on-background) !important;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #fb923c 0%, #f95d1f 100%);
    color: white;
    font-weight: 700;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(249, 93, 31, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-custom:hover {
    transform: scale(1.02);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(249, 93, 31, 0.3);
}

.btn-primary-custom:active {
    transform: scale(0.98);
}

.btn-outline-custom {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background-color: #f1f5f9;
    transform: scale(1.02);
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 50rem;
    background-color: #fff7ed;
    border: 1px solid rgba(249, 93, 31, 0.2);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-feature {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.5s ease;
}

.card-feature:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: rgba(249, 93, 31, 0.2);
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: #fff7ed;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-name {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    color: #94a3b8;
    transition: color 0.3s;
    cursor: default;
}

@media (min-width: 992px) {
    .tech-name {
        font-size: 2.25rem;
    }
}

.tech-name:hover {
    color: #0f172a;
}

.area-atuacao {
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    color: #94a3b8;
    transition: color 0.3s;
    cursor: default;
}

.area-atuacao:hover {
    color: #0f172a;
}

.tech-line {
    width: 3rem;
    height: 4px;
    background-color: rgba(249, 93, 31, 0.3);
}

.cta-section {
    border-radius: 1.5rem;
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(249, 93, 31, 0.2);
}

@media (min-width: 768px) {
    .cta-section {
        padding: 5rem 2rem;
    }
}

.cta-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: linear-gradient(white 1px, transparent 1px), linear-gradient(90deg, white 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

section {
    padding: 4rem 0;
}

.hero-section {
    padding: 8rem 0 4rem;
}

@media (min-width: 992px) {
    section {
        padding: 6rem 0;
    }

    .hero-section {
        padding: 10rem 0 8rem;
    }
}

/* Typography Adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 1.85rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1.1rem !important;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }
}

.aspect-ratio-1x1 {
    aspect-ratio: 1 / 1;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-scale {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.hover-primary {
    transition: color 0.3s ease;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Contact Page Specific Styles */
.contact-item:hover .icon-box {
    transform: scale(1.1);
}

.map-container {
    height: 500px;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

.contact-card {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.form-control {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e8f2;
    background-color: #f8f9fa;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(249, 93, 31, 0.1);
    border-color: var(--primary-color);
    background-color: #ffffff;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary,
.btn-check {
    background-color: var(--primary-color) !important;
}

.btn-primary,
.btn-check {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover,
.btn-check:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 93, 31, 0.2);
}

.btn-primary:active,
.btn-check:active {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 93, 31, 0.2);
}

.btn-primary:focus-visible,
.btn-check:focus-visible {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 93, 31, 0.2);
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* UI UX Enhancements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(249, 93, 31, 0.3);
}