/* Tech Aventure Australia - Main Stylesheet */

/* Critical Above-the-Fold Styles */
body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    padding: 0; 
}

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

.navbar { 
    background: white !important; 
}

.hero-slider { 
    height: 100vh; 
    position: relative; 
    overflow: hidden; 
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}

.slide.active { 
    opacity: 1; 
}

.slide-video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.slide-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.4); 
    z-index: 1; 
}

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

.hero-title { 
    font-size: 3.5rem; 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
}

.hero-description { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    opacity: 0.9; 
}

.btn-find-solution { 
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); 
    color: white; 
    padding: 1rem 2rem; 
    border: none; 
    border-radius: 50px; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-block; 
    transition: all 0.3s ease; 
}

.btn-find-solution:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4); 
    color: white; 
}

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

@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .hero-description { font-size: 1rem; }
    .btn-find-solution { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}

@media (max-width: 768px) {
    .hero-slider { height: 100vh; }
    .hero-title { font-size: 2rem; margin-bottom: 1rem; }
    .hero-description { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .btn-find-solution { padding: 0.75rem 1.25rem; font-size: 0.85rem; width: 100%; text-align: center; }
    .hero-content { padding: 1rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.75rem; line-height: 1.2; }
    .hero-description { font-size: 0.9rem; line-height: 1.4; }
    .btn-find-solution { padding: 0.7rem 1rem; font-size: 0.8rem; }
}

@media (max-width: 400px) {
    .hero-title { font-size: 1.5rem; }
    .hero-description { font-size: 0.85rem; }
}

/* CSS Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
    --font-family: 'Inter', sans-serif;
}

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

/* Ensure no spacing above hero slider */
.hero-slider,
section.hero-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    padding-top: 0; /* No padding needed with transparent navbar */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-display: swap;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

a:hover {
    color: #0056b3;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

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

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

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
}



.navbar {
    background: transparent !important;
    box-shadow: none;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Scrolled navigation */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

/* Ensure navbar is transparent on page load */
.navbar:not(.scrolled) {
    background: transparent !important;
    box-shadow: none !important;
}

/* Override Bootstrap navbar classes */
.navbar.navbar-expand-lg {
    background: transparent !important;
}

.navbar.navbar-expand-lg:not(.scrolled) {
    background: transparent !important;
}

/* Force transparent background - highest specificity */
header .navbar,
.navbar.navbar-expand-lg,
.navbar {
    background: transparent !important;
    background-color: transparent !important;
}

/* Override any Bootstrap navbar-light or navbar-dark classes */
.navbar.navbar-light,
.navbar.navbar-dark {
    background: transparent !important;
    background-color: transparent !important;
}

/* Ultimate override for transparent navbar */
.navbar,
.navbar.navbar-expand-lg,
header .navbar,
.header .navbar,
.navbar:not(.scrolled),
.navbar.navbar-expand-lg:not(.scrolled) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Override any potential Bootstrap navbar background */
.navbar.bg-light,
.navbar.bg-white,
.navbar.bg-transparent {
    background: transparent !important;
    background-color: transparent !important;
}

/* Target navbar container and all child elements */
.navbar .container,
.navbar .container-fluid,
.navbar .navbar-brand,
.navbar .navbar-nav,
.navbar .nav-item,
.navbar .nav-link {
    background: transparent !important;
    background-color: transparent !important;
}

/* Force transparency on all navbar elements */
.navbar * {
    background: transparent !important;
    background-color: transparent !important;
}

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

.navbar.scrolled .navbar-brand {
    color: var(--dark-color) !important;
}

.logo {
    height: 40px;
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    color: var(--white) !important;
}

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

.navbar.scrolled .nav-link {
    color: var(--dark-color) !important;
}

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

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

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}


/* Professional styling for video slides */
.slide:has(.slide-video) .hero-content {
    background: rgba(255, 255, 255, 0.75);
    padding: 3rem;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
}

.slide:has(.slide-video) .hero-badge {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.slide:has(.slide-video) .hero-title {
    color: #2c3e50;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.slide:has(.slide-video) .hero-title .highlight {
    color: #007bff;
    position: relative;
}

.slide:has(.slide-video) .hero-description {
    color: #5a6c7d;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: none;
    background: none;
    padding: 0;
    border-radius: 0;
}

.slide:has(.slide-video) .btn-find-solution {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    border: none;
}

.slide:has(.slide-video) .btn-find-solution:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
    color: white;
}

/* Responsive design for video slides */
@media (max-width: 768px) {
    .slide:has(.slide-video) .hero-content {
        padding: 2rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .slide:has(.slide-video) .hero-title {
        font-size: 2.5rem;
    }
    
    .slide:has(.slide-video) .hero-description {
        font-size: 1.1rem;
    }
    
    .slide:has(.slide-video) .btn-find-solution {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slide:has(.slide-video) .hero-content {
        padding: 1.5rem;
    }
    
    .slide:has(.slide-video) .hero-title {
        font-size: 2rem;
    }
    
    .slide:has(.slide-video) .hero-description {
        font-size: 1rem;
    }
}

/* Fallback styles for missing images */
.card-image img[src*="our-services.jpg"]:not([src]),
.card-image img[src*="our-expertise.jpg"]:not([src]),
.card-image img[src*="our-customers.jpg"]:not([src]) {
    display: none;
}

.card-image {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.card-image::before {
    content: attr(data-fallback);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

/* Case study image fallbacks */
.case-image {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.case-image::before {
    content: "Case Study";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Business professional image fallbacks */
.business-person img {
    min-height: 300px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    object-fit: cover;
}

/* Business person image fallbacks - handled by JavaScript onerror */
.business-person img[src*="business-man.jpg"],
.business-person img[src*="business-woman.jpg"] {
    transition: all 0.3s ease;
}

/* Illustration fallbacks */
.features-image,
.about-image {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: bold;
    border-radius: 10px;
    overflow: hidden;
}

.features-image::before,
.about-image::before {
    content: attr(data-fallback);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.features-image img,
.about-image img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
}

/* Show fallback text when image fails to load */
.features-image img[src*="features-illustration.svg"]:not([src]),
.about-image img[src*="about-illustration.svg"]:not([src]) {
    display: none;
}

.features-image:has(img[src*="features-illustration.svg"]:not([src]))::before,
.about-image:has(img[src*="about-illustration.svg"]:not([src]))::before {
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-badge span {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.hero-title .highlight {
    font-weight: 700;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-find-solution {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--white);
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--white);
    transition: var(--transition);
    position: relative;
}

.btn-find-solution:hover {
    color: var(--white);
    padding-left: 1rem;
}

.btn-find-solution i {
    margin-left: 1rem;
    transition: var(--transition);
}

.btn-find-solution:hover i {
    transform: translateX(10px);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* Company Introduction Section */
.company-intro {
    background: #2c2c54;
    color: var(--white);
    padding: 5rem 0;
}

.section-label {
    color: #17a2b8;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.company-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--white);
}

.company-description {
    display: flex;
    align-items: center;
    padding-left: 2rem;
}

.company-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.company-cards {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.company-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

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

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

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

.card-content {
    padding: 2rem;
    color: var(--dark-color);
}

.card-label {
    color: #17a2b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.card-content p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-link {
    color: #17a2b8;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.card-link:hover {
    color: #138496;
    text-decoration: underline;
}

/* Card Color Variations */
.services-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
}

.expertise-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
}

.customers-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
}

.company-cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.company-cta a {
    color: #17a2b8;
    text-decoration: none;
    font-weight: 500;
}

.company-cta a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Modern Services Section */
.services-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.services-header {
    margin-bottom: 4rem;
}

.services-label {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c2c54;
    margin-bottom: 0;
    line-height: 1.2;
}

.modern-service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
    position: relative;
}

.modern-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
    border-color: #17a2b8;
}

.service-content {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.service-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c2c54;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 2.5rem;
    font-size: 2rem;
    color: #495057;
    transition: var(--transition);
}

.modern-service-card:hover .service-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: var(--white);
    transform: scale(1.1);
}

.service-link {
    color: #17a2b8;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: lowercase;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: #138496;
    gap: 1rem;
}

.service-link i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.services-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.services-footer p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.services-footer a {
    color: #2c2c54;
    font-weight: 600;
    text-decoration: none;
}

.services-footer a:hover {
    color: #17a2b8;
    text-decoration: underline;
}

/* Service Card Variations */
.modern-service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    color: #007bff;
}

.modern-service-card:nth-child(1):hover .service-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: var(--white);
}

.modern-service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #28a745;
}

.modern-service-card:nth-child(2):hover .service-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: var(--white);
}

