﻿
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: none !important;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}



.info-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.balance-section {
    margin-top: 0px !important;
    padding-top: 0px !important;
    margin-bottom: 0px !important;
}

.services-modern-section {
    margin-top: 0px !important;
    padding-top: 20px !important;
    margin-bottom: 0px !important;
}

/* SECTION */
.team-section {
    padding: 50px 20px;
    background: #f5f5f5;
}

/* HEADER */
.section-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.section-subtitle {
    color: #777;
    margin: 0;
}

.view-all {
    text-decoration: none;
    font-weight: 600;
    color: #000;
}

    .view-all:hover {
        text-decoration: underline;
    }

/* CARD */
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

    /* IMAGE */
    .product-card img {
        width: 100%;
        height: 290px;
        object-fit: contain;
        border-radius: 8px;
    }

/* CONTENT */
.product-content {
    margin-top: 15px;
}

    .product-content h5 {
        font-weight: 600;
        margin-bottom: 5px;
    }

    .product-content p {
        font-size: 14px;
        color: #666;
    }

/* FOOTER */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* BUTTON */
.btn-explore {
    background: #000;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

    .btn-explore:hover {
        background: #333;
    }

/* WISHLIST */
.wishlist {
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

    .wishlist:hover {
        color: red;
    }

/* BADGE */
.badge-custom {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .view-all {
        margin-top: 10px;
    }
}



/* Microtech sencond section page ropen */
/* --- Core Section Responsiveness --- */
.info-section {
    padding: 80px 0; /* Reduced from 120px for mobile */
    background: #ffffff;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
}

@media (min-width: 992px) {
    .info-section {
        padding: 30px 0 !important ; /* Premium spacing restored for Desktop */
    }
}

/* --- Ambient Background Glow --- */
.bg-pattern {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px; /* Smaller for mobile */
    height: 300px;
    background: radial-gradient(circle, rgba(17, 44, 61, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .bg-pattern {
        width: 500px;
        height: 500px;
    }
}

/* --- Left Side Identity --- */
.brand-wrapper {
    position: relative;
    z-index: 1;
    text-align: center; /* Center text on mobile */
}

@media (min-width: 992px) {
    .brand-wrapper {
        text-align: left; /* Align left for Desktop */
    }
}

.sub-text {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 3px; /* Slightly tighter for mobile */
    color: #79ad70 !important;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .sub-text {
        font-size: 11px;
        letter-spacing: 5px;
    }
}

.company-name {
    font-size: clamp(36px, 8vw, 64px); /* Adjusted min size */
    font-weight: 800;
    color: #1F1E5A;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 0;
}

.gold-separator {
    width: 60px;
    height: 4px;
    background: #79ad70;
    margin: 20px auto 0; /* Centered on mobile */
    border-radius: 10px;
}

@media (min-width: 992px) {
    .gold-separator {
        margin: 25px 0 0; /* Left aligned for desktop */
    }
}

/* --- Right Side Content Box --- */
.content-box {
    padding-left: 0; /* No padding on mobile */
    border-left: none; /* No border on mobile */
    position: relative;
    z-index: 1;
    text-align: center; /* Center text on mobile */
    margin-top: 30px;
}

@media (min-width: 992px) {
    .content-box {
        padding-left: 50px;
        border-left: 2px solid #f0f0f0;
        text-align: left;
        margin-top: 0;
    }
}

.tagline {
    font-size: 22px; /* Smaller for mobile */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .tagline {
        font-size: 26px;
    }
}

.description {
    font-size: 15px; /* Better readability for mobile */
    line-height: 1.6;
    color: #555 !important;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .description {
        font-size: 17px;
        line-height: 1.8;
    }
}

/* --- Modern Button --- */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1F1E5A;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

    .btn-modern:hover::after {
        width: 100%;
    }
/* Microtech sencond section page rend */

/* Microtech 3rd section page ropen */
/* --- Variables & Reset --- */
:root {
    --dark-text: #1a1a1a;
    --muted-text: #5a5a5a;
    --gold-gradient: linear-gradient(135deg,#1f1e5a 5%, #fdfcfb 95% );
    --carat-gradient: linear-gradient(135deg, #f3bc2c 10%, #fdfcfb 90%);
    --white-soft: rgba(255, 255, 255, 0.5);
}

/* --- Section Styling --- */
.balance-section {
    background: #fcfcfc;
    padding: 50px 0; /* Less padding for mobile */
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .balance-section {
        padding: 30px 0;
        margin-bottom:0px!important;/* More spacing for Desktop */
    }
}

/* --- Header Styling --- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.top-tag {
    margin-top:40px !important ;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted-text);
    display: block;
    margin-bottom: 10px;
}

.main-title {
    font-size: clamp(24px, 6vw, 36px); /* Shrinks automatically on mobile */
    font-weight: 800;
    color: var(--dark-text);
}

/* --- Grid System --- */
.container-custom {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    /* Default: 1 column for Mobile */
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 850px) {
    .container-custom {
        /* 2 columns for Tablets and PC */
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* --- Card Design --- */
.balance-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    padding: 25px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    height: auto; /* Changed from 100% to auto for mobile */
}

@media (min-width: 992px) {
    .balance-card {
        padding: 40px;
        height: 100%;
    }
}

.balance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

/* --- Image Wrapper (FIXED STRETCHING) --- */
.image-wrapper {
    width: 100%;
    height: 220px; /* Mobile height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 25px;
    background: var(--white-soft);
    border: 1px solid rgba(255,255,255,0.2);
}

@media (min-width: 576px) {
    .image-wrapper {
        height: 320px; /* Tablet height */
    }
}

@media (min-width: 992px) {
    .image-wrapper {
        height: 453px; /* Your original PC height */
    }
}

.image-wrapper img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain; /* Keeps image proportions correct */
    transition: transform 0.5s ease;
}

.balance-card:hover .image-wrapper img {
    transform: scale(1.08);
}

/* --- Text Content --- */
.category-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted-text);
    margin-bottom: 10px;
    display: inline-block;
    opacity: 0.8;
}

