/* ConsultTik Modern CSS */
/* Variables */
:root {
    --primary-color: #0078d4;
    --secondary-color: #005a9e;
    --accent-color: #00bcf2;
    --success-color: #107c10;
    --warning-color: #ff8c00;
    --danger-color: #d13438;
    --dark-color: #323130;
    --light-color: #f3f2f1;
    --white-color: #ffffff;
    --text-primary: #323130;
    --text-secondary: #605e5c;
    --text-light: #8a8886;
    --border-color: #edebe9;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    --gradient-secondary: linear-gradient(135deg, #005a9e 0%, #0078d4 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #4fc3f7;
    --secondary-color: #29b6f6;
    --accent-color: #00e5ff;
    --success-color: #66bb6a;
    --warning-color: #ffb74d;
    --danger-color: #f06292;
    --dark-color: #121212;
    --light-color: #1e1e1e;
    --white-color: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-light: #b3b3b3;
    --border-color: #404040;
    --shadow-light: 0 2px 4px rgba(255,255,255,0.1);
    --shadow-medium: 0 4px 8px rgba(255,255,255,0.15);
    --shadow-heavy: 0 8px 16px rgba(255,255,255,0.2);
}

/* Dark mode specific styles */
[data-theme="dark"] body {
    background-color: var(--dark-color);
    color: var(--text-primary);
}

