/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --color-primary: #667eea;
    --color-primary-dark: #5a6fd8;
    --color-secondary: #764ba2;
    --color-accent: #ffeaa7;
    --color-accent-dark: #fab1a0;
    --color-success: #28a745;
    --color-warning: #feca57;
    --color-danger: #ff3040;
    --color-info: #48dbfb;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #333333;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    
    /* Text Colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-inverse: #ffffff;
    
    /* Border & Shadow */
    --border-color: #eeeeee;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 3rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility & Screen Reader Support */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: var(--text-inverse);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Focus Management */
:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.8);
        --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.8);
        --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.8);
    }
}

/* 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;
    }
}



/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    animation: spin 1s linear infinite;
}

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

/* Error Boundary */
.error-boundary {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    text-align: center;
    max-width: 400px;
    z-index: var(--z-modal);
}

.error-content i {
    font-size: 3rem;
    color: var(--color-danger);
    margin-bottom: var(--spacing-md);
}

/* Form Enhancements */
.error-message {
    color: var(--color-danger);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: none;
}

.error-message.show {
    display: block;
}

.help-text {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.form-group input:invalid {
    border-color: var(--color-danger);
}

.form-group input:valid {
    border-color: var(--color-success);
}

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

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

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

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: var(--z-fixed);
    position: relative;
}

.hamburger:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #333;
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffeaa7;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    margin: 0 auto;
    position: relative;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg); 
    }
}

.phone-bezel {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 35px;
    padding: 8px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 27px;
    overflow: hidden;
    position: relative;
}