.content h2 {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.content p {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* --- Button Styling --- */
.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1f1e5a;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-explore:hover {
        background: #79ad70;
        background: #79ad70;
        transform: scale(1.05);
        color: #fff;
    }

/* --- Gradient Variations --- */
.gold-card {
    background: var(--gold-gradient);
}

.carat-card {
    background: var(--carat-gradient);
}

/* --- Background Pattern --- */
.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.balance-section * {
    position: relative;
    z-index: 1;
}/* Microtech 3rd section page rend */





/* Microtech 4rd section page ropen */
/* --- Global Section Styling --- */
.services-modern-section {
    background-color: #ebf9d8;
    padding: 0px 0; /* Reduced for mobile */
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
}

@media (min-width: 992px) {
    .services-modern-section {
        padding: 30px 0; /* Premium spacing for desktop */
    }
}

/* --- Grid Adjustment --- */
.services-modern-section .row {
    display: flex;
    justify-content: center;
}

/* --- Main Service Card --- */
.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px 20px; /* Tighter padding for mobile */
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    z-index: 1;
}

@media (min-width: 768px) {
    .service-card {
        padding: 40px 30px; /* Restored for tablet/PC */
    }
}

/* --- Icon Styling --- */
.icon-box {
    width: 65px; /* Smaller icon for mobile */
    height: 65px;
    background: #1F1E5A;
    color: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    position: relative;
    transition: transform 0.4s ease, background 0.4s ease;
}

@media (min-width: 768px) {
    .icon-box {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 25px;
    }
}

.dot-decorator {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #79ad70;
    border-radius: 50%;
    bottom: -3px;
    right: -3px;
    border: 3px solid #fff;
}

/* --- Typography --- */
.service-info h3 {
    font-size: 18px; /* Fluid typography */
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .service-info h3 {
        font-size: 20px;
    }
}

.service-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #5f6c7b;
    margin-bottom: 0;
}

