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


:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --error-color: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Modern Black Background with Top Glow */
.minimalist-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(120, 180, 255, 0.25), transparent 70%), #000000;
}


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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    /* Estilo WhatsApp Chatbots: Alto peso visual con Neue Montreal */
    font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.0;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Neue Montreal', 'Inter', sans-serif;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
    filter: contrast(1.2) brightness(1.1);
}

.section-title {
    /* MODIFIED: Using clamp for fluid and consistent font size with h2 */
    font-size: clamp(3rem, 2rem + 5vw, 6rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Glass Effect */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modern Header with Enhanced Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 24px 24px;
    margin: 0 1rem;
    width: calc(100% - 2rem);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 rgba(255, 255, 255, 0.05) inset;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: 0 0 24px 24px;
    pointer-events: none;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    padding: 8px;
}

.nav-brand .logo:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-menu {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
    background: transparent;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(120, 180, 255, 0.1) 0%, 
        rgba(102, 126, 234, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(120, 180, 255, 0.8) 0%, 
        rgba(102, 126, 234, 0.8) 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a:hover::after {
    width: 80%;
}

/* Modern CTA Button */
.nav-cta .btn-primary {
    background: linear-gradient(135deg, 
        rgba(120, 180, 255, 0.2) 0%, 
        rgba(102, 126, 234, 0.3) 100%);
    border: 1px solid rgba(120, 180, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    box-shadow: 
        0 4px 16px rgba(120, 180, 255, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-cta .btn-primary:hover {
    background: linear-gradient(135deg, 
        rgba(120, 180, 255, 0.3) 0%, 
        rgba(102, 126, 234, 0.4) 100%);
    border-color: rgba(120, 180, 255, 0.5);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(120, 180, 255, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

/* Modern Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-toggle.active {
    background: rgba(120, 180, 255, 0.1);
    border-color: rgba(120, 180, 255, 0.3);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: rgba(120, 180, 255, 0.9);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: rgba(120, 180, 255, 0.9);
}

/* Hero Section - Centered Design */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
    position: relative;
    overflow: hidden;
}

.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-profile-centered {
    margin-bottom: 2rem;
    position: relative;
}

.profile-image-centered {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0;
    border: 3px solid var(--glass-border);
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-image-centered img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.verified-badge-centered {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--glass-bg);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.verified-badge-centered i {
    color: var(--success-color);
    font-size: 0.85rem;
}

.hero-text-centered {
    margin-bottom: 3rem;
}

.hero-title-centered {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-title-centered .highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

/* Tech Icons Carousel */
.tech-carousel-container {
    width: 100%;
    overflow: hidden;
    margin-top: 3rem;
    position: relative;
}

.tech-carousel {
    width: 100%;
    overflow: hidden;
}

.tech-carousel-track {
    display: flex;
    animation: infinite-scroll 30s linear infinite;
    gap: 3rem;
    align-items: center;
}

.tech-icon-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tech-icon-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.tech-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.tech-icon-item:hover .tech-icon {
    filter: brightness(1.1);
}

@keyframes infinite-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.tech-carousel-container:hover .tech-carousel-track {
    animation-play-state: paused;
}


/* Services Section */
.services {
    padding: 8rem 0;
    position: relative;
}

.services-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* WhatsApp Featured Section */
.whatsapp-featured {
    margin-top: 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.whatsapp-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 211, 102, 0.1) 0%, 
        rgba(37, 211, 102, 0.05) 100%);
    pointer-events: none;
}

.whatsapp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.whatsapp-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.whatsapp-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.whatsapp-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon i {
    font-size: 2.5rem;
    color: white;
}

.whatsapp-title-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.whatsapp-title-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.feature-item i {
    color: #25D366;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.feature-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.whatsapp-cta {
    margin-top: 1rem;
}

.whatsapp-capture {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-capture:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.whatsapp-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}


/* Portfolio Section */
.portfolio {
    padding: 8rem 0;
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.private-project-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.visit-website-tag {
    display: inline-block;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.visit-website-tag:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

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

.portfolio-metrics {
    display: flex;
    gap: 1.5rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.portfolio-link {
    margin-top: 1.5rem;
    text-align: center;
}

.portfolio-link .btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: inline-block;
}

.portfolio-link .btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* About Section */
.about {
    padding: 8rem 0;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.skill-tag {
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.about-image {
    position: relative;
}

.image-container {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* Inspirational Quote Section */
.inspirational-quote {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.quote-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.wave {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: waveFloat 8s ease-in-out infinite;
}

.wave-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(120, 180, 255, 0.6) 0%, rgba(120, 180, 255, 0.3) 50%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.wave-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.5) 0%, rgba(138, 43, 226, 0.2) 50%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: -3s;
    animation-duration: 10s;
}

.wave-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.4) 0%, rgba(255, 20, 147, 0.2) 50%, transparent 70%);
    bottom: 20%;
    left: 30%;
    animation-delay: -6s;
    animation-duration: 14s;
}

.wave-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.5) 0%, rgba(0, 255, 255, 0.2) 50%, transparent 70%);
    top: 40%;
    left: 60%;
    animation-delay: -9s;
    animation-duration: 11s;
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) translateX(-15px) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translateY(20px) translateX(25px) scale(1.05);
        opacity: 0.9;
    }
}

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

.main-quote {
    margin: 0 0 2rem 0;
    position: relative;
}

.quote-text {
    font-family: 'Neue Montreal', 'Inter', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
    display: block;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Nebula Effect Behind Text */
.quote-text::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(120, 180, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(138, 43, 226, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255, 20, 147, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 90% 40% at 10% 80%, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 20px;
    filter: blur(40px);
    z-index: -1;
    animation: nebulaFloat 12s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes nebulaFloat {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(0.95) rotate(-1deg);
        opacity: 0.6;
    }
    75% {
        transform: scale(1.02) rotate(0.5deg);
        opacity: 0.9;
    }
}

/* Quote Marks Styling */
.quote-mark {
    font-family: 'Neue Montreal', 'Inter', sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    color: var(--primary-color);
    opacity: 0.8;
    position: relative;
    display: inline-block;
    animation: quoteMarkGlow 3s ease-in-out infinite alternate;
}

.quote-mark-start {
    margin-right: 0.3em;
    transform: translateX(-0.2em);
}

.quote-mark-end {
    margin-left: 0.3em;
    transform: translateX(0.2em);
}

@keyframes quoteMarkGlow {
    0% {
        opacity: 0.6;
        text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
}

.quote-author-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
}

.quote-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.quote-author-image:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.quote-author {
    font-family: 'Neue Montreal', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-style: normal;
    opacity: 0.9;
    position: relative;
    margin: 0;
}

.quote-author::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    transform: translateY(-50%);
}

.quote-author::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    transform: translateY(-50%);
}

/* Privacy Policy Page */
.privacy-policy {
    padding: 8rem 0 6rem 0;
    position: relative;
}

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

.privacy-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-date {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.effective-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-intro {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.privacy-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    pointer-events: none;
}

.privacy-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    z-index: 2;
}

.privacy-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.privacy-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.privacy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.section-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    opacity: 0.3;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
}

.section-content {
    position: relative;
    z-index: 2;
}

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

.section-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.info-types {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-type {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-type:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.info-type-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-type-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-type p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.usage-list,
.sharing-list,
.rights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-list li,
.sharing-list li,
.rights-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.usage-list li:last-child,
.sharing-list li:last-child,
.rights-list li:last-child {
    border-bottom: none;
}

.usage-list li i,
.sharing-list li i,
.rights-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.usage-list li span,
.sharing-list li span,
.rights-list li span {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Video Testimonials Section */
.testimonials {
    padding: 8rem 0;
    position: relative;
}

.video-testimonials-carousel {
    margin-top: 4rem;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    margin: -2rem 0;
}

.carousel {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slide {
    flex-shrink: 0;
    width: 33.333%; /* Default for desktop - 3 slides per view */
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.video-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    cursor: pointer;
    overflow: hidden;
    border: 4px solid transparent;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-container:hover:not(.is-active) {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.video-container.is-active {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    border-color: var(--primary-color);
    z-index: 10;
}

.carousel.is-active .video-container:not(.is-active) {
    filter: saturate(0.5) opacity(0.6);
    transform: scale(0.95);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-caption {
    text-align: center;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.client-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.carousel-navigation {
    display: none;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
}

.carousel-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 48px;
    min-height: 48px;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-instructions {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

/* Contact Section - Compact Modern Design */
.contact {
    padding: 6rem 0;
    position: relative;
}

.contact-content-compact {
    max-width: 600px;
    margin: 0 auto;
}

.contact-main-card {
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.contact-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
    border-radius: 24px;
    pointer-events: none;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.contact-avatar {
    position: relative;
    flex-shrink: 0;
}

.contact-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #25D366;
    border: 3px solid #000;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info .location {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.method-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.method-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.method-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.method-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.method-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.contact-method:hover .method-arrow {
    transform: translateX(4px);
}

/* WhatsApp Slide to Chat */
.whatsapp-slide-container {
    padding: 0;
    background: transparent;
    border: none;
}

.slide-to-chat {
    position: relative;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    height: 70px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slide-track {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.slide-thumb {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    position: absolute;
    left: 8px;
    top: 8px;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 10;
    animation: thumbPulse 2s infinite ease-in-out, thumbGlow 3s infinite ease-in-out;
}

/* Pulse animation for the thumb */
@keyframes thumbPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 12px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 6px 20px rgba(37, 211, 102, 0.6),
            0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* Glow animation for the thumb */
@keyframes thumbGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(37, 211, 102, 0.5));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(37, 211, 102, 0.8));
    }
}

.slide-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.slide-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    pointer-events: none;
    z-index: 5;
    animation: textPulse 4s infinite ease-in-out;
}

/* Text pulse animation */
@keyframes textPulse {
    0%, 100% {
        opacity: 0.9;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    }
}

.slide-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    pointer-events: none;
    animation: indicatorBounce 2.5s infinite ease-in-out;
}

/* Indicator bounce animation */
@keyframes indicatorBounce {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(3px);
    }
}

.slide-to-chat.completed .slide-thumb {
    left: calc(100% - 62px);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: white;
    animation: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(37, 211, 102, 0.8));
}

.slide-to-chat.completed .slide-text {
    opacity: 0;
    animation: none;
}

.slide-to-chat.completed .slide-indicator {
    opacity: 0;
    animation: none;
}

/* Social Links Compact */
.contact-social-compact {
    position: relative;
    z-index: 2;
}

.contact-social-compact h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.social-links-compact {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.social-link-compact:hover {
    transform: translateY(-2px);
}

.x-link:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.x-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.x-link:hover .x-icon {
    transform: scale(1.1);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
    border-color: rgba(0, 119, 181, 0.5);
    color: var(--text-primary);
}

.social-link-compact i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
}

.footer-brand .logo:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
}

.footer-bottom i {
    color: var(--error-color);
    margin: 0 0.25rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .hero-title-centered {
        font-size: 3.2rem;
    }
    
    /* ELIMINADO: La regla de font-size ya no es necesaria gracias a clamp() */
}

@media (max-width: 1024px) {
    .hero-title-centered {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content-compact {
        padding: 0 1rem;
    }
    
    .contact-main-card {
        padding: 2rem;
    }
    
    .contact-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .contact-methods {
        gap: 0.75rem;
    }
    
    .contact-method {
        padding: 0.875rem 1.25rem;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .slide-to-chat {
        height: 65px;
    }
    
    .slide-thumb {
        width: 49px;
        height: 49px;
        font-size: 1.2rem;
        top: 8px;
        left: 8px;
        animation: thumbPulse 2s infinite ease-in-out, thumbGlow 3s infinite ease-in-out;
    }
    
    .slide-text {
        font-size: 0.9rem;
        animation: textPulse 4s infinite ease-in-out;
    }
    
    .slide-indicator {
        right: 15px;
        font-size: 0.8rem;
        animation: indicatorBounce 2.5s infinite ease-in-out;
    }
    
    .social-links-compact {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-link-compact {
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Video testimonials for tablet */
    .testimonial-slide {
        width: 50%;
    }
    
    /* Inspirational quote tablet adjustments */
    .wave-1 {
        width: 300px;
        height: 300px;
    }
    
    .wave-2 {
        width: 280px;
        height: 280px;
    }
    
    .wave-3 {
        width: 250px;
        height: 250px;
    }
    
    .wave-4 {
        width: 200px;
        height: 200px;
    }
}

@media (min-width: 1025px) {
    /* Video testimonials for desktop */
    .carousel-navigation {
        display: flex;
    }
    
    .testimonial-slide {
        width: 33.333%;
    }
    
    /* Larger H2 only for desktop */
    h2 {
        font-size: clamp(5rem, 4rem + 7vw, 10rem);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }
    
    .portfolio-link .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: calc(100% - 2rem);
        margin: 0 1rem;
        background: #1a1a1a;
        padding: 2rem;
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.6),
            0 1px 0 rgba(255, 255, 255, 0.1) inset;
    }
    
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.05) 0%, 
            rgba(255, 255, 255, 0.02) 100%);
        border-radius: 20px;
        pointer-events: none;
    }
    
    .nav-menu.active {
        left: 0;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
        position: relative;
        z-index: 2;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        margin: 0.25rem 0;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(120, 180, 255, 0.1);
        border-color: rgba(120, 180, 255, 0.3);
        transform: translateY(-2px);
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        padding-top: 130px;
    }
    
    .hero-title-centered {
        font-size: 2.5rem;
    }
    
    /* ELIMINADO: La regla de font-size ya no es necesaria gracias a clamp() */
    
    .profile-image-centered {
        width: 150px;
        height: 150px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-carousel-track {
        gap: 2rem;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        width: 180px;
        height: 180px;
    }
    
    .carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    
    .carousel::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-track {
        transition: none;
        padding: 0 15%;
    }
    
    .testimonial-slide {
        flex: 0 0 70%;
        scroll-snap-align: center;
    }
    
    .carousel-instructions {
        margin-top: 1.5rem;
    }
    
    /* Inspirational quote mobile adjustments */
    .inspirational-quote {
        padding: 6rem 0;
    }
    
    .wave-1 {
        width: 250px;
        height: 250px;
    }
    
    .wave-2 {
        width: 200px;
        height: 200px;
    }
    
    .wave-3 {
        width: 180px;
        height: 180px;
    }
    
    .wave-4 {
        width: 150px;
        height: 150px;
    }
    
    .quote-text {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem);
        font-family: 'Neue Montreal', 'Inter', sans-serif;
    }
    
    .quote-author {
        font-size: 1rem;
        font-family: 'Neue Montreal', 'Inter', sans-serif;
    }
    
    .quote-author-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quote-author-image {
        width: 40px;
        height: 40px;
    }
    
    .quote-author::before,
    .quote-author::after {
        display: none;
    }
    
    /* Privacy Policy mobile adjustments */
    .privacy-policy {
        padding: 6rem 0 4rem 0;
    }
    
    .privacy-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .privacy-subtitle {
        font-size: 1.1rem;
    }
    
    .privacy-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-number {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }

    /* ELIMINADO: La regla de font-size ya no es necesaria. Se aplica al selector .section-title dentro de .privacy-section */
    /* .section-title { font-size: 2.5rem; } */
    
    .info-types {
        gap: 1rem;
    }
    
    .info-type {
        padding: 1rem;
    }
    
    .info-type-title {
        font-size: 1rem;
    }
    
    .privacy-intro {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Tablet specific improvements */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
}

@media (max-width: 480px) {
    .portfolio {
        padding: 6rem 0;
    }
    
    .portfolio-grid {
        gap: 1rem;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.25rem;
    }
    
    .portfolio-link .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 110px;
    }
    
    .hero-title-centered {
        font-size: 2rem;
    }
    
    /* ELIMINADO: La regla de font-size ya no es necesaria gracias a clamp() */
    
    .profile-image-centered {
        width: 140px;
        height: 140px;
    }
    
    .hero-description-centered {
        font-size: 1.1rem;
    }
    
    .tech-carousel-track {
        gap: 1.5rem;
        animation-duration: 25s;
    }
    
    .tech-icon {
        width: 30px;
        height: 30px;
    }
    
    .tech-icon-item {
        padding: 0.75rem;
        min-width: 60px;
    }
    
    .service-card,
    .portfolio-card,
    .testimonial-card,
    .contact-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Mobile specific improvements */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-menu a {
        padding: 12px 0;
        font-size: 1.1rem;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Contact section mobile improvements */
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card-modern {
        padding: 2rem;
    }
    
    .contact-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-whatsapp-modern,
    .btn-email-modern {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .social-links-modern {
        gap: 0.75rem;
    }
    
    .social-link-modern {
        padding: 1rem 0.75rem;
        min-width: 80px;
    }
    
    /* Center About title only on mobile */
    .about-text .section-title {
        text-align: center;
    }
    
    /* Center footer content on mobile */
    .footer-content {
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
}

/* Specific optimization for 384px × 824px devices */
@media (max-width: 384px) {
    .container {
        padding: 0 12px;
    }
    
    /* Header optimized for small screens */
    .header {
        padding: 1rem 0;
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .header .container {
        padding: 0 12px;
    }
    
    .nav-brand .logo {
        gap: 8px;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
    
    /* Hero section optimizado */
    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }
    
    .hero-title-centered {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .profile-image-centered {
        width: 120px;
        height: 120px;
        margin-bottom: 0.5rem;
    }
    
    .hero-description-centered {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 8px;
    }
    
    .verified-badge-centered {
        padding: 6px 12px;
        font-size: 0.7rem;
        bottom: -12px;
    }
    
    .btn-primary.btn-large {
        padding: 14px 24px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    /* Tech carousel optimizado */
    .tech-carousel-track {
        gap: 1.2rem;
        animation-duration: 20s;
    }
    
    .tech-icon-item {
        padding: 0.6rem;
        min-width: 50px;
    }
    
    .tech-icon {
        width: 28px;
        height: 28px;
    }
    
    /* Services section optimizado */
    .services {
        padding: 5rem 0;
    }
    
    .services-top-grid {
        gap: 1rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .service-features {
        margin-top: 1rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        padding-left: 1.2rem;
    }
    
    /* WhatsApp featured section optimizado */
    .whatsapp-featured {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .whatsapp-content {
        gap: 1.5rem;
    }
    
    .whatsapp-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .whatsapp-icon {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-icon i {
        font-size: 1.8rem;
    }
    
    .whatsapp-title-section h3 {
        font-size: 1.3rem;
    }
    
    .whatsapp-title-section p {
        font-size: 0.9rem;
    }
    
    .whatsapp-features {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .feature-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .feature-item i {
        font-size: 1rem;
        width: 16px;
    }
    
    /* Portfolio section optimizado */
    .portfolio {
        padding: 5rem 0;
    }
    
    .portfolio-grid {
        gap: 1rem;
    }
    
    .portfolio-content {
        padding: 1.2rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .portfolio-metrics {
        gap: 1rem;
    }
    
    .metric-value {
        font-size: 1.3rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    /* About section optimizado */
    .about {
        padding: 5rem 0;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-text .section-title {
        text-align: center;
        font-size: 2.5rem;
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .skills-grid {
        gap: 1.5rem;
    }
    
    .skill-category h4 {
        font-size: 1.1rem;
    }
    
    .skill-tags {
        gap: 0.5rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Contact section optimizado */
    .contact {
        padding: 5rem 0;
    }
    
    .contact-main-card {
        padding: 1.5rem;
    }
    
    .contact-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .online-status {
        width: 18px;
        height: 18px;
        bottom: 2px;
        right: 2px;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .contact-methods {
        gap: 0.8rem;
    }
    
    .contact-method {
        padding: 0.8rem 1rem;
    }
    
    .method-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .method-label {
        font-size: 0.8rem;
    }
    
    .method-value {
        font-size: 0.9rem;
    }
    
    /* WhatsApp slide optimizado */
    .slide-to-chat {
        height: 65px;
    }
    
    .slide-thumb {
        width: 49px;
        height: 49px;
        font-size: 1.1rem;
    }
    
    .slide-text {
        font-size: 0.85rem;
    }
    
    .slide-indicator {
        right: 15px;
        font-size: 0.75rem;
    }
    
    /* Social links optimizado */
    .social-links-compact {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .social-link-compact {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .social-link-compact i {
        font-size: 1.1rem;
    }
    
    /* Footer optimizado */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials optimizado */
    .testimonials {
        padding: 5rem 0;
    }
    
    .video-container {
        width: 160px;
        height: 160px;
    }
    
    .client-name {
        font-size: 1rem;
    }
    
    .client-company {
        font-size: 0.85rem;
    }
    
    
    /* Inspirational quote optimizado */
    .inspirational-quote {
        padding: 5rem 0;
    }
    
    .quote-text {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    
    .quote-author {
        font-size: 0.9rem;
    }
    
    .quote-author-image {
        width: 35px;
        height: 35px;
    }
    
    /* Section titles optimizados */
    .section-title {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Additional improvements for 384px devices */
    .nav-menu {
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .nav-menu ul {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    /* Improve horizontal scroll in testimonials */
    .carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .carousel::-webkit-scrollbar {
        display: none;
    }
    
    .testimonial-slide {
        scroll-snap-align: center;
        flex: 0 0 auto;
        touch-action: manipulation;
        pointer-events: auto;
    }
    
    /* Improve tactile experience */
    .carousel-track {
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        display: flex;
        gap: 1rem;
    }
    
    /* Ensure videos don't interfere with touch */
    .video-container {
        touch-action: manipulation;
        pointer-events: auto;
    }
    
    .video-container video {
        touch-action: manipulation;
        pointer-events: auto;
    }
    
    /* Optimize tech carousel for small screens */
    .tech-carousel-container {
        margin-top: 2rem;
    }
    
    .tech-carousel-track {
        animation-duration: 25s; /* Slower for better readability */
    }
    
    /* Improve text readability */
    .hero-description-centered,
    .about-description,
    .service-card p,
    .portfolio-content p {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Optimize buttons for touch */
    .btn-primary,
    .btn-secondary,
    .contact-method,
    .social-link-compact {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve contrast on small screens */
    .glass-effect {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
    
    /* Optimize WhatsApp slide for touch */
    .slide-thumb {
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .slide-to-chat {
        touch-action: pan-x;
    }
    
    /* Mejorar el espaciado en secciones */
    .services,
    .portfolio,
    .about,
    .contact,
    .testimonials,
    .inspirational-quote {
        scroll-margin-top: 80px; /* For smooth navigation */
    }
}

/* Extra small devices (less than 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding-top: 90px;
    }
    
    .hero-title-centered {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .profile-image-centered {
        width: 110px;
        height: 110px;
    }
    
    .hero-description-centered {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .btn-primary {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-primary.btn-large {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-width: 180px;
    }
    
    .service-card,
    .portfolio-card,
    .testimonial-card,
    .contact-card,
    .contact-form {
        padding: 1rem;
    }
    
    .tech-icon {
        width: 25px;
        height: 25px;
    }
    
    .tech-icon-item {
        padding: 0.5rem;
    }
    
    .verified-badge-centered {
        padding: 6px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .verified-badge-centered i {
        font-size: 0.75rem;
    }
    
    /* Center About title on extra small devices too */
    .about-text .section-title {
        text-align: center;
    }
    
    /* Center footer content on extra small devices too */
    .footer-content {
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    /* Contact section extra small improvements */
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .contact-card-modern {
        padding: 1.5rem;
    }
    
    .contact-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .contact-card-modern h3 {
        font-size: 1.25rem;
    }
    
    .contact-card-modern p {
        font-size: 0.9rem;
    }
    
    .btn-whatsapp-modern,
    .btn-email-modern {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .social-links-modern {
        gap: 0.5rem;
    }
    
    .social-link-modern {
        padding: 0.75rem 0.5rem;
        min-width: 70px;
    }
    
    .social-link-modern i {
        font-size: 1.25rem;
    }
    
    .social-link-modern span {
        font-size: 0.8rem;
    }
    
    /* Contact section mobile improvements */
    .contact-main-card {
        padding: 1.2rem;
    }
    
    .contact-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .online-status {
        width: 16px;
        height: 16px;
        bottom: 1px;
        right: 1px;
    }
    
    .contact-info h3 {
        font-size: 1.25rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .contact-method {
        padding: 0.75rem 1rem;
    }
    
    .method-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .method-value {
        font-size: 0.9rem;
    }
    
    .slide-to-chat {
        height: 60px;
    }
    
    .slide-thumb {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        top: 8px;
        left: 8px;
        animation: thumbPulse 2s infinite ease-in-out, thumbGlow 3s infinite ease-in-out;
    }
    
    .slide-text {
        font-size: 0.8rem;
        animation: textPulse 4s infinite ease-in-out;
    }
    
    .slide-indicator {
        right: 12px;
        font-size: 0.7rem;
        animation: indicatorBounce 2.5s infinite ease-in-out;
    }
    
    .social-link-compact {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .social-link-compact i {
        font-size: 1.1rem;
    }
}

/* Reduced Motion Support */
@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;
    }
    
    .tech-carousel-track {
        animation: none !important;
    }
    
    .wave {
        animation: none !important;
    }
    
    .quote-text::before {
        animation: none !important;
    }
    
    .quote-mark {
        animation: none !important;
    }
    
    .slide-thumb {
        animation: none !important;
    }
    
    .slide-text {
        animation: none !important;
    }
    
    .slide-indicator {
        animation: none !important;
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.fade-in-scale {
    animation: fadeInScale 0.8s ease-out forwards;
}

/* Initial state for scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-scale.animate {
    opacity: 1;
    transform: scale(1);
}


/* Enhanced 3D Tilt Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(10deg) translateZ(20px);
}

.testimonial-card {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.testimonial-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Card 3D Effect */
.contact-card {
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px) rotateX(3deg) rotateY(3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Services Section Responsive Styles */
@media (max-width: 1024px) {
    .services-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .whatsapp-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .whatsapp-header {
        justify-content: center;
    }
    
    .whatsapp-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .services-top-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .whatsapp-featured {
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .whatsapp-content {
        gap: 1.5rem;
    }
    
    .whatsapp-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .whatsapp-icon {
        width: 70px;
        height: 70px;
    }
    
    .whatsapp-icon i {
        font-size: 2rem;
    }
    
    .whatsapp-title-section h3 {
        font-size: 1.5rem;
    }
    
    .whatsapp-title-section p {
        font-size: 1rem;
    }
    
    .whatsapp-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.5rem;
        justify-content: center;
    }
    
    .whatsapp-capture {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 6rem 0;
    }
    
    .services-top-grid {
        gap: 1rem;
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .whatsapp-featured {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .whatsapp-icon {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-icon i {
        font-size: 1.5rem;
    }
    
    .whatsapp-title-section h3 {
        font-size: 1.25rem;
    }
    
    .whatsapp-title-section p {
        font-size: 0.9rem;
    }
    
    .feature-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .feature-item i {
        font-size: 1rem;
        width: 16px;
    }
    
    .whatsapp-screenshot {
        border-radius: 15px;
    }
    
    .whatsapp-capture {
        border-radius: 15px;
    }
    
    .capture-overlay {
        border-radius: 15px;
    }
}