/*-----------------------------------------------------------------------------------
    Responsive Enhancements for Optimus Energy Website
    - Mobile-first responsive design improvements
    - Clean layout optimizations
    - Better typography scaling
    - Enhanced user experience across all devices
-----------------------------------------------------------------------------------*/

/* ===== GLOBAL RESPONSIVE IMPROVEMENTS ===== */

/* Ensure all images are responsive by default */
img {
    max-width: 100%;
    height: auto;
}

/* Improve text readability on mobile */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Better container padding on mobile */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ===== HEADER RESPONSIVE IMPROVEMENTS ===== */

/* Mobile header adjustments */
@media (max-width: 991px) {
    .tj-header-area .tj-top-content-area {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .tj-header-area .logo-area img {
        max-height: 50px;
        width: auto;
    }
    
    .info-right-item {
        order: -1;
        margin-bottom: 10px;
    }
    
    .hamburger_menu {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .tj-header-area .logo-area img {
        max-height: 40px;
    }
    
    .info-right-item {
        font-size: 14px;
    }
    
    .info-right-item .info-text a {
        font-size: 14px;
    }
}

/* ===== HERO SECTION RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 991px) {
    .tj-hero-section-two .row {
        flex-direction: column-reverse;
    }
    
    .tj-hero-section-two .hero-content-two {
        text-align: center;
        margin-top: 30px;
    }
    
    .tj-hero-section-two .sec-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .tj-hero-button {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .tj-hero-button .tj-primary-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .tj-hero-section-two .sec-title {
        font-size: 2rem;
    }
    
    .tj-hero-section-two p {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .tj-hero-section-two {
        padding: 60px 0;
    }
    
    .tj-hero-section-two .sec-title {
        font-size: 1.8rem;
    }
    
    .form-box-two {
        margin-top: 30px;
        padding: 20px;
    }
    
    .form-box-two .contact-content h3 {
        font-size: 1.5rem;
    }
}

/* ===== SERVICES SECTION RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 768px) {
    .service-item-four {
        margin-bottom: 30px;
        padding: 25px 20px;
    }
    
    .service-item-four .title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .service-item-four .desc h6 {
        font-size: 1rem;
    }
    
    .check-list ul.dot-style li {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .tj-service-section-three .row > div {
        margin-bottom: 20px;
    }
    
    .service-item-four {
        padding: 20px 15px;
    }
}

/* ===== ABOUT SECTION RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 1199px) {
    .about-image-group-three {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .about-content-three .title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .about-content-three p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .about-image-group-three .about-top-image,
    .about-image-group-three .about-bottom-image {
        margin-bottom: 20px;
    }
}

/* ===== CHOOSE US SECTION RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 991px) {
    .tj-choose-us-item-two {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .tj-choose-us-item-two .title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .choose-us-top-content {
        margin-bottom: 20px;
    }
    
    .choose-us-icon {
        width: 60px;
        height: 60px;
    }
    
    .choose-us-text span {
        font-size: 1.2rem;
    }
}

/* ===== TESTIMONIAL SECTION RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 768px) {
    .testimonial-slider-item-two {
        padding: 25px 20px;
    }
    
    .testimonial-slider-item-two .title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .testimonial-auother .avator-name span {
        font-size: 14px;
    }
}

/* ===== PROJECT SECTION RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 768px) {
    .tj-project-item-two {
        margin-bottom: 15px;
    }
    
    .container-fluid .row > div {
        padding: 5px;
    }
}

@media (max-width: 576px) {
    .container-fluid .row > div {
        padding: 2px;
    }
}

/* ===== CONTACT SECTION RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 1199px) {
    .contact-left-content-two {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .contact-item {
        margin-bottom: 25px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item .contact-icon {
        margin-bottom: 10px;
    }
    
    .form-box-three {
        padding: 25px 20px;
    }
    
    .form-box-three .contact-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-item .contact-text .title {
        font-size: 1rem;
    }
    
    .contact-item .contact-text a,
    .contact-item .contact-text .check-list li {
        font-size: 14px;
    }
}

/* ===== FOOTER RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 768px) {
    .footer-widget {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-title .title {
        font-size: 1.2rem;
    }
    
    .footer-contact ul li,
    .footer-menu ul li {
        margin-bottom: 10px;
    }
    
    .footer-contact ul li a,
    .footer-menu ul li a {
        font-size: 14px;
    }
}

/* ===== FORM RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 768px) {
    .input-form input,
    .input-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    .tj-primary-btn {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
    }
}

/* ===== NAVIGATION RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 991px) {
    .tj-offcanvas-area {
        width: 300px;
    }
    
    .mobile-navbar-menu {
        padding: 20px 0;
    }
    
    .mobile-navbar-menu ul li {
        margin-bottom: 10px;
    }
    
    .mobile-navbar-menu ul li a {
        font-size: 16px;
        padding: 10px 0;
        display: block;
    }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE DESIGN ===== */

/* Hide elements on mobile */
@media (max-width: 768px) {
    .d-mobile-none {
        display: none !important;
    }
}

/* Show elements only on mobile */
.d-mobile-block {
    display: none !important;
}

@media (max-width: 768px) {
    .d-mobile-block {
        display: block !important;
    }
}

/* Responsive text sizes */
@media (max-width: 768px) {
    .responsive-text-sm {
        font-size: 14px !important;
    }
    
    .responsive-text-xs {
        font-size: 12px !important;
    }
}

/* ===== WHATSAPP FLOAT BUTTON RESPONSIVE ===== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    text-decoration: none;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

/* ===== LOADING AND PERFORMANCE OPTIMIZATIONS ===== */

/* Lazy loading images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus states for better keyboard navigation */
.tj-primary-btn:focus,
.form-control:focus,
a:focus {
    outline: 2px solid #39ca6e;
    outline-offset: 2px;
}

/* Better contrast for text */
@media (max-width: 768px) {
    .hero-content-two p {
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .whatsapp-float,
    .tj-header-area,
    .hamburger_menu,
    .hero-shape-area,
    .footer-section-shape {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}
/* ===== A
DDITIONAL ENHANCEMENTS ===== */

/* WhatsApp button show/hide animation */
.whatsapp-float {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Touch device specific styles */
.touch-device .tj-primary-btn.touch-active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.touch-device .service-item-four.touch-active,
.touch-device .tj-choose-us-item-two.touch-active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.1s ease;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #39ca6e;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    color: white;
    text-decoration: none;
}

/* Loading states */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-load.animated {
    opacity: 1;
    transform: translateY(0);
}

/* iOS specific fixes */
.ios-device input,
.ios-device textarea,
.ios-device select {
    border-radius: 0;
    -webkit-appearance: none;
}

/* Better focus states */
.tj-primary-btn:focus-visible,
.form-control:focus-visible,
a:focus-visible {
    outline: 2px solid #39ca6e;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(57, 202, 110, 0.2);
}

/* Improved button states */
.tj-primary-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tj-primary-btn::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: left 0.5s;
}

.tj-primary-btn:hover::before {
    left: 100%;
}

/* Better image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive video embeds */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Better table responsiveness */
@media (max-width: 768px) {
    .table-responsive-stack {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive-stack table,
    .table-responsive-stack thead,
    .table-responsive-stack tbody,
    .table-responsive-stack th,
    .table-responsive-stack td,
    .table-responsive-stack tr {
        display: block;
    }
    
    .table-responsive-stack thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-responsive-stack tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .table-responsive-stack td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
    }
    
    .table-responsive-stack td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
    }
}

/* Improved carousel/slider touch */
.swiper-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Better loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(57, 202, 110, 0.3);
    border-radius: 50%;
    border-top-color: #39ca6e;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive spacing utilities */
@media (max-width: 576px) {
    .mb-mobile-4 { margin-bottom: 1.5rem !important; }
    .mt-mobile-4 { margin-top: 1.5rem !important; }
    .p-mobile-3 { padding: 1rem !important; }
    .px-mobile-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    .py-mobile-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .auto-dark-mode {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .auto-dark-mode .form-control {
        background-color: #2a2a2a;
        border-color: #444;
        color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tj-primary-btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid currentColor;
    }
}

/* Print optimizations */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break-before {
        page-break-before: always;
    }
    
    .print-break-after {
        page-break-after: always;
    }
    
    .print-break-inside-avoid {
        page-break-inside: avoid;
    }
}
/* 
===== BREADCRUMB BACKGROUND IMPROVEMENTS ===== */

/* Ensure breadcrumb background covers full area */
.breadcrumb-wrapper {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Add overlay for better text readability */
.breadcrumb-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Ensure content is above overlay */
.breadcrumb-wrapper .container {
    position: relative;
    z-index: 2;
}

/* Improve breadcrumb text styling */
.breadcrumb-content-area {
    text-align: center;
    color: white;
}

.breadcrumb-title {
    color: white !important;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.breadcrumb-link {
    color: white !important;
    font-size: 1.1rem;
}

.breadcrumb-link a {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link a:hover {
    color: #39ca6e !important;
}

.breadcrumb-link i {
    margin: 0 10px;
    color: #39ca6e;
}

/* Responsive adjustments for breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        min-height: 200px;
        padding: 60px 0;
    }
    
    .breadcrumb-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .breadcrumb-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .breadcrumb-wrapper {
        min-height: 150px;
        padding: 40px 0;
    }
    
    .breadcrumb-title {
        font-size: 1.5rem;
    }
    
    .breadcrumb-link {
        font-size: 0.8rem;
    }
    
    .breadcrumb-link i {
        margin: 0 5px;
    }
}

/* Parallax effect for desktop (optional) */
@media (min-width: 992px) {
    .breadcrumb-wrapper {
        background-attachment: fixed !important;
    }
}

/* High resolution display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .breadcrumb-wrapper {
        background-size: cover !important;
    }
}/* =
==== BREADCRUMB ANIMATIONS ===== */

/* Fade in animation for breadcrumb */
.breadcrumb-wrapper.animate-on-load {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.breadcrumb-content-area {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.breadcrumb-content-area.animated {
    transform: translateY(0);
    opacity: 1;
}

/* Keyframe animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Background loading states */
.breadcrumb-wrapper:not(.bg-loaded) {
    background-color: #323c45;
}

.breadcrumb-wrapper.bg-loaded {
    transition: all 0.3s ease;
}

.breadcrumb-wrapper.bg-error {
    background: linear-gradient(135deg, #323c45 0%, #39ca6e 100%);
}

/* Improved text shadow for better readability */
.breadcrumb-title,
.breadcrumb-link {
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb separator styling */
.breadcrumb-link .fa-angle-right {
    color: #39ca6e !important;
    font-size: 0.9em;
    vertical-align: middle;
}

/* Hover effects for breadcrumb links */
.breadcrumb-link a {
    position: relative;
    transition: all 0.3s ease;
}

.breadcrumb-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #39ca6e;
    transition: width 0.3s ease;
}

.breadcrumb-link a:hover::after {
    width: 100%;
}

/* Focus states for accessibility */
.breadcrumb-link a:focus {
    outline: 2px solid #39ca6e;
    outline-offset: 2px;
    border-radius: 2px;
}/* ===
== FALLBACK BREADCRUMB BACKGROUND ===== */

/* Direct CSS fallback for breadcrumb background */
.breadcrumb-wrapper[data-bg-image*="breadcrumb-background.jpg"] {
    background-image: url('../images/banner/breadcrumb-background.jpg') !important;
}

/* Alternative breadcrumb backgrounds */
.breadcrumb-wrapper[data-bg-image*="breadcrumb-background4.jpg"] {
    background-image: url('../images/banner/breadcrumb-background4.jpg') !important;
}

.breadcrumb-wrapper[data-bg-image*="breadcrumb-bg.jpg"] {
    background-image: url('../images/banner/breadcrumb-bg.jpg') !important;
}

/* Ensure all breadcrumb wrappers have proper background properties */
section.breadcrumb-wrapper,
.breadcrumb-wrapper {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100%;
    height: auto;
    min-height: 300px;
}

/* Force background to cover entire section */
.breadcrumb-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Remove the after pseudo-element if background is already loaded */
.breadcrumb-wrapper.bg-loaded::after {
    display: none;
}