.modern-service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    color: #ffc107;
}

.modern-service-card:nth-child(3):hover .service-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: var(--white);
}

/* Industries Section */
.industries-section {
    background: #2c2c54;
    color: var(--white);
    padding: 5rem 0;
}

.industries-content .section-label {
    color: #17a2b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.industries-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--white);
}

.industries-description {
    display: flex;
    align-items: center;
    padding-left: 2rem;
}

.industries-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.industries-grid {
    margin-top: 4rem;
}

.industry-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #17a2b8;
    transform: translateY(-5px);
}

.industry-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid #17a2b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #17a2b8;
    transition: var(--transition);
}

.industry-card:hover .industry-icon {
    background: #17a2b8;
    color: var(--white);
    transform: scale(1.1);
}

.industry-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.industry-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Case Studies Section */
.case-studies-section {
    background: #2c2c54;
    padding: 5rem 0 6rem;
}

.case-studies-header {
    margin-bottom: 4rem;
}

.case-studies-header .section-label {
    color: #17a2b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.case-studies-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 0;
    line-height: 1.2;
}

.case-study-card {
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 300px;
    position: relative;
    cursor: pointer;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.3);
}

.green-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.blue-card {
    background: linear-gradient(135deg, #007bff 0%, #17a2b8 100%);
}

.purple-card {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.case-content {
    padding: 2rem;
    color: var(--white);
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-content h4 {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0;
}

.case-logo {
    margin-top: auto;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0.9;
}

.case-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 40%;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: var(--transition);
}

.case-study-card:hover .case-image img {
    opacity: 0.5;
    transform: scale(1.1);
}

.case-studies-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.case-studies-footer p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.case-studies-footer a {
    color: #17a2b8;
    font-weight: 500;
    text-decoration: none;
}

.case-studies-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Business Solutions Section */
.business-solutions-section {
    position: relative;
    overflow: hidden;
}

.solutions-background {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    min-height: 75vh;
}

.solutions-overlay {
    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 1000 1000"><defs><pattern id="dots" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(108,117,125,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    z-index: 1;
}

.solutions-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.solution-options {
    margin-bottom: 3rem;
}

.solution-option {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    text-align: left;
}

.solution-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.solution-option.active {
    border-color: #28a745;
    background: #f8fff9;
}

.solution-option:nth-child(2).active {
    border-color: #dc3545;
    background: #fff8f8;
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.solution-option .option-icon {
    background: #e9ecef;
    color: #6c757d;
}

.solution-option.active .option-icon {
    background: #28a745;
    color: var(--white);
}

.solution-option:nth-child(2).active .option-icon {
    background: #dc3545;
    color: var(--white);
}

.option-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c2c54;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.option-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.solutions-cta p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
}

.solutions-cta a {
    color: #2c2c54;
    font-weight: 600;
    text-decoration: none;
}

.solutions-cta a:hover {
    color: #17a2b8;
    text-decoration: underline;
}

.business-person {
    position: relative;
    z-index: 2;
}

.business-person img {
    width: 100%;
    height: auto;
    max-width: 400px;
    filter: grayscale(20%);
    transition: var(--transition);
}

.left-person {
    text-align: right;
}

.right-person {
    text-align: left;
}

.business-person:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

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

/* Final CTA Section */
.final-cta-section {
    position: relative;
    overflow: hidden;
}

.cta-background {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%), url('../images/content-bottom-bg.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 6rem 0;
    min-height: 60vh;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.85) 100%);
    z-index: 1;
}

