/*
 * NeoTech Soluções - Enhanced Professional UI
 * Maintaining original color scheme with improved aesthetics
 */

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

/* Add transition to html element for smooth theme switching */
html {
    transition: color 0.5s ease, background-color 0.5s ease;
}

/* Theme transition animation */
.theme-transition {
    animation: theme-fade 0.8s ease;
}

/* Animação de entrada com refinamento */
@keyframes headerReveal {
    0% {
        opacity: 0;
        transform: translateY(-40px);
        filter: blur(6px);
    }

    50% {
        opacity: 0.5;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Aplica ao header quando desejado */
header.animate-header {
    animation: headerReveal 1.2s ease-out forwards;
}

/* Elementos internos com delays elegantes */
header.animate-header .logo {
    opacity: 0;
    animation: fadeSlideIn 1s ease-out 0.4s forwards;
}

header.animate-header .theme-toggle {
    opacity: 0;
    animation: fadeSlideIn 1s ease-out 0.8s forwards;
}

/* Reutilizável para elementos internos */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container do hero */
@keyframes heroZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.hero.animate-hero {
    animation: heroZoomIn 1s ease-out forwards;
}

/* Elementos internos do hero animando em cascata */
.hero.animate-hero h1 {
    opacity: 0;
    animation: heroSlideLeft 1s ease-out 0.4s forwards;
}

.hero.animate-hero p {
    opacity: 0;
    animation: heroSlideLeft 1s ease-out 0.6s forwards;
}

.hero.animate-hero .hero-buttons,
.hero.animate-hero button,
.hero.animate-hero a {
    opacity: 0;
    animation: heroSlideLeft 1s ease-out 0.8s forwards;
}

/* Animações para a seção de serviços */
@keyframes servicesZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Estado inicial (fora da tela para baixo, invisível) */
.animateUp {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Estado animado (no lugar, visível) */
.animateUp.animate {
    opacity: 1;
    transform: translateY(0);
}

.animateImg {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animateImg.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.services .title-content.animateUp {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.services .title-content.animateUp.animate {
    opacity: 1;
    transform: translateY(0);
}

.services .service-card.animateIn {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.services .service-card.animateIn.animate {
    opacity: 1;
    transform: scale(1);
}

.services .services-cta.animateUp {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.services .services-cta.animateUp.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animações para a seção de portfólio */
.portfolio .title-content.animateUp {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.portfolio .title-content.animateUp.animate {
    opacity: 1;
    transform: translateY(0);
}

.portfolio .portfolio-card.animateIn {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.portfolio .portfolio-card.animateIn.animate {
    opacity: 1;
    transform: scale(1);
}

/* Animações para a seção de contato */
.contact-wrapper .contact-info.animateLeft {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-wrapper .contact-info.animateLeft.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-wrapper .contact-form-container.animateRight {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-wrapper .contact-form-container.animateRight.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Animações para o footer */
.footer .footer-column.animateUp {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.footer .footer-column.animateUp.animate {
    opacity: 1;
    transform: translateY(0);
}

.footer .footer-bottom.animateUp {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.3s;
}

.footer .footer-bottom.animateUp.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animação dos elementos do hero vindo da esquerda */
@keyframes heroSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}



@keyframes theme-fade {
    0% {
        opacity: 1;
    }

    20% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* Additional theme transition effects for key elements */
.theme-transition .logo-img,
.theme-transition .nav-links li a,
.theme-transition header,
.theme-transition .hero,
.theme-transition .about,
.theme-transition .services,
.theme-transition .portfolio,
.theme-transition .footer {
    transition: all 0.8s ease !important;
}

[data-theme="dark"] .hero-text,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-sub,
[data-theme="dark"] .dynamic-text {
    color: var(--color-text-light);
}

:root {
    /* Light mode (default) */
    --color-primary: #222;
    --color-secondary: #3D90C0;
    --color-tertiary: #8E8E8E;
    --color-base: #fff;
    --color-accent: #2563eb;
    --color-light-bg: #F2F2F2;
    --color-card-bg: #fff;
    --color-card-shadow: rgba(0, 0, 0, 0.1);
    --color-text-light: #fff;
    --color-text-dark: #222;
    --color-border: #e5e5e5;

    /* New unified variables */
    --primary-color: #3D90C0;
    --accent-color: #2563eb;
    --bg-color: #fff;
    --card-bg: #fff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --border-color: #d1d5db;

    /* Enhanced shadow variables */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

/* Dark mode */
[data-theme="dark"] {
    --color-primary: #e0e0e0;
    --color-secondary: #4DA8D8;
    --color-tertiary: #a0a0a0;
    --color-base: #121212;
    --color-accent: #3b82f6;
    --color-light-bg: #1e1e1e;
    --color-card-bg: #2a2a2a;
    --color-card-shadow: rgba(0, 0, 0, 0.3);
    --color-text-light: #e0e0e0;
    --color-text-dark: #121212;
    --color-border: #444;

    /* New unified variables for dark mode */
    --primary-color: #4DA8D8;
    --accent-color: #3b82f6;
    --bg-color: #121212;
    --card-bg: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #444;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    background: var(--color-light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 5px;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-base);
}

/* Tooltip styling */
.tooltip-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-base);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 9999;
}

.tooltip-message.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tooltip-message.hidden {
    display: none;
}

/* Botões à direita */
.right-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    border-radius: 50%;
    transition: background-color var(--transition-normal);
    position: relative;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
    transition: transform var(--transition-normal);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Enhanced Header */
header {
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header-scroll {
    background-color: var(--color-card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.header-top {
    background-color: var(--color-card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* Dark mode header styles */
[data-theme="dark"] .header-scroll,
[data-theme="dark"] .header-top {
    background-color: rgba(30, 30, 30, 0.95);
}

.logo-img {
    width: 180px;
    transition: all var(--transition-normal), filter 0.5s ease;
}

/* Invert logo colors for dark mode */
[data-theme="dark"] .logo-img {
    filter: brightness(0) invert(1);
    /* This makes the logo white */
}

nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0 auto;
}

.nav-links li a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-normal);
}

[data-theme="dark"] .nav-links li a {
    color: var(--color-text-light);
}

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

/* Underline animation for nav links */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Mobile menu styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--color-secondary);
    margin: 4px 0;
    transition: var(--transition-normal);
    border-radius: 3px;
}

/* Ensure mobile menu has proper contrast in dark mode */
[data-theme="dark"] .nav-links.open {
    background-color: var(--color-base);
    border-top: 1px solid var(--color-border);
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(10px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -5px);
}

/* Enhanced Hero Section */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100vh;
    background: url('/assets/banner-neotech.png') no-repeat center center / cover;
    padding: 7% 10%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0L100,100" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    z-index: -1;
}

.hero-text {
    display: flex;
    width: 50%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-weight: 300;
    gap: 2rem;
}

.hero-title {
    color: var(--color-base);
    font-size: clamp(2.5rem, 3.5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--color-base);
    border-radius: 2px;
}

.hero-sub {
    color: var(--color-base);
    font-size: clamp(1.1rem, 1.4vw, 1.6rem);
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
}

.cta-button {
    background-color: var(--color-base);
    padding: 10px 20px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: transparent;
    color: var(--color-base);
    border-color: var(--color-base);
}

[data-theme="dark"] .cta-button {
    background-color: #fff;
}

[data-theme="dark"] .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* About Section */
.about {
    width: 100%;
    min-height: 100vh;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-base) 0%, rgba(61, 144, 192, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(61, 144, 192, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#about {
    scroll-margin-top: 80px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.about-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: 100vh;
}

.about-text {
    display: flex;
    flex-direction: column;
    width: 45%;
    gap: 30px;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-secondary), rgba(37, 99, 235, 0.8));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}


.about-title {
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--color-secondary);
    position: relative;
    padding-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-secondary), rgba(37, 99, 235, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-secondary), rgba(37, 99, 235, 0.8));
    border-radius: 2px;
}

.about-content {
    font-size: clamp(16px, 1.1vw, 18px);
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-content strong {
    color: var(--color-secondary);
    font-weight: 700;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--color-secondary);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 600;
    color: var(--text-primary);
}

.about-image-container {
    width: 50%;
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.about-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.about-image-wrapper:hover .about-image-overlay {
    opacity: 1;
}

.about-stats-simple {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
}

.stat-simple {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.stat-number-simple {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.stat-text-simple {
    font-size: 14px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Tech Division */
.tech-division {
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-base) 0%, rgba(37, 99, 235, 0.02) 50%, var(--color-base) 100%);
    position: relative;
    overflow: hidden;
}

.tech-division::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.tech-division-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.tech-division-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-secondary) 50%, transparent 100%);
    position: relative;
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

.tech-division-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-secondary), rgba(37, 99, 235, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    animation: iconFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.tech-division-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.tech-division-icon svg {
    width: 30px;
    height: 30px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Scroll Animation Classes */
.tech-division.animate {
    animation: slideInFromBottom 1s ease-out forwards;
}

.tech-division-line.animate {
    animation: lineExtend 1.5s ease-out forwards;
}

.tech-division-icon.animate {
    animation: iconBounce 1s ease-out 0.5s forwards;
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineExtend {
    0% {
        width: 0;
        opacity: 0;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes iconBounce {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }

    50% {
        transform: scale(1.2) rotate(90deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Services Section */
.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    gap: 0px;
    padding: var(--spacing-xl) 5%;
    background: linear-gradient(to bottom, var(--color-light-bg) 0%, rgba(242, 242, 242, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .services {
    background: linear-gradient(to bottom, #1e1e1e 0%, rgba(30, 30, 30, 0.8) 100%);
}

.about {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    min-height: 100vh;
    padding: var(--spacing-xl) 10%;
    background-color: var(--color-base);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="2" cy="2" r="1" fill="rgba(61, 144, 192, 0.1)"/></svg>');
    z-index: 0;
}

.title-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.title-secondary {
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.title-secondary::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.services-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    margin-top: -10px;
    max-width: 800px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

/* Service Card with Flip Effect */
.service-card {
    width: 100%;
    max-width: 300px;
    min-width: 250px;
    height: 380px;
    perspective: 1000px;
    margin-bottom: 20px;
    transition: all var(--transition-normal);
    position: relative;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card-inner.flipped {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-card-front {
    background: var(--color-card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.service-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-card-front::before {
    transform: scaleX(1);
}

.service-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(61, 144, 192, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon-container {
    transform: scale(1.1);
    background: rgba(61, 144, 192, 0.2);
}

.service-img {
    width: 50px;
    height: 50px;
    transition: transform var(--transition-normal);
}

.service-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.view-service {
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid var(--color-secondary);
    border-radius: 30px;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.service-card:hover .view-service {
    opacity: 1;
    transform: translateY(0);
}

.service-card-back {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: var(--color-base);
}

.service-card-back h3 {
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.service-card-back h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.service-card-back p {
    font-size: 0.75rem;
    color: var(--color-text-light);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    width: 100%;
    margin-bottom: 25px;
}

.service-features ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-features ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.7rem;
    color: var(--color-text-light);
    opacity: 0.8;
}

.service-features ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="%233D90C0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.service-btn {
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    color: var(--color-base);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-block;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(to right, var(--color-accent), var(--color-secondary));
}

/* Services CTA Section */
.services-cta {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .services-cta {
    color: #fff;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0L100,100" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    z-index: -1;
}

.services-cta h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.services-cta p {
    font-size: clamp(16px, 1.1vw, 18px);
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.services-cta-button {
    background: linear-gradient(135deg, var(--color-secondary), rgba(37, 99, 235, 0.8));
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 1;
}

.services-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), var(--color-secondary));
}

/* Portfolio Section */
.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    gap: 30px;
    padding: var(--spacing-xl) 5%;
    background: linear-gradient(135deg, var(--color-base) 0%, rgba(37, 99, 235, 0.03) 100%);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="2" cy="2" r="1" fill="rgba(0, 0, 0, 0.02)"/></svg>');
    z-index: 0;
}

.portfolio-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-secondary);
    color: var(--color-base);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Portfolio Grid */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

/* Portfolio Card with Flip Effect */
.portfolio-card {
    width: 100%;
    max-width: 340px;
    min-width: 250px;
    height: 380px;
    perspective: 1000px;
    margin-bottom: 20px;
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
}

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

.portfolio-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.portfolio-card-inner.flipped {
    transform: rotateY(180deg);
}

.portfolio-card-front,
.portfolio-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.portfolio-card-front {
    background-color: var(--color-card-bg);
}

.portfolio-card-back {
    background-color: var(--color-card-bg);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-card-front:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--color-text-light);
    font-size: 1.4rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.portfolio-card-front:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.view-project {
    color: var(--color-text-light);
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 2px solid var(--color-text-light);
    border-radius: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-normal);
}

.portfolio-card-front:hover .view-project {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card-back h3 {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

.portfolio-card-back p {
    font-size: 0.95rem;
    color: var(--color-tertiary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: var(--color-bg);
    position: relative;
}

.products-subtitle {
    font-size: 1.1rem;
    color: var(--color-tertiary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.product-card {
    background: var(--color-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

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

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-image-container img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image-secondary {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-badge:not(.featured) {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.product-badge.featured {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.product-content {
    padding: 30px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.product-description {
    font-size: 1rem;
    color: var(--color-tertiary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.product-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.feature-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(61, 144, 192, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(61, 144, 192, 0.1);
}

.price-label {
    font-size: 0.9rem;
    color: var(--color-tertiary);
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.product-btn {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 144, 192, 0.3);
}

.products-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.products-cta p {
    font-size: 1.1rem;
    color: var(--color-tertiary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.products-cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.products-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 144, 192, 0.3);
}

/* Portfolio Badges */
.portfolio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-badge.featured {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.portfolio-badge.coming-soon {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.portfolio-tags span {
    background-color: rgba(61, 144, 192, 0.1);
    color: var(--color-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.portfolio-btn {
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    color: var(--color-base);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.portfolio-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Enhanced Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    padding: 20px;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.gallery-modal.hidden {
    display: none;
}

.gallery-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.gallery-modal:not(.hidden) .gallery-content {
    transform: scale(1);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-content img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
}

.gallery-nav:hover {
    background-color: var(--color-secondary);
    opacity: 1;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.gallery-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.gallery-info {
    width: 100%;
    max-width: 800px;
    margin: 2rem 0;
    text-align: left;
}

.gallery-title {
    font-size: 2rem;
    color: var(--color-base);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.gallery-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.gallery-description {
    margin: 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 1.5rem;
}

.gallery-tech,
.gallery-year {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.gallery-thumbnails {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.gallery-thumbnails img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    opacity: 0.6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnails img:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    opacity: 0.9;
}

.gallery-thumbnails img.active {
    border-color: var(--color-secondary);
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-gallery:hover {
    transform: rotate(90deg);
    background-color: var(--color-secondary);
    color: white;
}

/* Contact Section */
/* ========================
   SEÇÃO FALE CONOSCO
======================== */

#contato {
    padding: 80px 20px;
    background-color: var(--color-light-bg);
    color: var(--color-primary);
}

[data-theme="dark"] #contato {
    background: linear-gradient(to bottom, #1e1e1e 0%, rgba(30, 30, 30, 0.8) 100%);
    color: var(--color-primary);
}

#contato .container {
    max-width: 1200px;
    margin: 0 auto;
}

#contato .title-content {
    text-align: center;
    margin-bottom: 40px;
}

#contato .title-secondary {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

#contato .contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* === WRAPPER GERAL === */
.contact-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: stretch;
    justify-content: center;
}

/* === CARD INFORMAÇÕES === */
.contact-info {
    flex: 0 0 460px;
    display: flex;
}

.contact-card {
    background: linear-gradient(135deg, #3D90C0, #4DA8D8);
    border-radius: 16px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.contact-card h3,
.contact-card p,
.contact-card h4,
.contact-card a {
    color: #ffffff !important;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.contact-icon img {
    margin-right: 12px;
    filter: brightness(0) invert(1);
}

.contact-text h4 {
    font-size: 0.95rem;
    margin: 0;
}

.contact-text a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-text a:hover {
    text-decoration: underline;
}

.contact-social h4 {
    margin-top: 20px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
}

/* === FORMULÁRIO === */
.contact-form-container {
    flex: 1;
    background-color: var(--color-card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-form-container h3 {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.form-row {
    color: var(--color-secondary);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    color: var(--color-secondary);
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}

[data-theme="dark"] .form-group input,
.form-group textarea {
    background-color: var(--color-card-bg);
    color: #fff;
}

.contact-form-container .btn-enviar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-form-container .btn-enviar:hover {
    background: linear-gradient(to right, var(--color-accent), var(--color-secondary));
    transform: translateY(-2px);
}



/* Footer */
.footer {
    background-color: var(--color-base);
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.05);
    color: var(--color-tertiary);
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 10%;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.footer-column p,
.footer-column a {
    font-size: 1rem;
    color: var(--color-tertiary);
    line-height: 1.6;
}

.footer-column a {
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    font-size: 1rem;
    text-decoration: none;
    color: var(--color-tertiary);
    transition: all var(--transition-normal);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

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

.footer-links-col {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item img {
    width: 20px;
    transition: transform var(--transition-normal);
}

.contact-item:hover img {
    transform: scale(1.2);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-bottom {
    background-color: var(--color-secondary);
    padding: 20px;
    text-align: center;
    color: var(--color-base);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--color-base);
}

[data-theme="dark"] .footer-bottom p {
    color: var(--color-primary);
}

[data-theme="dark"] .footer-bottom a {
    color: var(--color-primary);
}

.footer-bottom a {
    color: var(--color-base);
    text-decoration: none;
    font-weight: bold;
    transition: opacity var(--transition-normal);
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/*button whatsapp*/
#whatsapp-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    padding: 15px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: pulse-whatsapp 2.4s infinite;
    transition: transform 0.3s ease;
}

#whatsapp-button:hover {
    transform: scale(1.1);
}

#whatsapp-button svg {
    color: #fff;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px;
    background-color: var(--color-secondary);
    color: var(--color-base);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: all var(--transition-normal);
    border: none;
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.back-to-top:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 144, 192, 0.3), var(--shadow-md);
}

/* Dynamic Text Animation */
.dynamic-text {
    position: relative;
    display: inline-block;
    color: var(--color-base);
}

.dynamic-text::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--color-base);
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Animation Classes */
.hidden {
    opacity: 0;
    visibility: hidden;
}

.show {
    opacity: 1;
    visibility: visible;
}

/* Cookie Consent Banner and Settings */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-card-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cookie-header h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-tertiary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

.cookie-close:hover {
    color: var(--color-primary);
}

.cookie-consent-content p {
    font-size: 0.9rem;
    color: var(--color-tertiary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.cookie-customize {
    background-color: transparent;
    border: 1px solid var(--color-tertiary);
    color: var(--color-primary);
}

.cookie-customize:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.cookie-accept {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.cookie-accept:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cookie-save {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.cookie-save:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: translateY(0);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.cookie-settings-header h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 0;
}

.cookie-settings-body {
    padding: 20px;
}

.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.cookie-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cookie-option-header h4 {
    font-size: 1rem;
    color: var(--color-primary);
    margin: 0 0 5px 0;
}

.cookie-option-header p {
    font-size: 0.85rem;
    color: var(--color-tertiary);
    margin: 0;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 15px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.cookie-slider {
    background-color: var(--color-secondary);
}

input:focus+.cookie-slider {
    box-shadow: 0 0 1px var(--color-secondary);
}

input:checked+.cookie-slider:before {
    transform: translateX(26px);
}

input:disabled+.cookie-slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero {
        padding: 7% 5%;
    }

    .about,
    .services,
    .portfolio {
        padding: var(--spacing-xl) 5%;
    }

    .footer-container {
        padding: 60px 5%;
    }
}

@media (max-width: 1100px) {
    .hero-text {
        width: 60%;
    }

    .hero-image {
        width: 40%;
    }

    .about-content-wrapper {
        flex-direction: column;
        gap: 50px;
        min-height: auto;
    }

    .about-text {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-image-wrapper {
        transform: none;
    }

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

    .tech-division {
        padding: 60px 0;
    }

    .tech-division-container {
        gap: 20px;
        padding: 0 20px;
    }

    .tech-division-icon {
        width: 50px;
        height: 50px;
    }

    .tech-division-icon svg {
        width: 25px;
        height: 25px;
    }

    .stat-simple {
        align-items: center;
        text-align: center;
    }

    .stat-number-simple {
        font-size: 28px;
    }

    .stat-text-simple {
        font-size: 13px;
    }

    .about-features {
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 300px;
    }

    .services,
    .portfolio {
        min-height: auto;
        padding: var(--spacing-xl) 5%;
    }

    .portfolio-card {
        width: 100%;
        max-width: 380px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .product-content {
        padding: 25px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        height: 100vh;
        padding: 80px 5% 40px;
        justify-content: center;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        width: 100%;
        align-items: center;
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-image {
        width: 70%;
        max-width: 500px;
    }

    .about-text {
        width: 100%;
        gap: 20px;
    }

    .about-badge {
        font-size: 12px;
        padding: 10px 20px;
    }

    .about-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .about-content {
        font-size: 16px;
    }

    .about-features {
        gap: 15px;
    }

    .feature-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    .about-stats-simple {
        gap: 15px;
    }

    .stat-number-simple {
        font-size: 24px;
    }

    .stat-text-simple {
        font-size: 12px;
    }

    .footer-container {
        gap: 30px;
    }

    .footer-column {
        min-width: 45%;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    #contato .title-secondary {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }

    .contact-info,
    .contact-form-container {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .contact-card,
    .contact-form-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .contact-card {
        align-items: flex-start;
        text-align: left;
    }

    .contact-card h3,
    .contact-card p,
    .contact-card h4,
    .contact-card a {
        text-align: left;

    }

    .social-icons {
        justify-content: flex-start;
    }

    .contact-details {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }

    .logo-img {
        width: 150px;
    }

    nav {
        justify-content: flex-end;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        padding-top: 30px;
        left: -105%;
        width: 100vw;
        height: 100vh;
        background-color: var(--color-base);
        flex-direction: column;
        text-align: center;
        transition: left 0.3s ease;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .hero-image {
        width: 90%;
    }

    .services-grid {
        gap: 2rem;
    }

    .service-card {
        width: 100%;
        max-width: 320px;
        height: 380px;
    }

    .service-card-front,
    .service-card-back {
        padding: 1.5rem;
        overflow-y: auto;
    }

    .service-icon-container {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }

    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .service-text {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .service-card-back h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .service-card-back p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .service-features ul li {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .service-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .services-cta {
        padding: 2rem;
    }

    .services-cta h3 {
        font-size: 1.4rem;
    }

    .services-cta p {
        font-size: 1rem;
    }

    /* Portfolio responsive adjustments */
    .portfolio-grid {
        gap: 20px;
    }

    .portfolio-card {
        width: 100%;
        max-width: 320px;
        height: 350px;
    }

    .portfolio-card-back {
        padding: 1.5rem;
    }

    .portfolio-card-back h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .portfolio-card-back p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .portfolio-tags {
        margin-bottom: 15px;
    }

    .portfolio-tags span {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .portfolio-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-price {
        padding: 15px;
    }

    .price-value {
        font-size: 1.5rem;
    }

    .products-cta h3 {
        font-size: 1.5rem;
    }

    .products-cta p {
        font-size: 1rem;
    }

    .gallery-content {
        padding: 20px;
        max-width: 95%;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-description {
        font-size: 1rem;
    }

    .gallery-info {
        margin: 1.5rem 0;
    }

    .gallery-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .gallery-thumbnails {
        padding: 10px;
        gap: 8px;
    }

    .gallery-thumbnails img {
        width: 70px;
        height: 50px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .close-gallery {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .form-contato {
        padding: 2rem 1.5rem;
    }

    .footer-column {
        min-width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-links-columns {
        flex-direction: column;
        gap: 10px;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-sub {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .about-title,
    .title-secondary,
    #title-secondary {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }

    .about-content {
        font-size: 1rem;
    }

    /* Improved service cards for mobile */
    .services-grid {
        gap: 2rem;
        padding: 0 5px;
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        height: auto;
        max-width: 100%;
        min-width: auto;
        width: 90%;
        margin: 0 auto 20px;
    }

    .service-card-inner {
        height: auto;
        min-height: 300px;
    }

    .service-card-front,
    .service-card-back {
        padding: 1.5rem;
        height: auto;
        min-height: 300px;
    }

    .service-icon-container {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .service-img {
        width: 40px;
        height: 40px;
    }

    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .service-text {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .view-service {
        font-size: 0.8rem;
        padding: 6px 16px;
        opacity: 1;
        transform: translateY(0);
    }

    .service-card-back h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .service-card-back p {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }

    .service-features {
        margin-bottom: 15px;
    }

    .service-features ul li {
        font-size: 0.6rem;
        padding-left: 20px;
        margin-bottom: 6px;
    }

    .service-features ul li::before {
        width: 12px;
        height: 12px;
    }

    .service-btn {
        padding: 7px 18px;
        font-size: 0.85rem;
    }

    .services-cta {
        padding: 1.5rem;
        margin-top: 10px;
    }

    .services-cta h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .services-cta p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .services-cta-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    /* Improved portfolio cards for mobile */
    .portfolio-grid {
        gap: 20px;
    }

    .portfolio-card {
        width: 100%;
        max-width: 320px;
        height: 350px;
    }

    .portfolio-card-back {
        padding: 1.5rem;
    }

    .portfolio-card-back h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .portfolio-card-back p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .portfolio-tags {
        margin-bottom: 15px;
    }

    .portfolio-tags span {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .portfolio-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .gallery-content {
        padding: 15px;
    }

    .gallery-content img {
        max-height: 40vh;
    }
}

/* ===========================================
   FEEDBACKS SECTION STYLES
   =========================================== */

.feedbacks {
    padding: 80px 20px;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.feedbacks-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Carrossel Container */
.feedback-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 60px;
}

.feedback-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.feedback-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.feedback-slide.active {
    display: block;
    opacity: 1;
}

.feedback-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 12px 35px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--border-color);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(-5px);
    transition: all 0.4s ease;
    animation: subtleGlow 4s ease-in-out infinite;
}

.feedback-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.2), 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--primary-color);
    animation: none;
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.feedback-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.1;
    transition: opacity 0.4s ease;
}

.feedback-card:hover::after {
    opacity: 0.2;
}

/* Animação sutil de destaque contínuo */
@keyframes subtleGlow {

    0%,
    100% {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 12px 35px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--border-color);
    }

    50% {
        box-shadow: 0 28px 85px rgba(0, 0, 0, 0.18), 0 15px 38px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--primary-color);
    }
}

.feedback-image {
    width: 80px;
    height: 80px;
    margin: 1.5rem auto 1rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.feedback-image svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.feedback-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.feedback-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 1.5rem;
}

.star-icon {
    width: 24px;
    height: 24px;
    color: #ffd700;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.star-icon:hover {
    transform: scale(1.1);
    color: #ffed4e;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.5));
}

.feedback-client {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.feedback-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.feedback-company {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.feedback-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0;
    font-style: normal;
}

/* Controles do Carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--accent-color);
}

/* Cards de Estatísticas */
.feedback-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .feedbacks {
        padding: 60px 15px;
    }

    .feedback-carousel-container {
        padding: 0 20px;
    }

    .feedback-card {
        padding: 2rem 1.5rem;
    }

    .feedback-image {
        width: 70px;
        height: 70px;
        margin: 1.2rem auto 0.8rem;
    }

    .feedback-client {
        font-size: 1.1rem;
    }

    .feedback-location {
        font-size: 0.85rem;
    }

    .feedback-company {
        font-size: 0.85rem;
    }

    .feedback-text {
        font-size: 1rem;
    }

    .star-icon {
        width: 20px;
        height: 20px;
    }

    .feedback-text::before,
    .feedback-text::after {
        font-size: 2rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .feedback-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon svg {
        width: 25px;
        height: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .feedbacks {
        padding: 40px 10px;
    }

    .feedback-card {
        padding: 1.5rem 1rem;
    }

    .feedback-image {
        width: 60px;
        height: 60px;
        margin: 1rem auto 0.6rem;
    }

    .feedback-client {
        font-size: 1rem;
    }

    .feedback-location {
        font-size: 0.8rem;
    }

    .feedback-company {
        font-size: 0.8rem;
    }

    .feedback-text {
        font-size: 0.95rem;
    }

    .star-icon {
        width: 18px;
        height: 18px;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
    }

    .stat-icon svg {
        width: 22px;
        height: 22px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

.gallery-title {
    font-size: 1.3rem;
}

.gallery-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

.gallery-thumbnails {
    padding: 8px;
    gap: 6px;
}

.gallery-thumbnails img {
    width: 60px;
    height: 45px;
}

.gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
}

.gallery-prev {
    left: 5px;
}

.gallery-next {
    right: 5px;
}

/*whatsapp*/
#whatsapp-button {
    bottom: 80px;
    right: 20px;
    padding: 12px;
}

.back-to-top {
    bottom: 20px;
    right: 20px;
    padding: 12px;
}

@media (max-width: 350px) {
    #contato {
        padding: 60px 10px;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-card,
    .contact-form-container {
        padding: 20px;
    }

    .contact-card h3,
    .contact-form-container h3 {
        font-size: 1.2rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .btn-enviar {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    .contact-icon img {
        width: 18px;
        margin-right: 8px;
    }

    .contact-text h4,
    .contact-text a {
        font-size: 0.85rem;
    }

    .contact-card p {
        font-size: 0.85rem;
    }

    .social-icon img {
        width: 24px;
        height: 24px;
    }

    .contact-details,
    .contact-social {
        width: 100%;
    }
}
