/* Datalab Sistemas - Creative Modern Stylesheet */

/* --------------------------------------------------
   1. Design System & Variables
   -------------------------------------------------- */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Dual Theme Color Palette */
    --color-bg-light: #faf9f6; /* Clean warm off-white (Alabaster) */
    --color-bg-dark: #09090b; /* Pure slate-black */
    --color-bg-dark-alt: #18181b; /* Charcoal zinc */
    
    --color-card-border-light: rgba(9, 9, 11, 0.08);
    --color-card-border-dark: rgba(255, 255, 255, 0.05);
    
    /* Text Colors */
    --color-text-dark-primary: #09090b; /* High-contrast text for light areas */
    --color-text-dark-secondary: #52525b; /* Muted text for light areas */
    --color-text-dark-muted: #71717a;
    
    --color-text-light-primary: #f8fafc; /* High-contrast text for dark areas */
    --color-text-light-secondary: #a1a1aa; /* Muted text for dark areas */
    --color-text-light-muted: #52525b;
    
    /* Brand Colors (Vibrant Red to Peach Orange Gradient) */
    --color-brand: #ff0000;
    --color-brand-rgb: 255, 0, 0;
    --color-brand-glow: #ffa65e;
    --color-brand-glow-rgb: 255, 166, 94;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    
    /* Layout & Animation Spacing */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    
    --container-max-width: 1200px;
}

/* --------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, section, footer {
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Visual Background Grid Overlay */
.bg-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        radial-gradient(rgba(9, 9, 11, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
    background: #e4e4e7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-dark-secondary);
}

/* --------------------------------------------------
   3. Decorative Elements
   -------------------------------------------------- */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
}

.bg-glow-1 {
    background: radial-gradient(circle, rgba(255, 0, 0, 0.6) 0%, rgba(255, 166, 94, 0.15) 100%);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    background: radial-gradient(circle, rgba(255, 166, 94, 0.5) 0%, rgba(9, 9, 11, 0.1) 100%);
    top: 60%;
    left: -200px;
}

/* --------------------------------------------------
   4. Typography Utilities
   -------------------------------------------------- */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--color-text-dark-primary);
}

/* Red-to-Orange Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #ff0000 0%, #ffa65e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-brand);
    margin-bottom: 0.75rem;
}

.tag-icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255, 166, 94, 0.45));
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-dark-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Dark block typography override */
.dark-block .section-header h2 {
    color: var(--color-text-light-primary);
}

.dark-block .section-desc {
    color: var(--color-text-light-secondary);
}

.dark-block .section-tag {
    color: var(--color-brand-glow);
}

/* --------------------------------------------------
   5. Interactive Buttons & Badges
   -------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.85rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-dark {
    background-color: var(--color-bg-dark);
    color: #fff;
    border: 1px solid var(--color-bg-dark);
}

.btn-dark:hover {
    background-color: #27272a;
    border-color: #27272a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(9, 9, 11, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-dark-primary);
    border: 2px solid var(--color-text-dark-primary);
}

.btn-outline:hover {
    background-color: var(--color-text-dark-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #09090b;
    color: #fff;
    border: 1px solid #09090b;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff0000 0%, #ffa65e 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-whatsapp:hover::before {
    opacity: 1;
}

.btn-whatsapp:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.15);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Dark block button adaptations */
.dark-block .btn-outline {
    color: var(--color-text-light-primary);
    border-color: var(--color-text-light-primary);
}

.dark-block .btn-outline:hover {
    background-color: var(--color-text-light-primary);
    color: var(--color-bg-dark);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(var(--color-brand-rgb), 0.05);
    border: 1px solid rgba(var(--color-brand-rgb), 0.15);
    padding: 0.4rem 0.95rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-brand);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-success);
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-success);
    top: 0;
    left: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* --------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
    background-color: var(--color-bg-dark); /* Dark navigation bar for contrast with white logo text */
}

.main-header.scrolled {
    background-color: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: 160px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 150px;
    max-width: 100%;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.03);
}

