/* Apple-style CSS for CV Builder Pro */

:root {
    --primary-gold: #FFD700;
    --primary-orange: #FF8C00;
    --accent-fire: #FF6B35;
    --deep-gold: #B8860B;
    --warm-orange: #FFA500;
    --fire-red: #FF4500;
    --apple-black: #1d1d1f;
    --apple-gray: #86868b;
    --apple-light-gray: #f5f5f7;
    --apple-blue: var(--primary-gold);
    --apple-blue-hover: var(--deep-gold);
    --apple-white: #ffffff;
    --apple-border: #d2d2d7;
    
    /* Header and Logo Variables */
    --nav-height: 72px;
    
    /* Typography */
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 22px;
    --max-width: 1200px;
    
    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-quick: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--apple-black);
    background-color: var(--apple-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Template Enhancement Styles */
.template-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-type-html {
    background: linear-gradient(135deg, var(--primary-gold), var(--warm-orange));
    color: white;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.template-type-reportlab {
    background: var(--apple-gray);
    color: white;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.template-tag {
    padding: 2px 6px;
    background: var(--apple-light-gray);
    border-radius: 4px;
    font-size: 10px;
    color: var(--apple-gray);
    font-weight: var(--font-weight-medium);
}

.template-card[data-template-type="html"] .template-preview {
    background: linear-gradient(135deg, var(--primary-gold), var(--warm-orange));
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.template-card[data-template-type="html"]:hover .template-preview {
    background: linear-gradient(135deg, var(--warm-orange), var(--fire-red));
    box-shadow: 0 6px 25px rgba(255, 140, 0, 0.3);
}

.template-card[data-template-type="reportlab"] .template-preview {
    background: linear-gradient(135deg, var(--apple-gray), #6d6d6d);
}

.template-card[data-template-type="html"].selected .template-preview {
    background: linear-gradient(135deg, var(--deep-gold), var(--fire-red));
    transform: scale(1.05);
}

/* Navigation */
.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--apple-border);
    z-index: 1000;
    height: var(--nav-height);
    overflow: hidden;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-black);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    color: var(--apple-black);
    text-decoration: none;
    transition: var(--transition-quick);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    background: var(--apple-blue) !important;
    color: var(--apple-white) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    opacity: 1 !important;
    font-weight: var(--font-weight-medium) !important;
}

.nav-cta:hover {
    background: var(--apple-blue-hover) !important;
}

/* Hero Section - CLS Optimized */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fixed height to prevent CLS - use height instead of min-height */
    height: calc(100vh - var(--nav-height));
    min-height: 600px; /* Fallback for small screens */
    padding: var(--section-padding);
    margin-top: var(--nav-height);
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 5%;
    padding-right: 5%;
    gap: 80px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
    position: relative;
    overflow: hidden;
    /* Prevent layout shifts - avoid paint containment to fix stacking context */
    contain: layout;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: none;
    border-radius: 50%;
    animation: none;
    z-index: 1;
}

/* Hero Background Image - CLS Optimized */
.hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    display: block !important;
    pointer-events: none !important;
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevent layout shift during image load */
    aspect-ratio: 16 / 9;
    max-width: none;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 2;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero-title {
    font-size: 64px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--apple-black);
    background: linear-gradient(135deg, #1d1d1f 0%, #0071e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: var(--font-weight-normal);
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--apple-black);
}

.hero-description {
    font-size: 19px;
    font-weight: var(--font-weight-normal);
    line-height: 1.4;
    margin-bottom: 40px;
    color: var(--apple-gray);
}

.hero-actions {
    margin-bottom: 24px;
}

.hero-availability {
    font-size: 14px;
    color: var(--apple-gray);
    font-weight: var(--font-weight-normal);
}

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

