/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */
:root {
    /* Corporate Blue Color Scheme */
    --color-primary: #1e40af;
    --color-primary-rgb: 30, 64, 175;
    --color-secondary: #3b82f6;
    --color-accent: #f59e0b;
    --color-text: #1f2937;
    --color-background: #ffffff;
    --color-surface: #f8fafc;
    --color-border: #e5e7eb;
    --color-muted: #6b7280;
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-accent: linear-gradient(135deg, var(--color-accent), #fbbf24);
    --gradient-surface: linear-gradient(135deg, var(--color-surface), rgba(255,255,255,0.8));
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    --section-padding: clamp(3rem, 8vw, 8rem);
    --element-gap: clamp(1rem, 3vw, 2rem);
    
    /* Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Animations */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Animation Curves */
    --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
    --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
    
    /* Layout */
    --grid-gap: 1rem;
    --navbar-height: 70px;
    --hero-min-height: 100vh;
    
    /* Performance */
    --will-change-transform: transform;
    --will-change-scroll: scroll-position;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-tooltip: 1070;
    --z-notification: 1080;
}

/* ========================================
   RESET AND BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Improve scroll performance */
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Optimize rendering */
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    /* Improve scroll performance */
    -webkit-overflow-scrolling: touch;
}

body.loading {
    overflow: hidden;
}

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

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Improve text selection */
::selection {
    background-color: var(--color-primary);
    color: white;
}

::-moz-selection {
    background-color: var(--color-primary);
    color: white;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Optimize rendering for frequently animated elements */
.animate-element {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize scrolling performance */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    will-change: scroll-position;
}

/* Use containment for better performance */
.isolated-component {
    contain: layout style paint;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');
    font-display: swap;
}

/* Optimize for different color schemes */
@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #f9fafb;
        --color-background: #111827;
        --color-surface: #1f2937;
        --color-border: #374151;
        --color-muted: #9ca3af;
    }
}

/* Optimize for high contrast */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-secondary: #333333;
        --color-text: #000000;
        --color-background: #ffffff;
        --color-border: #000000;
    }
}

/* Optimize for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* CSS Grid fallback for older browsers */
@supports not (display: grid) {
    .grid-container {
        display: flex;
        flex-wrap: wrap;
    }
    
    .grid-item {
        flex: 1 1 300px;
    }
}

/* Flexbox gap fallback */
@supports not (gap: 1rem) {
    .flex-gap > * + * {
        margin-left: 1rem;
    }
    
    .flex-gap-vertical > * + * {
        margin-top: 1rem;
    }
}

/* ========================================
   IMAGE OPTIMIZATION AND LAZY LOADING
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Optimize image loading */
    loading: lazy;
    decoding: async;
}

picture {
    display: block;
}

/* Optimize images for performance */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Optimize critical images */
img[loading="eager"] {
    opacity: 1;
}

/* Improve image quality on high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Container query support for responsive images */
@supports (container-type: inline-size) {
    .responsive-image-container {
        container-type: inline-size;
    }
    
    @container (min-width: 600px) {
        .responsive-image {
            width: 100%;
            height: auto;
        }
    }
}

/* Hero Image */
.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    margin-bottom: 2rem;
    /* Optimize animations */
    will-change: transform;
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
    /* Optimize for GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.hero-image:hover img {
    transform: scale(1.05) translateZ(0);
}

/* Optimize animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-image img {
        transition: none;
    }
    
    .hero-image:hover img {
        transform: none;
    }
}

/* Service Images */
.service-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.service-image img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-normal);
}

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

/* Step Images */
.step-icon {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 300px;
    height: 200px;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.step-item:hover .step-icon img {
    transform: scale(1.05);
}

/* Portfolio Images */
.portfolio-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3/2;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* Feature Images */
.feature-image {
    position: relative;
    border-radius: var(--radius-full);
    overflow: hidden;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

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

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

/* Testimonials Background */
.testimonials-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
}

.testimonials-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-section {
    position: relative;
}

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

/* Logo Styling */
.logo {
    transition: transform var(--transition-normal);
    max-width: 180px;
    height: auto;
    display: block;
}

.brand-link {
    display: inline-block;
    transition: opacity var(--transition-normal);
}

.brand-link:hover {
    opacity: 0.9;
}

.brand-link:hover .logo {
    transform: scale(1.05);
}

/* Logo responsive adjustments */
@media (max-width: 768px) {
    .logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 120px;
    }
}

