/* Custom Improvements for New Vision Signage Website */

/* ========================================
   1. HEADER & NAVIGATION IMPROVEMENTS
   ======================================== */

/* Improved Contact Info Styling */
.contact-info {
    position: relative;
    text-align: center !important;
    font-size: 12px;
    color: #1f2937;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    margin: 10px auto 0;
    display: block;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
}

.contact-link {
    text-decoration: none;
    color: #1f2937;
    margin: 0 8px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.contact-link:hover {
    color: #0D83FD;
}

.contact-link i {
    font-size: 14px;
    color: #0D83FD;
}

.contact-info .separator {
    color: #ccc;
    margin: 0 8px;
}

/* Fix Navigation Button Colors */
#nav-main {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#header nav a {
    color: #1f2937 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

#header nav a:hover {
    color: #0D83FD !important;
    opacity: 1;
}

#header.nav-solid nav a {
    color: #1f2937 !important;
}

#header.nav-solid nav a:hover {
    color: #0D83FD !important;
    border-color: #0D83FD !important;
}

/* Make sticky header smaller */
#header.nav-solid {
    padding: 5px 0;
}

#header.nav-solid #logo img {
    max-height: 60px;
    transition: max-height 0.3s ease;
}

#header.nav-solid nav a {
    height: 60px;
    line-height: 60px;
}

/* Reduce logo size on scroll */
#logo img {
    transition: all 0.3s ease;
    max-height: 80px;
}

/* Reduce header spacing */
#header {
    padding: 10px 0 !important;
}

#header .row {
    padding: 10px 0 !important;
}

#logo {
    margin-bottom: 10px !important;
}

/* Compact navigation */
#nav-main {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 5px;
    text-align: center;
}

#nav-main ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

#nav-main li {
    flex: 0 0 auto;
}

#header nav a {
    height: 45px;
    line-height: 45px;
    padding: 0 12px;
}

/* Center the entire header content */
#logo {
    text-align: center;
}

.contact-info {
    text-align: center !important;
}

/* Prevent early collapse - keep navigation visible longer */
@media (min-width: 769px) {
    #nav-trigger {
        display: none !important;
    }

    #nav-main {
        display: block !important;
    }
}

/* Show 3 columns for navigation on medium screens */
@media (max-width: 900px) and (min-width: 769px) {
    #nav-main ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    #nav-main li {
        text-align: center;
    }

    #header nav a {
        padding: 0 8px;
        font-size: 13px;
    }
}

/* Show 2 columns for very narrow screens before mobile */
@media (max-width: 768px) and (min-width: 600px) {
    #nav-main ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #nav-main li {
        text-align: center;
    }

    #header nav a {
        padding: 0 10px;
        font-size: 14px;
    }
}



/* Reduce banner spacing */
#banner-content.row {
    padding-top: 180px !important;
    padding-bottom: 100px !important;
}

/* Reduce section padding */
.row {
    padding: 50px 0 !important;
}

.introduction .row {
    padding: 40px 0 !important;
}

/* ========================================
   2. FLOATING CTA BUTTONS
   ======================================== */

.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.whatsapp-btn,
.call-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.call-btn {
    background: linear-gradient(135deg, #0D83FD, #0056b3);
}

.call-btn:hover {
    background: linear-gradient(135deg, #0056b3, #003d82);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(13, 131, 253, 0.5);
}

.whatsapp-btn i,
.call-btn i {
    font-size: 20px;
}

/* Pulse animation for WhatsApp button */
.whatsapp-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
}

/* ========================================
   3. FIND US AT SECTION - RESPONSIVE FIX
   ======================================== */

/* Remove blue background and center everything */
#Location {
    background: #f5f5f5 !important;
}

/* Redesign the contact section for better responsiveness */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.contact-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0D83FD, #0056b3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-list li a:hover {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, #0056b3, #003d82);
}

.contact-list li div {
    flex: 1;
}

.contact-list li h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.contact-list li p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.contact-list li .social-link {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 10px 20px;
    background: #0D83FD;
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.contact-list li .social-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
    color: white !important;
}

/* Fix social links container */
.contact-list li:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-list li:last-child a.social-link {
    width: auto;
    height: auto;
    background: #0D83FD;
    border-radius: 6px;
    padding: 10px 20px;
    color: white !important;
}

.contact-list li:last-child a.social-link:hover {
    transform: translateY(-2px);
    background: #0056b3;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    min-height: 450px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* Section heading improvements */
#Location .section-heading {
    text-align: center;
    margin-bottom: 50px;
}

#Location .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1f2937;
    position: relative;
    display: inline-block;
}

