/* ========================================
   DESKTOP STYLES (Full View)
   ======================================== */

* {
    box-sizing: border-box;
}

#about, #services {
    padding-left: 5vh;
    padding-right: 5vh;
}

.bkgd_light {
    background-color: #F5F5F5;
}

.bkgd_dark {
    
}

.addmargintop {
    margin-top: 1vh;
}

.addpadtop {
    padding-top: 5vh;
}

.addlargemargintop {
    margin-top: 5vh;
}

.addmarginbottom {
    margin-bottom: 1vh;
}

.border_left {
    
}

.border_right {
    
}

.wrap_cont {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: center;
    object-fit: contain;
    /*border: 1px solid black;*/
    border-radius: 3vh;
}

.wrap_cont > * {
    flex: 1;
    height: 100%;
    margin: auto;
}

.wrap_cont_reverse {
  flex-direction: row-reverse;
}

.wrap_cont_reverse {
    .wrap_item {
        border-radius: 3vh;
        /*  border-radius: 3vh 0vh 0vh 3vh; */
    }
}

.wrap_item {
    text-align: center;
    height: 100%;
    width: 100%;
    margin: auto;
    border-radius: 3vh;
    /*border-radius: 0vh 3vh 3vh 0vh;*/
}

.wrap_item > * {
    padding: 0;
    margin: auto;
    align-content: stretch;
    height: 100%;
}

.wrap_item img {
    max-width: 100%;
}

.mainlogotop {
    width: 60%;
    height: auto;
    margin: auto;
    padding: 2vh 5vh 2vh 5vh;
}

.2col_norm {
  border:1px solid blue; 
  flex:1; 
  display:flex;
  justify-content:center;
  align-items:center; 
}

.bannerimage {
    width: 100%;
    height: auto;
    margin: auto;
    filter: brightness(80%);
}

.footermap {
    width: 300px;
    height: auto;
}

.wrap_contact {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    align-items: center;
    object-fit: contain;
    /*border: 1px solid black;*/
    border-radius: 3vh;
}

.wrap_contact_item {
    position: relative;
    width: 30%;
}

.contact_btn {
    width: 20%;
}

.hiddendef {
    visibility: hidden;
    display: none;
}

#defdvr:hover {
    .hiddendef {
        z-index: -1;
        font-size: 20px;
        text-align: center;
        visibility: visible;
        display: right;
    }
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: none !important;
    border-radius: 0 !important;
    margin: 0;
    padding: 0;
    box-shadow: none !important;
    /* Ensure no inheritance from wrap_cont styles */
    display: block !important;
    flex: none !important;
    justify-content: normal !important;
    align-items: normal !important;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    padding: 2rem 0;
}

.hero-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #16a34a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-icon {
    color: #4ade80;
    font-size: 2rem;
}

.hero-description {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    text-decoration: none;
    color: white;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px !important;
    border: 3px solid rgba(22, 163, 74, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Navigation Dots */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(22, 163, 74, 0.3) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #16a34a !important;
    border-color: #16a34a !important;
    transform: scale(1.2);
}

/* Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(22, 163, 74, 0.9) !important;
    color: white !important;
    border: 2px solid rgba(22, 163, 74, 0.9) !important;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-nav:hover {
    background: rgba(22, 163, 74, 1) !important;
    border-color: rgba(22, 163, 74, 1) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
    left: 20px;
}

.hero-nav.next {
    right: 20px;
}

/* Service Section Typography Optimization */
#about .basetext {
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    text-align: center;
    margin-bottom: 1rem;
}

#about .basetext strong {
    font-family: "Poppins", sans-serif !important;
    font-weight: 700;
    font-size: 1.3rem;
    color: #16a34a;
    display: block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Service Cards Styling */
#about .basetext ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
    list-style: none !important;
    text-align: left !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#about .basetext ul li {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    border: 2px solid rgba(22, 163, 74, 0.1) !important;
    border-radius: 15px !important;
    padding: 1.5rem 1.75rem 1.5rem 1rem !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    color: #374151 !important;
    text-align: left !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    min-height: 60px;
    justify-content: flex-start !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
}

#about .basetext ul li i {
    flex-shrink: 0 !important;
    margin-right: 8px !important;
}

#about .basetext ul li:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(22, 163, 74, 0.3) !important;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.1) !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
}

#about .wrap_cont {
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
}

#about .wrap_item p {
    padding: 1.5rem;
}

/* Enhance readibility with better spacing and hierarchy */
#about .wrap_item br + br {
    display: none;
}

#about .wrap_item br {
    margin-bottom: 0.5rem;
}

/* Ensure font consistency across all service section elements */
#about .basetext p,
#about .basetext > strong {
    font-family: "Poppins", sans-serif !important;
}

/* Keep headings bold */
#about .basetext > strong {
    font-weight: 700 !important;
    font-size: 1.3rem;
    color: #16a34a;
}

#about .hiddendef {
    font-family: "Poppins", sans-serif !important;
    font-size: 0.8rem !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
    font-style: italic;
}

/* Desktop indentation for service lists */
.desktop-indent {
    margin-left: 180px;
    margin-right: 1px;
    padding-left: 100px;
}

.desktop-indent-monitoring {
    margin-left: 200px;
    margin-right: 1px;
    padding-left: 100px;
}

.desktop-indent-cameras {
    margin-left: 140px;
    margin-right: 1px;
    padding-left: 100px;
}

/* ========================================
   MOBILE STYLES (Mobile View)
   ======================================== */

/* Mobile Layout Adjustments */
@media only screen and (max-width: 600px) {
    .wrap_cont {
        flex-direction: column;
    }
    
    .wrap_cont_reverse {
        flex-direction: column;
    }
    
    .testcontainer {
        flex-direction: column;
    }
    
    .wrap_contact_item {
        width: 80%;
    }
}

/* Mobile Responsive - Hero Carousel */
@media (max-width: 768px) {
    .hero-carousel {
        height: 600px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-icon {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-image img {
        height: 240px;
    }
    
    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Mobile responsive typography for service sections */
@media (max-width: 768px) {
    #about .basetext {
        font-size: 1rem;
        line-height: 1.7;
        padding: 1rem;
    }
    
    #about .basetext strong {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    #about .basetext ul {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    #about .basetext ul li {
        padding: 1.25rem 1.5rem 1.25rem 1rem !important;
        font-size: 0.95rem !important;
        min-height: 50px !important;
    }
    
    /* Mobile positioning - remove desktop indentation on mobile */
    .mobile-service-container.desktop-indent,
    .mobile-service-container.desktop-indent-monitoring,
    .mobile-service-container.desktop-indent-cameras {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .mobile-service-container ul {
        
        /* margin-right: 10px !important; */
        /* margin: 1rem 0 !important; */
        padding: 0 !important;
    }
    
    .mobile-service-container ul li {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem !important;
        min-height: 40px !important;
        margin-bottom: 0.5rem !important;
    }
    
    #about .wrap_cont {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    #about .wrap_item p {
        padding: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .mobile-service-container.desktop-indent,
    .mobile-service-container.desktop-indent-monitoring,
    .mobile-service-container.desktop-indent-cameras {
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .mobile-service-container ul li {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.8rem !important;
    }
}
