/* ========================================
   Digital Munk - Custom Design Improvements
   ======================================== */

/* Fix Image Blur and Quality Issues */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    max-width: 100%;
    height: auto;
}

.icon img,
.service-icon img {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Fix Content Visibility and Z-index Issues */
.main-banner {
    position: relative;
    z-index: 1;
    background: #fff;
}

.section {
    position: relative;
    z-index: 1;
    background: #fff;
}

.header-area {
    position: relative;
    z-index: 999 !important;
}

/* Improve Text Readability */
body {
    font-family: 'Poppins', sans-serif;
    color: #2a2a2a;
    line-height: 1.8;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 20px;
    line-height: 1.4;
}




p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Fix Overlapping Content */
.section-heading {
    position: relative;
    z-index: 2;
    background: transparent;
}

.left-image,
.right-image {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.left-image img,
.right-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Improve Icon Display */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 80px;
}

.icon img {
    max-width: 60px;
    height: auto;
    filter: none;
}

/* Fix Service Items */
.service-item,
.fact-item {
    background: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-item:hover,
.fact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Improve Count Area */
.count-area-content {
    position: relative;
    z-index: 2;
}

.count-digit {
    font-size: 42px;
    font-weight: 700;
    color: #4da6ff;
    margin: 15px 0;
}

.count-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 10px;
}

/* Fix Banner Section */
.main-banner {
    padding: 180px 0 120px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.header-text h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

.header-text h6 {
    font-size: 16px;
    color: #4da6ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.header-text p {
    font-size: 17px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Improve Buttons */
.main-button,
.main-blue-button-hover a,
.main-red-button-hover a {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(77, 166, 255, 0.3);
}

.main-button:hover,
.main-blue-button-hover a:hover,
.main-red-button-hover a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 166, 255, 0.4);
}

/* Fix Navigation */
.main-nav ul li a {
    font-weight: 500;
    font-size: 15px;
    color: #2a2a2a;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #4da6ff;
}

/* Improve Footer */
footer {
    background: #1e1e1e;
    padding: 60px 0 30px;
    position: relative;
    z-index: 2;
}

footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

footer p,
footer ul li a {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.8;
}

footer ul li a:hover {
    color: #4da6ff;
}

/* Fix Decorative Images */
.services-right-dec,
.services-left-dec,
.portfolio-left-dec,
.tables-left-dec,
.tables-right-dec,
.videos-left-dec,
.videos-right-dec,
.contact-dec,
.contact-left-dec,
.footer-dec {
    opacity: 0.3;
    z-index: 0;
}

/* Improve Carousel */
.owl-carousel .item {
    position: relative;
    z-index: 2;
}

/* Fix Blog Posts */
.blog-post {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.blog-post .thumb {
    overflow: hidden;
    height: 250px;
}

.blog-post .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.blog-post:hover .thumb img {
    transform: scale(1.1);
}

.blog-post .content {
    padding: 30px;
    background: #fff;
    position: relative;
    z-index: 2;
}

.blog-post .category {
    display: inline-block;
    background: #4da6ff;
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post h4 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e1e1e;
}

.blog-post p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-post .meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
}

.blog-post .meta i {
    margin-right: 5px;
    color: #4da6ff;
}

/* Fix Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #2a2a2a;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 20px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #4da6ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Improve Contact Section */
.contact-us .info {
    margin-top: 30px;
}

.contact-us .info span {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
    color: #2a2a2a;
}

.contact-us .info i {
    color: #4da6ff;
    margin-right: 10px;
    font-size: 18px;
}

/* Fix Subscribe Section */
.subscribe {
    background: linear-gradient(135deg, #4da6ff 0%, #3d8fd9 100%);
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.subscribe h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
}

.subscribe form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe input {
    flex: 1;
    min-width: 250px;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
}

.subscribe button {
    padding: 15px 35px;
    background: #fff;
    color: #4da6ff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Improve Spacing */
.section {
    padding: 80px 0;
}

.section-heading {
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-heading span {
    font-size: 14px;
    color: #4da6ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fix Alert Messages */
.alert {
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive Improvements */
@media (max-width: 991px) {
    .header-text h2 {
        font-size: 36px;
    }
    
    .section-heading h2 {
        font-size: 32px;
    }
    
    .main-banner {
        padding: 150px 0 100px 0;
        min-height: 500px;
    }
    
    .service-item,
    .fact-item {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .header-text h2 {
        font-size: 28px;
    }
    
    .section-heading h2 {
        font-size: 26px;
    }
    
    .main-banner {
        padding: 130px 0 80px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .subscribe form {
        flex-direction: column;
    }
    
    .subscribe input {
        min-width: 100%;
    }
}

/* Fix Preloader */
.js-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Improve Logo */
.logo h4 {
    font-size: 28px;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0;
}

.logo h4 span {
    color: #4da6ff;
}

/* Fix Career Page Job Items */
.fact-item h4 {
    font-size: 22px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 15px;
}

.fact-item p {
    font-size: 15px;
    line-height: 1.7;
}

.fact-item strong {
    color: #1e1e1e;
    font-weight: 600;
}

/* Improve Service Detail Pages */
.about-us .section-heading h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.about-us .section-heading p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* Add Professional Shadows - Removed to allow header-footer-improvements.css to handle header styling */

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix Content Behind Images */
.container {
    position: relative;
    z-index: 2;
}

.row {
    position: relative;
    z-index: 2;
}

/* Improve Industries Section */
#industries .fact-item {
    min-height: 250px;
}

#industries h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Fix Owl Carousel Navigation */
.owl-nav button {
    background: #4da6ff !important;
    color: #fff !important;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    font-size: 20px !important;
    transition: all 0.3s ease;
}

.owl-nav button:hover {
    background: #3d8fd9 !important;
    transform: scale(1.1);
}

/* Professional Color Scheme */
:root {
    --primary-color: #4da6ff;
    --secondary-color: #3d8fd9;
    --dark-color: #1e1e1e;
    --light-color: #f8f9fa;
    --text-color: #2a2a2a;
    --text-light: #666;
}