.cv-mockup {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(0, 113, 227, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 30px;
    transform: rotateY(-8deg) rotateX(8deg) translateZ(0);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cv-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateZ(20px) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 15px 40px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cv-preview {
    width: 100%;
    height: 100%;
}

.cv-header {
    height: 40px;
    background: linear-gradient(90deg, var(--apple-black) 0%, var(--apple-gray) 100%);
    border-radius: 6px;
    margin-bottom: 20px;
}

.cv-line {
    height: 12px;
    background: var(--apple-light-gray);
    border-radius: 6px;
    margin-bottom: 8px;
}

.cv-line.short {
    width: 60%;
}

.cv-section {
    margin-top: 30px;
}

.cv-section-title {
    height: 16px;
    width: 80px;
    background: var(--apple-blue);
    border-radius: 6px;
    margin-bottom: 15px;
}

.cv-bullet {
    height: 8px;
    background: var(--apple-light-gray);
    border-radius: 4px;
    margin-bottom: 6px;
    margin-left: 10px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    color: var(--apple-black);
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition-quick);
    text-decoration: none;
    display: inline-block;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--deep-gold) 0%, var(--accent-fire) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 140, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    color: var(--apple-black);
    border: none;
    border-radius: 30px;
    padding: 16px 32px;
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition-quick);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary-large:hover {
    background: linear-gradient(135deg, var(--deep-gold) 0%, var(--accent-fire) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 140, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Sections */
.section-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 5%;
    text-align: center;
}

.section-title {
    font-size: 48px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--apple-black);
}

.section-subtitle {
    font-size: 21px;
    font-weight: var(--font-weight-normal);
    line-height: 1.4;
    margin-bottom: 60px;
    color: var(--apple-gray);
}

/* Upload Section */
.upload-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    position: relative;
}

.upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 113, 227, 0.3) 50%, transparent 100%);
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.upload-zone {
    border: 2px dashed var(--apple-border);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--apple-blue);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 140, 0, 0.06) 100%);
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.upload-zone.dragover {
    border-color: var(--apple-blue);
    background: rgba(255, 215, 0, 0.08);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.3);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.upload-main {
    font-size: 21px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 8px;
    color: var(--apple-black);
}

.upload-hint {
    font-size: 14px;
    color: var(--apple-gray);
}

/* Progress */
.progress-section {
    padding: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--apple-light-gray);
    border-radius: 3px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-orange));
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.progress-text {
    font-size: 16px;
    color: var(--apple-gray);
    font-weight: var(--font-weight-medium);
}

/* Success */
.success-section {
    padding: 40px;
    text-align: center;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-text {
    font-size: 21px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 24px;
    color: var(--apple-black);
}

/* Features Grid */
.features-section {
    padding: var(--section-padding);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    text-align: left;
    padding: 30px;
    background: var(--apple-white);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #fffcf5 100%);
}

.feature-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.25));
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.feature-title {
    font-size: 21px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 12px;
    color: var(--apple-black);
}

.feature-description {
    font-size: 16px;
    color: var(--apple-gray);
    line-height: 1.5;
}

/* AI Section */
.ai-section {
    padding: var(--section-padding);
    background: var(--apple-light-gray);
}

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

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.ai-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    color: var(--apple-gray);
}

.ai-bullet {
    color: var(--apple-blue);
    font-weight: var(--font-weight-bold);
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

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

.ai-animation {
    position: relative;
    width: 200px;
    height: 200px;
}

.ai-brain {
    font-size: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ai-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid var(--apple-blue);
    opacity: 0.3;
    animation: ripple 2s ease-out infinite;
}

.ai-waves::before,
.ai-waves::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--apple-blue);
    opacity: 0.2;
    animation: ripple 2s ease-out infinite 0.3s;
}

.ai-waves::after {
    width: 160px;
    height: 160px;
    animation-delay: 0.6s;
    opacity: 0.1;
}

/* How it Works */
.how-section {
    padding: var(--section-padding);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 160px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--apple-blue);
    color: var(--apple-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 8px;
    color: var(--apple-black);
}

.step-content p {
    font-size: 14px;
    color: var(--apple-gray);
}