.final-cta-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.cta-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.final-cta-content h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #2c2c54;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.final-cta-content p {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-contact-now {
    display: inline-block;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.3);
}

.btn-contact-now:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(220, 53, 69, 0.4);
    color: var(--white);
}

.btn-contact-now:active {
    transform: translateY(-1px);
}

/* Fallback for browsers that don't support background-attachment: fixed */
@media (max-width: 768px) {
    .cta-background {
        background-attachment: scroll;
    }
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

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

.service-card h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* Features Section */
.features {
    background: var(--light-color);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

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

.feature-content h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Stats Section */
.stats {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-widget h5 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    color: var(--white);
    transition: var(--transition);
}

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

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

.contact-info-footer li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info-footer i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 20px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 1rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    padding: 0;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.98);
}

.scroll-to-top i {
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .slider-nav {
        padding: 0 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .company-content h2 {
        font-size: 2rem;
    }
    
    .company-description {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .company-cards {
        margin-top: 3rem;
    }
    
    .company-card {
        margin-bottom: 2rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .services-header h2 {
        font-size: 2rem;
    }
    
    .modern-service-card {
        margin-bottom: 2rem;
    }
    
    .service-content {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 1.5rem auto 2rem;
    }
    
    .industries-content h2 {
        font-size: 2rem;
    }
    
    .industries-description {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .industries-grid {
        margin-top: 3rem;
    }
    
    .industry-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .industry-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .case-studies-header h2 {
        font-size: 2rem;
    }
    
    .case-study-card {
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .case-content {
        padding: 1.5rem;
    }
    
    .case-content h4 {
        font-size: 1.1rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .solutions-background {
        min-height: 60vh;
    }
    
    .solutions-content {
        padding: 2rem 0;
    }
    
    .solution-option {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .option-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .business-person {
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    .business-person img {
        max-width: 300px;
    }
    
    .final-cta-content h2 {
        font-size: 2.2rem;
    }
    
    .final-cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-background {
        padding: 4rem 0;
        min-height: 50vh;
    }
    
    .btn-contact-now {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-item {
        text-align: center;
        flex-direction: column;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .footer-bottom-links {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .footer-bottom-links a {
        margin: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-badge span {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-find-solution {
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

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

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* CSS Property Order Fix */
* {
    -webkit-text-align: -webkit-match-parent; /* Chrome 16+, Chrome Android 18+, Edge 79+ */
    -webkit-text-align: match-parent;          /* Safari 15.4+ */
    text-align: match-parent;                  /* Safari 15.4+ */
    text-align: -webkit-match-parent;          /* Chrome 16+, Chrome Android 18+, Edge 79+ */
    text-align: inherit;                       /* Standard fallback */
}

/* Fix Bootstrap CSS property order for th elements */
th {
    -webkit-text-align: -webkit-match-parent; /* Chrome 16+, Chrome Android 18+, Edge 79+ */
    -webkit-text-align: match-parent;          /* Safari 15.4+ */
    text-align: match-parent;                  /* Safari 15.4+ */
    text-align: -webkit-match-parent;          /* Chrome 16+, Chrome Android 18+, Edge 79+ */
    text-align: inherit;                       /* Standard fallback */
}

/* Additional text-size-adjust overrides for Bootstrap compatibility */
*, *::before, *::after {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Text Size Adjust Fix for Better Browser Support */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


/* FINAL OVERRIDE - Maximum priority for transparent navbar */
.navbar {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.navbar:not(.scrolled) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* JavaScript-added transparent class */
.navbar-transparent {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Scroll to Top Button Responsive Styles */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 7rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 6rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}

/* Enhanced Responsive Design for All Devices */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title h2 {
        font-size: 3rem;
    }
}

/* Large Devices (1200px to 1399px) */
@media (max-width: 1399.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}

/* Medium Devices (992px to 1199px) */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.25rem;
    }
    
    .company-card {
        margin-bottom: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Small Devices (768px to 991px) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .company-cards .row {
        gap: 1rem;
    }
    
    .company-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .case-study-card {
        margin-bottom: 1.5rem;
    }
    
    .business-person {
        margin-bottom: 2rem;
    }
    
    .solutions-content {
        margin-top: 2rem;
    }
}

/* Extra Small Devices (576px to 767px) */
@media (max-width: 767.98px) {
    .hero-slider {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
    
    .company-card {
        margin-bottom: 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-content h3 {
        font-size: 1.25rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .case-study-card {
        margin-bottom: 1rem;
    }
    
    .case-content {
        padding: 1.5rem;
    }
    
    .business-person {
        margin-bottom: 1.5rem;
    }
    
    .solutions-content {
        margin-top: 1.5rem;
    }
    
    .btn-find-solution {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Extra Extra Small Devices (up to 575px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
    
    .case-content {
        padding: 1rem;
    }
    
    .case-content h4 {
        font-size: 1.1rem;
    }
    
    .btn-find-solution {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Ultra Small Devices (up to 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.25rem;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .service-content {
        padding: 0.75rem;
    }
    
    .case-content {
        padding: 0.75rem;
    }
    
    .btn-find-solution {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .card-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .service-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: pixelated;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn-find-solution {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Smooth Scrolling and Touch Optimizations */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn, .nav-link, .card-link, .service-link {
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2);
    }
    
    .btn:active, .nav-link:active, .card-link:active, .service-link:active {
        transform: scale(0.98);
    }
}

/* Improved focus states for accessibility */
.btn:focus, .nav-link:focus, .card-link:focus, .service-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Better text selection */
::selection {
    background-color: rgba(0, 123, 255, 0.2);
    color: inherit;
}

/* Improved loading states */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Container improvements for better responsive behavior */
.container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 575.98px) {
    .container, .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}
