:root {
    --primary-color: #8b0000;
    --secondary-color: #00A651;
    --accent-color: #0066CC;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.utility-bar {
    font-size: 0.875rem;
}

.utility-bar a:hover {
    opacity: 0.8;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-btn.active {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

.bg-accent {
    background-color: var(--accent-color) !important;
}

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

.btn-success:hover {
    background-color: #008f45;
    border-color: #008f45;
}

.btn-danger {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #6D0000 !important;
    border-color: #6D0000 !important;
    color: white !important;
}

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

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-family: 'Lato', sans-serif;
}

.navbar-brand img,
footer img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: contrast(1.1) brightness(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.hero-section {
    background: transparent;
    padding: 0;
    position: relative;
    min-height: 650px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('attached_assets/confident-blonde-female-manager-posing-with-smile-after-conference-with-other-employees-asian-programmer-talking-with-african-freelancer-while-fair-haired-secretary-laughing_1761854418534.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
}

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

.hero-cta-row {
    margin-top: 180px;
}

@media (min-width: 576px) {
    .hero-cta-row {
        margin-top: 100px;
    }
}

@media (min-width: 768px) {
    .hero-cta-row {
        margin-top: 80px;
    }
}

@media (min-width: 992px) {
    .hero-cta-row {
        margin-top: 120px;
    }
}

@media (min-width: 1200px) {
    .hero-cta-row {
        margin-top: 150px;
    }
}

.min-vh-75 {
    min-height: 75vh;
}

.cta-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
}

.cta-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.world-map-container img {
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

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

.stats-banner {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

.search-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.service-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    border-color: var(--primary-color);
}

.service-icon i {
    font-size: 3rem;
}

.industry-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15) !important;
}

.industry-card i {
    font-size: 3rem;
}

.testimonial-card {
    border-radius: 15px;
}

.blog-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.blog-card img {
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-in 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.6s both;
}

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

.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--secondary-color) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

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

/* Extra Small Devices (Mobile Phones, up to 576px) */
@media (max-width: 576px) {
    /* Utility Bar */
    .utility-bar {
        font-size: 0.7rem;
        padding: 0.25rem 0;
    }
    
    .utility-bar .container > div {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .lang-btn {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        height: 50px !important;
        width: auto;
    }
    
    .navbar-brand .ms-3 {
        margin-left: 0.5rem !important;
    }
    
    .navbar-brand .ms-3 div {
        font-size: 0.85rem !important;
    }
    
    .btn-danger.ms-3 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        width: 100%;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 500px;
        padding: 20px 0 !important;
    }
    
    .hero-background {
        background-position: center;
    }
    
    .hero-content .pt-5 {
        padding-top: 0.5rem !important;
    }
    
    .hero-content .mt-lg-4 {
        margin-top: 0 !important;
    }
    
    /* Typography */
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .display-2 {
        font-size: 2.2rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Cards */
    .cta-card {
        padding: 0.85rem !important;
        margin-bottom: 0.75rem;
    }
    
    .cta-card h3 {
        font-size: 0.95rem;
    }
    
    .cta-card p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem !important;
    }
    
    .cta-card .fs-3 {
        font-size: 1.3rem !important;
    }
    
    .cta-card .btn-lg {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .service-card,
    .search-card,
    .industry-card {
        padding: 1.25rem !important;
        margin-bottom: 1rem;
    }
    
    .service-icon i,
    .industry-card i {
        font-size: 2rem !important;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
    
    .btn {
        font-size: 0.9rem;
    }
    
    /* Stats Banner */
    .stats-banner h3 {
        font-size: 1.5rem;
    }
    
    .stats-banner p {
        font-size: 0.85rem;
    }
    
    /* Footer */
    footer {
        font-size: 0.85rem;
    }
    
    footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    footer .social-links a {
        font-size: 1.25rem;
    }
    
    /* Disable hover effects on mobile */
    .cta-card:hover,
    .service-card:hover,
    .industry-card:hover,
    .blog-card:hover,
    .nav-link:hover {
        transform: none;
    }
}

/* Small Devices (Landscape Phones, Tablets, up to 768px) */
@media (max-width: 768px) {
    /* Utility Bar */
    .utility-bar {
        font-size: 0.75rem;
    }
    
    /* Navbar */
    .navbar-brand img {
        height: 60px !important;
    }
    
    .navbar-brand .ms-3 div {
        font-size: 1rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 550px;
        padding: 30px 0 !important;
    }
    
    /* Typography */
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    /* Cards */
    .cta-card {
        padding: 1.5rem;
    }
    
    .search-card {
        padding: 2rem !important;
    }
}

/* Medium Devices (Tablets, up to 992px) */
@media (max-width: 992px) {
    .navbar-brand img {
        height: 70px !important;
    }
    
    .hero-section {
        min-height: 600px;
    }
    
    .cta-card {
        padding: 1.75rem;
    }
}

/* Large Devices (Desktops, up to 1200px) */
@media (max-width: 1200px) {
    .hero-section {
        min-height: 625px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

.badge {
    font-weight: 500;
    padding: 0.5em 1em;
}

.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.chat-widget.active {
    display: flex;
}

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

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.bot-message,
.user-message {
    margin-bottom: 15px;
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
}

.chat-input button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quick-reply {
    margin-top: 5px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .chat-widget {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        bottom: 10px;
        right: 10px;
    }
}
