/* ===================================
   FOTOGRAFIA PARA PRODUTOS - v2.1
   Atualizado: 08/12/2024 - Performance Optimized
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-secondary: #7c3aed;
    --color-accent: #f59e0b;
    --color-gray-dark: #1e293b;
    --color-gray-medium: #475569;
    --color-gray-light: #f8fafc;
    --color-gray-border: #e2e8f0;
    --color-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-gradient-2: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --color-gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-color: 0 10px 40px rgba(37, 99, 235, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-medium);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    contain: layout style paint;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-black);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 600;
    color: var(--color-black);
}

/* ===================================
   LAYOUT
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-gradient-2);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.btn-secondary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    color: var(--color-black);
}

.logo-text {
    font-size: 24px;
    line-height: 1;
}

.logo-subtext {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--color-gray-medium);
}

.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-gray-medium);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-black);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-header {
    padding: 10px 24px;
    font-size: 14px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    margin-top: 80px;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../fotos/hero/fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(37, 99, 235, 0.4) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin-bottom: 32px;
    line-height: 1.2;
    color: var(--color-white);
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero .btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   TRUTH SECTION
   =================================== */
.truth-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #ddd6fe 100%);
    position: relative;
    overflow: hidden;
}

.truth-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
}

.truth-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        will-change: transform;
    }
    50% {
        transform: translate3d(30px, -30px, 0) scale(1.05);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title {
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e293b 0%, #4c1d95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-gray-medium);
    max-width: 700px;
    margin: 0 auto;
}

.truth-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.truth-text {
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 28px;
    color: #334155;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.truth-text:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

.truth-text strong {
    color: #7c3aed;
    font-weight: 700;
    position: relative;
}

.truth-text.highlight {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 40px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-left: 4px solid #7c3aed;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

/* ===================================
   THESIS SECTION
   =================================== */
.thesis-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.thesis-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.thesis-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale3d(1, 1, 1);
        opacity: 1;
        will-change: transform, opacity;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
        opacity: 0.8;
    }
}

.thesis-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.thesis-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: 50px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.thesis-text {
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.thesis-text strong {
    color: #60a5fa;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    padding: 40px 32px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gradient-2);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.service-title {
    font-size: 20px;
    margin-bottom: 16px;
}

.service-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-medium);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    color: var(--color-black);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 12px;
}

/* ===================================
   PORTFOLIO PREVIEW
   =================================== */
.portfolio-preview {
    padding: 100px 0;
    background-color: var(--color-gray-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    padding: 40px 32px;
    background-color: var(--color-gray-light);
    border-radius: 8px;
    border-left: 4px solid var(--color-black);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--color-gray-medium);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-size: 16px;
    color: var(--color-black);
}

.testimonial-author span {
    font-size: 14px;
    color: var(--color-gray-medium);
}

/* ===================================
   FINAL CTA
   =================================== */
.final-cta {
    padding: 100px 0;
    background: var(--color-gradient-1);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: 24px;
    line-height: 1.3;
}

.cta-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--color-white);
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    flex-shrink: 0;
}

.footer-contact a:hover {
    color: var(--color-white);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        padding: 40px 20px;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 24px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-header {
        display: none;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 40px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 60px 0;
    }

    .truth-section,
    .thesis-section,
    .services-section,
    .portfolio-preview,
    .testimonials-section,
    .final-cta {
        padding: 60px 0;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }

    .truth-text {
        font-size: 18px;
    }

    .thesis-text {
        font-size: 18px;
    }
}
