/* ============================================
   LPS IÇAMENTOS LANDING PAGE - OTIMIZADO
   Brand Identity: Dark Blue (#1e3a8a) + Light Blue (#3b82f6) + White (#ffffff)
   Versão otimizada para máxima performance e responsividade
   ============================================ */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0f172a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
    /* Colors */
    --color-primary: #220ea3;
    --color-primary-dark: #1a0b82;
    --color-primary-light: #220ea3;
    --color-background: #0f172a;
    --color-background-alt: #1e293b;
    --color-background-card: #334155;
    --color-white: #ffffff;
    --color-text-light: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-border: #475569;
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Barlow', sans-serif;

    /* Spacing - Responsivo */
    --spacing-xs: clamp(0.25rem, 1vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 2vw, 1rem);
    --spacing-md: clamp(1rem, 3vw, 2rem);
    --spacing-lg: clamp(2rem, 5vw, 4rem);
    --spacing-xl: clamp(3rem, 7vw, 6rem);
    --spacing-2xl: clamp(4rem, 10vw, 8rem);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(30, 58, 138, 0.4);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: clamp(1rem, 4vw, 2rem);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
    word-wrap: normal;
    hyphens: none;
}

h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    word-wrap: normal;
    hyphens: none;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--color-primary);
}

.title-accent {
    color: var(--color-primary-light);
    position: relative;
}

.highlight {
    color: var(--color-primary-light);
    font-style: italic;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

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

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin: var(--spacing-sm) auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 1rem);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: clamp(140px, 30vw, 160px);
    text-align: center;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--color-white);
}

.btn-outline {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 2px solid #60a5fa;
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: #60a5fa;
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: clamp(1rem, 3vw, 1.2rem) clamp(2rem, 5vw, 2.5rem);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    min-width: clamp(180px, 40vw, 200px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(34, 14, 163, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34, 14, 163, 0.3);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navigation.nav-scrolled {
    background: rgba(34, 14, 163, 0.8) !important;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
    min-height: 70px;
}

.nav-logo .logo-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    color: var(--color-white);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-white), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo img {
    height: clamp(40px, 8vw, 50px);
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 4vw, 4rem);
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: #ffffff;
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    padding: 0.5rem 0;
    position: relative;
    transition: none;
    white-space: nowrap;
}

.nav-link::before {
    display: none;
}

.nav-link::after {
    display: none;
}

.nav-link:hover::before {
    display: none;
}

.nav-link:hover::after,
.nav-link.active::after {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    text-shadow: none;
    transform: none;
}

.nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.menu-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-normal);
    border-radius: 2px;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-background);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu.show,
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: calc(80px + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mobile-nav-list {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.mobile-nav-list li {
    margin-bottom: var(--spacing-md);
}

.mobile-nav-link {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.5rem, 6vw, 2rem);
    color: var(--color-white);
    font-weight: 700;
    transition: var(--transition-normal);
    display: block;
    padding: var(--spacing-sm);
}

.mobile-nav-link:hover {
    color: #ffffff;
}

.mobile-contact {
    margin-top: var(--spacing-lg);
}

.mobile-social {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.mobile-social a {
    width: clamp(45px, 10vw, 50px);
    height: clamp(45px, 10vw, 50px);
    background: var(--color-background-card);
    border-radius: 50%;
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 3vw, 1.2rem);
    transition: var(--transition-normal);
}

.mobile-social a:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)),
        url('../img/iça3.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: calc(80px + var(--spacing-md)) 0 var(--spacing-lg) 0;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70vh;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-text {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2rem, 7vw, 5rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.8s;
}

.title-line:nth-child(2) {
    animation-delay: 1s;
}

.title-line:nth-child(3) {
    animation-delay: 1.2s;
}

.title-line:nth-child(4) {
    animation-delay: 1.4s;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.6s forwards;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInRight 1s ease-out 0.8s forwards;
}

.hero-avatar {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.avatar-container {
    position: relative;
    width: clamp(200px, 40vw, 280px);
    height: clamp(200px, 40vw, 280px);
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    font-size: clamp(2rem, 6vw, 3rem);
    overflow: hidden;
}

.logo-image {
    object-fit: cover;
    background: none;
}

.avatar-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-lg);
    opacity: 0.4;
    animation: rotate 15s linear infinite;
}

.avatar-glow {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
    border-radius: var(--radius-lg);
    animation: pulse 4s ease-in-out infinite;
}

.hero-achievement {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.2s forwards;
}

.achievement-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 700;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   SISTEMA DE MICRO-PARTÍCULAS OTIMIZADO
   ============================================ */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.6;
}

.micro-particle {
    position: fixed;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
    font-weight: bold;
    text-shadow: 0 0 4px currentColor;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 1;
}

/* ============================================
   HIGHLIGHTS SECTION
   ============================================ */

.highlights-section {
    padding: var(--spacing-2xl) 0;
    background: #0f172a;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.highlight-card {
    background: var(--color-background-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    position: relative;
    height: 100%;
    min-height: 280px;
}

.highlight-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    z-index: 10;
}

.highlight-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-card) 100%);
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    will-change: transform;
}

.highlight-image img:hover {
    transform: scale(1.02);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: var(--spacing-2xl) 0;
    background: #0f172a;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.about-story {
    margin-bottom: var(--spacing-lg);
}

