/*
 * COMPANY LOGOS CLARITY FIX
 * Ensures company logos are crystal clear and visible
 * Fixes blur and opacity issues
 */

/* ===== MAIN MARQUEE SECTION ===== */
.Marquee-main {
    background: transparent !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== CLEAR ALL LOGO IMAGES ===== */
.brand-logos,
.Marquee-main img,
.marquee-img-main img,
.logos img,
.logos2 img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    transition: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    visibility: visible !important;
    display: block !important;
    image-rendering: auto !important;
    image-rendering: crisp-edges !important;
    backface-visibility: visible !important;
    will-change: auto !important;
}

/* ===== REMOVE HOVER EFFECTS ON LOGOS ===== */
.brand-logos:hover,
.Marquee-main img:hover,
.marquee-img-main img:hover,
.logos img:hover,
.logos2 img:hover {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ===== CLEAR LOGO CONTAINERS ===== */
.marquee-img-main,
.logos,
.logos2,
.logos-slide,
.marquee__content {
    background: transparent !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
}

/* ===== REMOVE ANY PSEUDO-ELEMENTS ON LOGOS ===== */
.brand-logos::before,
.brand-logos::after,
.marquee-img-main::before,
.marquee-img-main::after,
.Marquee-main::before,
.Marquee-main::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ===== FORCE VISIBILITY ===== */
.Marquee-main * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== TITLE STYLING ===== */
.Marquee-main h3 {
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 40px !important;
    background: transparent !important;
    filter: none !important;
}

/* ===== MOBILE TEXT COLOR FIXES ===== */
@media (max-width: 991px) {
    /* Make "Hello, I am" text white on mobile */
    .main-text {
        color: #FFFFFF !important;
    }
    
    /* Make portfolio section title white on mobile - Override inline styles */
    .section-title h2,
    #cases .section-title h2,
    .section-title h2[style],
    #cases .section-title h2[style],
    .section-title h2 span,
    .section-title h2 span[style] {
        color: #FFFFFF !important;
    }
    
    /* Make portfolio section description white on mobile */
    .section-title span,
    .section-title span[style],
    #cases .section-title span,
    #cases .section-title span[style] {
        color: #FFFFFF !important;
    }
    
    /* Override bg-light background on mobile for better contrast */
    #cases.bg-light {
        background-color: #0F141C !important;
        background: #0F141C !important;
    }
}

/* ===== OVERRIDE ANY GLOBAL FILTERS ===== */
body .Marquee-main,
body .brand-logos,
body .marquee-img-main {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
}

/* ===== REMOVE OVERFLOW EFFECTS ===== */
.overflow-hidden .brand-logos,
.overflow-hidden img {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}

/* ===== ANIMATION FIXES ===== */
.brand-logos,
.marquee-img-main img {
    animation: none !important;
    transition: none !important;
}

