/* Main styles for tarjimnebi.ge */

@font-face {
    font-family: 'DejaVu Sans';
    src: url('../fonts/dejavu-sans-webfont.eot'); /* IE9 Compat Modes */
    src: url('../fonts/dejavu-sans-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/dejavu-sans-webfont.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/dejavu-sans-webfont.woff') format('woff'), /* Pretty Modern Browsers */
         url('../fonts/dejavu-sans-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/dejavu-sans-webfont.svg#dejavu_sansregular') format('svg'); /* Legacy iOS */
}

@font-face {
    font-family: 'BPG Mrgvlovani Caps';
    src: url('../fonts/bpg-mrgvlovani-caps-webfont.eot'); /* IE9 Compat Modes */
    src: url('../fonts/bpg-mrgvlovani-caps-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/bpg-mrgvlovani-caps-webfont.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/bpg-mrgvlovani-caps-webfont.woff') format('woff'), /* Pretty Modern Browsers */
         url('../fonts/bpg-mrgvlovani-caps-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/bpg-mrgvlovani-caps-webfont.svg#bpg_mrgvlovani_capsregular') format('svg'); /* Legacy iOS */
}

@font-face {
    font-family: 'ALK Life';
    src: url('../fonts/alk-life-webfont.eot'); /* IE9 Compat Modes */
    src: url('../fonts/alk-life-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/alk-life-webfont.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/alk-life-webfont.woff') format('woff'), /* Pretty Modern Browsers */
         url('../fonts/alk-life-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/alk-life-webfont.svg#alk_liferegular') format('svg'); /* Legacy iOS */
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #06d6a0;
    --warning-color: #ffd60a;
    --danger-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --muted-color: #6c757d;
    
    --font-georgian: 'DejaVu Sans', sans-serif;
    --font-latin: 'Inter', sans-serif;
}

/* Typography */
body {
    font-family: var(--font-latin);
    line-height: 1.6;
    color: var(--dark-color);
}

nav, .breadcrumb, h1, h2, h3, h4, h5, .btn, .nav-pills {
  font-family: "BPG Mrgvlovani Caps";
}

.georgian {
    font-family: var(--font-georgian);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.text-georgian {
    font-family: var(--font-georgian);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-family: var(--font-georgian);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 100px 0;
    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 100 20"><text y="15" font-size="10" fill="rgba(255,255,255,0.1)">🌐 📄 ✍️ 🎯</text></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-card {
    text-align: center;
    padding: 2rem;
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Language Flags */
.language-flag {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Price Calculator */
.calculator-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.price-display {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.price-display .amount {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Form Styling */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--muted-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.file-upload-area .upload-icon {
    font-size: 3rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

/* File Upload Enhanced Styles */
.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
    transform: scale(1.02);
}

/* File Item Styles */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 2px;
    word-break: break-word;
    line-height: 1.3;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6c757d;
}

.file-size {
    color: #6c757d;
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Upload Progress */
.upload-progress .progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress .progress-bar {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    font-size: 0.75rem;
    line-height: 8px;
    text-align: center;
    color: white;
}

/* Selected and Uploaded Files Containers */
.selected-files-container,
.uploaded-files-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
}

.selected-files-container {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.uploaded-files-container {
    background-color: #f0f9ff;
    border-color: #bfdbfe;
}

.selected-files-list,
.uploaded-files-list {
    max-height: 300px;
    overflow-y: auto;
}

/* File upload responsive */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }
    
    .file-meta {
        flex-wrap: wrap;
    }
}

/* Language Service Pages */
.language-service-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.language-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.language-service-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.language-pair {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.language-pair .flag {
    font-size: 0.875rem
}

.popularity-badge .badge {
    font-size: 0.75rem;
}

.service-features {
    font-size: 0.875rem;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-from {
    font-size: 0.875rem;
    color: #6c757d;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-unit {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Additional Language Cards */
.additional-language-card {
    padding: 2rem 1.5rem;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.additional-language-card:hover {
    border-color: var(--primary-color);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.additional-language-card .flag {
    font-size: 1.5rem;
}

.price-range {
    font-size: 1.1rem;
}

/* Document Type Cards */
.document-type-card {
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.document-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.doc-icon i {
    font-size: 2.5rem;
}

.document-type-card h5 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.document-type-card ul li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.document-type-card ul li:last-child {
    border-bottom: none;
}

/* Cultural Features */
.cultural-feature {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.cultural-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon i {
    font-size: 2rem;
}

/* Process Steps */
.process-step {
    position: relative;
    padding: 1.5rem;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-icon i {
    font-size: 2.5rem;
}

/* Investment & Market Sections */
.investment-stats,
.turkish-connection,
.translation-visual {
    border: 1px solid #e9ecef;
}

.stat-item,
.stat-card {
    transition: all 0.3s ease;
}

.stat-item:hover,
.stat-card:hover {
    transform: scale(1.05);
}

.sector-tag {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.flags-connection {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-author {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Hero Visual Elements */
.hero-stats .stat-item {
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-features .fas {
    width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-pair .flag {
        font-size: 1.5rem;
    }
    
    .language-service-card .card-header {
        padding: 1rem;
    }
    
    .document-type-card,
    .cultural-feature {
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.client-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Statistics */
.stats-section {
    background: linear-gradient(135deg, var(--dark-color), #495057);
    color: white;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Features Section */
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* WhatsApp Chat */
.whatsapp-chat .btn {
    width: 60px;
    height: 60px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utilities */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.text-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Language Direction Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* Print Styles */
@media print {
    .navbar, .whatsapp-chat, footer {
        display: none;
    }
    
    .main-content {
        padding-top: 0 !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus states */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000080;
        --accent-color: #4169e1;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}