/* Enhanced Niverse Studio Styles - 2025 Edition */

/* ===== CSS CUSTOM PROPERTIES (VARIABLES) ===== */
:root {
    /* Primary Colors */
    --primary-color: #eb1c24;
    --primary-dark: #c10f1c;
    --primary-light: #ff6b7a;
    --primary-rgb: 235, 28, 36;

    /* Neutral Colors */
    --dark-color: #1a1a1a;
    --dark-secondary: #2a2a2a;
    --light-color: #f8f9fa;
    --light-secondary: #f4f4f4;
    --white: #ffffff;
    --black: #000000;

    /* Text Colors */
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #777777;
    --text-light: #999999;

    /* Dark Mode Colors */
    --dark-bg-primary: #0f0f0f;
    --dark-bg-secondary: #1a1a1a;
    --dark-bg-tertiary: #252525;
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #e0e0e0;
    --dark-text-muted: #b0b0b0;
    --dark-border: #333333;

    /* Spacing & Sizing */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 25px rgba(var(--primary-rgb), 0.15);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    --font-mono: 'Monaco', 'Menlo', monospace;

    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    --z-preloader: 9999;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

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

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

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

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

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

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

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

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

/* ===== LAYOUT & GRID ===== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
    white-space: nowrap;
    min-height: 44px;
    /* Accessibility: Touch target size */
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 48px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Legacy button classes for backward compatibility */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
    white-space: nowrap;
    min-height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
    color: var(--white);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: var(--white);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(var(--primary-rgb), 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: var(--z-sticky);
    padding: 1rem 0;
    transition: all var(--transition-normal);
    height: var(--header-height);
}

header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: var(--shadow-lg);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

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

.logo:focus {
    outline-color: var(--white);
}

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

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher a,
.language-switcher span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
    min-height: 32px;
    display: flex;
    align-items: center;
}

.language-switcher a:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
}

.language-switcher span[aria-current] {
    color: var(--primary-color);
    font-weight: 600;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Main Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width var(--transition-fast);
}

nav a:hover,
nav a[aria-current] {
    color: var(--white);
}

nav a:hover::after,
nav a[aria-current]::after {
    width: 100%;
}

nav a:focus {
    outline: 2px solid var(--white);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    z-index: calc(var(--z-preloader) + 1);
    transition: left var(--transition-fast);
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(45, 45, 45, 0.6) 100%),
        url('/images/hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
    scroll-margin-top: var(--header-height);
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

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

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

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--light-color);
}

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

.service-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

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

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

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

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

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

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

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

.portfolio-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-info p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.portfolio-info a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.portfolio-info a:hover {
    color: var(--primary-dark);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 0;
    background: var(--light-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.feature:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
}

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

.testimonial-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: serif;
    line-height: 1;
}

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

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.testimonial-item footer {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-item footer strong {
    color: var(--primary-color);
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    padding: 5rem 0;
    background: var(--white);
}

.intro-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    text-align: center;
}

.intro-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.02);
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
}

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

.pricing-card>p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 2rem;
    display: flex;
    align-items: flex-start;
}