#Location .section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #0D83FD, #0056b3);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ========================================
   4. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .contact-container {
        padding: 15px;
        max-width: 700px;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    /* Adjust contact info for tablets */
    .contact-info {
        top: 8px;
        right: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .contact-link {
        margin: 0 5px;
    }

    /* Social buttons responsive */
    .contact-list li .social-link {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 90px;
    }

    /* Reduce header spacing on tablets */
    #logo img {
        max-height: 70px;
    }

    #header .row {
        padding: 8px 0 !important;
    }

    #banner-content.row {
        padding-top: 150px !important;
        padding-bottom: 80px !important;
    }

    /* Adjust contact info for tablets */
    .contact-info {
        top: 3px;
        right: 10px;
        font-size: 11px;
        padding: 5px 10px;
    }

    .contact-link {
        margin: 0 4px;
        gap: 4px;
    }

    .contact-link i {
        font-size: 11px;
    }
}

/* Additional breakpoint for half-screen scenarios */
@media (max-width: 900px) {
    .contact-container {
        padding: 15px;
        max-width: 600px;
    }

    .contact-map {
        min-height: 350px;
    }

    .contact-list li .social-link {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 80px;
    }
}

@media (max-width: 768px) {

    /* Hide page border on mobile */
    .page-border {
        display: none;
    }

    #wrapper {
        margin: 0;
        padding: 0;
    }

    /* Stack contact info vertically on mobile */
    .contact-info {
        font-size: 11px;
        padding: 6px 12px;
        max-width: 90%;
        background: rgba(255, 255, 255, 0.98);
        margin: 8px auto 0;
    }

    .contact-link {
        display: inline-flex;
        margin: 0 4px;
        font-size: 11px;
    }

    .contact-link i {
        font-size: 12px;
    }

    .contact-info .separator {
        display: inline;
        margin: 0 4px;
    }

    /* Smaller floating buttons on mobile */
    .floating-cta {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .whatsapp-btn,
    .call-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .whatsapp-btn span,
    .call-btn span {
        display: none;
    }

    .whatsapp-btn i,
    .call-btn i {
        font-size: 22px;
        margin: 0;
    }

    /* Contact section mobile */
    .contact-list li {
        padding: 15px;
    }

    .contact-list li a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .contact-list li h3 {
        font-size: 16px;
    }

    .contact-map {
        min-height: 300px;
    }

    #Location .section-title {
        font-size: 32px;
    }

    /* Reduce header size on mobile */
    #header.nav-solid #logo img {
        max-height: 50px;
    }

    #header.nav-solid nav a {
        height: 50px;
        line-height: 50px;
    }

    /* Mobile navigation background */
    #nav-main {
        padding: 8px 12px;
        margin-top: 10px;
    }

    #header nav a {
        font-size: 13px;
        padding: 0 8px;
    }

    /* Further reduce header spacing on mobile */
    #logo img {
        max-height: 60px;
    }

    #header {
        padding: 5px 0 !important;
    }

    #header .row {
        padding: 5px 0 !important;
    }

    #logo {
        margin-bottom: 8px !important;
    }

    #banner-content.row {
        padding-top: 120px !important;
        padding-bottom: 60px !important;
    }

    .row {
        padding: 30px 0 !important;
    }
}

@media (max-width: 480px) {
    .contact-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .floating-cta {
        flex-direction: row;
        bottom: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }

    .whatsapp-btn,
    .call-btn {
        flex: 1;
        justify-content: center;
        padding: 12px;
    }
}

/* ========================================
   5. IMPROVED ANIMATIONS & INTERACTIONS
   ======================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Icon block hover effects */
.icon-block {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 25px;
}

.icon-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #f9fafb;
}

.icon-block .icon i {
    transition: all 0.3s ease;
}

.icon-block:hover .icon i {
    transform: scale(1.2);
    color: #0056b3;
}

/* Gallery hover effects */
#gallery a {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

#gallery a img {
    transition: transform 0.4s ease;
}

#gallery a:hover img {
    transform: scale(1.1);
}

/* Client logo hover effects */
#clients .col-3 {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