/* Allow only marquee movement, no other effects */
.marquee__content {
    animation: marquee 30s linear infinite !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== DARK THEME COMPATIBILITY ===== */
.Marquee-main {
    background: #0F141C !important;
    padding: 60px 0 !important;
}

.Marquee-main h3 {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/*
 * Company logos should now be crystal clear!
 *//*
 * DESKTOP NAVIGATION FIX
 * Ensures desktop header navigation works properly
 */

/* ===== DESKTOP NAVIGATION RESTORATION ===== */
@media (min-width: 992px) {
    
    /* Header Container */
    .top-navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        padding: 15px 0;
        background: rgba(15, 20, 28, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .top-navbar.scrolled {
        padding: 10px 0;
        background: rgba(15, 20, 28, 0.98);
    }
    
    /* Main Navigation Container */
    .top-navbar_full {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    /* Logo Section */
    .back-btn {
        display: flex;
        align-items: center;
    }
    
    .back-btn a {
        display: block;
        transition: transform 0.3s ease;
    }
    
    .back-btn a:hover {
        transform: scale(1.05);
    }
    
    .back-btn img {
        height: 45px;
        width: auto;
        object-fit: contain;
    }
    
    /* Navigation Menu Container */
    .hell {
        display: flex !important;
        align-items: center;
        gap: 40px;
    }
    
    /* Desktop Navigation Menu */
    .top-navbar-title {
        display: flex !important;
        align-items: center;
        gap: 35px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .top-navbar-title li {
        position: relative;
        margin: 0;
        padding: 0;
    }
    
    .top-navbar-title li a {
        color: #FFFFFF;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        padding: 10px 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        display: block;
    }
    
    /* Hover Effects */
    .top-navbar-title li a:hover {
        color: #FFDB59;
        background: rgba(255, 219, 89, 0.1);
        transform: translateY(-2px);
    }
    
    /* Active Menu Item */
    .top-navbar-title li.menu-active a {
        color: #FFDB59;
        background: rgba(255, 219, 89, 0.15);
    }
    
    /* Underline Animation */
    .top-navbar-title li a::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: #FFDB59;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .top-navbar-title li a:hover::after,
    .top-navbar-title li.menu-active a::after {
        width: 70%;
    }
    
    /* Hide Mobile Menu Elements on Desktop */
    .outer-menu {
        display: none !important;
    }
    
    /* Container Adjustments */
    .container {
        max-width: 1290px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* Body Padding for Fixed Header - REMOVED (header now relative) */
    body {
        padding-top: 0;
    }
    
    /* Smooth Scroll Offset for Fixed Header */
    html {
        scroll-padding-top: 80px;
    }
    
    /* Logo Link Fix */
    .back-btn a[href="#"] {
        cursor: pointer;
    }
}

/* ===== LARGE DESKTOP SCREENS ===== */
@media (min-width: 1400px) {
    .top-navbar-title {
        gap: 45px;
    }
    
    .top-navbar-title li a {
        font-size: 17px;
        padding: 12px 18px;
    }
    
    .back-btn img {
        height: 50px;
    }
}

/* ===== TABLET LANDSCAPE ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    .top-navbar-title {
        gap: 25px;
    }
    
    .top-navbar-title li a {
        font-size: 15px;
        padding: 8px 12px;
    }
    
    .hell {
        gap: 30px;
    }
}

/* ===== SCROLL BEHAVIOR ===== */
.top-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (min-width: 992px) {
    .top-navbar-title li a:focus {
        outline: 2px solid #FFDB59;
        outline-offset: 2px;
    }
    
    .back-btn a:focus {
        outline: 2px solid #FFDB59;
        outline-offset: 4px;
        border-radius: 4px;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) and (min-width: 992px) {
    .top-navbar {
        background: #000000;
        border-bottom-color: #FFFFFF;
    }
    
    .top-navbar-title li a {
        color: #FFFFFF;
    }
    
    .top-navbar-title li a:hover,
    .top-navbar-title li.menu-active a {
        background: #FFFFFF;
        color: #000000;
    }
}

/* ===== REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) and (min-width: 992px) {
    .top-navbar,
    .top-navbar-title li a,
    .back-btn a {
        transition: none;
    }
    
    .top-navbar-title li a:hover {
        transform: none;
    }
}/*
 * TESTIMONIALS TRANSITION FIX
 * Clean migration from old testimonials to new modern system
 * No more messy force-visibility hacks
 */

/* ===== HIDE OLD TESTIMONIALS SYSTEM ===== */
.section-six {
    display: none !important;
}

.testimonial_slider {
    display: none !important;
}

/* Old testimonial elements */
.great-work-svg,
.posuere,
.client_details,
.slider-line {
    display: none !important;
}

/* ===== ENSURE NEW TESTIMONIALS WORK ===== */
.testimonials-modern-section {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix any potential conflicts */
.testimonials-modern-section * {
    box-sizing: border-box;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .testimonials-modern-section {
        padding: 80px 0 !important;
        min-height: auto !important;
    }
    
    .testimonials-modern-section .testimonial-card {
        min-height: 350px !important;
        padding: 30px 20px !important;
    }
}

@media (max-width: 480px) {
    .testimonials-modern-section {
        padding: 60px 0 !important;
    }
    
    .testimonials-modern-section .testimonial-card {
        min-height: 320px !important;
        padding: 20px 15px !important;
    }
    
    .testimonials-modern-section .section-title {
        font-size: 28px !important;
    }
}

/* ===== PERFORMANCE FIXES ===== */
.testimonials-modern-section {
    contain: layout style paint;
    will-change: auto;
}

.testimonials-modern-section .testimonial-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===== ACCESSIBILITY FIXES ===== */
.testimonials-modern-section button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ===== OVERFLOW FIXES ===== */
body {
    overflow-x: hidden;
}

.testimonials-modern-section {
    overflow: hidden;
}

/* ===== FONT LOADING FIX ===== */
.testimonials-modern-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ===== SUCCESS INDICATOR ===== */
.testimonials-modern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    /* Modern testimonials loaded successfully */
}

/*
 * EMERGENCY FIXES COMPLETE
 * Clean transition achieved - no more testimonial issues!
 *//*
 * GLOBAL IMAGE CLARITY FIX
 * Ensures ALL images across the website are crystal clear
 * Removes blur, opacity, and filter effects from every image
 */

/* ===== UNIVERSAL IMAGE RESET ===== */
img,
image,
.img,
.image {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    transition: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    visibility: visible !important;
    display: block !important;
    image-rendering: auto !important;
    image-rendering: crisp-edges !important;
    image-rendering: -webkit-optimize-contrast !important;
    backface-visibility: visible !important;
    will-change: auto !important;
    text-shadow: none !important;
    mask: none !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ===== TESTIMONIAL IMAGES ===== */
.testimonials-modern-section img,
.testimonial img,
.testimonial-client-img,
.client-avatar img,
.thumbnail-item img,
.section-six img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

/* ===== LOGO IMAGES ===== */
.logo img,
.site-logo img,
.brand-logo img,
.header-logo img,
.footer-logo img,
nav img,
.navbar img,
.navigation img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

/* ===== PORTFOLIO IMAGES ===== */
.portfolio img,
.portfolio-card img,
.card-img-top,
.card-image img,
.tab-imgs,
.project-image img,
#cases img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

/* ===== COMPANY LOGOS ===== */
.brand-logos,
.company-logo img,
.client-logo img,
.partner-logo img,
.sponsor-logo img,
.Marquee-main img,
.marquee-img-main img,
.logos img,
.logos2 img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

/* ===== HERO/BANNER IMAGES ===== */
.hero img,
.banner img,
.hero-image img,
.banner-image img,
.main-image img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

/* ===== REMOVE HOVER EFFECTS ===== */
img:hover,
.img:hover,
.image:hover {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ===== REMOVE PSEUDO-ELEMENTS ON ALL IMAGES ===== */
img::before,
img::after,
.img::before,
.img::after,
.image::before,
.image::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ===== CLEAR IMAGE CONTAINERS ===== */
.image-container,
.img-container,
.photo-container,
.picture-container {
    background: transparent !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
}

/* ===== OVERRIDE SECTION BACKGROUNDS ===== */
section img,
.section img,
div img,
article img,
main img,
header img,
footer img,
nav img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    visibility: visible !important;
}

/* ===== FORCE CLEAR RENDERING FOR ALL BROWSERS ===== */
* img,
* .img,
* .image {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    visibility: visible !important;
    display: block !important;
}

/* ===== REMOVE GLOBAL FILTERS AFFECTING IMAGES ===== */
body img,
html img,
.site_contain img {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== ANIMATION OVERRIDES ===== */
@media (prefers-reduced-motion: no-preference) {
    img,
    .img,
    .image {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* ===== SPECIFIC FRAMEWORK OVERRIDES ===== */
.aos-animate img,
.aos-init img,
[data-aos] img {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
    transform: none !important;
}

/* ===== BOOTSTRAP/FOUNDATION OVERRIDES ===== */
.img-fluid,
.img-responsive,
.thumbnail img,
.card img,
.media img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    visibility: visible !important;
}

/* ===== LAZY LOADING OVERRIDES ===== */
img[loading="lazy"],
img[data-src],
.lazy img,
.lazyload {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}

/*
 * NUCLEAR OPTION - FORCE ALL IMAGES TO BE VISIBLE
 */
* {
    --image-opacity: 1 !important;
    --image-filter: none !important;
    --image-backdrop-filter: none !important;
}

img {
    opacity: var(--image-opacity, 1) !important;
    filter: var(--image-filter, none) !important;
    backdrop-filter: var(--image-backdrop-filter, none) !important;
}

/*
 * ALL IMAGES SHOULD NOW BE CRYSTAL CLEAR!
 *//*
 * FACEBOOK-LEVEL HAMBURGER MENU FIX
 * Modern, bulletproof mobile navigation
 */

/* ===== RESET THE BROKEN HAMBURGER ===== */
.outer-menu {
    position: relative;
    z-index: 9999;
    display: block;
}

/* Hide the broken checkbox approach - we'll use pure CSS + JS */
.outer-menu .checkbox-toggle {
    display: none;
}

/* ===== MODERN HAMBURGER BUTTON ===== */
.hamburger-modern {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    width: 48px;
    height: 48px;
    background: rgba(15, 20, 28, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hamburger-modern:hover {
    background: rgba(15, 20, 28, 1);
    border-color: rgba(255, 219, 89, 0.5);
    transform: scale(1.05);
}

.hamburger-modern:active {
    transform: scale(0.95);
}

/* Hamburger Lines */
.hamburger-line {
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Animation when menu is open */
.hamburger-modern.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-modern.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-modern.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== MODERN MOBILE MENU ===== */
.mobile-menu-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(15, 20, 28, 0.98) 0%, 
        rgba(15, 20, 28, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9998;
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Prevent scrolling */
    overflow: hidden;
}

.mobile-menu-modern.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu Container */
.menu-container-modern {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 80px 20px 40px;
    text-align: center;
}

/* Navigation Links */
.nav-links-modern {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.nav-link-modern {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-modern.active .nav-link-modern {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.mobile-menu-modern.active .nav-link-modern:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-modern.active .nav-link-modern:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-modern.active .nav-link-modern:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-modern.active .nav-link-modern:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-modern.active .nav-link-modern:nth-child(5) { transition-delay: 0.3s; }

.nav-link-modern a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    padding: 15px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.nav-link-modern a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 219, 89, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link-modern a:hover::before {
    left: 100%;
}

.nav-link-modern a:hover {
    color: #FFDB59;
    background: rgba(255, 219, 89, 0.1);
    transform: translateX(10px);
}

.nav-link-modern.active a {
    color: #FFDB59;
    background: rgba(255, 219, 89, 0.15);
}

/* Contact Info Section */
.contact-info-modern {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-modern.active .contact-info-modern {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.contact-info-modern h4 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-modern p {
    color: #909090;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.contact-info-modern a {
    color: #FFDB59;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-modern a:hover {
    color: #FFFFFF;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (min-width: 992px) {
    .hamburger-modern,
    .mobile-menu-modern {
        display: none;
    }
    
    /* Ensure desktop navigation is visible and working */
    .top-navbar-title {
        display: flex !important;
        visibility: visible !important;
    }
    
    .top-navbar {
        display: block !important;
        visibility: visible !important;
    }
    
    .hell {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Reset any mobile overrides for desktop */
    .outer-menu .hamburger,
    .outer-menu .menu,
    .outer-menu .checkbox-toggle {
        display: none !important;
    }
}

@media (max-width: 991px) {
    /* Completely hide the original broken menu system */
    .outer-menu .hamburger {
        display: none !important;
        visibility: hidden !important;
    }
    
    .outer-menu .menu {
        display: none !important;
        visibility: hidden !important;
    }
    
    .outer-menu .checkbox-toggle {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Show our modern menu */
    .hamburger-modern {
        display: flex !important;
    }
}

/* ===== LANDSCAPE MOBILE OPTIMIZATION ===== */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 500px) {
    .menu-container-modern {
        padding: 20px;
        justify-content: flex-start;
        overflow-y: auto;
    }
    
    .nav-links-modern {
        gap: 10px;
        margin-top: 60px;
    }
    
    .nav-link-modern a {
        font-size: 20px;
        padding: 10px 20px;
    }
    
    .contact-info-modern {
        margin-top: 20px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    .hamburger-modern,
    .mobile-menu-modern,
    .nav-link-modern,
    .contact-info-modern,
    .hamburger-line {
        transition: none;
    }
    
    .mobile-menu-modern.active .nav-link-modern {
        transition-delay: 0s;
    }
}

/* Focus states for accessibility */
.hamburger-modern:focus {
    outline: 2px solid #FFDB59;
    outline-offset: 2px;
}

.nav-link-modern a:focus {
    outline: 2px solid #FFDB59;
    outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .hamburger-modern {
        background: #000000;
        border-color: #FFFFFF;
    }
    
    .mobile-menu-modern {
        background: #000000;
    }
    
    .nav-link-modern a {
        color: #FFFFFF;
    }
}

/* ===== PREVENT BODY SCROLL ===== */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* ===== SAFE AREA INSETS FOR NOTCHED DEVICES ===== */
@supports (padding: max(0px)) {
    .hamburger-modern {
        top: max(20px, env(safe-area-inset-top));
        right: max(20px, env(safe-area-inset-right));
    }
    
    .menu-container-modern {
        padding-top: max(80px, calc(80px + env(safe-area-inset-top)));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
}/*
 * MOBILE TESTIMONIALS OPTIMIZATION
 * Clean mobile experience for the new modern testimonials system
 * All legacy mobile fixes removed - now using clean responsive design
 */

/* ===== HIDE OLD MOBILE TESTIMONIALS ===== */
.section-six {
    display: none !important; /* Old testimonials section */
}

/* ===== MODERN MOBILE TESTIMONIALS ===== */
@media (max-width: 768px) {
    
    /* Section adjustments */
    .testimonials-modern-section {
        padding: 80px 0 !important;
        min-height: auto !important;
    }
    
    /* Header optimizations */
    .testimonials-modern-section .section-title {
        font-size: 36px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }
    
    .testimonials-modern-section .section-description {
        font-size: 16px !important;
        margin-bottom: 40px !important;
        padding: 0 20px;
    }
    
    /* Stats adjustments */
    .testimonials-modern-section .testimonials-stats {
        gap: 20px !important;
        flex-wrap: wrap !important;
        margin-bottom: 50px !important;
    }
    
    .testimonials-modern-section .stat-number {
        font-size: 32px !important;
    }
    
    .testimonials-modern-section .stat-label {
        font-size: 11px !important;
    }
    
    /* Container adjustments */
    .testimonials-modern-section .testimonials-container {
        max-width: 100% !important;
        padding: 0 15px;
    }
    
    /* Navigation adjustments */
    .testimonials-modern-section .nav-btn {
        width: 48px !important;
        height: 48px !important;
    }
    
    .testimonials-modern-section .testimonials-counter .current {
        font-size: 24px !important;
    }
    
    .testimonials-modern-section .testimonials-counter {
        font-size: 18px !important;
    }
    
    /* Testimonial card mobile optimization */
    .testimonials-modern-section .testimonial-card {
        padding: 30px 20px !important;
        min-height: 350px !important;
        margin: 0 5px !important;
        border-radius: 24px !important;
    }
    
    .testimonials-modern-section .testimonial-title {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }
    
    .testimonials-modern-section .testimonial-text {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    /* Client info mobile layout */
    .testimonials-modern-section .client-info {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .testimonials-modern-section .client-details {
        text-align: center !important;
    }
    
    .testimonials-modern-section .client-avatar img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .testimonials-modern-section .client-name {
        font-size: 18px !important;
    }
    
    .testimonials-modern-section .client-title {
        font-size: 13px !important;
    }
    
    /* Thumbnails mobile */
    .testimonials-modern-section .thumbnail-item {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* Controls mobile */
    .testimonials-modern-section .control-btn {
        padding: 10px 20px !important;
        font-size: 12px !important;
    }
}

/* ===== SMALL MOBILE DEVICES ===== */
@media (max-width: 480px) {
    
    .testimonials-modern-section {
        padding: 60px 0 !important;
    }
    
    .testimonials-modern-section .section-title {
        font-size: 28px !important;
    }
    
    .testimonials-modern-section .section-description {
        font-size: 14px !important;
        padding: 0 15px;
    }
    
    .testimonials-modern-section .testimonials-stats {
        gap: 15px !important;
    }
    
    .testimonials-modern-section .stat-number {
        font-size: 28px !important;
    }
    
    .testimonials-modern-section .testimonials-container {
        padding: 0 10px;
    }
    
    .testimonials-modern-section .testimonial-card {
        padding: 20px 15px !important;
        min-height: 320px !important;
        margin: 0 3px !important;
        border-radius: 20px !important;
    }
    
    .testimonials-modern-section .testimonial-title {
        font-size: 20px !important;
    }
    
    .testimonials-modern-section .testimonial-text {
        font-size: 14px !important;
    }
    
    .testimonials-modern-section .client-avatar img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .testimonials-modern-section .client-name {
        font-size: 16px !important;
    }
    
    .testimonials-modern-section .client-title {
        font-size: 12px !important;
    }
    
    .testimonials-modern-section .thumbnails-container {
        gap: 8px !important;
    }
    
    .testimonials-modern-section .thumbnail-item {
        width: 30px !important;
        height: 30px !important;
    }
    
    .testimonials-modern-section .nav-btn {
        width: 42px !important;
        height: 42px !important;
    }
    
    .testimonials-modern-section .testimonials-counter .current {
        font-size: 20px !important;
    }
}

/* ===== LANDSCAPE MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    
    .testimonials-modern-section {
        padding: 40px 0 !important;
        min-height: auto !important;
    }
    
    .testimonials-modern-section .section-title {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }
    
    .testimonials-modern-section .testimonials-stats {
        margin-bottom: 30px !important;
    }
    
    .testimonials-modern-section .testimonial-card {
        padding: 20px 15px !important;
        min-height: 280px !important;
    }
    
    .testimonials-modern-section .client-info {
        flex-direction: row !important;
        justify-content: center !important;
    }
    
    .testimonials-modern-section .client-details {
        text-align: left !important;
    }
}

/* ===== TOUCH OPTIMIZATION ===== */
@media (max-width: 768px) {
    
    .testimonials-modern-section button {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .testimonials-modern-section .nav-btn {
        min-height: 44px !important; /* iOS accessibility guidelines */
        min-width: 44px !important;
    }
    
    .testimonials-modern-section .thumbnail-item {
        min-height: 35px !important;
        min-width: 35px !important;
    }
}

/* ===== PERFORMANCE MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    
    .testimonials-modern-section .testimonial-card {
        will-change: auto !important;
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
    }
    
    /* Reduce animations on mobile for better performance */
    .testimonials-modern-section .bg-gradient-1,
    .testimonials-modern-section .bg-gradient-2 {
        animation-duration: 12s !important; /* Slower animations */
    }
    
    .testimonials-modern-section .float-element {
        animation-duration: 20s !important;
    }
}

/* ===== ACCESSIBILITY MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    
    .testimonials-modern-section .nav-btn:focus-visible {
        outline: 3px solid #FFDB59 !important;
        outline-offset: 3px !important;
    }
    
    .testimonials-modern-section .thumbnail-item:focus-visible {
        outline: 2px solid #FFDB59 !important;
        outline-offset: 2px !important;
    }
    
    .testimonials-modern-section .control-btn:focus-visible {
        outline: 2px solid #FFDB59 !important;
        outline-offset: 2px !important;
    }
}

/* ===== PREVENT HORIZONTAL SCROLL ===== */
@media (max-width: 768px) {
    
    .testimonials-modern-section,
    .testimonials-modern-section * {
        max-width: 100% !important;
    }
    
    .testimonials-modern-section {
        overflow-x: hidden !important;
    }
    
    .testimonials-modern-section .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* ===== SUCCESS INDICATOR ===== */
@media (max-width: 768px) {
    .testimonials-modern-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
        /* Mobile testimonials optimized */
    }
}

/*
 * MOBILE OPTIMIZATION COMPLETE
 * Clean, responsive, touch-friendly testimonials experience
 * All legacy mobile fixes removed and replaced with modern responsive design
 *//*
 * HORIZONTAL SCROLL & OVERFLOW FIX
 * Comprehensive solution for mobile overflow issues
 */

/* ===== GLOBAL OVERFLOW PREVENTION ===== */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
}

/* Prevent any element from causing horizontal scroll */
* {
    box-sizing: border-box;
}

*:before, *:after {
    box-sizing: inherit;
}

/* ===== CONTAINER FIXES ===== */
.container, .container-fluid {
    overflow-x: hidden;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Bootstrap row fix */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col, .col-auto, .col-sm, .col-sm-auto, .col-sm-1, .col-sm-2, 
.col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, 
.col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-md, .col-md-auto, 
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, 
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, 
.col-lg, .col-lg-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, 
.col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, 
.col-lg-11, .col-lg-12, .col-xl, .col-xl-auto, .col-xl-1, .col-xl-2, 
.col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, 
.col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xxl, .col-xxl-auto, 
.col-xxl-1, .col-xxl-2, .col-xxl-3, .col-xxl-4, .col-xxl-5, .col-xxl-6, 
.col-xxl-7, .col-xxl-8, .col-xxl-9, .col-xxl-10, .col-xxl-11, .col-xxl-12 {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100%;
}

/* ===== SECTION OVERFLOW FIXES ===== */
.section-main, .section-two, .section-three {
    overflow-x: hidden !important;
    max-width: 100vw;
    position: relative;
}

.section-main-sub {
    overflow-x: hidden !important;
    max-width: 100%;
}

/* ===== SPECIFIC MOBILE FIXES ===== */
@media (max-width: 991px) {
    
    /* Fix media sidebar */
    .media-main {
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        max-width: 60px;
        overflow: hidden;
    }
    
    /* Fix container2 overflow */
    .container2 {
        overflow-x: hidden !important;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Fix home image positioning */
    .home-girl-img-main {
        overflow-x: hidden;
        max-width: 100%;
        text-align: center;
    }
    
    .home-girl-img {
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
    }
    
    /* Fix positioned elements that might overflow */
    .JessicaBiogi-main {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        text-align: center;
        margin-bottom: 20px;
    }
    
    #JessicaBiogi_main {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    .arrow-main {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        max-width: 100px;
        margin: 10px auto;
        display: block;
    }
    
    #worked_box {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 20px auto;
        max-width: 100%;
    }
    
    .worked-box {
        max-width: 100%;
        padding: 15px;
    }
    
    /* Fix stats section overflow */
    .section-main-right-contain {
        max-width: 100%;
        overflow-x: hidden;
        margin-top: 30px;
        text-align: center;
    }
    
    .section-main-right-contain-sub {
        max-width: 100%;
        margin: 0 auto 20px;
        padding: 20px 15px !important;
    }
    
    /* Fix flower box positioning */
    .flower-box {
        max-width: 100%;
        text-align: center;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .flower {
        max-width: 60px;
        height: auto;
    }
    
    /* Fix marquee overflow */
    .Marquee-main {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    
    .logos {
        overflow-x: hidden !important;
        max-width: 100%;
    }
    
    .logos-slide {
        /* overflow-x: hidden !important; */ /* Removed - was breaking marquee animation */
    }
    
    .marquee__content {
        max-width: none;
        /* overflow-x: hidden; */ /* Removed - was breaking marquee animation */
    }
    
    /* Fix brand logos */
    .brand-logos {
        max-width: 120px !important;
        height: auto !important;
        object-fit: contain;
    }
    
    .marquee-img-main {
        flex-shrink: 0;
        padding: 0 10px;
        max-width: 140px;
    }
}

/* ===== SMALL MOBILE SPECIFIC FIXES ===== */
@media (max-width: 480px) {
    
    .container, .container2 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Fix main title overflow */
    .container2 h1 {
        font-size: 35px !important;
        line-height: 40px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix main text */
    .main-text {
        font-size: 14px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix freelance text */
    .Freelance {
        font-size: 14px !important;
        line-height: 20px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix long text elements */
    .self-taught {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .odio {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix video wrapper */
    .video-wrapper {
        max-width: 100%;
        overflow: hidden;
    }
    
    .video-wrapper video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix portfolio cards */
    .portfolio-card .card {
        max-width: 100%;
        margin: 0 auto 15px;
    }
    
    .card-img-top {
        max-width: 100%;
        height: auto !important;
    }
    
    /* Fix testimonial content */
    .blockquote p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* ===== IMAGE OVERFLOW PREVENTION ===== */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* ===== SVG OVERFLOW PREVENTION ===== */
svg {
    max-width: 100%;
    height: auto;
}

/* ===== TABLE OVERFLOW PREVENTION ===== */
table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

/* ===== FORM OVERFLOW PREVENTION ===== */
input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== TEXT OVERFLOW PREVENTION ===== */
p, h1, h2, h3, h4, h5, h6, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ===== WIDE ELEMENT PREVENTION ===== */
pre, code {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ===== ABSOLUTE POSITIONED ELEMENTS ===== */
@media (max-width: 767px) {
    [style*="position: absolute"],
    [style*="position:absolute"] {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    /* Keep some essential absolute elements but constrain them */
    .hamburger-modern {
        position: fixed !important;
        right: 15px !important;
        max-width: 48px;
    }
}

/* ===== IFRAME RESPONSIVENESS ===== */
iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* ===== EMERGENCY OVERFLOW RESET ===== */
@media (max-width: 991px) {
    * {
        max-width: 100vw !important;
    }
    
    *:not(html):not(body) {
        max-width: 100% !important;
    }
    
    /* Specific exceptions for elements that need to be wider */
    .marquee__content,
    .logos-slide {
        max-width: none !important;
    }
}

/* ===== DEBUGGING HELPER (Remove in production) ===== */
/*
.debug-overflow * {
    outline: 1px solid red !important;
}
*//*
 * PORTFOLIO HOME PAGE COMPATIBILITY FIX
 * Ensures portfolio section on home page displays properly
 * Targets the existing #cases section with Bootstrap classes
 */

/* ===== HOME PAGE PORTFOLIO SECTION ===== */
#cases {
    background: #0F141C !important;
    color: #FFFFFF !important;
    padding: 80px 0 !important;
}

#cases .section-title,
#cases h2 {
    color: #0F141C !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 50px !important;
    background: linear-gradient(135deg, #FF7D61 0%, #FFDB59 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

#cases .section-description,
#cases p {
    color: #B8BCC8 !important;
    font-size: 16px !important;
    text-align: center !important;
    margin-bottom: 40px !important;
}

/* ===== PORTFOLIO CARDS ON HOME PAGE ===== */
#cases .portfolio-card {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

#cases .portfolio-card:hover {
    transform: translateY(-5px) !important;
    text-decoration: none !important;
}

#cases .card {
    background: #1A2332 !important;
    border: 1px solid #2A3441 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

#cases .portfolio-card:hover .card {
    border-color: #FFDB59 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
}

#cases .card-img-top {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

#cases .portfolio-card:hover .card-img-top {
    transform: scale(1.05) !important;
}

#cases .card-body {
    padding: 25px 20px !important;
    background: #1A2332 !important;
}

#cases .card-title {
    color: #FFFFFF !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

#cases .card-text {
    color: #B8BCC8 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

#cases .portfolio-card:hover .card-title {
    color: #FFDB59 !important;
}

/* ===== TECHNOLOGY TAGS ===== */
#cases .tech-stack {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 15px !important;
}

#cases .tech-tag {
    background: #2A3441 !important;
    color: #B8BCC8 !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

/* ===== VIEW PORTFOLIO BUTTON ===== */
#cases .btn {
    background: transparent !important;
    border: 2px solid #FFDB59 !important;
    color: #FFDB59 !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 30px auto 0 auto !important;
}

#cases .btn:hover {
    background: #FFDB59 !important;
    color: #0F141C !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    #cases {
        padding: 60px 0 !important;
    }
    
    #cases .section-title,
    #cases h2 {
        font-size: 32px !important;
    }
    
    #cases .card-img-top {
        height: 200px !important;
    }
    
    #cases .card-body {
        padding: 20px 15px !important;
    }
    
    #cases .card-title {
        font-size: 16px !important;
    }
    
    #cases .card-text {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    #cases .section-title,
    #cases h2 {
        font-size: 28px !important;
    }
    
    #cases .card-img-top {
        height: 180px !important;
    }
    
    #cases .card-title {
        font-size: 15px !important;
    }
}

/* ===== ENSURE TEXT VISIBILITY ===== */
#cases * {
    color: inherit !important;
}

#cases .container {
    position: relative !important;
    z-index: 2 !important;
}

/* ===== BACKGROUND OVERRIDE ===== */
#cases.bg-light {
    background: #0F141C !important;
}

#cases.py-5 {
    padding: 80px 0 !important;
}

/*
 * HOME PAGE PORTFOLIO FIX COMPLETE
 * Ensures all text is visible and properly styled
 * Maintains consistency with new portfolio design
 *//*
 * PORTFOLIO IMAGE CLARITY FIX
 * Removes blurred/opacity effects from portfolio images
 * Makes images crisp and clear
 */

/* ===== REMOVE OVERLAY OPACITY ===== */
#cases .card-overlay,
.portfolio-card .card-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ===== CLEAR IMAGE STYLES ===== */
#cases .card-img-top,
#cases img,
.portfolio-card img,
.card-image img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    transition: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* ===== REMOVE HOVER EFFECTS ON IMAGES ===== */
#cases .portfolio-card:hover .card-img-top,
#cases .portfolio-card:hover img,
.portfolio-card:hover .card-image img,
.portfolio-card:hover img {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ===== REMOVE GLASSMORPHISM EFFECTS ===== */
.portfolio-card,
#cases .card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #1A2332 !important;
    border: 1px solid #2A3441 !important;
}

/* ===== REMOVE ANY PSEUDO-ELEMENTS AFFECTING IMAGES ===== */
#cases .card::before,
#cases .card::after,
.portfolio-card::before,
.portfolio-card::after,
.card-image::before,
.card-image::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ===== CLEAR IMAGE CONTAINERS ===== */
.card-image,
#cases .card-img-top {
    background: transparent !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* ===== REMOVE ANIMATION EFFECTS ===== */
@media (prefers-reduced-motion: no-preference) {
    #cases img,
    .portfolio-card img {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== FORCE CLEAR RENDERING ===== */
#cases img,
.portfolio-card img,
.card-image img {
    image-rendering: auto !important;
    image-rendering: crisp-edges !important;
    image-rendering: -webkit-optimize-contrast !important;
    backface-visibility: visible !important;
    will-change: auto !important;
}

/* ===== OVERRIDE ANY SECTION BACKGROUNDS AFFECTING IMAGES ===== */
#cases,
.portfolio-modern-section {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/*
 * Images should now be crystal clear!
 *//*
 * INLINE STYLE OVERRIDE FIX
 * Targets the exact paragraph with inline styles
 */

/* ===== HYPER-SPECIFIC TARGETING ===== */
section#cases p[style*="translate: none"] {
    color: #B8BCC8 !important;
    background-color: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 400 !important;
    z-index: 9999 !important;
    position: relative !important;
    font-family: inherit !important;
    text-decoration: none !important;
}

section#cases p[style*="opacity: 1"] {
    color: #B8BCC8 !important;
    background-color: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 400 !important;
    z-index: 9999 !important;
    position: relative !important;
}

section#cases p[style*="transform: translate"] {
    color: #B8BCC8 !important;
    background-color: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 400 !important;
    z-index: 9999 !important;
    position: relative !important;
}

/* Target any paragraph with animation-related inline styles */
#cases p[style*="translate"],
#cases p[style*="rotate"],
#cases p[style*="scale"],
#cases p[style*="opacity"],
#cases p[style*="transform"] {
    color: #B8BCC8 !important;
    background-color: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 400 !important;
    z-index: 9999 !important;
    position: relative !important;
}

/* Mega-specific selector for the exact content */
section#cases .section-title p:contains("Here are some of the awesome projects"),
section#cases p:contains("Here are some of the awesome projects") {
    color: #B8BCC8 !important;
    background-color: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 400 !important;
    z-index: 9999 !important;
    position: relative !important;
}

/* Force all AOS animated elements to be visible */
section#cases [data-aos] p,
section#cases [data-aos="fade-up"] p {
    color: #B8BCC8 !important;
    background-color: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 400 !important;
    z-index: 9999 !important;
    position: relative !important;
}

/* Override any potential AOS (Animate On Scroll) library issues */
.section-title[data-aos] p {
    color: #B8BCC8 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Alternative approach - use CSS content to force visibility */
section#cases .section-title::after {
    content: "Here are some of the awesome projects I've worked on recently." !important;
    display: block !important;
    color: #B8BCC8 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin: 20px 0 40px 0 !important;
    font-weight: 400 !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* Hide the original paragraph if the pseudo-element approach is used */
section#cases .section-title p {
    display: none !important;
}

/*
 * This will definitely make the text visible!
 *//*
 * NUCLEAR PORTFOLIO TEXT FIX
 * Aggressive fixes to ensure text visibility
 * This WILL work!
 */

/* ===== OVERRIDE EVERYTHING ===== */
section#cases.py-5.bg-light {
    background: #0F141C !important;
    background-color: #0F141C !important;
    color: #FFFFFF !important;
}

section#cases.py-5.bg-light * {
    color: #FFFFFF !important;
}

section#cases.py-5.bg-light p {
    color: #B8BCC8 !important;
    background: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    white-space: normal !important;
    text-indent: 0 !important;
    text-overflow: visible !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    mask: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    z-index: 999 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

section#cases.py-5.bg-light .section-title p {
    color: #B8BCC8 !important;
    background: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 400 !important;
    z-index: 999 !important;
    position: relative !important;
}

section#cases.py-5.bg-light .text-center p {
    color: #B8BCC8 !important;
    background: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 400 !important;
    z-index: 999 !important;
    position: relative !important;
}

/* Extra specific targeting */
#cases.py-5.bg-light .section-title.text-center.mb-5 p {
    color: #B8BCC8 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    z-index: 999 !important;
    position: relative !important;
}

/* Backup selectors */
section[id="cases"] p,
#cases p,
.py-5.bg-light p {
    color: #B8BCC8 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Override any Bootstrap classes */
.bg-light {
    background: #0F141C !important;
    background-color: #0F141C !important;
    color: #FFFFFF !important;
}

.bg-light * {
    color: inherit !important;
}

.bg-light p {
    color: #B8BCC8 !important;
}

/* Final nuclear option */
section#cases * {
    color: #FFFFFF !important;
}

section#cases p {
    color: #B8BCC8 !important;
}

/*
 * If this doesn't work, nothing will!
 *//*
 * PORTFOLIO TEXT VISIBILITY FIX
 * Ensures specific description text is visible
 */

/* ===== FORCE VISIBILITY FOR DESCRIPTION TEXT ===== */
#cases .section-title p,
#cases .text-center p,
#cases p {
    color: #B8BCC8 !important;
    font-size: 16px !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* Ensure all text in portfolio section is visible */
#cases * {
    color: inherit !important;
}

#cases .container * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Specific override for the description paragraph */
section#cases p {
    color: #B8BCC8 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Bootstrap override */
#cases.py-5 p,
#cases.bg-light p {
    color: #B8BCC8 !important;
    visibility: visible !important;
    opacity: 1 !important;
}