.step-arrow {
    font-size: 24px;
    color: var(--apple-gray);
    font-weight: var(--font-weight-light);
}

/* Standards Section */
.standards-section {
    padding: var(--section-padding);
    background: var(--apple-light-gray);
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.standard-item {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid rgba(255, 215, 0, 0.1);
    cursor: pointer;
}

.standard-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #fffcf5 100%);
}

.standard-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.standard-item:hover .standard-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.25));
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.standard-item h4 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 12px;
    color: var(--apple-black);
    line-height: 1.3;
}

.standard-item p {
    font-size: 15px;
    color: var(--apple-gray);
    line-height: 1.5;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    text-align: center;
}

/* Footer */
.apple-footer {
    background: var(--apple-light-gray);
    border-top: 1px solid var(--apple-border);
    padding: 40px 0;
}

.footer-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 5%;
    text-align: center;
}

.footer-content p {
    font-size: 14px;
    color: var(--apple-gray);
}

.footer-content a {
    color: var(--primary-gold);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Privacy Page Styles */
.privacy-section {
    margin-top: var(--nav-height);
    padding: 60px 0;
    background: #ffffff;
}

.privacy-content {
    max-width: 800px;
    margin: 40px auto 0;
    line-height: 1.6;
}

.privacy-principle {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.privacy-principle h2 {
    margin-top: 0;
    color: var(--apple-black);
    font-size: 24px;
}

.principle-text {
    font-size: 18px;
    margin-bottom: 0;
}

.privacy-section-block {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.privacy-section-block:last-child {
    border-bottom: none;
}

.privacy-section-block h2 {
    color: var(--apple-black);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: var(--font-weight-semibold);
}

.privacy-section-block p {
    margin-bottom: 12px;
    color: var(--apple-gray);
}

.privacy-section-block ul {
    margin: 15px 0;
    padding-left: 20px;
}

.privacy-section-block li {
    margin-bottom: 8px;
    color: var(--apple-gray);
}

.highlight {
    background: rgba(255, 215, 0, 0.15);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-gold);
    font-weight: var(--font-weight-medium);
}

.privacy-guarantee {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 16px;
    margin-top: 50px;
}

.privacy-guarantee h2 {
    text-align: center;
    color: var(--apple-black);
    margin-bottom: 30px;
    font-size: 24px;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.guarantee-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.guarantee-item h3 {
    color: var(--apple-black);
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
}

.guarantee-item p {
    color: var(--apple-gray);
    font-size: 14px;
    margin: 0;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

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


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

/* Success Section */
.success-section {
    padding: var(--section-padding);
    background: #ffffff;
    position: relative;
}


.success-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.success-content {
    flex: 1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 50px rgba(255, 215, 0, 0.2);
}

.success-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.feature-item {
    background: white;
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid rgba(255, 215, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #fffcf5 100%);
}

.feature-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.25));
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.feature-item h3 {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    margin: 0 0 6px 0;
    color: var(--apple-black);
    line-height: 1.3;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    width: 100%;
}

.feature-item p {
    font-size: 14px;
    color: var(--apple-gray);
    line-height: 1.4;
    margin: 0;
}

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

.success-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(255, 215, 0, 0.3);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.success-image:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.3),
        0 15px 40px rgba(255, 215, 0, 0.4);
}

/* =======================
   MOBILE-FIRST RESPONSIVE DESIGN
   ======================= */

/* Mobile Base Styles (320px+) */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Anchor Navigation Scroll Margin */
section[id] {
    scroll-margin-top: calc(var(--nav-height) + 20px);
}

/* Mobile Navigation Hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--apple-black);
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.mobile-menu-toggle:hover {
    background-color: var(--apple-light-gray);
}

.mobile-menu-toggle:active {
    background-color: var(--apple-border);
    transform: scale(0.95);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    z-index: 1990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

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

.mobile-nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: white !important;
    z-index: 9999 !important;
    padding: 80px 30px 30px !important;
    transition: right 0.3s ease !important;
    border-left: 1px solid #e5e7eb !important;
    overflow-y: auto !important;
    box-shadow: -8px 0 24px rgba(0,0,0,0.2) !important;
    display: block !important;
}

.mobile-nav-menu.active {
    right: 0 !important;
}

.mobile-nav-menu a {
    display: block;
    padding: 16px 20px;
    margin: 8px 0;
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    color: var(--apple-black);
    text-decoration: none;
    border-radius: 12px;
    min-height: 48px;
    touch-action: manipulation;
    transition: var(--transition-quick);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:active {
    background: var(--apple-light-gray);
    transform: translateX(4px);
}

.mobile-nav-menu .nav-cta {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange)) !important;
    color: var(--apple-black) !important;
    margin-top: 20px;
}

.mobile-nav-menu .nav-cta:hover {
    background: linear-gradient(135deg, var(--deep-gold), var(--accent-fire)) !important;
    transform: translateX(0) scale(1.02);
}

/* Body scroll lock when menu is open */
body.nav-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile Typography with clamp() */
.hero-title {
    font-size: clamp(32px, 8vw, 64px);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.3;
}

.hero-description {
    font-size: clamp(16px, 4vw, 19px);
    line-height: 1.4;
}

.section-title {
    font-size: clamp(28px, 7vw, 48px);
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(16px, 4vw, 21px);
    line-height: 1.4;
}

/* Touch-Friendly Buttons - Minimum 44px */
.btn-primary,
.btn-primary-large,
.upload-zone {
    min-height: 48px;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    padding: clamp(12px, 3vw, 16px) clamp(20px, 5vw, 32px);
    font-size: clamp(16px, 4vw, 20px);
}

.btn-primary-large {
    padding: clamp(14px, 4vw, 20px) clamp(24px, 6vw, 40px);
    font-size: clamp(18px, 4.5vw, 24px);
}

/* Convert hover effects to active for touch devices */
@media (hover: none) {
    .btn-primary:hover,
    .btn-primary-large:hover,
    .feature-card:hover,
    .standard-item:hover,
    .upload-zone:hover {
        transform: none;
        box-shadow: initial;
    }
    
    .btn-primary:active,
    .btn-primary-large:active {
        transform: translateY(-2px);
        box-shadow: 
            0 6px 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 140, 0, 0.4);
    }
    
    .feature-card:active,
    .standard-item:active {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        border-color: rgba(255, 215, 0, 0.2);
    }
}