.pricing-card li i {
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.bonus {
    background: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    text-align: left;
}

.guarantee {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
    margin-top: 4rem;
}

.comparison-table-container {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
    background: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border: 1px solid #e5e5e5;
    vertical-align: middle;
}

.comparison-table thead th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table tbody th {
    text-align: left;
    background: var(--light-color);
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.comparison-table .text-success {
    color: #28a745;
    font-size: 1.1rem;
}

/* ===== SOCIAL PROOF SECTION ===== */
.social-proof {
    padding: 5rem 0;
    background: var(--light-color);
    text-align: center;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.proof-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.proof-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.proof-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: transform var(--transition-normal);
}

.proof-item:hover img {
    transform: scale(1.02);
}

.proof-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.proof-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.proof-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

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

.testimonials {
    margin: 3rem 0;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    margin: 1rem 0;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: var(--primary-color);
    font-family: serif;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.testimonial footer {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== EXTRAS SECTION ===== */
.extras {
    padding: 5rem 0;
    background: var(--white);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.extra-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.extra-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.extra-item.featured-extra {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.extra-ribbon {
    position: absolute;
    top: 15px;
    right: -25px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.extra-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.extra-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.extra-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.extra-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.extra-features {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
}

.extra-features li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

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

.promo-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.5rem 0;
    display: inline-block;
}

.extra-alternative {
    background: var(--light-color);
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.extra-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

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

.faq-question i {
    transition: transform var(--transition-fast);
    color: var(--primary-color);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition-normal), opacity var(--transition-normal), padding var(--transition-normal);
}

.faq-answer.open {
    padding: 1rem 2rem 2rem;
    opacity: 1;
}

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

/* ===== FINAL CTA SECTION ===== */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.final-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    min-height: 56px;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.trust-item i {
    color: var(--white);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

.contact form {
    max-width: 600px;
    margin: 2rem auto;
}

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

.contact input,
.contact textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: var(--white);
}

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

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

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

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border: 1px solid #c3e6cb;
    display: none;
}

.recaptcha-wrapper {
    margin: 2rem 0;
    text-align: center;
    background: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--primary-color);
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

#back-to-top:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

#back-to-top i {
    font-size: 1.2rem;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

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

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

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

.text-success {
    color: #28a745;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-light {
    background-color: var(--light-color);
}

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

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fadein {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== DARK MODE ===== */
body.dark-mode {
    background-color: var(--dark-bg-primary);
    color: var(--dark-text-secondary);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(26, 26, 26, 0.7) 100%),
        url('/images/hero.webp') center/cover no-repeat;
}

body.dark-mode .services,
body.dark-mode .testimonials,
body.dark-mode .pricing-section,
body.dark-mode .contact,
body.dark-mode .extras {
    background: var(--dark-bg-secondary);
}

body.dark-mode .intro-section,
body.dark-mode .about,
body.dark-mode .social-proof,
body.dark-mode .faq-section {
    background: var(--dark-bg-tertiary);
}

body.dark-mode .service-item,
body.dark-mode .portfolio-item,
body.dark-mode .testimonial-item,
body.dark-mode .pricing-card,
body.dark-mode .proof-item,
body.dark-mode .testimonial,
body.dark-mode .extra-item,
body.dark-mode .faq-item,
body.dark-mode .comparison-table {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
    color: var(--dark-text-secondary);
}

body.dark-mode .section-header h2,
body.dark-mode .service-item h3,
body.dark-mode .portfolio-info h4,
body.dark-mode .testimonial-item footer,
body.dark-mode .pricing-card h3,
body.dark-mode .proof-content h4,
body.dark-mode .extra-item h4,
body.dark-mode .faq-question {
    color: var(--dark-text-primary);
}

body.dark-mode .section-header p,
body.dark-mode .service-item p,
body.dark-mode .portfolio-info p,
body.dark-mode .testimonial-item p,
body.dark-mode .about p,
body.dark-mode .intro-text,
body.dark-mode .pricing-card>p,
body.dark-mode .proof-content p,
body.dark-mode .faq-answer p,
body.dark-mode .subtitle {
    color: var(--dark-text-muted);
}

body.dark-mode .pricing-card li {
    color: var(--dark-text-secondary);
}

body.dark-mode .contact input,
body.dark-mode .contact textarea {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
    color: var(--dark-text-secondary);
}

body.dark-mode .contact input:focus,
body.dark-mode .contact textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

body.dark-mode .feature {
    background: var(--dark-bg-tertiary);
    color: var(--dark-text-secondary);
}

body.dark-mode .bonus,
body.dark-mode .extra-alternative {
    background: var(--dark-bg-secondary);
    color: var(--primary-color);
}

body.dark-mode .recaptcha-wrapper {
    background: var(--dark-bg-tertiary);
}

body.dark-mode .success-message {
    background: #0f2419;
    color: #75dd99;
    border-color: #1e3a2e;
}

body.dark-mode #preloader {
    background: var(--dark-bg-primary);
}

body.dark-mode .faq-question:hover {
    background: var(--dark-bg-secondary);
}

body.dark-mode .comparison-table thead th {
    background: var(--primary-color);
    color: var(--white);
}

body.dark-mode .comparison-table tbody th {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

body.dark-mode .comparison-table tbody tr:nth-child(even) {
    background: var(--dark-bg-secondary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    section {
        padding: 4rem 0;
    }

    .services-grid,
    .pricing-grid,
    .testimonials-grid,
    .proof-grid,
    .extras-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav a {
        display: block;
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .language-switcher {
        display: none;
    }

    .hero {
        min-height: 90vh;
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn,
    .cta-button,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
    }

    section {
        padding: 3rem 0;
    }

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

    .services-grid,
    .pricing-grid,
    .testimonials-grid,
    .proof-grid,
    .extras-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .trust-signals {
        gap: 1rem;
    }

    .trust-item {
        font-size: 0.8rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    #back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .comparison-table-container {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .service-item,
    .testimonial-item,
    .pricing-card,
    .proof-item,
    .extra-item {
        padding: 1.5rem 1rem;
    }

    .ribbon {
        font-size: 0.8rem;
        padding: 0.4rem 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    .btn,
    .cta-button,
    .cta-secondary {
        max-width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer.open {
        padding: 1rem 1.5rem 1.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@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;
    }
}

@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    }

    .service-item,
    .portfolio-item,
    .testimonial-item,
    .pricing-card,
    .proof-item,
    .extra-item,
    .faq-item {
        border: 2px solid var(--text-primary);
    }

    body.dark-mode .service-item,
    body.dark-mode .portfolio-item,
    body.dark-mode .testimonial-item,
    body.dark-mode .pricing-card,
    body.dark-mode .proof-item,
    body.dark-mode .extra-item,
    body.dark-mode .faq-item {
        border: 2px solid var(--dark-text-primary);
    }
}

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

/* ===== PRINT STYLES ===== */
@media print {

    .nav-toggle,
    .theme-toggle,
    .language-switcher,
    #back-to-top,
    #preloader {
        display: none !important;
    }

    .hero {
        background: none !important;
        color: var(--text-primary) !important;
        min-height: auto !important;
    }

    .section-header h2::after {
        display: none;
    }

    .btn,
    .cta-button,
    .cta-secondary {
        border: 2px solid var(--text-primary) !important;
        background: none !important;
        color: var(--text-primary) !important;
    }
}

/* ===== LEGACY BROWSER SUPPORT ===== */
@supports not (backdrop-filter: blur(10px)) {

    header,
    .hero-content {
        background: rgba(26, 26, 26, 0.9);
    }

    .btn-outline,
    .cta-secondary {
        background: rgba(255, 255, 255, 0.2);
    }
}

@supports not (display: grid) {

    .services-grid,
    .pricing-grid,
    .testimonials-grid,
    .proof-grid,
    .extras-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-item,
    .pricing-card,
    .testimonial-item,
    .proof-item,
    .extra-item {
        flex: 0 1 300px;
        margin: 1rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero,
.hero::before {
    will-change: transform;
}

.service-item:hover,
.portfolio-item:hover,
.testimonial-item:hover,
.pricing-card:hover,
.proof-item:hover,
.extra-item:hover {
    will-change: transform, box-shadow;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-display: swap;
}



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