.main-header.scrolled .logo-img {
    height: 62px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-light-secondary); /* White/grey text for dark header bar */
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-fast);
    padding: 0.25rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-light-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-brand);
    bottom: -2px;
    left: 0;
    transition: var(--transition-fast);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff !important;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.main-header .btn-dark {
    background-color: var(--color-bg-light); /* White background */
    color: var(--color-bg-dark); /* Dark text */
    border: 1px solid var(--color-bg-light);
}

.main-header .btn-dark:hover {
    background-color: var(--color-brand-glow);
    border-color: var(--color-brand-glow);
    color: var(--color-bg-dark);
    transition: var(--transition-fast);
}

/* --------------------------------------------------
   7. Hero Section
   -------------------------------------------------- */
.hero-section {
    padding-top: 260px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.75rem;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    letter-spacing: -0.04em;
}

.hero-subtext {
    font-size: 1.15rem;
    color: var(--color-text-dark-secondary);
    margin-bottom: 2.75rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 4.5rem;
}

.hero-credentials {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.credential-item {
    display: flex;
    flex-direction: column;
}

.credential-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-brand);
}

.credential-lbl {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-dark-secondary);
}

.credential-divider {
    width: 1px;
    height: 35px;
    background-color: rgba(9, 9, 11, 0.08);
}

/* Modern Asymmetrical Mockup Visual Container */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offset-bg-card {
    position: absolute;
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.bg-orange-tilt {
    width: 90%;
    height: 82%;
    background-color: var(--color-brand-glow);
    opacity: 0.85;
    animation: oscillateHeroOrange 7s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.bg-red-tilt {
    width: 92%;
    height: 80%;
    background-color: var(--color-brand);
    opacity: 0.9;
    animation: oscillateHeroRed 9s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.hero-visual:hover .bg-orange-tilt,
.hero-visual.touched .bg-orange-tilt {
    animation-play-state: paused;
    transform: rotate(20deg) scale(1.06);
}

.hero-visual:hover .bg-red-tilt,
.hero-visual.touched .bg-red-tilt {
    animation-play-state: paused;
    transform: rotate(-20deg) scale(1.06);
}

@keyframes oscillateHeroOrange {
    0% { transform: rotate(5deg) scale(1); }
    50% { transform: rotate(9deg) scale(1.03); }
    100% { transform: rotate(5deg) scale(1); }
}

@keyframes oscillateHeroRed {
    0% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(-9deg) scale(1.03); }
    100% { transform: rotate(-5deg) scale(1); }
}

/* Animated Logo Visual Core in Hero */
.hero-logo-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(var(--color-brand-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(25px);
}

/* Orbit Rings */
.orbit-rings-svg {
    position: absolute;
    width: 100%;
    max-width: 440px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.ring-path {
    fill: none;
    stroke: rgba(var(--color-brand-rgb), 0.08);
    stroke-width: 1.5;
    stroke-dasharray: 8 16;
    transform-origin: center;
}

.ring-path-1 {
    animation: rotateRing 30s linear infinite;
}

.ring-path-2 {
    stroke: rgba(var(--color-brand-glow-rgb), 0.05);
    stroke-dasharray: 12 24;
    animation: rotateRingBack 45s linear infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateRingBack {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Central Floating Sphere */
.logo-sphere-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    animation: floatSphere 6s ease-in-out infinite;
}

.logo-sphere {
    position: relative;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 35% 35%, rgba(40, 40, 45, 0.95) 0%, rgba(9, 9, 11, 0.98) 100%);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 4px 10px rgba(255, 255, 255, 0.08),
        inset 0 -4px 15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 2;
}

.logo-sphere-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(var(--color-brand-glow-rgb), 0.45));
    animation: pulseLogo 3s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
    0% { transform: scale(0.96) rotate(-3deg); filter: drop-shadow(0 0 8px rgba(var(--color-brand-glow-rgb), 0.35)); }
    100% { transform: scale(1.04) rotate(3deg); filter: drop-shadow(0 0 16px rgba(var(--color-brand-glow-rgb), 0.65)); }
}

@keyframes floatSphere {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Pulsing Outer Rings */
.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-brand-rgb), 0.15);
    pointer-events: none;
    z-index: 1;
    animation: pulseRing 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ring-1 {
    width: 155px;
    height: 155px;
    animation-delay: 0s;
}

.ring-2 {
    width: 185px;
    height: 185px;
    animation-delay: 2s;
    border-color: rgba(var(--color-brand-glow-rgb), 0.1);
}

@keyframes pulseRing {
    0% { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Floating Tech Badges */
.floating-badge {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(9, 9, 11, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.55rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-dark-primary);
    box-shadow: 0 8px 20px rgba(9, 9, 11, 0.08);
    z-index: 4;
    transition: var(--transition-smooth);
}

.floating-badge svg {
    color: var(--color-brand);
}

.floating-badge:hover {
    transform: scale(1.08) translateY(-3px) !important;
    background-color: #fff;
    box-shadow: 0 12px 25px rgba(255, 0, 0, 0.12);
    border-color: rgba(var(--color-brand-rgb), 0.2);
}

.badge-1 {
    top: 15%;
    left: 5%;
    animation: floatBadge1 7s ease-in-out infinite;
}

.badge-2 {
    bottom: 20%;
    right: 5%;
    animation: floatBadge2 8s ease-in-out infinite;
}

.badge-3 {
    top: 55%;
    left: -10%;
    animation: floatBadge3 6.5s ease-in-out infinite;
}

@keyframes floatBadge1 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-5px, -12px); }
    100% { transform: translate(0, 0); }
}