/* Mobile Breakpoint: Up to 768px */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-content {
        padding: 0 clamp(16px, 4vw, 32px);
    }
    
    .logo-text {
        font-size: clamp(18px, 5vw, 24px);
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: clamp(60px, 15vw, 100px) 5%;
        min-height: 90vh;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
        width: 100%;
        padding: clamp(24px, 6vw, 40px);
    }
    
    .section-content {
        padding: 0 clamp(16px, 4vw, 32px);
    }
    
    /* Card Grids - Single Column on Mobile */
    .features-grid,
    .standards-grid,
    .guarantee-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(20px, 5vw, 30px) !important;
    }
    
    .feature-card,
    .standard-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: clamp(20px, 5vw, 30px);
        margin-bottom: 20px;
    }
    
    /* Specific selector to win cascade and ensure icon centering */
    .feature-card .feature-icon {
        align-self: center;
        margin: 0 0 20px 0;
    }
    
    /* AI Section - Single Column */
    .ai-content {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }
    
    .ai-visual {
        order: -1; /* Move visual above content on mobile */
    }
    
    /* Steps Container - Vertical Layout */
    .steps-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .step {
        max-width: 250px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        font-size: 20px;
    }
    
    /* Success Section - Single Column */
    .success-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .success-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Upload Zone Mobile Optimization */
    .upload-zone {
        padding: clamp(40px, 10vw, 60px) clamp(20px, 5vw, 40px);
        margin: 16px 0;
    }
    
    .upload-main {
        font-size: clamp(16px, 4vw, 21px);
    }
    
    .upload-hint {
        font-size: clamp(12px, 3vw, 14px);
    }
    
    /* Touch Feedback */
    .upload-zone:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .nav-links a:active,
    .mobile-nav-menu a:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

