/**
 * Main Stylesheet
 * ARKAN for Digital Technology - INVOICER
 * Modern, joyful design with Arabic RTL support
 */

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

:root {
    /* Modern Light Color Palette */
    --primary-color: #667eea;
    --primary-light: #764ba2;
    --secondary-color: #f093fb;
    --accent-color: #4facfe;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Cairo', Arial;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    height: 60px;
    width: auto;
    border-radius: var(--radius-md);
}

.brand-text h1 {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.brand-text p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #667eea;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-link:nth-child(1) {
    border-color: #667eea;
}

.nav-link:nth-child(2) {
    border-color: #f093fb;
}

.nav-link:nth-child(3) {
    border-color: #4facfe;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
}

.nav-link:nth-child(1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-link:nth-child(2)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.nav-link:nth-child(3)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link:nth-child(1):hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.nav-link:nth-child(2):hover {
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.4);
}

.nav-link:nth-child(3):hover {
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: right; /* Changed from center for horizontal layout */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

/* Hero and Converter Horizontal Layout */
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50-50 split */
    gap: var(--spacing-xl);
    align-items: center; /* Changed from stretch to prevent hover distortion */
    min-height: 600px;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Changed from center */
    gap: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero QR Code */
.hero-qr {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.qr-code-img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255, 255, 255, 0.5);
    background: white;
    padding: var(--spacing-xs);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.qr-code-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.qr-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Section Styles */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: var(--radius-xl);
}

/* Problem Section - Moved after converter */
.problem-section {
    background: var(--gray-50);
    padding: var(--spacing-lg) 0; /* Reduced padding */
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md); /* Reduced gap */
}

.problem-card {
    background: var(--white);
    padding: var(--spacing-md); /* Reduced padding */
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.problem-icon {
    font-size: 2.5rem; /* Reduced from 3rem */
    margin-bottom: var(--spacing-xs);
}

.problem-card h3 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs); /* Reduced spacing */
    font-size: 1.1rem; /* Reduced font size */
}

.problem-card p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem; /* Slightly smaller */
}

/* Converter Section - Embedded in Hero */
.converter-section {
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.converter-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(102, 126, 234, 0.1) inset;
    border: 3px solid rgba(102, 126, 234, 0.4);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    transform-origin: center center;
}

.converter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.3),
                0 0 0 1px rgba(102, 126, 234, 0.2) inset;
    border-color: var(--primary-color);
}

.converter-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.converter-description {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-50);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: var(--radius-xl);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(240, 147, 251, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.upload-area:hover::before {
    opacity: 0.1;
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(240, 147, 251, 0.15) 100%);
    transform: scale(1.02);
    border-style: solid;
}

.upload-icon {
    width: 56px;
    height: 56px;
    color: var(--primary-color);
    margin: 0 auto var(--spacing-sm);
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
    filter: drop-shadow(0 5px 10px rgba(102, 126, 234, 0.3));
}

.upload-text {
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.upload-hint {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* File Info */
.file-info {
    background: var(--gray-50);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    border: 2px solid var(--primary-color);
}

.file-details {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.file-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.file-name {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.file-size {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.remove-btn {
    background: var(--error-color);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

/* Progress Bar */
.progress-container {
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Buttons */
.convert-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: 3px solid transparent;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-xl);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

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

.convert-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.convert-btn:hover:not(:disabled)::before {
    left: 100%;
}

.convert-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

/* Force hide convert button after success */
#convertBtn.hidden,
.convert-btn.hidden,
button.convert-btn[style*="display: none"],
#convertBtn[style*="display: none"],
#convertBtnContainer[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
.btn-icon {
    width: 24px;
    height: 24px;
}

/* Messages */
.success-message,
.error-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.success-message {
    background: #d1fae5;
    border: 2px solid var(--success-color);
    color: #065f46;
}

.error-message {
    background: #fee2e2;
    border: 2px solid var(--error-color);
    color: #991b1b;
}

.success-icon,
.error-icon {
    width: 48px;
    height: 48px;
}

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

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

.success-text,
.error-text {
    font-weight: 600;
    font-size: 1.125rem;
}

.download-btn {
    background: var(--success-color);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--gray-50);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
   transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* How-To Section */
.howto-section {
    background: var(--gray-100);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    align-items: stretch;
}

.step-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.step-card h3 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.step-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
}

/* Use Cases Section */
.usecases-section {
    background: var(--white);
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.usecase-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.usecase-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.usecase-card h3 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.usecase-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Company Section */
.company-section {
    background: var(--gray-100);
}

.company-content {
   /* max-width: 800px;*/
    margin: 0 auto;
}

.company-info {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: none;
}

.company-info h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.company-info h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.company-info p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.company-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.company-feature {
    color: var(--gray-700);
    padding: var(--spacing-sm);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.qr-section {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--gray-200);
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-sm);
}

.qr-section p {
    color: var(--gray-600);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.footer-section p {
    margin-bottom: var(--spacing-xs);
}

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

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

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

.footer-section li {
    margin-bottom: var(--spacing-xs);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Stack hero and converter on tablets */
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
        padding: var(--spacing-xl);
        min-height: 300px;
    }
    
    .hero-qr {
        align-items: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .converter-card {
        max-width: 600px;
        margin: 0 auto;
        padding: var(--spacing-xl);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-md) 0;
    }
    
    .hero .container {
        min-height: auto;
        gap: var(--spacing-md);
    }
    
    .hero-content {
        padding: var(--spacing-lg);
        min-height: 250px;
    }
    
    .qr-code-img {
        width: 120px;
        height: 120px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .converter-card {
        padding: var(--spacing-lg);
        max-width: 100%;
    }
    
    .converter-title {
        font-size: 1.25rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .step-card {
        padding: var(--spacing-md);
    }
}

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

.converter-card,
.problem-card,
.feature-card,
.step-card,
.usecase-card {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-icon.spinning {
    animation: spin 1s linear infinite;
}
