/* Enhanced Portfolio CSS with Dark Theme Matching Home Page - UPDATED HEADER */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --charcoal-black: #121212;
    --off-white: #F5F5F5;
    --bullione-gold: #D4AF37;
    --emerald-green: #004D00;
    --terracotta: #A65E46;
    --primary-color: #D4AF37;
    --primary-dark: #B8941F;
    --secondary-color: #121212;
    --accent-gold: #D4AF37;
    --text-primary: #F5F5F5;
    --text-secondary: #B0B0B0;
    --bg-light: #1a1a1a;
    --bg-lighter: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #E6C158 100%);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-glow: rgba(212, 175, 55, 0.3);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--charcoal-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.3;
}

/* Enhanced Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--charcoal-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    position: relative;
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.loader-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ENHANCED HEADER - Matching Home Page */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(18, 18, 18, 0.98);
    box-shadow: var(--shadow-glow), 0 8px 32px rgba(0, 0, 0, 0.2);
    border-bottom-color: var(--primary-color);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

/* Enhanced Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s ease;
}

.brand-logo:hover::before {
    left: 100%;
}

.brand-logo:hover {
    color: var(--primary-color);
    transform: scale(1.05) translateY(-2px);
}

.brand-logo_icon {
    margin-right: 12px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--primary-color);
}

.brand-logo:hover .brand-logo_icon {
    transform: rotate(360deg) scale(1.1);
    color: var(--accent-gold);
}

/* Enhanced Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(212, 175, 55, 0.05);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Mobile Navigation */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1.2rem 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        width: 100%;
        color: var(--text-primary);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .nav-link:hover {
        background: rgba(212, 175, 55, 0.1);
        color: var(--primary-color);
        transform: translateX(10px);
    }
    
    .header-content .btn {
        display: none;
    }
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Buttons */
.btn {
    background: var(--gradient-primary);
    color: #121212;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #121212;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* WhatsApp Yellow Button Override */
.whatsapp-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%) !important;
    color: #121212 !important;
    border: none !important;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #B8941F 0%, #9C7A17 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3) !important;
}

/* Enhanced Portfolio Hero Section */
.portfolio-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--charcoal-black);
    padding: 8rem 0 4rem;
}

.portfolio-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.portfolio-hero .hero-bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(212, 175, 55, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(212, 175, 55, 0.15), transparent);
    background-size: 120px 120px;
    animation: particleFloat 20s linear infinite;
}

.portfolio-hero .hero-bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(18, 18, 18, 0.8) 0%,
        rgba(18, 18, 18, 0.4) 50%,
        rgba(212, 175, 55, 0.05) 100%
    );
}

.portfolio-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.portfolio-hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    animation: wordReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.portfolio-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.portfolio-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.portfolio-hero-stats .stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: statsReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.portfolio-hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.portfolio-hero-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.float-item {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    animation: floatUpDown 15s linear infinite;
    opacity: 0;
}

.float-item:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    width: 40px;
    height: 40px;
}

.float-item:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: -5s;
    border-color: rgba(212, 175, 55, 0.15);
}

.float-item:nth-child(3) {
    top: 40%;
    left: 15%;
    animation-delay: -10s;
    width: 30px;
    height: 30px;
}

.float-item:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: -7s;
    border-color: rgba(212, 175, 55, 0.25);
    width: 50px;
    height: 50px;
}

/* Section Animations */
.section-animate {
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Filters Section */
.portfolio-filters {
    padding: 4rem 0;
    background: var(--bg-lighter);
    position: relative;
}

.portfolio-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.filters-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.filters-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.filters-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-primary);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: #121212;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 25px;
    padding: 1rem 1.5rem 1rem 3rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(42, 42, 42, 1);
}

.search-container svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

/* Portfolio Grid Section */
.portfolio-grid {
    padding: 4rem 0;
    background: var(--bg-light);
    position: relative;
}

.portfolio-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.portfolio-item {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(42, 42, 42, 0.7) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    animation: cardReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-item[data-delay="100"] { animation-delay: 0.1s; }
.portfolio-item[data-delay="200"] { animation-delay: 0.2s; }
.portfolio-item[data-delay="300"] { animation-delay: 0.3s; }
.portfolio-item[data-delay="400"] { animation-delay: 0.4s; }
.portfolio-item[data-delay="500"] { animation-delay: 0.5s; }

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.3);
    border-color: var(--border-glow);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
}

.portfolio-action {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121212;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.portfolio-action:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-glow);
}

.portfolio-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-badge {
    background: var(--primary-color);
    color: #121212;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolio-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item svg {
    color: var(--primary-color);
}

.portfolio-roi {
    margin-top: 1rem;
}