/* Tablet Breakpoint: 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        gap: 60px;
        padding: 80px 4%;
    }
    
    .nav-content {
        padding: 0 40px;
    }
    
    .features-grid,
    .standards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .ai-content {
        gap: 60px;
    }
    
    .section-content {
        padding: 0 4%;
    }
}

/* Small Mobile Breakpoint: Up to 480px */
@media (max-width: 480px) {
    :root {
        --nav-height: 64px;
        --section-padding: 60px 0;
    }
    
    .nav-content {
        padding: 0 clamp(12px, 3vw, 24px);
    }
    
    .logo-text {
        font-size: clamp(16px, 4vw, 20px);
    }
    
    .hero-section {
        padding: clamp(40px, 12vw, 80px) clamp(12px, 3vw, 20px);
        min-height: 85vh;
    }
    
    .hero-content {
        padding: clamp(20px, 5vw, 30px) clamp(16px, 4vw, 20px);
    }
    
    .section-content {
        padding: 0 clamp(12px, 3vw, 20px);
    }
    
    .upload-zone {
        padding: clamp(30px, 8vw, 50px) clamp(16px, 4vw, 24px);
    }
    
    .mobile-nav-menu {
        width: 100%;
        padding: 70px 20px 30px;
    }
    
    .mobile-nav-menu a {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 44px;
    }
    
    /* Extra small screen optimizations */
    .feature-card,
    .standard-item {
        padding: clamp(16px, 4vw, 24px);
    }
    
    .btn-primary,
    .btn-primary-large {
        min-height: 44px;
        font-size: clamp(15px, 4vw, 18px);
        padding: clamp(10px, 3vw, 14px) clamp(18px, 5vw, 24px);
    }
    
    /* Performance optimization for small screens */
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
}

/* Ultra-small screens: 320px */
@media (max-width: 320px) {
    .hero-content {
        padding: 16px 12px;
        margin: 0;
        border-radius: 16px;
    }
    
    .upload-container {
        padding: 20px 12px;
        margin: 0;
    }
    
    .upload-zone {
        padding: 24px 16px;
    }
    
    .mobile-nav-menu {
        padding: 60px 16px 20px;
    }
    
    .btn-primary,
    .btn-primary-large {
        min-width: 120px;
        padding: 12px 20px;
    }
    
    /* Ensure no horizontal scrolling */
    body,
    html {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* PDF Generation Loading States */
.btn.loading {
    background: linear-gradient(135deg, var(--apple-gray), #999);
    color: white;
    cursor: not-allowed;
    animation: pulse 1.5s infinite ease-in-out;
}

.btn.loading .timer-text {
    font-weight: var(--font-weight-medium);
}

.btn.loading .timer-seconds {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-size: 0.9em;
    animation: pulse 2s infinite;
}

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

/* Advertisement Styling */
.ad-container {
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
}

.ad-leaderboard {
    background: var(--apple-light-gray);
    border-radius: 12px;
    padding: 15px;
    margin: 15px auto;
    max-width: 728px;
}

.ad-block {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--apple-border);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .ad-leaderboard {
        max-width: 320px;
        padding: 12px;
    }
    
    .ad-container {
        margin: 15px auto;
    }
}

/* Kennisbank Layout Classes */
.kennisbank-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.kennisbank-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kennisbank-sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 10000;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.cookie-banner-text h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 8px;
}

.cookie-banner-text p {
  font-size: 16px;
  color: #86868B;
  line-height: 1.4;
  max-width: 600px;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-preferences-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
}

.cookie-preferences-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cookie-preferences-modal {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease-out;
}

.cookie-preferences-overlay.show .cookie-preferences-modal {
  transform: scale(1) translateY(0);
}

.cookie-preferences-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #F5F5F7;
}