@keyframes floatBadge2 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(6px, -15px); }
    100% { transform: translate(0, 0); }
}

@keyframes floatBadge3 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-8px, 10px); }
    100% { transform: translate(0, 0); }
}

.db-status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-brand-glow);
}

.db-icon {
    animation: dbPulse 1.5s ease-in-out infinite alternate;
}

@keyframes dbPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 4px rgba(255, 166, 94, 0.5)); }
}

.db-text {
    font-size: 0.8rem;
    font-weight: 600;
}

/* --------------------------------------------------
   8. Soluções Section (Deep Dark Block)
   -------------------------------------------------- */
.solucoes-section {
    padding: 100px 0;
    position: relative;
}

.dark-block {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light-primary);
}

.dark-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.dark-block .container {
    position: relative;
    z-index: 2;
}

.solucoes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.solucao-card {
    position: relative;
    background-color: var(--color-bg-dark-alt);
    border: 1px solid var(--color-card-border-dark);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.solucao-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(var(--color-brand-glow-rgb), 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.solucao-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-card-hover-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.solucao-card:hover::before {
    opacity: 1;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-light-primary);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.solucao-card:hover .card-icon {
    background-color: rgba(var(--color-brand-rgb), 0.1);
    border-color: rgba(var(--color-brand-rgb), 0.3);
    color: var(--color-brand-glow);
    transform: scale(1.05);
}

.solucao-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--color-text-light-primary);
}

.solucao-card p {
    font-size: 0.95rem;
    color: var(--color-text-light-secondary);
}

/* --------------------------------------------------
   9. Sobre Section (Profile & Trust)
   -------------------------------------------------- */
.sobre-section {
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.sobre-image-container {
    display: flex;
    justify-content: center;
}

/* Offset profile frame decorations matching mockup styles */
.dev-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 380px;
}