.roi-badge {
    background: var(--gradient-primary);
    color: #121212;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.portfolio-load-more {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Investment Process Section */
.investment-process {
    padding: 6rem 0;
    background: var(--bg-lighter);
    position: relative;
}

.investment-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    z-index: 1;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

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

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.process-step {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(42, 42, 42, 0.7) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    animation: cardReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.process-step:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
    border-color: var(--border-glow);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.1);
    margin-bottom: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.step-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background: var(--bg-lighter);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(42, 42, 42, 0.7) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    animation: cardReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card[data-delay="100"] { animation-delay: 0.1s; }
.testimonial-card[data-delay="200"] { animation-delay: 0.3s; }
.testimonial-card[data-delay="300"] { animation-delay: 0.5s; }

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
    border-color: var(--border-glow);
}

.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text p {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

.testimonial-text p::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
    top: -1rem;
    opacity: 0.3;
    font-family: 'Plus Jakarta Sans', serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Newsletter Section */
.newsletter {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-header {
    margin-bottom: 3rem;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.newsletter-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    margin-bottom: 3rem;
}

.newsletter-input-container {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 60px;
    padding: 8px 8px 8px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.newsletter-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    background: rgba(42, 42, 42, 1);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.newsletter-btn {
    background: var(--gradient-primary);
    color: #121212;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.newsletter-privacy {
    margin-top: 1rem;
    text-align: center;
}

.newsletter-privacy p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.newsletter-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.newsletter-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-feature:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.feature-icon-small {
    width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
}

.newsletter-feature:hover .feature-icon-small {
    background: var(--primary-color);
    color: #121212;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.newsletter-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.newsletter-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    position: relative;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 40% 60%, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    z-index: 1;
}

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

.cta-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseWhatsApp 2s infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

.chat-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.5);
    animation: chatPulse 2s infinite;
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: #1a1a1a;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.chat-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: #121212;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(18, 18, 18, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: #121212;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background: rgba(18, 18, 18, 0.2);
}

.chat-messages {
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.quick-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-option {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-option:hover {
    background: var(--primary-color);
    color: #121212;
}

.chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: rgba(42, 42, 42, 0.8);
    color: var(--text-primary);
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.chat-send {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border: none;
    color: #121212;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send:hover {
    transform: scale(1.1);
}

.chat-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 0 0 20px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-lighter);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

/* Animation Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(-10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes floatUpDown {
    0% { 
        transform: translateY(100vh) rotate(0deg) scale(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
        transform: translateY(90vh) rotate(36deg) scale(1); 
    }
    90% { 
        opacity: 1; 
        transform: translateY(-10vh) rotate(324deg) scale(1); 
    }
    100% { 
        transform: translateY(-20vh) rotate(360deg) scale(0); 
        opacity: 0; 
    }
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotateX(45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

@keyframes wordReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
    }
    50% {
        opacity: 0.5;
        transform: translateY(25px) rotateX(45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes statsReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseWhatsApp {
    0% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(212, 175, 55, 0.8);
    }
    100% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    }
}

@keyframes chatPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-items {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        min-height: 60vh;
        padding: 6rem 0 3rem;
    }
    
    .portfolio-hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .portfolio-items {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .chat-popup {
        width: 300px;
        right: -50px;
    }
    
    .quick-options {
        grid-template-columns: 1fr;
    }
    
    .newsletter-features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero-title {
        font-size: 2.2rem;
    }
    
    .portfolio-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .filters-title {
        font-size: 1.8rem;
    }
    
    .portfolio-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text p::before {
        left: -1rem;
        top: -0.5rem;
        font-size: 3rem;
    }
    
    .process-step {
        padding: 2rem 1.5rem;
    }
    
    .chat-popup {
        width: 280px;
        right: -30px;
    }
}

/* Print Styles */
@media print {
    .portfolio-hero,
    .portfolio-filters,
    .portfolio-grid,
    .testimonials,
    .cta-section {
        background: white !important;
        color: black !important;
    }
    
    .portfolio-hero-title,
    .section-title,
    .cta-title {
        color: #D4AF37 !important;
        -webkit-text-fill-color: #D4AF37 !important;
    }
    
    .text-primary {
        color: black !important;
    }
    
    .text-secondary {
        color: #666 !important;
    }
    
    .portfolio-item,
    .testimonial-card {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .live-chat-widget {
        display: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .portfolio-hero .hero-bg-particles {
        animation: none;
    }
    
    .floating-elements {
        display: none;
    }
    
    .chat-toggle {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-light: #ffffff;
        --bg-lighter: #f8f8f8;
        --primary-color: #D4AF37;
        --accent-gold: #B8941F;
    }
    
    .portfolio-item,
    .testimonial-card {
        border: 2px solid var(--primary-color);
    }
}