.cookie-preferences-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1D1D1F;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #86868B;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #F5F5F7;
  color: #1D1D1F;
}

.cookie-preferences-content {
  padding: 24px;
}

.cookie-preferences-content > p {
  font-size: 16px;
  color: #86868B;
  margin-bottom: 24px;
  line-height: 1.5;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 16px;
  background: #F5F5F7;
  border-radius: 12px;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-category h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1D1D1F;
}

.cookie-category p {
  font-size: 14px;
  color: #86868B;
  line-height: 1.4;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #C6C6C8;
  border-radius: 14px;
  transition: 0.3s ease;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #007AFF;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.switch.disabled .slider {
  background-color: #007AFF;
  cursor: not-allowed;
}

.switch.disabled input {
  cursor: not-allowed;
}

.cookie-preferences-actions {
  padding: 24px;
  border-top: 1px solid #F5F5F7;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive adjustments for Kennisbank grids */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-preferences-modal {
        margin: 12px;
        max-height: 90vh;
    }
    
    .cookie-preferences-actions {
        flex-direction: column;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.25rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.875rem;
    }

    .kennisbank-articles-grid,
    .kennisbank-sectors-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .kennisbank-nav-buttons {
        gap: 8px !important;
    }
}

/* Templates Grid Responsive Styles */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 300px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Hide desktop navigation links on mobile */
    .nav-links {
        display: none;
    }
    
    /* Mobile Navigation Enhancements */
    .mobile-menu-toggle {
        background: none;
        border: none;
        font-size: 18px;
        color: var(--apple-black);
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-toggle:hover {
        background-color: var(--apple-light-gray);
    }
    
    /* Typography mobile optimizations */
    h1 {
        font-size: clamp(28px, 7vw, 48px) !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: clamp(24px, 6vw, 32px) !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: clamp(20px, 5vw, 24px) !important;
        line-height: 1.4 !important;
    }
    
    p {
        font-size: clamp(14px, 3.5vw, 16px) !important;
        line-height: 1.6 !important;
    }
    
    /* Button touch optimizations */
    .btn {
        min-height: 44px;
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 12px;
        touch-action: manipulation;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 17px;
        min-height: 48px;
    }
    
    /* Form optimizations */
    input, textarea, select {
        font-size: 16px;
        min-height: 44px;
        padding: 12px 16px;
        border-radius: 8px;
    }
    
    /* Performance optimizations */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Grid optimizations */
    .features-grid,
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Section spacing */
    .section {
        padding: 60px 0 !important;
    }
    
    /* Container padding */
    .container {
        padding: 0 15px !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .section {
        padding: 40px 0 !important;
    }
    
    h1 {
        font-size: clamp(24px, 6vw, 32px) !important;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .container {
        padding: 0 12px !important;
    }
}

/* Performance Optimization: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable specific animations */
    .ai-waves,
    .ai-waves::before,
    .ai-waves::after {
        animation: none !important;
    }
    
    /* Disable transform transitions */
    .feature-card:hover,
    .standard-item:hover,
    .feature-item:hover,
    .btn-primary:hover,
    .btn-primary-large:hover,
    .upload-zone:hover,
    .cv-mockup:hover,
    .success-image:hover {
        transform: none !important;
    }
    
    /* Reduce all animations and transitions */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Keep essential functionality but reduce motion */
    .mobile-nav-menu {
        transition: none !important;
    }
    
    .mobile-nav-menu.active {
        transition: none !important;
    }
    
    .nav-overlay {
        transition: none !important;
    }
    
    /* Disable hero animations */
    .hero-section::after {
        animation: none !important;
    }
    
    /* Disable all hover effects */
    .btn-primary:hover,
    .feature-card:hover,
    .template-card:hover,
    .nav-links a:hover {
        transform: none !important;
    }
    
    /* Disable progress bar animations but keep functionality */
    .progress-fill {
        transition: none !important;
    }
}