.developer-photo-card-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-orange-tilt-small {
    width: 94%;
    height: 94%;
    background-color: var(--color-brand-glow);
    border-radius: 24px;
    opacity: 0.85;
    animation: oscillateAboutOrange 6s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.bg-red-tilt-small {
    width: 95%;
    height: 93%;
    background-color: var(--color-brand);
    border-radius: 24px;
    opacity: 0.9;
    animation: oscillateAboutRed 8s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.developer-photo-card-wrapper:hover .bg-orange-tilt-small,
.developer-photo-card-wrapper.touched .bg-orange-tilt-small {
    animation-play-state: paused;
    transform: rotate(18deg) scale(1.05);
}

.developer-photo-card-wrapper:hover .bg-red-tilt-small,
.developer-photo-card-wrapper.touched .bg-red-tilt-small {
    animation-play-state: paused;
    transform: rotate(-18deg) scale(1.05);
}

@keyframes oscillateAboutOrange {
    0% { transform: rotate(4deg) scale(1); }
    50% { transform: rotate(9deg) scale(1.03); }
    100% { transform: rotate(4deg) scale(1); }
}

@keyframes oscillateAboutRed {
    0% { transform: rotate(-4deg) scale(1); }
    50% { transform: rotate(-9deg) scale(1.03); }
    100% { transform: rotate(-4deg) scale(1); }
}

.developer-photo-card {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
    border: 1px solid var(--color-card-border-light);
    box-shadow: 0 15px 35px rgba(9, 9, 11, 0.1);
    background-color: var(--color-bg-light);
}

.developer-photo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(9, 9, 11, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.dev-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.developer-photo-card:hover .dev-img {
    transform: scale(1.03);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.75rem;
    z-index: 2;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dev-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.dev-role {
    font-size: 0.85rem;
    color: var(--color-brand-glow);
    font-weight: 600;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    z-index: 2;
}

.thumb-card {
    background-color: #fff;
    border: 1px solid var(--color-card-border-light);
    border-radius: 12px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.thumb-img {
    width: 100%;
    aspect-ratio: 1.1;
    object-fit: cover;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.thumb-label {
    font-size: 0.65rem;
    color: var(--color-text-dark-secondary);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.thumb-card.grayscale .thumb-img {
    filter: grayscale(100%) opacity(0.7);
}

.thumb-card.grayscale:hover .thumb-img,
.thumb-card.active .thumb-img {
    filter: grayscale(0%) opacity(1);
}

.thumb-card:hover {
    border-color: rgba(255, 0, 0, 0.15);
    background-color: #faf9f6;
    transform: translateY(-2px);
}

.thumb-card.active {
    border-color: var(--color-brand);
    background-color: rgba(255, 0, 0, 0.02);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.06);
}

.sobre-content h3 {
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.sobre-content > p {
    font-size: 1.05rem;
    color: var(--color-text-dark-secondary);
    margin-bottom: 2.25rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(var(--color-brand-rgb), 0.06);
    border: 1px solid rgba(var(--color-brand-rgb), 0.12);
    color: var(--color-brand);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--color-text-dark-primary);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--color-text-dark-secondary);
}

/* --------------------------------------------------
   10. Processo Section (Timeline Steps Cards)
   -------------------------------------------------- */
.processo-section {
    padding: 100px 0;
    position: relative;
}

.processo-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
}

.processo-steps::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(9, 9, 11, 0.08) 50%, transparent 100%);
    z-index: -1;
}

.step-card {
    background-color: #fff;
    border: 1px solid var(--color-card-border-light);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(9, 9, 11, 0.02);
}

.step-card:hover {
    border-color: rgba(255, 0, 0, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(9, 9, 11, 0.06);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 auto 2.25rem;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-brand);
    background-color: var(--color-bg-light);
    border: 2px solid rgba(var(--color-brand-rgb), 0.2);
    box-shadow: 0 0 15px rgba(var(--color-brand-rgb), 0.06);
    transition: var(--transition-smooth);
}

.step-card:hover .step-num {
    border-color: var(--color-brand-glow);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.25);
    background-color: var(--color-brand);
    color: #fff;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark-primary);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--color-text-dark-secondary);
}

/* --------------------------------------------------
   11. FAQ Section (Accordion Components)
   -------------------------------------------------- */
.faq-section {
    padding: 100px 0;
    position: relative;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background-color: #fff;
    border: 1px solid var(--color-card-border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark-primary);
    gap: 1.5rem;
}

.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-text-dark-primary);
    transition: var(--transition-fast);
}