[data-theme="dark"] .bg-light {
    background-color: var(--light-color) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .bg-white {
    background-color: var(--white-color) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .card {
    background-color: var(--white-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .navbar {
    background: rgba(30,30,30,0.95) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar-light .navbar-nav .nav-link {
    color: var(--text-primary);
}

[data-theme="dark"] .navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--white-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

[data-theme="dark"] .footer {
    background-color: var(--dark-color) !important;
}

[data-theme="dark"] .service-card {
    background-color: var(--white-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: var(--shadow-medium);
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

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

/* Additional dark mode text styles */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] p {
    color: var(--text-secondary);
}

[data-theme="dark"] .text-secondary {
    color: var(--text-light) !important;
}

[data-theme="dark"] .contact-info-card {
    background-color: var(--white-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .info-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .info-text {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .form-control {
    background-color: var(--light-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.25);
    color: var(--text-primary);
}

[data-theme="dark"] .form-label {
    color: var(--text-primary);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .section-subtitle {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .section-description {
    color: var(--text-secondary) !important;
}

/* Dark mode component styles */
[data-theme="dark"] .feature-item {
    background-color: var(--white-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .feature-content h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-content p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .service-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .service-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .service-link {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .tech-card {
    background-color: var(--white-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .tech-card h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .tech-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .news-card {
    background-color: var(--white-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .news-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-excerpt {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .news-meta {
    color: var(--text-light) !important;
}

[data-theme="dark"] .news-link {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .stat-number {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .benefit-card {
    background-color: var(--white-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .benefit-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .benefit-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .breadcrumb-item a {
    color: rgba(255,255,255,0.7) !important;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: rgba(255,255,255,1) !important;
}

/* Dark mode form improvements */
[data-theme="dark"] .form-select {
    background-color: var(--light-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-select:focus {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

[data-theme="dark"] .alert {
    background-color: var(--light-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .alert-success {
    background-color: rgba(102, 187, 106, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(240, 98, 146, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white-color);
    overflow-x: hidden;
}

/* Global mobile overflow safeguards */
@media (max-width: 576px) {
    html, body { width: 100%; overflow-x: hidden; }
    .navbar, .main-content, section, .container, .row { max-width: 100%; overflow-x: clip; }
    [class^="col-"], [class*=" col-"] { max-width: 100%; }
    /* Reduce Bootstrap gutter slightly to avoid edge clipping on very narrow screens */
    .row { --bs-gutter-x: 1rem; }
    /* Center content properly on mobile */
    .container { margin: 0 auto; text-align: center; }
    .hero-content, .section-header { text-align: center; }
}

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

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

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

a:hover {
    color: var(--secondary-color);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

.loading-logo {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-medium);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--secondary-color);
}

.theme-toggle .dark-icon,
.theme-toggle .light-icon {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

[data-theme="dark"] .theme-toggle .dark-icon,
[data-theme="light"] .theme-toggle .light-icon {
    display: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--dark-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
    border-radius: var(--border-radius);
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: var(--transition-medium);
    padding: 1rem 0;
}

[data-theme="dark"] .navbar {
    background: rgba(45, 45, 45, 0.95);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
}

.navbar-brand .logo {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

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

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius-lg);
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

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

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

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

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

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

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

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-medium);
}

.cta-button:hover::before {
    left: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 120, 212, 0.1);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.12) 60%, rgba(255,255,255,0));
    will-change: transform, opacity;
    animation: drift var(--drift-duration, 22s) ease-in-out infinite alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    --dx: 60px;
    --dy: -40px;
    --scale: 1.06;
    --drift-duration: 28s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    --dx: -50px;
    --dy: 30px;
    --scale: 1.1;
    --drift-duration: 24s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 15%;
    --dx: 35px;
    --dy: -25px;
    --scale: 1.12;
    --drift-duration: 20s;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate3d(var(--dx, 30px), var(--dy, -30px), 0) scale(var(--scale, 1.08));
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-shapes .shape { animation: none !important; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.partner-badge {
    height: 30px;
    width: auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, #00bcf2, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-stats {
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00bcf2;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
}

/* Removed floating overlay cards for accessibility and mobile clarity */

/* Mini cards under hero image */
.mini-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: var(--shadow-light);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.mini-card i { font-size: 1rem; color: var(--primary-color); }
.mini-card span { font-weight: 600; color: var(--text-primary); }

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    background: white;
}

@media (max-width: 576px) {
    .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.scroll-dot {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Ensure white text on gradient blue headers */
.page-header {
    color: white;
}
.page-header .breadcrumb-item a,
.page-header .breadcrumb-item,
.page-header h1,
.page-header p,
.page-header .lead {
    color: rgba(255,255,255,0.95) !important;
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6) !important;
}

/* Blog layout overflow fixes */
.blog-sidebar img { max-width: 100%; height: auto; display: block; }
.recent-post-title a { word-break: break-word; overflow-wrap: anywhere; }
.recent-post-content { min-width: 0; }
.blog-card { overflow: hidden; }

/* Service hero sections: force white text on gradients */
.service-hero { color: #ffffff; }
.service-hero h1,
.service-hero h2,
.service-hero h3 { color: #ffffff !important; }
.service-hero p,
.service-hero .lead,
.service-hero .text-muted,
.service-hero .section-description { color: rgba(255,255,255,0.92) !important; }
.service-hero .breadcrumb-item,
.service-hero .breadcrumb-item a { color: rgba(255,255,255,0.75) !important; }
.service-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.55) !important; }

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Services Section */
.services-section {
    padding: 6rem 0;
}

.service-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

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

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.service-image {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    opacity: 0.1;
    transition: var(--transition-medium);
}

.service-card:hover .service-image {
    opacity: 0.3;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

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

.feature-content p {
    color: var(--text-secondary);
    margin: 0;
}

.why-choose-visual {
    position: relative;
}

.image-stack {
    position: relative;
}

.stack-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.image-1 {
    width: 80%;
    height: auto;
}

.image-2 {
    position: absolute;
    top: 20%;
    right: 0;
    width: 60%;
    height: auto;
}

.experience-badge {
    position: absolute;
    bottom: 10%;
    left: 10%;
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 50%;
    text-align: center;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
}

.badge-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Technologies Section */
.technologies-section {
    padding: 6rem 0;
}

.tech-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.tech-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.tech-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--gradient-primary);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* News Section */
.news-section {
    padding: 6rem 0;
}

.news-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 2rem;
}

.news-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.news-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    padding: 4rem 0 2rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3b3b3;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

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

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #b3b3b3;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #b3b3b3;
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 1rem;
}

.partner-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.partner-badge {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.partner-badge:hover {
    opacity: 1;
}

.footer-divider {
    border-color: #404040;
    margin: 2rem 0;
}

.copyright {
    color: #b3b3b3;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #b3b3b3;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    z-index: 1000;
}

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

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Language Selector */
.language-selector .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--border-radius-lg);
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 0.5rem;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-item {
        text-align: center;
        flex-direction: column;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .image-2 {
        position: static;
        margin-top: 1rem;
        width: 100%;
    }
    
    .experience-badge {
        position: static;
        margin: 2rem auto 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Tighter hero layout on tablets */
    .hero-section .row { gap: 1rem; }
    
    .service-card,
    .tech-card,
    .news-card {
        margin-bottom: 2rem;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 2rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .theme-toggle {
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin: 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .partner-badges {
        justify-content: center;
    }
    /* Hide background shapes and other decorative visuals on very small screens */
    .floating-shapes, .particles-container { display: none !important; }
    .hero-background .hero-overlay { background: rgba(0, 120, 212, 0.2); }

    /* Ensure hero columns stack nicely */
    .hero-section .row { gap: 1.25rem; }
    .hero-image { border-radius: 12px; box-shadow: var(--shadow-medium); }
    .mini-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-stats .col-4 { flex: 0 0 100%; max-width: 100%; }
    /* Reduce hero vertical height and prevent giant whitespace */
    .hero-section { min-height: auto; padding-top: 5.25rem; padding-bottom: 1.25rem; }
    .hero-section .min-vh-100 { min-height: auto !important; }
    .hero-section .py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
    .hero-stats { margin-top: 1.25rem; }
    .hero-stats .row { row-gap: 1rem !important; column-gap: 1rem !important; }

    /* Safer text sizing on small devices */
    .hero-description { font-size: 0.95rem; }
    .hero-badge { padding: 0.4rem 0.75rem; }
    .hero-badge { max-width: 100%; flex-wrap: wrap; }
    /* Ensure service cards don't cause horizontal overflow */
    .service-card { padding: 1.25rem; }
    .service-image { right: 0.75rem; top: 0.75rem; width: 48px; height: 48px; }
}

/* RTL Support */
.rtl {
    direction: rtl;
}

.rtl .nav-link::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

.rtl .feature-item:hover {
    transform: translateX(-10px);
}

.rtl .news-link:hover,
.rtl .service-link:hover {
    transform: translateX(-5px);
}

.rtl .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Print Styles */
@media print {
    .navbar,
    .theme-toggle,
    .back-to-top,
    .floating-shapes,
    .hero-actions,
    .cta-section {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .service-card,
    .tech-card,
    .news-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
