/* ===========================
   Custom CSS - DigitalPro Landing Page
   =========================== */

/* Root Variables */
:root {
    --primary-green: #10B981;
    --primary-green-dark: #059669;
    --primary-red: #EF4444;
    --primary-red-dark: #DC2626;
    --secondary-green: #22C55E;
    --secondary-red: #F87171;
    --dark-gray: #111827;
    --light-gray: #F9FAFB;
}

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-red {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-link {
    color: #D1D5DB;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10B981, #EF4444);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-mobile {
    color: #D1D5DB;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-link-mobile:hover {
    color: var(--primary-green);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary-green {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary-green-large {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary-green-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.btn-primary-large {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary-large {
    background: white;
    color: #4B5563;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid #E5E7EB;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary-large:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-green {
    background: transparent;
    color: var(--primary-green);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-green:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-red {
    background: transparent;
    color: var(--primary-red);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-red);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-red:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.btn-white-large {
    background: white;
    color: var(--primary-blue);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-white-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

.btn-white-outline-large {
    background: transparent;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid white;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-white-outline-large:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: #111827;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.85)),
        url('https://images.unsplash.com/photo-1533750349088-cd871a92f312?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

/* About Section Background */
#about {
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.88)),
        url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

/* Services Section Background */
#services {
    position: relative;
    background: white;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.90)),
        url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

/* Results Section Background */
#results {
    position: relative;
}

#results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(31, 41, 55, 0.88), rgba(31, 41, 55, 0.88)),
        url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

/* CTA Section - ajustando para melhor contraste */
.bg-gradient-to-r {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r.from-green-600::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(5, 150, 105, 0.85), rgba(220, 38, 38, 0.85)),
        url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

/* Contact Section Background */
#contact {
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.92)),
        url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

.hero-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

/* Ensure all content is above backgrounds */
.container {
    position: relative;
    z-index: 2;
}

section > div {
    position: relative;
    z-index: 2;
}

/* Service Cards */
.service-card {
    background: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(55, 65, 81, 0.5);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EC4899);
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

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

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* Result Cards */
.result-card {
    background: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(55, 65, 81, 0.5);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(55, 65, 81, 0.5);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

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

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    background-color: rgba(17, 24, 39, 0.95);
}

/* Form option styles for dark theme */
select option {
    background-color: #1F2937;
    color: #E5E7EB;
}

input::placeholder,
textarea::placeholder {
    color: #6B7280;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-1000 {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

.animate-pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* Scroll Effects */
.navbar-scrolled {
    background: rgba(17, 24, 39, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    /* Mobile navigation */
    #navbar {
        padding: 0.75rem 0;
    }
    
    /* Mobile text sizes */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 0.95rem !important;
    }
    
    /* Mobile cards */
    .service-card,
    .result-card,
    .testimonial-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile buttons */
    .btn-primary-green-large,
    .btn-secondary-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    /* Mobile form */
    #contact form {
        padding: 1rem;
    }
    
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile hero */
    .hero-section {
        padding-top: 5rem;
        min-height: auto;
    }
    
    /* Hide floating cards on small mobile */
    .absolute.animate-float {
        position: static;
        margin: 1rem 0;
    }
}

/* Tablet Optimizations */
@media (min-width: 641px) and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .btn-primary-large,
    .btn-secondary-large,
    .btn-white-large,
    .btn-white-outline-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .container {
        max-width: 1280px;
    }
    
    .service-card:hover {
        transform: translateY(-15px);
    }
    
    .result-card:hover {
        transform: translateY(-10px);
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    .container {
        max-width: 1440px;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
}

/* Modal Styles */
.modal-open {
    overflow: hidden;
}

/* Enhanced floating cards visibility */
.absolute.bg-white {
    background: rgba(31, 41, 55, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

/* Form elements visibility */
#contact form {
    background: rgba(31, 41, 55, 0.95);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

/* Dark theme text colors */
.text-white {
    color: #F9FAFB !important;
}

.text-gray-200 {
    color: #E5E7EB !important;
}

.text-gray-300 {
    color: #D1D5DB !important;
}

.text-gray-400 {
    color: #9CA3AF !important;
}

/* Dark theme backgrounds */
.bg-gray-700 {
    background-color: rgba(55, 65, 81, 0.95) !important;
}

.bg-gray-800 {
    background-color: rgba(31, 41, 55, 0.95) !important;
}

.bg-gray-900 {
    background-color: #111827 !important;
}

/* Success Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

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

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

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.badge-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.badge-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

/* Gradient Overlays */
.gradient-overlay {
    position: relative;
    overflow: hidden;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    opacity: 0;
    transition: opacity 0.3s;
}

.gradient-overlay:hover::before {
    opacity: 1;
}

/* Typography Helpers */
.text-balance {
    text-wrap: balance;
}

/* Utility Classes */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Logo Styling */
img[alt*="Leading"] {
    display: inline-block;
    object-fit: contain;
    filter: brightness(1.1);
}

/* Dark theme logo adjustment */
@media (prefers-color-scheme: dark) {
    img[alt*="Leading"] {
        filter: brightness(1.2) contrast(1.1);
    }
}

/* Mobile Touch Optimizations */
@supports (-webkit-touch-callout: none) {
    /* iOS specific */
    input, textarea, select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .btn-primary-green,
    .btn-primary-green-large,
    .btn-outline-green {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Ensure proper mobile viewport */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    #mobile-menu {
        background: rgba(17, 24, 39, 0.98);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 1rem;
    }
    
    .nav-link-mobile {
        padding: 0.75rem;
        border-radius: 0.375rem;
        transition: background 0.2s;
    }
    
    .nav-link-mobile:hover {
        background: rgba(55, 65, 81, 0.5);
    }
}

/* Smooth scrolling for all devices */
* {
    -webkit-overflow-scrolling: touch;
}

.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-hard {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}