/**
 * DevPortfolio - CSS Moderno UX/UI
 * Inspirado no design da MD Solutions Technology
 */

/* Reset e Base - Otimizado */
*,*::before,*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a20c7;
    --secondary: #0f0d1d;
    --accent: #3c72fc;
    --gradient: linear-gradient(135deg, #0a20c7, #1e3c72);
    --text-dark: #1a202c;
    --text-light: #718096;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary: #3b82f6;
    --secondary: #000000;
    --accent: #3c72fc;
    --gradient: linear-gradient(135deg, #3b82f6, #1e3c72);
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --white: #000000;
    --gray-50: #111111;
    --gray-100: #1a1a1a;
    --gray-200: #2a2a2a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container System */
.header-container,
.hero-container,
.about-container-modern,
.services-container,
.projects-container,
.contact-container,
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.section-subtitle {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.title-highlight {
    display: block;
    color: #3b82f6;
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.8),
        0 2px 15px rgba(59, 130, 246, 0.4);
    font-weight: 700;
}

.section-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(10, 32, 199, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 32, 199, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
    transform: translateX(4px);
}
/* Header */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.header-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.theme-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

[data-theme="dark"] .theme-btn i::before {
    content: "\f185"; /* sun icon */
}

@media (max-width: 768px) {
    .header-actions {
        gap: 0.5rem;
    }
    
    .theme-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .language-toggle {
        padding: 2px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

.language-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: 25px;
    padding: 4px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.lang-btn:hover {
    background: rgba(10, 32, 199, 0.1);
    color: var(--primary);
    opacity: 1;
}

.lang-btn.active {
    background: var(--gradient);
    color: white;
    opacity: 1;
    font-weight: 600;
}

.lang-btn.active:hover {
    background: var(--gradient);
    color: white;
    opacity: 0.9;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f0d1d 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(10, 32, 199, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(60, 114, 252, 0.2) 0%, transparent 50%);
}

.hero-bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(10, 32, 199, 0.05) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-profile {
    display: flex;
    justify-content: center;
}

.profile-image-container {
    position: relative;
    width: 280px;
    height: 280px;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><style>.particle{fill:rgba(60,114,252,0.8);animation:orbit 15s linear infinite;}</style></defs><circle class="particle" cx="200" cy="50" r="3"><animateTransform attributeName="transform" type="rotate" values="0 200 200;360 200 200" dur="15s" repeatCount="indefinite"/></circle><circle class="particle" cx="350" cy="200" r="2"><animateTransform attributeName="transform" type="rotate" values="0 200 200;360 200 200" dur="20s" repeatCount="indefinite"/></circle><circle class="particle" cx="200" cy="350" r="2.5"><animateTransform attributeName="transform" type="rotate" values="0 200 200;360 200 200" dur="18s" repeatCount="indefinite"/></circle><circle class="particle" cx="50" cy="200" r="2"><animateTransform attributeName="transform" type="rotate" values="0 200 200;360 200 200" dur="22s" repeatCount="indefinite"/></circle><circle class="particle" cx="300" cy="100" r="1.5"><animateTransform attributeName="transform" type="rotate" values="0 200 200;360 200 200" dur="25s" repeatCount="indefinite"/></circle><circle class="particle" cx="100" cy="300" r="2"><animateTransform attributeName="transform" type="rotate" values="0 200 200;360 200 200" dur="17s" repeatCount="indefinite"/></circle></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.profile-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle, rgba(60, 114, 252, 0.4) 0%, rgba(10, 32, 199, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    animation: pulse 3s ease-in-out infinite;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 0 8px rgba(60, 114, 252, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.profile-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(60, 114, 252, 0.8), rgba(10, 32, 199, 0.8), rgba(255, 255, 255, 0.4)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotate 15s linear infinite;
}

.hero-text {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(60, 114, 252, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}



.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 500px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero.btn-primary {
    background: linear-gradient(135deg, #3c72fc, #0a20c7);
    color: white;
    border: 2px solid transparent;
}

.btn-hero.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(60, 114, 252, 0.4);
}

.btn-hero.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}


/* About Section */
.about-section-modern {
    padding: 80px 0;
    background: var(--gray-50);
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-badge {
    display: inline-block;
    background: rgba(10, 32, 199, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.about-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text-column {
    padding-right: 2rem;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.btn-about-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-about-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.about-visual-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tech-category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.tech-category-card:hover {
    transform: translateY(-2px);
}

.tech-category-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--gradient);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.about-info-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.card-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-stats .stat-item {
    text-align: center;
}

.card-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.card-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.info-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.highlight-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

.info-card-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}
/* Services Section - Modern Design */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
    position: relative;
    overflow: hidden;
}

.services-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="services-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="rgba(10,32,199,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23services-pattern)"/></svg>');
    z-index: 1;
}

.services-container {
    position: relative;
    z-index: 2;
}

.section-header.text-center {
    text-align: center;
    margin-bottom: 5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

/* Modern Service Cards */
.service-card.modern {
    background: var(--white);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.service-card.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card.modern:hover::before {
    transform: scaleX(1);
}

.service-card.modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-header {
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-icon-modern {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(10, 32, 199, 0.3);
    transition: all 0.3s ease;
}

.service-icon-modern.systems {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.service-icon-modern.automation {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.service-card.modern:hover .service-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.service-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.service-badge.premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.service-content-modern {
    padding: 0 1.5rem 1.5rem;
}

.service-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.service-description-modern {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.service-features-modern {
    margin-bottom: 2rem;
}

.feature-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.feature-item-modern i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
}

.service-pricing {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 2px dashed var(--gray-200);
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.service-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-service-modern {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-secondary-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Services Stats */
.services-stats {
    margin: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(10, 32, 199, 0.3);
}

.stat-content .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-content .stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Enhanced CTA */
.services-cta-modern {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    margin-top: 5rem;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
}

.services-cta-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    text-align: center;
    color: white;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.services-cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.services-cta-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.services-cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    justify-content: center;
}

.btn-cta-primary {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-cta-primary:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    opacity: 0.9;
}

.cta-feature i {
    font-size: 1.2rem;
}

/* Automation Section */
.automation-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.automation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="automation-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(10,32,199,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23automation-pattern)"/></svg>');
    z-index: 1;
}

.automation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.automation-intro {
    margin: 4rem 0;
}

.intro-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.benefit-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.workflows-showcase {
    margin: 4rem 0;
}

.workflows-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.workflows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.workflow-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

.workflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.workflow-header {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.workflow-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.workflow-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.workflow-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
}

.workflow-demo {
    height: 280px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 10px;
}

.workflow-gif {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.workflow-card:hover .workflow-gif {
    transform: scale(1.02);
}

.workflow-content {
    padding: 1.5rem;
}

.workflow-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.workflow-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(10, 32, 199, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.automation-services {
    margin: 4rem 0;
}

.services-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.automation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.automation-type {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

.automation-type:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.type-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.type-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.type-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.type-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-features li {
    padding: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.type-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.automation-cta {
    background: var(--gradient);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-automation-cta,
.btn-automation-projects {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-automation-cta {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
}

.btn-automation-cta:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-automation-projects {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-automation-projects:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background: var(--gray-50);
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 280px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 10px;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-image img {
    transform: scale(1.02);
}



.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 32, 199, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.project-overlay-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-overlay-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-project {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
}

.btn-project:hover {
    background: white;
    color: var(--primary);
}

.project-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    align-items: center;
}

.project-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn-project-link {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 32, 199, 0.3);
    color: white;
}

.btn-project-cta {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

/* Mobile Projects Slider */
.mobile-projects {
    display: none;
}

.projects-swiper {
    padding-bottom: 50px;
}

.projects-swiper .swiper-slide {
    height: auto;
}

.projects-swiper .swiper-pagination {
    bottom: 10px;
}

.projects-swiper .swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.3;
    width: 12px;
    height: 12px;
}

.projects-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
}

.projects-swiper .swiper-button-next,
.projects-swiper .swiper-button-prev {
    color: var(--primary);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
}

.projects-swiper .swiper-button-next:after,
.projects-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: 600;
}

.projects-swiper .swiper-button-next {
    right: 10px;
}

.projects-swiper .swiper-button-prev {
    left: 10px;
}

/* Responsive Display Control */
@media (max-width: 768px) {
    .desktop-projects {
        display: none;
    }
    
    .mobile-projects {
        display: block;
    }
    
    .projects-swiper .swiper-slide .project-card {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .project-actions {
        flex-direction: column;
    }
    
    .btn-project-link,
    .btn-project-cta {
        width: 100%;
        min-width: auto;
    }
    
    .projects-swiper .swiper-button-next,
    .projects-swiper .swiper-button-prev {
        display: none;
    }
    
    .projects-swiper {
        padding-bottom: 40px;
    }
    
    .projects-swiper .swiper-pagination {
        bottom: 0;
    }
}
/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--gradient);
    color: white;
}

/* Contact CTA Wrapper */
.contact-cta-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-cta-content {
    text-align: center;
}

.contact-cta-header {
    margin-bottom: 2.5rem;
}

.contact-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.contact-cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.contact-cta-services {
    margin-bottom: 2.5rem;
}

.services-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.service-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: white;
}

.service-btn i {
    font-size: 2rem;
    opacity: 0.9;
}

.service-btn span {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp-main,
.btn-email {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    justify-content: center;
}

.btn-whatsapp-main {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
}

.btn-whatsapp-main:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-email {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-email:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-section .section-title {
    color: white;
}

.contact-section .title-highlight {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding-right: 2rem;
}

.contact-methods {
    margin: 3rem 0;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-method-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-method-value {
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-method-value:hover {
    text-decoration: underline;
}

.contact-method-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-social-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-social-links {
    display: flex;
    gap: 1rem;
}

.contact-social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-form-description {
    opacity: 0.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-select option {
    background: var(--primary);
    color: white;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.btn-submit:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

/* Footer */
.footer-modern {
    background: var(--secondary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    background: var(--gradient);
}

.footer-brand .brand-text {
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text-column {
        padding-right: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-actions .btn-primary {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .service-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .service-btn {
        padding: 1rem 0.75rem;
    }
    
    .service-btn i {
        font-size: 1.5rem;
    }
    
    .contact-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-whatsapp-main,
    .btn-email {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-image-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        padding: 0.75rem;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .about-container-modern,
    .services-container,
    .projects-container,
    .contact-container {
        padding: 0 15px;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .workflows-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .automation-types {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-automation-cta,
    .btn-automation-projects {
        width: 100%;
        max-width: 280px;
    }
    
    .services-cta {
        padding: 2rem 1.5rem;
    }
    
    .services-cta-title {
        font-size: 1.5rem;
    }
    
    .services-cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 250px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .workflow-demo {
        height: 240px;
        padding: 8px;
    }
    
    .project-image {
        height: 240px;
        padding: 8px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-container {
        padding: 0 10px;
    }
    
    .service-buttons {
        grid-template-columns: 1fr;
    }
    
    .contact-cta-wrapper {
        padding: 1.5rem;
    }
    
    .contact-cta-title {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .workflows-title,
    .services-title,
    .intro-title,
    .cta-title {
        font-size: 1.5rem;
    }
    
    .automation-cta {
        padding: 2rem 1.5rem;
    }
    
    .workflow-demo {
        height: 220px;
        padding: 8px;
    }
    
    .project-image {
        height: 220px;
        padding: 8px;
    }
    
    .profile-image-container {
        width: 160px;
        height: 160px;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.5rem;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .btn-hero {
        max-width: 100%;
        padding: 12px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-container-modern,
    .services-container,
    .projects-container,
    .contact-container {
        padding: 0 10px;
    }
    
    .about-section-modern,
    .services-section,
    .projects-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .service-content,
    .project-content {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
}
/* Mobile Menu Styles */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.header-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.header-nav.active .nav-menu {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
}

.header-nav.active .nav-item {
    border-bottom: 1px solid var(--gray-200);
}

.header-nav.active .nav-item:last-child {
    border-bottom: none;
}

.header-nav.active .nav-link {
    display: block;
    padding: 1rem;
    text-align: center;
}
/* Custom Service Images with Gradients */
.service-image-landing {
    background: linear-gradient(135deg, #0a20c7 0%, #3c72fc 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-landing::before {
    content: '💻';
    font-size: 4rem;
    position: absolute;
    opacity: 0.3;
    z-index: 1;
}

.service-image-systems {
    background: linear-gradient(135deg, #3c72fc 0%, #667eea 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-systems::before {
    content: '⚙️';
    font-size: 4rem;
    position: absolute;
    opacity: 0.3;
    z-index: 1;
}

.service-image-automation {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-automation::before {
    content: '🤖';
    font-size: 4rem;
    position: absolute;
    opacity: 0.3;
    z-index: 1;
}

/* Project Images - Real images now used */

/* Image Loading States and Error Handling */
.project-image img {
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Loading state for images */
.project-image {
    position: relative;
}

/* Improve image loading performance */
.project-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Add subtle animation to loaded images */
.project-image.loaded img {
    animation: fadeInImage 0.5s ease-in-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ensure overlays work properly */
.service-image-overlay,
.project-overlay {
    z-index: 2;
}

/* Add pattern overlay for more visual interest */
.service-image-landing::after,
.service-image-systems::after,
.service-image-automation::after,
.project-image-ecommerce::after,
.project-image-crm::after,
.project-image-landing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 1;
}

/* Services Section Mobile Responsiveness */
@media (max-width: 480px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .service-card.modern {
        margin: 0 10px;
    }
    
    .service-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .service-content-modern {
        padding: 0 1.5rem 1.5rem;
    }
    
    .service-title-modern {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .services-cta-content {
        padding: 2.5rem 1.5rem;
    }
    
    .services-cta-title {
        font-size: 1.8rem;
    }
    
    .services-cta-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-content .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        margin: 0 -10px;
    }
    
    .service-card.modern {
        margin: 0;
        border-radius: 16px;
    }
    
    .service-pricing {
        padding: 1rem;
    }
    
    .price-value {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-cta-title {
        font-size: 1.5rem;
    }
    
    .services-cta-description {
        font-size: 1rem;
    }
}
/* Dark Theme Adjustments for Personal Section */
[data-theme="dark"] .personal-about-section {
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
}

[data-theme="dark"] .personal-about-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

[data-theme="dark"] .highlight-item {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .highlight-item:hover {
    border-color: #3b82f6;
    background: #222222;
}

[data-theme="dark"] .personal-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

[data-theme="dark"] .personal-title {
    background: linear-gradient(135deg, #f9fafb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Dark Theme - Title Highlight Adjustments */
[data-theme="dark"] .title-highlight {
    color: #3b82f6;
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.8),
        0 2px 15px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .contact-section .title-highlight {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Comprehensive Dark Theme Compatibility */

/* Header Dark Theme */
[data-theme="dark"] .header-modern {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.98) 0%, rgba(59, 130, 246, 0.98) 100%) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 20px rgba(30, 60, 114, 0.4);
}

[data-theme="dark"] .brand-text {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Hero Section Dark Theme */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
}

[data-theme="dark"] .hero-bg-overlay {
    background: rgba(0, 0, 0, 0.3);
}

/* About Section Dark Theme */
[data-theme="dark"] .about-section-modern {
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
}

[data-theme="dark"] .about-features-list .feature-item {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .about-features-list .feature-item:hover {
    border-color: #3b82f6;
    background: #222222;
}

[data-theme="dark"] .tech-category-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .tech-category-card:hover {
    border-color: #3b82f6;
    background: #222222;
}

[data-theme="dark"] .about-info-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

/* Services Section Dark Theme */
[data-theme="dark"] .services-section {
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
}

[data-theme="dark"] .service-card.modern {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .service-card.modern:hover {
    background: #222222;
    border-color: #3b82f6;
}

[data-theme="dark"] .service-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

[data-theme="dark"] .service-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

[data-theme="dark"] .stat-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .stat-card:hover {
    background: #222222;
    border-color: #3b82f6;
}

[data-theme="dark"] .services-cta-modern {
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
}

/* Automation Section Dark Theme */
[data-theme="dark"] .automation-section {
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
}

[data-theme="dark"] .benefit-item {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .benefit-item:hover {
    background: #222222;
    border-color: #3b82f6;
}

[data-theme="dark"] .workflow-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .workflow-card:hover {
    background: #222222;
    border-color: #3b82f6;
}

[data-theme="dark"] .automation-type {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .automation-type:hover {
    background: #222222;
    border-color: #3b82f6;
}

[data-theme="dark"] .automation-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
}

/* Projects Section Dark Theme */
[data-theme="dark"] .projects-section {
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
}

[data-theme="dark"] .project-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .project-card:hover {
    background: #222222;
    border-color: #3b82f6;
}

/* Dark Theme Slider Styles */
[data-theme="dark"] .projects-swiper .swiper-button-next,
[data-theme="dark"] .projects-swiper .swiper-button-prev {
    background: #1a1a1a;
    color: #3b82f6;
    border: 1px solid #2a2a2a;
}

[data-theme="dark"] .projects-swiper .swiper-pagination-bullet {
    background: #3b82f6;
}

[data-theme="dark"] .projects-swiper .swiper-pagination-bullet-active {
    background: #3b82f6;
}

[data-theme="dark"] .project-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

/* Contact Section Dark Theme */
[data-theme="dark"] .contact-section {
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
}

[data-theme="dark"] .contact-method {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .contact-method:hover {
    background: #222222;
    border-color: #3b82f6;
}

[data-theme="dark"] .contact-cta-wrapper {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .service-btn {
    background: #222222;
    border-color: #2a2a2a;
    color: #f9fafb;
}

[data-theme="dark"] .service-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Footer Dark Theme */
[data-theme="dark"] .footer-modern {
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
    border-top: 1px solid #2a2a2a;
}

[data-theme="dark"] .footer-description {
    color: #d1d5db;
}

[data-theme="dark"] .footer-menu a {
    color: #d1d5db;
}

[data-theme="dark"] .footer-menu a:hover {
    color: #3b82f6;
}

[data-theme="dark"] .footer-social-link {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #d1d5db;
}

[data-theme="dark"] .footer-social-link:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Buttons Dark Theme */
[data-theme="dark"] .btn-secondary {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #f9fafb;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #222222;
    border-color: #3b82f6;
    color: #3b82f6;
}

[data-theme="dark"] .btn-secondary-outline {
    background: transparent;
    border-color: #2a2a2a;
    color: #d1d5db;
}

[data-theme="dark"] .btn-secondary-outline:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Form Elements Dark Theme */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #f9fafb;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Scrollbar Dark Theme */
[data-theme="dark"]::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"]::-webkit-scrollbar-track {
    background: #111111;
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}
/* Header Dark Theme - Scrolled State */
[data-theme="dark"] .header-modern.scrolled {
    background: linear-gradient(135deg, rgba(30, 60, 114, 1) 0%, rgba(59, 130, 246, 1) 100%);
    backdrop-filter: blur(30px);
    box-shadow: 0 4px 30px rgba(30, 60, 114, 0.6);
    border-bottom: 1px solid rgba(59, 130, 246, 0.5);
}

/* Header Dark Theme - Additional Fixes */
[data-theme="dark"] .header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    z-index: -1;
}
/* Header Dark Theme - Buttons and Actions */
[data-theme="dark"] .theme-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .theme-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .lang-btn {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .lang-btn.active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] .lang-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-header {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-header:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Dark Theme */
[data-theme="dark"] .mobile-menu-toggle span {
    background: #ffffff;
}

[data-theme="dark"] .mobile-menu-toggle:hover span {
    background: rgba(255, 255, 255, 0.8);
}
/* Light Theme - Services Title Adjustment */
[data-theme="light"] .services-title,
:root .services-title {
    color: #000000;
}

/* Dark Theme - Services Title */
[data-theme="dark"] .services-title {
    color: #f9fafb;
}
/* Header Dark Theme - Force Override */
[data-theme="dark"] .header-modern .brand-text,
[data-theme="dark"] .header-modern .nav-link,
[data-theme="dark"] .header-modern .btn-header {
    color: #ffffff !important;
}

[data-theme="dark"] .header-modern .logo-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.25)) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .header-modern .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .header-modern .nav-link:hover {
    color: #ffffff !important;
}

[data-theme="dark"] .header-modern .brand-text {
    color: #ffffff !important;
}
/* Logo Dark Theme - Additional Adjustments */
[data-theme="dark"] .logo-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2)) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .logo-icon:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3)) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.05);
}
/* Mobile Menu Dark Theme - Complete Fix */
[data-theme="dark"] .header-nav.active {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.98) 0%, rgba(59, 130, 246, 0.98) 100%) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 30px rgba(30, 60, 114, 0.6);
}

[data-theme="dark"] .header-nav.active .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .header-nav.active .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .header-nav.active .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
/* Mobile Brand Optimization - Hide text, keep only icon */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }
    
    .brand-logo {
        gap: 0 !important;
    }
    
    .logo-icon {
        margin-right: 0;
    }
}

/* Extra small screens - even more compact */
@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
/* Mobile Hero Section - Fix header overlap */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px; /* Espaço para o header fixo */
    }
    
    .hero-container {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 90px; /* Ajuste para telas menores */
    }
    
    .hero-profile {
        margin-top: 10px;
    }
}
/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* GPU acceleration for smooth animations */
.profile-glow,
.profile-ring,
.hero-bg-overlay {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize font rendering */
.hero-title,
.section-title {
    text-rendering: optimizeLegibility;
}

/* Reduce layout shifts */
.project-image {
    background-color: var(--gray-100);
}

/* Workflow demo sizing handled by main rule */

/* Critical resource hints */
.btn-primary,
.btn-secondary {
    contain: layout style paint;
}