/* Responsive Image Adjustments */
@media (max-width: 768px) {
    .hero-image {
        margin-bottom: 1rem;
    }
    
    .step-icon {
        width: 250px;
        height: 150px;
    }
    
    .feature-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .step-icon {
        width: 200px;
        height: 120px;
    }
    
    .feature-image {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

h1 { 
    font-size: clamp(2.5rem, 6vw, 4rem); 
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 { 
    font-size: clamp(2rem, 5vw, 3rem); 
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 { 
    font-size: clamp(1.5rem, 4vw, 2rem); 
    font-weight: 600;
    letter-spacing: -0.015em;
}

h4 { 
    font-size: clamp(1.25rem, 3vw, 1.5rem); 
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.text-large {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.visually-hidden {
    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: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

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

/* ========================================
   BUTTON SYSTEM
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: var(--z-sticky);
    transition: transform var(--transition-normal);
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.125rem;
}

.logo {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

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

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

.lang-toggle {
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-option {
    transition: color var(--transition-normal);
}

.lang-option.active {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-normal);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: var(--z-modal);
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 5rem 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav-menu {
    list-style: none;
    text-align: center;
}

.mobile-nav-item {
    margin-bottom: 2rem;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 500;
    transition: color var(--transition-normal);
}

.mobile-nav-link:hover {
    color: var(--color-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    z-index: -1;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.blob-1 {
    width: 20rem;
    height: 20rem;
    top: -5rem;
    right: -5rem;
    animation-delay: 0s;
}

.blob-2 {
    width: 15rem;
    height: 15rem;
    bottom: -3rem;
    left: -3rem;
    animation-delay: -2s;
}

.blob-3 {
    width: 10rem;
    height: 10rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 36rem;
}

.hero-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 2rem;
}

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

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    animation: count-up 1.5s ease-out both;
}

.stat-delay-1 {
    animation-delay: 1.2s;
}

.stat-delay-2 {
    animation-delay: 1.4s;
}

.stat-delay-3 {
    animation-delay: 1.6s;
}

@keyframes count-up {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-muted);
    font-weight: 500;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-showcase {
    position: relative;
    max-width: 32rem;
    width: 100%;
}

.showcase-preview {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.preview-browser {
    background: white;
}

.browser-header {
    background: #f8fafc;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-url {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--color-muted);
    border: 1px solid var(--color-border);
}

.browser-content {
    padding: 2rem;
}

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

.placeholder-header {
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    width: 60%;
}

.placeholder-text {
    height: 1rem;
    background: var(--color-border);
    border-radius: var(--radius-sm);
    width: 100%;
}

.placeholder-text.short {
    width: 80%;
}

.placeholder-button {
    height: 2.5rem;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    width: 40%;
    margin-top: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid var(--color-muted);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-wheel {
    width: 0.25rem;
    height: 0.5rem;
    background: var(--color-muted);
    border-radius: var(--radius-full);
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(0.5rem); opacity: 0.5; }
    100% { transform: translateX(-50%) translateY(1rem); opacity: 0; }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    padding: var(--section-padding) 0;
    background: white;
}

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

.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 3rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-0.5rem) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.feature-description {
    color: var(--color-muted);
    line-height: 1.6;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works-section {
    padding: var(--section-padding) 0;
    background: white;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
}

.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(56, 85, 246, 0.3);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.step-description {
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-arrow {
    color: var(--color-primary);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.portfolio-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    color: white;
}

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

.tag {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
}

.portfolio-cta p {
    font-size: 1.125rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(var(--color-primary), 0.1);
    color: var(--color-primary);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card.featured .service-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.service-card.featured .service-features li {
    border-color: rgba(255, 255, 255, 0.2);
}

.service-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.service-card.featured .price-amount {
    color: white;
}

.price-period {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.service-card.featured .price-period {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 60rem;
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 16rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-icon {
    color: var(--color-primary);
    opacity: 0.3;
}

.step-arrow {
    color: var(--color-primary);
    opacity: 0.5;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio-section {
    padding: var(--section-padding) 0;
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 16rem;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.portfolio-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.preview-device {
    width: 100%;
    max-width: 16rem;
    background: #1e293b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.device-header {
    background: #374151;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.device-dots {
    display: flex;
    gap: 0.25rem;
}

.device-screen {
    background: white;
    height: 8rem;
    position: relative;
    overflow: hidden;
}

.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
}

.content-header {
    height: 0.5rem;
    background: var(--color-border);
    border-radius: 2px;
    width: 60%;
}

.content-nav {
    height: 0.25rem;
    background: var(--color-border);
    border-radius: 2px;
    width: 100%;
}

.content-hero {
    height: 2rem;
    background: var(--color-border);
    border-radius: 4px;
    width: 100%;
    margin: 0.25rem 0;
}

.content-section {
    height: 1rem;
    background: var(--color-border);
    border-radius: 2px;
    width: 80%;
}

/* Theme-specific colors */
.restaurant-theme .content-header { background: #ea580c; }
.restaurant-theme .content-hero { background: linear-gradient(135deg, #ea580c, #fb923c); }

.medical-theme .content-header { background: #059669; }
.medical-theme .content-hero { background: linear-gradient(135deg, #059669, #10b981); }

.business-theme .content-header { background: #3855f6; }
.business-theme .content-hero { background: linear-gradient(135deg, #3855f6, #6366f1); }

.beauty-theme .content-header { background: #9333ea; }
.beauty-theme .content-hero { background: linear-gradient(135deg, #9333ea, #a855f7); }

.real-estate-theme .content-header { background: #a16207; }
.real-estate-theme .content-hero { background: linear-gradient(135deg, #a16207, #ca8a04); }

.tech-theme .content-header { background: #0891b2; }
.tech-theme .content-hero { background: linear-gradient(135deg, #0891b2, #06b6d4); }

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-xl);
}

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

.overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.overlay-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: white;
}

.overlay-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.875rem;
    color: white;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.portfolio-link:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.portfolio-link svg {
    width: 16px;
    height: 16px;
}

.portfolio-cta {
    text-align: center;
    max-width: 32rem;
    margin: 0 auto;
}

.portfolio-cta p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    color: var(--color-muted);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

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

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

.star {
    width: 1rem;
    height: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
    margin: 0;
}

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

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.author-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

.faq-container {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.faq-question:hover {
    background: var(--color-surface);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}

.faq-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item:hover .faq-icon {
    background: var(--color-primary);
    color: white;
}

.faq-item.active .faq-icon {
    background: var(--color-primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background: var(--color-surface);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

/* ========================================
   ORDER SECTION
   ======================================== */
.order-section {
    padding: var(--section-padding) 0;
    background: white;
}

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

.order-form {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: white;
    transition: all var(--transition-normal);
    appearance: none; /* Remove default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5rem 1.5rem;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary), 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-error);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--color-error);
}

.form-group.error .form-error {
    display: block;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: all var(--transition-normal);
}

.checkbox-custom::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-primary);
    border-radius: 1px;
    transform: scale(0);
    transition: transform var(--transition-normal);
}

input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: scale(1);
    background: white;
}

input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-text {
    color: var(--color-text);
}

.checkbox-text a {
    color: var(--color-primary);
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.price-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.price-item:last-child {
    border-bottom: none;
}

.price-total {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-text);
    border-top: 2px solid var(--color-border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.price-monthly {
    font-weight: 500;
    color: var(--color-muted);
}

.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.5;
}

.order-benefits {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--color-border);
    position: sticky;
    top: 6rem;
}

.order-benefits h3 {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-text);
}

.benefits-list .icon {
    color: var(--color-success);
    flex-shrink: 0;
}

.guarantee-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gradient-accent);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    color: white;
    text-align: left;
}

.badge-icon {
    color: white;
    flex-shrink: 0;
}

.badge-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.badge-text p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: rgba(255, 255, 255, 0.8);
}

/* Footer CTA Section */
.footer-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-cta-text h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin: 0;
}

.footer-cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Main Footer Content */
.footer-main {
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

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

.footer-brand {
    max-width: 22rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-brand-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Media Links */
.footer-social h5 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Footer Columns */
.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 1px;
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-radius: 4px;
}

.footer-column ul li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 0.5rem;
}

.footer-column ul li a svg {
    opacity: 0.6;
    transition: opacity var(--transition-normal);
}

.footer-column ul li a:hover svg {
    opacity: 1;
}

/* Contact Information */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-item svg {
    color: var(--color-primary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item span:first-child {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.contact-item a,
.contact-item span:last-child {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

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

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-badges {
    display: flex;
    gap: 1.5rem;
}

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

.badge svg {
    color: var(--color-accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
        margin-bottom: 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        max-width: none;
    }
}

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

/* Typing Animation for Hero Text */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-primary) }
}

.text-reveal {
    animation: text-reveal 2s ease-out 0.5s both;
}

@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Floating Animation for Particles */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(-10px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.float-slow {
    animation: float 8s ease-in-out infinite;
}

.float-medium {
    animation: float 6s ease-in-out infinite 2s;
}

.float-fast {
    animation: float 4s ease-in-out infinite 1s;
}

/* Gentle Pulse Animation */
@keyframes gentle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.gentle-pulse {
    animation: gentle-pulse 4s ease-in-out infinite;
}

/* Smooth Glow Effect */
@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(56, 85, 246, 0.3); }
    50% { box-shadow: 0 0 30px rgba(56, 85, 246, 0.6); }
    100% { box-shadow: 0 0 20px rgba(56, 85, 246, 0.3); }
}

.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
}

.magnetic-btn:hover {
    transform: translateZ(10px);
    box-shadow: 0 15px 35px rgba(56, 85, 246, 0.3);
}

/* Tilt Card Effect */
.tilt-card {
    transition: all 0.3s ease-out;
    transform-style: preserve-3d;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(3deg) translateZ(5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Smooth Count Animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-animation {
    animation: count-up 0.6s ease-out forwards;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Parallax Background */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

/* Subtle Bounce Animation */
@keyframes subtle-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.bounce-icon {
    animation: subtle-bounce 2s infinite;
}

/* Smooth Slide In */
@keyframes slide-in-right {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-left {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

/* Smooth Scale Animation */
@keyframes scale-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.scale-in {
    animation: scale-in 0.6s ease-out forwards;
}

/* Enhanced Focus States */
.enhanced-focus {
    transition: all 0.3s ease;
    position: relative;
}

.enhanced-focus::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-focus:focus::before {
    opacity: 1;
}

/* Text Shine Effect */
@keyframes text-shine {
    0% { background-position: -100% 50%; }
    100% { background-position: 200% 50%; }
}

.text-shine {
    background: linear-gradient(90deg, var(--color-text) 0%, var(--color-primary) 50%, var(--color-text) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 3s ease-in-out infinite;
}

/* Smooth Morphing Button */
.morph-btn {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

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

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

/* Breathing Animation */
@keyframes breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.7;
}

.particle-1 {
    top: 20%;
    left: 10%;
    background: var(--color-primary);
}

.particle-2 {
    top: 60%;
    left: 80%;
    background: var(--color-accent);
}

.particle-3 {
    top: 30%;
    left: 70%;
    background: var(--color-secondary);
}

.particle-4 {
    top: 80%;
    left: 20%;
    background: var(--color-primary);
}

.particle-5 {
    top: 10%;
    left: 90%;
    background: var(--color-accent);
}

/* Enhanced Form Animations - Removed conflicting styles */

/* Button Loading Animation */
.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading-slide 1.5s infinite;
}

@keyframes loading-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Smooth Page Transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    .typing-text {
        animation: none !important;
    }
    
    .float-slow,
    .float-medium,
    .float-fast {
        animation: none !important;
    }
    
    .bounce-icon {
        animation: none !important;
    }
    
    .gentle-pulse {
        animation: none !important;
    }
    
    .breathe {
        animation: none !important;
    }
    
    .glow-effect {
        animation: none !important;
    }
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

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

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

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

/* ========================================
   ANIMATIONS
   ======================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-up"].animate-in {
    transform: translateY(0);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-left"].animate-in {
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-right"].animate-in {
    transform: translateX(0);
}

/* Animation delays */
[data-animate-delay="100"] { transition-delay: 0.1s; }
[data-animate-delay="200"] { transition-delay: 0.2s; }
[data-animate-delay="300"] { transition-delay: 0.3s; }
[data-animate-delay="400"] { transition-delay: 0.4s; }
[data-animate-delay="500"] { transition-delay: 0.5s; }
[data-animate-delay="600"] { transition-delay: 0.6s; }
[data-animate-delay="700"] { transition-delay: 0.7s; }
[data-animate-delay="800"] { transition-delay: 0.8s; }
[data-animate-delay="900"] { transition-delay: 0.9s; }
[data-animate-delay="1000"] { transition-delay: 1s; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 20rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .order-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .order-benefits {
        position: static;
        order: -1;
    }
    
    /* Footer styles moved to main footer section */
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.8);
        border-radius: var(--radius-lg);
    }
    
    .order-form {
        padding: 1.5rem;
    }
    
    .order-benefits {
        padding: 1.5rem;
    }
    
    .checkbox-label {
        align-items: flex-start;
    }
    
    .guarantee-badge {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@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;
    }
    
    .gradient-blob {
        animation: none;
    }
    
    .scroll-wheel {
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #f1f5f9;
        --color-background: #0f172a;
        --color-surface: #1e293b;
        --color-border: #334155;
        --color-muted: #94a3b8;
    }
    
    .hero-background {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .preview-browser {
        background: #1e293b;
    }
    
    .browser-header {
        background: #334155;
    }
    
    .browser-url {
        background: #475569;
        color: #94a3b8;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .mobile-menu-overlay,
    .loading-screen,
    .hero-background,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .btn {
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }
}

/* Message Toast Styles */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-notification);
    max-width: 400px;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    backdrop-filter: blur(10px);
}

.message-toast.show {
    transform: translateX(0);
}

.message-toast.message-success {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

.message-toast.message-error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

.message-toast.message-info {
    background: rgba(59, 130, 246, 0.95);
    color: white;
}

.message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.message-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

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

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

/* Form Message Styles */
.form-success-message,
.form-error-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    animation: slideIn 0.3s ease-out;
}

.form-success-message {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.success-icon,
.error-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.success-icon {
    background: var(--color-success);
    color: white;
}

.error-icon {
    background: var(--color-error);
    color: white;
}

.success-text,
.error-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Accordion Styles */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background: rgba(var(--color-primary-rgb), 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    transition: all var(--transition-fast);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
    flex: 1;
    padding-right: 1rem;
}

.faq-item:hover .faq-question h3 {
    color: var(--color-primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text);
    transition: all var(--transition-fast);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.faq-item:hover .faq-icon {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--color-text);
    opacity: 0.8;
    line-height: 1.6;
    padding: 0 1rem 0 0;
}

/* FAQ Mobile Styles */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 0;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 0.5rem;
    }
    
    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 1.2rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .faq-item.active .faq-answer {
        padding-bottom: 1rem;
    }
}

/* ========================================
   OTHER TYPE DESCRIPTION FIELD
   ======================================== */
#other-type-description {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    transition: all var(--transition-normal);
}

#other-type-description label {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

#other-type-description textarea {
    background: white;
    border: 2px solid var(--color-border);
    min-height: 80px;
    resize: vertical;
}

#other-type-description textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary), 0.1);
}

#other-type-description .form-hint {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--color-muted);
}

/* Fix for automatically option display */
.form-group select option[value=""] {
    color: var(--color-muted);
    font-style: italic;
}

.form-group select:invalid {
    color: var(--color-muted);
}

.form-group select:valid {
    color: var(--color-text);
}

/* Additional form improvements */
.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}

/* Ensure proper spacing in form rows */
.form-row .form-group {
    margin-bottom: 1.5rem;
}

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

/* Improved select styling */
.form-group select option {
    padding: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Better mobile form styling */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-section-title {
        font-size: 1.125rem;
    }
}

/* Form messages */
.form-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.form-message-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.form-message-error {
    background-color: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.form-message-warning {
    background-color: #fffbeb;
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

.message-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button loading state */
.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */

/* Main floating button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: whatsapp-pulse 2s infinite ease-in-out;
}

/* Hover effect */
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6), 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: none;
}

/* Active/click effect */
.whatsapp-float:active {
    transform: scale(0.95) translateY(-2px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

/* WhatsApp icon */
.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: rotate(12deg) scale(1.1);
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tooltip arrow */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.85);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Show tooltip on hover */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Pulse animation */
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* Fade in animation on page load */
@keyframes whatsapp-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whatsapp-float {
    animation: whatsapp-fade-in 0.6s ease-out 1s both, whatsapp-pulse 2s infinite 1.6s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        right: 70px;
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }

    /* Hide tooltip on very small screens to save space */
    .whatsapp-tooltip {
        display: none;
    }
}

/* Print styles - hide button when printing */
@media print {
    .whatsapp-float {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .whatsapp-float {
        background: #25D366;
        border: 2px solid white;
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none !important;
        transition: none;
    }

    .whatsapp-float:hover {
        animation: none;
    }

    .whatsapp-icon {
        transition: none;
    }

    .whatsapp-tooltip {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .whatsapp-tooltip {
        background: rgba(255, 255, 255, 0.95);
        color: #1f2937;
    }

    .whatsapp-tooltip::after {
        border-left-color: rgba(255, 255, 255, 0.95);
    }
}