* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme (Default) */
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --accent-color: #93c5fd;
    --purple-color: #a855f7;
    --purple-light: #c084fc;
    --text-dark: #f8fafc;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    --gradient-card: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-bg: linear-gradient(135deg, #1e40af 0%, #0f172a 35%, #020617 100%);
}

/* Light Theme */
[data-theme="light"] {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --purple-color: #7c3aed;
    --purple-light: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-dark: #ffffff;
    --bg-darker: #f9fafb;
    --bg-card: #ffffff;
    --bg-card-hover: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    --gradient-bg: linear-gradient(135deg, #3b82f6 0%, #ffffff 35%, #f8fafc 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--gradient-bg);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--bg-darker);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.02);
}

.logo-main {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.logo-sub {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--purple-color);
    letter-spacing: 1.5px;
    margin-top: 3px;
    transition: color 0.3s ease;
}

.logo-text:hover .logo-main {
    color: var(--primary-color);
}

.logo-text:hover .logo-sub {
    color: var(--purple-light);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Flags */
.language-flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.flag-btn {
    border: 2px solid transparent;
    border-radius: 6px;
    width: 44px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    padding: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    background: transparent;
}

.flag-btn .fi {
    font-size: 28px;
    line-height: 1;
    border-radius: 3px;
    width: 40px;
    height: 28px;
    display: block;
    background-size: cover;
    background-position: center;
}



.flag-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.flag-btn.active {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}



/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
}

.theme-toggle .sun,
.theme-toggle .moon {
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.theme-toggle .sun {
    display: inline;
}

.theme-toggle .moon {
    display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle {
    z-index: 1002;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    padding: 2rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav a {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.mobile-nav a:hover {
    background: var(--bg-card);
    color: var(--primary-color);
    border-bottom-color: var(--border-color);
}

/* Hero Section */
.hero {
    background: transparent;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

[data-theme="light"] .hero {
    color: var(--text-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 10%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-card);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Styles */
section {
    padding: 80px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Sobre Section */
.sobre {
    background: var(--bg-darker);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.sobre-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.sobre-text ul {
    list-style: none;
    padding-left: 0;
}

.sobre-text li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.sobre-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.placeholder-image {
    background: var(--gradient-card);
    height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Serviços Section */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servico-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid var(--border-color);
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.servico-icon {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.servico-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.servico-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.sobre-content-centered {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.sobre-text-centered {
    text-align: center;
    width: 100%;
}

.sobre-text-centered h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.sobre-text-centered p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
    margin: 0;
}

/* Sobre Section with Images */
.sobre-content-with-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sobre-text {
    text-align: left;
}

.sobre-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.sobre-text p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
    margin: 0;
}

.image-carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-card);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-image.active {
    opacity: 1;
}

/* Logo slides - theme based visibility */
.logo-slide {
    object-fit: cover;
}

.logo-slide.logo-dark-theme {
    display: block !important;
}

.logo-slide.logo-light-theme {
    display: none !important;
}

[data-theme="light"] .logo-slide.logo-dark-theme {
    display: none !important;
}

[data-theme="light"] .logo-slide.logo-light-theme {
    display: block !important;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Tecnologias Section */
.tecnologias {
    background: var(--bg-darker);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.tech-category:hover {
    background: var(--bg-card-hover);
}

.tech-categories-bottom {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.tech-category-centered {
    max-width: 400px;
    width: 100%;
}

.tech-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Projetos Section */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.projeto-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, transform 0.3s ease;
}

.projeto-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.projeto-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.projeto-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contato Section */
.contato {
    background: var(--bg-darker);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contato-direto {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.email-contato {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.email-contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.email-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.email-contato h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.email-contato p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.email-link {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    background: var(--bg-darker);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 1rem 0;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.email-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.3);
}

.email-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem !important;
}

.contato-beneficios {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contato-beneficios h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.beneficios-lista {
    list-style: none;
    padding: 0;
}

.beneficios-lista li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-darker);
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid var(--border-color);
}

.beneficios-lista li:hover {
    transform: translateX(5px);
    background: var(--bg-card-hover);
}

.beneficio-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.beneficios-lista strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.beneficios-lista p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.contato-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contato-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contato-item {
    margin-bottom: 1.5rem;
}

.contato-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.contato-item ul {
    list-style: none;
    padding-left: 1rem;
}

.contato-item li {
    color: var(--text-light);
    padding: 0.25rem 0;
    position: relative;
}

.contato-item li::before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.email-contato-centralizado {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.email-contato-centralizado .email-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.email-contato-centralizado h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.email-contato-centralizado p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    color: var(--text-dark);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.25rem 0;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-section li:hover {
    color: var(--primary-color);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive Design */

/* Tablet Landscape - 1024px and down */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tech-category-centered {
        max-width: 100%;
    }
    
    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contato-content {
        gap: 3rem;
    }
}

/* Tablet Portrait - 768px and down */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .header .container {
        height: 60px;
        padding: 0 20px;
        position: relative;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo-main {
        font-size: 1.3rem;
    }
    
    .logo-sub {
        font-size: 0.8rem;
        color: var(--purple-color);
        margin-top: 2px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
        top: 60px;
    }
    
    .header-controls {
        gap: 0.5rem;
        display: flex;
        align-items: center;
        z-index: 1001;
    }
    
    .mobile-menu-toggle {
        order: 3;
        margin-left: 0.5rem;
    }
    
    .theme-toggle {
        order: 1;
    }
    
    .language-selector {
        order: 2;
    }
    
    .language-flags {
        gap: 6px;
    }
    
    .flag-btn {
        width: 38px;
        height: 26px;
        padding: 2px;
    }
    
    .flag-btn .fi {
        font-size: 24px;
        width: 34px;
        height: 22px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .sobre-text-centered h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .sobre-text-centered p {
        font-size: 1rem;
    }
    
    .sobre-content-with-images {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .image-carousel {
        max-width: 400px;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-categories-bottom {
        margin-top: 1.5rem;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contato-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .email-contato-centralizado {
        margin-top: 2rem;
        padding: 2rem;
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Mobile Landscape - 640px and down */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .image-carousel {
        max-width: 350px;
    }
    
    .carousel-container {
        aspect-ratio: 4/3;
    }
    
    .servico-card,
    .tech-category,
    .projeto-card {
        padding: 1.5rem;
    }
    
    .servico-card h3,
    .tech-category h3,
    .projeto-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .servico-card p,
    .tech-category p,
    .projeto-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .beneficios-lista li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .beneficio-icon {
        font-size: 1.3rem;
    }
}

/* Mobile Portrait - 480px and down */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    body {
        padding-top: 55px;
    }
    
    .header .container {
        height: 55px;
    }
    
    /* Força visibilidade completa no Android/Mobile */
    .header {
        background: var(--bg-darker) !important;
        border-bottom: 1px solid var(--border-color) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .logo {
        z-index: 1003 !important;
    }
    
    .logo-main {
        font-size: 1.1rem !important;
        color: var(--text-dark) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .logo-sub {
        font-size: 0.75rem !important;
        color: var(--purple-color) !important;
        margin-top: 2px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1002 !important;
    }
    
    .hamburger-line {
        background: var(--text-dark) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        width: 22px !important;
        height: 2px !important;
    }
    
    .header-controls {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        gap: 0.5rem !important;
        z-index: 1001 !important;
    }
    
    .language-flags {
        gap: 4px !important;
    }
    
    .flag-btn {
        width: 34px !important;
        height: 22px !important;
        padding: 1px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .flag-btn .fi {
        font-size: 20px !important;
        width: 32px !important;
        height: 20px !important;
    }
    
    .flag-btn:hover {
        transform: scale(1.2) !important;
    }
    
    .flag-btn.active {
        transform: scale(1.15) !important;
    }
    
    .theme-toggle {
        width: 35px !important;
        height: 35px !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: var(--text-dark) !important;
        color: var(--bg-dark) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .theme-toggle .sun,
    .theme-toggle .moon {
        font-size: 1rem;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .sobre-text-centered h3 {
        font-size: 1.1rem;
    }
    
    .sobre-text-centered p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .servico-card,
    .tech-category,
    .projeto-card {
        padding: 1.25rem;
    }
    
    .servico-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .tech-tags {
        gap: 0.5rem;
    }
    
    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .contato-info h3,
    .contato-beneficios h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .contato-info p,
    .beneficios-lista p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .email-contato-centralizado {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .email-contato-centralizado h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .email-contato-centralizado p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .email-link {
        font-size: 1rem;
        word-break: break-all;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.85rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .mobile-nav {
        top: 55px;
    }
}

/* Mobile Portrait Small - 360px and down */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .servico-card,
    .tech-category,
    .projeto-card {
        padding: 1rem;
    }
    
    .email-contato-centralizado {
        padding: 1.25rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Light Theme Specific Adjustments */
[data-theme="light"] .tech-tag {
    color: white;
}

[data-theme="light"] .email-link {
    color: var(--primary-color);
}

[data-theme="light"] .email-link:hover {
    color: white;
}

[data-theme="light"] .btn-primary {
    color: var(--primary-color);
}

[data-theme="light"] .btn-primary:hover {
    color: white;
}

[data-theme="light"] .bg-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .projeto-card,
[data-theme="light"] .servico-card,
[data-theme="light"] .tech-category,
[data-theme="light"] .contato-beneficios,
[data-theme="light"] .email-contato {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}