.about-story p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-values h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1.75rem, 4vw, 2.2rem);
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.about-values h3::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin: var(--spacing-sm) auto;
    border-radius: 2px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-item {
    background: rgba(51, 65, 85, 0.4);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    z-index: -1;
}

.value-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary-light);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.3);
    background: rgba(51, 65, 85, 0.6);
}

.value-icon {
    width: clamp(45px, 10vw, 50px);
    height: clamp(45px, 10vw, 50px);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm) auto;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
    transition: all var(--transition-normal);
}

.value-item:hover .value-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.value-icon i {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--color-white);
}

.value-item h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
}

.value-item p {
    color: var(--color-text-light);
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    margin: 0;
    line-height: 1.5;
}

.timeline-highlights {
    background: var(--color-background-card);
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    height: clamp(400px, 50vh, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-section {
    padding: var(--spacing-2xl) 0;
    background: #0f172a;
    text-align: center;
}

.process-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.8;
    text-align: center;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-hero {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-alt) 100%);
    text-align: center;
    position: relative;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
}

.portfolio-hero-content {
    position: relative;
    z-index: 1;
}

.portfolio-hero-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    font-weight: 700;
}

.portfolio-hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.portfolio-showcase {
    padding: var(--spacing-2xl) 0;
    background: var(--color-background);
}

.portfolio-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    grid-auto-rows: auto;
    position: relative;
}

.portfolio-card {
    background: var(--color-background-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
    cursor: pointer;
}

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-card:nth-child(6) { animation-delay: 0.6s; }

.portfolio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(30, 58, 138, 0.2);
    border-color: var(--color-primary-light);
    z-index: 10;
}

.portfolio-card .portfolio-image {
    height: clamp(250px, 40vh, 300px);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-card) 100%);
    cursor: pointer;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.portfolio-card .portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: all var(--transition-slow);
    z-index: 1;
}

.portfolio-card .portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: all var(--transition-slow);
    z-index: 2;
}

.portfolio-card .portfolio-image:hover::before {
    opacity: 1;
}

.portfolio-card .portfolio-image:hover::after {
    opacity: 1;
}

.portfolio-card .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
    filter: brightness(1) contrast(1);
}

.portfolio-card .portfolio-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.image-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-white);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-slow);
    z-index: 3;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(30, 58, 138, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.portfolio-card .portfolio-image:hover .image-view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: btnPulse 2s ease-in-out infinite;
}

.image-view-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(30, 58, 138, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    animation: none;
}

.image-view-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: var(--shadow-lg), 0 0 20px rgba(30, 58, 138, 0.4);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 25px rgba(30, 58, 138, 0.6);
    }
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: var(--spacing-2xl) 0;
    background: #0f172a;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    font-weight: 700;
}

.cta-description {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-light);
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.benefit i {
    color: var(--color-primary-light);
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: clamp(1rem, 4vw, 2rem);
    right: clamp(1rem, 4vw, 2rem);
    z-index: 1000;
}

.whatsapp-btn {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border: 3px solid var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white) !important;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    text-decoration: none;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: all var(--transition-normal);
    animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: var(--color-white) !important;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    animation: none;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: var(--shadow-lg), var(--shadow-glow), 0 0 0 0 rgba(30, 58, 138, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: var(--shadow-lg), var(--shadow-glow), 0 0 0 8px rgba(30, 58, 138, 0);
        transform: scale(1.02);
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #0f172a;
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
}

.footer-tagline {
    color: var(--color-primary-light);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    margin: 0;
    margin-bottom: var(--spacing-sm);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.footer-social a {
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    background: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    transition: var(--transition-normal);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.footer-social a:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.footer-security {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: var(--color-text-muted);
}

.footer-security span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-security i {
    color: var(--color-primary-light);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* ============================================
   LAZY LOADING STYLES
   ============================================ */

.lazy-img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-img.loaded {
    opacity: 1;
}

.img-placeholder {
    background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .portfolio-masonry {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .particles-container {
        opacity: 0.4;
    }

    .micro-particle {
        opacity: 0.3 !important;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-benefits {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .portfolio-masonry {
        grid-template-columns: 1fr;
    }

    /* Mobile gallery image buttons */
    .portfolio-card .portfolio-image::after {
        opacity: 0.3;
    }

    .portfolio-card .portfolio-image .image-view-btn {
        opacity: 0.8;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .portfolio-card .portfolio-image:active .image-view-btn {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

@media (max-width: 480px) {
    .particles-container {
        opacity: 0.3;
    }

    .micro-particle {
        opacity: 0.2 !important;
        font-size: 3px !important;
    }

    .footer-security {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-contrast: high) {
    :root {
        --color-primary: #2563eb;
        --color-background: #000000;
        --color-white: #ffffff;
        --color-text-light: #ffffff;
        --color-border: #ffffff;
    }
}

@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;
    }

    .particles-container {
        display: none;
    }
}

/* Focus styles */
button:focus,
a:focus {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* High contrast mode */
@media (forced-colors: active) {
    .btn {
        border: 2px solid ButtonText;
    }
}

/* Print styles */
@media print {
    .particles-container,
    .whatsapp-float,
    .navigation {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}