#clients .col-3:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   6. PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   7. ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus indicators */
a:focus,
button:focus {
    outline: 3px solid #0D83FD;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0D83FD;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   8. COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ======================================== */

/* Fix wrapper padding on mobile */
@media (max-width: 768px) {
    #wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Add proper padding to all rows */
    .row {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Make all columns full width and stack */
    [class*='col-'] {
        width: 100% !important;
        float: none !important;
        padding: 15px 20px !important;
    }

    /* Ensure sections have proper spacing */
    section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Fix section headings */
    .section-heading {
        text-align: center !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .section-heading h3 {
        text-align: center !important;
    }

    .section-title {
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .section-subtitle {
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Fix banner content */
    #banner-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #banner-content h1,
    #banner-content h2 {
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* ========================================
       FIX: Make banner text visible on mobile
       ======================================== */

    /* Subtle text shadow for readability - NO BACKGROUND */
    #banner-content h1,
    #banner-content h2,
    #banner-content p {
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9),
            0 0 10px rgba(0, 0, 0, 0.7),
            0 0 20px rgba(0, 0, 0, 0.5) !important;
        background: none !important;
        padding: 10px 15px !important;
        border-radius: 0 !important;
    }

    /* Make "20 YEARS" red text more visible with glow */
    #banner-content h1 span[style*="color: red"],
    #banner-content h1 span[style*="color:red"] {
        color: #ff0000 !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9),
            0 0 12px rgba(0, 0, 0, 0.7),
            0 0 20px rgba(255, 0, 0, 0.3) !important;
        font-weight: 900 !important;
    }

    /* Make STRONG tags more visible */
    #banner-content strong,
    #banner-content STRONG {
        color: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8),
            0 0 10px rgba(0, 0, 0, 0.6) !important;
    }



    /* Fix introduction section */
    .introduction .row {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Fix icon blocks */
    .icon-block {
        margin-bottom: 20px !important;
        padding: 20px !important;
    }

    .icon-block-description {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .icon-block-description h4 {
        text-align: center !important;
    }

    .icon-block-description p {
        text-align: center !important;
    }

    /* Fix services section */
    #services .row {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #services p {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Fix testimonials */
    blockquote {
        padding-left: 20px !important;
        padding-right: 20px !important;
        text-align: center !important;
    }

    /* Fix gallery */
    #gallery {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #gallery .col-3 {
        width: 100% !important;
        padding: 10px !important;
    }

    /* Fix clients section */
    #clients .col-3 {
        width: 50% !important;
        padding: 10px !important;
    }

    /* Ensure no content touches edges */
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    ul,
    ol {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Fix lists */
    ul,
    ol {
        margin-left: 30px !important;
        margin-right: 10px !important;
    }

    /* Center all headings on mobile */
    h1,
    h2,
    h3 {
        text-align: center !important;
    }

    /* Fix any absolute positioned elements */
    .contact-info {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* ========================================
       COMPREHENSIVE TEXT VISIBILITY FIXES
       ======================================== */

    /* Clean section headings - NO BOXES */
    .section-heading h3 {
        color: #666 !important;
        background: none !important;
        padding: 8px 15px !important;
        border-radius: 0 !important;
        display: inline-block !important;
        box-shadow: none !important;
    }

    .section-title {
        color: #1f2937 !important;
        background: none !important;
        padding: 12px 20px !important;
        border-radius: 0 !important;
        display: inline-block !important;
        box-shadow: none !important;
    }

    .section-subtitle {
        color: #374151 !important;
        background: none !important;
        padding: 10px 18px !important;
        border-radius: 0 !important;
        line-height: 1.7 !important;
        box-shadow: none !important;
    }

    /* Ensure all paragraph text is readable */
    p {
        color: #1f2937 !important;
        line-height: 1.8 !important;
    }

    /* Make sure content sections have light backgrounds */
    .introduction,
    #services,
    #about {
        background: #ffffff !important;
    }

    /* Clean icon blocks - NO BOXES */
    .icon-block {
        background: transparent !important;
        border-radius: 0 !important;
    }

    .icon-block-description h4 {
        color: #1f2937 !important;
        font-weight: 700 !important;
    }

    .icon-block-description p {
        color: #4b5563 !important;
    }

    /* Clean testimonials - NO BOXES */
    blockquote {
        color: #1f2937 !important;
        background: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Ensure list items are visible */
    li {
        color: #374151 !important;
    }

    /* Make strong/bold text more prominent */
    strong,
    b {
        color: #111827 !important;
        font-weight: 700 !important;
    }

    /* Ensure all headings have good contrast */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #111827 !important;
    }

    /* Make services section text clearly visible */
    #services p,
    #services strong {
        color: #1f2937 !important;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 575px) {

    /* Increase padding for very small screens */
    .row {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    [class*='col-'] {
        padding: 10px 15px !important;
    }

    /* Make client logos full width on very small screens */
    #clients .col-3 {
        width: 100% !important;
        padding: 8px !important;
    }

    /* Reduce font sizes slightly */
    .section-title {
        font-size: 28px !important;
    }

    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    /* Ensure proper spacing */
    p {
        padding-left: 15px !important;
        padding-right: 15px !important;
        line-height: 1.6 !important;
    }
}

/* Tablet landscape and small desktop */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Add some padding for tablets */
    .row {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    [class*='col-'] {
        padding: 15px 25px !important;
    }

    /* Two columns for clients on tablets */
    #clients .col-3 {
        width: 33.33% !important;
    }
}

/* Fix for landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    #banner-content.row {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    .row {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}

/* Prevent horizontal scroll on all devices */
body {
    overflow-x: hidden !important;
}

#wrapper {
    overflow-x: hidden !important;
}

/* Ensure images don't overflow */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Fix any tables */
@media (max-width: 768px) {
    table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
    }
}