/* --- Hover States (Disabled on Touch Devices for better UX) --- */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-12px);
        border-color: #79ad70;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    }

        .service-card:hover .icon-box {
            transform: scale(1.1) rotate(5deg);
            background: #79ad70;
        }

        .service-card:hover .card-glow {
            opacity: 1;
        }
}

/* --- Aesthetic "Glow" Effect --- */
.card-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(circle, rgba(243, 188, 44, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Microtech 4rd section page rend */

/* Microtech 5slide section page ropen */

.more-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    /* Font */
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.7;
    color: #5a5a5a;
    font-weight: 400;
    letter-spacing: 0.2px;
    /* ✅ Left Align */
    text-align: left;
}

/* When active / expanded */
.more-text.show {
    max-height: 300px; /* adjust based on content */
}

.custom-card.active .more-text {
    max-height: 300px;
}

.card-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}


.btn-read,
.btn-quote {
    flex: 1;
    padding: 10px 14px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
}

.btn-read {
    background: #1f1e5a;
    color: #fff;
    border: none;
}

.btn-quote {
    background: #1f1e5a;
    color: #fff;
    border: 2px solid #1f1e5a;
}

    .btn-read:hover,
    .btn-quote:hover {
        background: #79ad70;
    }




.section-title {
    text-align: center;
}

.custom-card {
    background: #f1f1f1;
    border-radius: 12px;
    padding: 20px 21px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.img-wrapper {
    height: 306px;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

    .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.custom-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ✅ max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px; /* keeps equal height */
}

.owl-dots {
    display: none !important;
}

.custom-dots {
    text-align: center;
    margin-top: 20px;
}

.custom-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    display: inline-block;
    margin: 5px;
    border-radius: 50%;
    cursor: pointer;
}

    .custom-dot.active {
        background: #0b2c3d;
    }


/* Microtech 5slide section page rend */

/* Microtech last section page ropen */
:root {
    --s-navy: #1F1E5A;
    --s-gold: #f3bc2c;
    --s-cyan: #f3bc2c; /* Keeping your gold accent as cyan for consistency */
    --s-text: #475569;
    --s-bg: #f8fafc;
}

.services-advanced-section {
    background-color: var(--s-bg);
    padding: 60px 0; /* Responsive padding */
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .services-advanced-section {
        padding: 20px 0 !important ;
    }
}

/* Engineering Background Grid */
.eng-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* --- Title Header --- */
.section-title {
    margin-top: 20px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.main-heading {
    font-size: clamp(26px, 5vw, 36px); /* Fluid font size */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.sub-heading {
    font-size: clamp(14px, 2vw, 16px);
    color: #5a5a5a;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Glass Card Design --- */
.service-glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #000 !important ;
    border-radius: 32px;
    padding: 40px 25px; /* Adjusted for mobile */
    height: 100%;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    text-align: center; /* Centers text */
}

@media (min-width: 768px) {
    .service-glass-card {
        padding: 50px 35px;
    }
}

/* --- Icon Centering --- */
.icon-portal {
    width: 70px;
    height: 70px;
    background: var(--s-navy);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 25px;
    transition: 0.5s;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.spec-label {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--s-text);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
}

/* Bottom Accents */
.card-footer-accent {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 5px;
    border-radius: 5px 5px 0 0;
    transition: 0.5s ease;
}

.cyan {
    background: #79ad70;
}

.gold {
    background: #79ad70;
}

.navy {
    background: #79ad70;
}

/* --- Hover Effects --- */
/* Only apply transform on screens that support hover to avoid mobile bugs */
@media (hover: hover) {
    .service-glass-card:hover {
        transform: translateY(-15px) scale(1.02);
        background: #ffffff;
        box-shadow: 0 40px 80px rgba(11, 44, 61, 0.1);
        border-color: #79ad70;
    }

        .service-glass-card:hover .icon-portal {
            transform: rotateY(180deg);
            background: #79ad70;
        }

        .service-glass-card:hover .card-footer-accent {
            width: 60%;
        }
}
/* Microtech last section page rend */