.instagram-ui {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

/* Instagram Header */
.ig-header {
    background: #fff;
    color: #333;
    padding: 45px 15px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: relative;
}

.ig-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ig-nav i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.ig-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.ig-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.ig-actions i {
    font-size: 1.3rem;
    color: #333;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -5px;
    background: #ff3040;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Instagram Stories */
.ig-stories {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.story-item span {
    font-size: 0.7rem;
    color: #333;
    text-align: center;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.story-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50%;
    z-index: -1;
    animation: storyPulse 3s ease-in-out infinite;
}

.story-item.active .story-avatar::before {
    background: #ddd;
    animation: none;
}

.story-2 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

.story-3 {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

@keyframes storyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Instagram Feed */
.ig-feed {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.ig-post {
    background: #fff;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInPost 0.8s ease-out forwards;
}

.ig-post.active {
    animation-delay: 0.5s;
}

.ig-post:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes slideInPost {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.post-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-pic.profile-2 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.location {
    font-size: 0.7rem;
    color: #8e8e8e;
}

.post-image {
    width: 100%;
    height: 200px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.post-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.post-1::after {
    content: '📈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.post-2 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    position: relative;
}

.post-2::after {
    content: '🚀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    animation: bounce 2s infinite 1s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -50%) translateY(0); }
    40% { transform: translate(-50%, -50%) translateY(-10px); }
    60% { transform: translate(-50%, -50%) translateY(-5px); }
}

.post-engagement {
    padding: 8px 15px;
}

.engagement-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    position: relative;
}

.engagement-actions i {
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.engagement-actions .liked {
    color: #ff3040;
    animation: heartBeat 1s ease-in-out;
}

.bookmark-right {
    margin-left: auto;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.like-number {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

.post-caption {
    font-size: 0.8rem;
    color: #333;
}

.caption-text {
    margin-left: 5px;
}

/* Growth Popup */
.growth-popup {
    position: absolute;
    top: 20%;
    right: -20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    animation: popupSlide 4s ease-in-out infinite;
    z-index: 20;
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.popup-content i {
    font-size: 0.8rem;
}

@keyframes popupSlide {
    0%, 70%, 100% { 
        opacity: 0; 
        transform: translateX(50px) scale(0.8); 
    }
    10%, 60% { 
        opacity: 1; 
        transform: translateX(0) scale(1); 
    }
}

/* Enhanced Navigation */
.btn-nav-cta {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #333 !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 234, 167, 0.4);
    color: #333 !important;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge i {
    color: #ffeaa7;
}

/* CTA Pulse Animation */
.cta-pulse {
    animation: ctaPulse 2s infinite;
    position: relative;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 234, 167, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 234, 167, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 234, 167, 0);
    }
}

/* Enhanced Buttons */
.btn i {
    margin-right: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: #f8f9fa;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.client-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
}

.client-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    gap: 0.2rem;
}

.rating i {
    color: #ffd700;
    font-size: 0.9rem;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    font-size: 1rem;
}

.testimonial-card blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: serif;
}

.testimonial-metrics {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.metric {
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.2rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
}

/* Trust Indicators */
.trust-indicators {
    text-align: center;
    margin-top: 3rem;
}

.trust-indicators h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.certifications {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.cert-badge i {
    color: #667eea;
    font-size: 1.2rem;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #667eea;
    color: white;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    background: #667eea;
    color: white;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.urgency-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    animation: urgencyPulse 2s infinite;
}

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

.form-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    width: 33.33%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideInForm 0.5s ease;
}

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

.form-step h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #ffeaa7;
    border-color: #ffeaa7;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.success-step {
    text-align: center;
    color: white;
}

.success-content i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.success-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.next-steps {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: left;
}

.next-steps h4 {
    color: white;
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.guarantee {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.guarantee i {
    color: #28a745;
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    animation: chatBounce 2s infinite;
}

@keyframes chatBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3040;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideInChat 0.3s ease;
}

@keyframes slideInChat {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-info h4 {
    font-size: 0.9rem;
    margin: 0;
}

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

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

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

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
}

.agent-message .message-content {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 80%;
}

.user-message .message-content {
    background: #667eea;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 80%;
    margin-left: auto;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
    text-align: left;
}

.user-message .message-time {
    text-align: right;
}

.quick-responses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-response {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-response:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.chat-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    outline: none;
}

.chat-input input:focus {
    border-color: #667eea;
}

.chat-input button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInCookie 0.5s ease;
}

@keyframes slideInCookie {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie.accept {
    background: #28a745;
    color: white;
}

.btn-cookie.accept:hover {
    background: #218838;
}

.btn-cookie.decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie.decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #f8f9fa;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

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

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.feature i {
    color: #28a745;
    font-size: 1.2rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: #f8f9fa;
}

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

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-overlay {
    text-align: center;
    color: white;
}

.portfolio-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: #666;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: #ffeaa7;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffeaa7;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Touch Feedback */
.touch-active {
    transform: scale(0.98) !important;
    opacity: 0.8 !important;
    transition: all 0.1s ease !important;
}

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-overlay);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-heavy);
        backdrop-filter: blur(15px);
        padding: 2rem 0;
        z-index: var(--z-dropdown);
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all var(--transition-normal);
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: var(--color-primary);
        color: var(--text-inverse);
        transform: translateY(-2px);
    }
    
    .btn-nav-cta {
        background: var(--color-primary) !important;
        color: var(--text-inverse) !important;
        margin-top: 1rem;
    }
    
    .btn-nav-cta:hover {
        background: var(--color-primary-dark) !important;
        transform: translateY(-2px) scale(1.05);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-badges {
        justify-content: center;
        gap: 1rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        animation-duration: 8s;
    }
    
    .growth-popup {
        right: -15px;
        font-size: 0.6rem;
    }
    
    .popup-content {
        font-size: 0.6rem;
    }
    
    .story-avatar {
        width: 40px;
        height: 40px;
    }
    
    .story-item {
        min-width: 50px;
    }
    
    .ig-stories {
        gap: 10px;
        padding: 8px 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-metrics {
        justify-content: center;
    }
    
    .certifications {
        gap: 1rem;
    }
    
    .cert-badge {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .chat-window {
        width: 95vw !important;
        height: 80vh !important;
        right: 2.5vw !important;
        bottom: 100px !important;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

.service-card,
.portfolio-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for iOS */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Success Notification Styles */
.success-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--color-success);
    color: var(--text-inverse);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    z-index: var(--z-tooltip);
    max-width: 350px;
    transform: translateX(400px);
    transition: transform var(--transition-normal);
}

.success-notification.show {
    transform: translateX(0);
}

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

.notification-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-inverse);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Cookie Consent */
.cookie-consent {
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-normal);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

/* Print Styles */
@media print {
    .navbar,
    .loading-overlay,
    .error-boundary,
    .success-notification,
    .cookie-consent,
    .chat-widget {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        background: none !important;
        color: #000 !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
    }
    
    .phone-mockup {
        display: none;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* High Performance CSS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile Adjustments for New Components */
@media (max-width: 768px) {
    .loading-overlay {
        padding: var(--spacing-md);
    }
    
    .error-boundary {
        margin: var(--spacing-md);
        padding: var(--spacing-lg);
    }
    
    .success-notification {
        left: var(--spacing-sm);
        right: var(--spacing-sm);
        top: 80px;
        max-width: none;
    }
    
    /* Mobile Form Optimizations */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        -webkit-appearance: none;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        transform: none; /* Remove transform on mobile to prevent layout shifts */
        box-shadow: 0 0 0 2px var(--color-primary);
    }
    
    /* Mobile Button Improvements */
    .btn {
        min-height: 48px; /* Touch target size */
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Mobile Chat Optimizations */
    .chat-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .chat-window {
        border-radius: 15px 15px 0 0;
    }
    
    /* Mobile Navigation Improvements */
    .nav-container {
        padding: 0 1rem;
        position: relative;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Mobile Typography */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Mobile Card Improvements */
    .service-card,
    .portfolio-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Mobile Safe Areas */
    .navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .hero,
    .contact,
    .footer {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* Final Mobile Optimizations */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .growth-popup {
        font-size: 0.55rem;
        padding: 6px 10px;
    }
}

/* Improved Hamburger Animation */
.hamburger {
    transform: translateZ(0); /* GPU acceleration */
}

.hamburger .bar {
    will-change: transform, opacity;
}

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

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

/* Prevent layout shifts */
.nav-menu {
    transform: translateZ(0); /* GPU acceleration */
}

/* iOS specific fixes */
@supports (-webkit-overflow-scrolling: touch) {
    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix iOS bounce scroll in menu */
    .nav-menu.active {
        position: fixed;
        overflow: hidden;
    }
}

/* Android specific fixes */
@media screen and (-webkit-device-pixel-ratio: 1) {
    .hamburger .bar {
        height: 2px; /* Thinner bars for low-DPI Android */
    }
}

/* Accessibility Enhancements */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid;
    }
    
    .hamburger .bar {
        background: ButtonText;
    }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hamburger .bar {
        height: 3px;
    }
    
    .nav-link::after {
        height: 3px;
    }
} 