/* Horizontal line */
.faq-icon::before {
    top: 7px;
    left: 0;
    width: 100%;
    height: 2px;
}

/* Vertical line */
.faq-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 100%;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 2rem;
    color: var(--color-text-dark-secondary);
    font-size: 0.95rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

/* Active accordion states */
.faq-item.active {
    border-color: rgba(255, 0, 0, 0.15);
    box-shadow: 0 10px 25px rgba(9, 9, 11, 0.04);
}

.faq-item.active .faq-question {
    color: var(--color-brand);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
    background-color: var(--color-brand);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Large enough to fit the text content */
    padding: 0 2rem;
}

/* --------------------------------------------------
   12. Contato Section
   -------------------------------------------------- */
.contato-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contato-card-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.contato-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(var(--color-brand-rgb), 0.15) 0%, transparent 60%);
    top: -25%;
    left: -25%;
    z-index: -1;
    filter: blur(60px);
}

.contato-card {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-card-border-dark);
    border-radius: 24px;
    padding: 4.5rem 3rem;
    text-align: center;
    color: var(--color-text-light-primary);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.4);
}

.contato-card .btn-outline {
    color: var(--color-text-light-primary);
    border-color: var(--color-text-light-primary);
}

.contato-card .btn-outline:hover {
    background-color: var(--color-text-light-primary);
    color: var(--color-bg-dark);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-brand-glow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background-color: rgba(var(--color-brand-rgb), 0.1);
    padding: 0.3rem 1.15rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.contato-card h2 {
    font-size: 2.75rem;
    color: var(--color-text-light-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
}

.contato-card p {
    font-size: 1.125rem;
    color: var(--color-text-light-secondary);
    max-width: 580px;
    margin: 0 auto 2.75rem;
}

.contato-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contato-actions .btn {
    min-width: 240px;
    height: 56px; /* Strict height to match both buttons */
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.contato-actions .btn-whatsapp,
.contato-actions .btn-outline {
    background: linear-gradient(135deg, #ff0000 0%, #ffa65e 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.25);
}

.contato-actions .btn-whatsapp:hover,
.contato-actions .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.45);
    opacity: 0.95;
}

.contato-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light-secondary);
}

.contato-info .bullet {
    color: var(--color-brand-glow);
}

/* --------------------------------------------------
   13. Footer
   -------------------------------------------------- */
.main-footer {
    background-color: var(--color-bg-dark);
    border-top: 1px solid var(--color-card-border-dark);
    padding: 5rem 0 2rem;
    color: var(--color-text-light-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--color-text-light-secondary);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    max-width: 340px;
}

.footer-links h4, .footer-creds h4 {
    font-size: 0.95rem;
    color: var(--color-text-light-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-light-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-brand-glow);
    padding-left: 4px;
}

.footer-creds p {
    color: var(--color-text-light-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light-secondary);
    opacity: 0.8;
}

/* --------------------------------------------------
   14. Responsive Styles
   -------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-credentials {
        justify-content: center;
    }
    .solucoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .sobre-image-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 90px;
        background-color: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .main-header .logo-img {
        height: 48px !important;
        width: auto !important;
        max-width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: rgba(9, 9, 11, 0.98);
        padding: 3rem 1.5rem;
        transition: var(--transition-smooth);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        z-index: 99;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .hero-section {
        padding-top: 140px;
        padding-bottom: 60px;
    }
    
    .footer-brand .logo-img {
        max-width: 200px;
        height: auto !important;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .solucoes-grid {
        grid-template-columns: 1fr;
    }
    
    .processo-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .processo-steps::after {
        display: none;
    }
    
    .contato-card {
        padding: 4rem 1.5rem;
    }
    
    .contato-card h2 {
        font-size: 2.25rem;
    }
    
    .contato-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .contato-actions .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
