/* 
   Multysense Custom Redesign CSS
   Overrides and enhances the default Vixan template.
*/

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
    --accent-gradient: linear-gradient(135deg, #ff6b00 0%, #ff0f7b 100%);
    --text-gradient: linear-gradient(135deg, #ffffff 0%, #ff6b00 100%);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
}

/* Glassmorphism Utility */
.cs_glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #181818;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Hero Section Enhancements */
.cs_hero_title_lg {
    font-weight: 800;
    letter-spacing: -2px;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.7),
        0 4px 25px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
}

/* Gradient Text Effect */
.cs_gradient_text {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Floating Animation for Hero Elements */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.cs_hero_floating_element {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced Buttons */
.cs_btn.cs_style_1 {
    transition: all 0.4s ease;
    border: none;
    background-size: 200% auto;
    background-image: linear-gradient(to right, #ff6b00 0%, #ff0f7b 51%, #ff6b00 100%);
    border-radius: 50px;
    overflow: hidden;
    padding: 20px 32px;
}

.cs_btn.cs_style_1:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

/* Service Card Hover Effect */
.cs_service_item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.cs_service_item:hover {
    background: var(--card-hover-bg);
    transform: translateX(10px) scale(1.02);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cs_service_number {
    font-size: 24px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cs_service_item:hover .cs_service_number {
    color: #ff6b00;
    -webkit-text-stroke: 0px;
}

/* Marquee Glow Effect & Animation */
.cs_moving_section_wrap {
    background: linear-gradient(90deg, #ff6b00, #ff0f7b);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
    position: relative;
    z-index: 10;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
}

.cs_moving_section_in {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.cs_moving_text_item {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-right: 50px;
    text-transform: uppercase;
}


/* Portfolio Hover Effects */
.cs_portfolio_img img {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cs_portfolio:hover .cs_portfolio_img img {
    transform: scale(1.1);
}

.cs_portfolio_overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Header Glass Effect */
.cs_site_header.cs_sticky_header {
    background: rgba(24, 24, 24, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Team Hero Section */
.cs_team_hero {
    position: relative;
    padding: 180px 0 100px;
    background: radial-gradient(circle at center, rgba(255, 107, 0, 0.1) 0%, rgba(24, 24, 24, 0) 70%);
}

.cs_team_hero_title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.cs_team_hero_subtitle {
    font-size: 20px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Leadership Section */
.cs_leadership_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.cs_leadership_card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.cs_leadership_card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cs_leadership_img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.cs_leadership_card:hover .cs_leadership_img {
    transform: scale(1.05);
}

.cs_leadership_info {
    padding: 25px;
    position: relative;
}

.cs_leadership_name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.cs_leadership_role {
    font-size: 16px;
    color: #ff6b00;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

/* Team Grid Section */
.cs_team_category_title {
    font-size: 32px;
    font-weight: 700;
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    color: #fff;
}

.cs_team_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Circular avatar card — optimized for small source images */
.cs_team_card {
    background: rgba(20, 20, 20, 0.6);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 20px 30px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cs_team_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at top, rgba(255, 77, 0, 0.08), transparent 60%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.cs_team_card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 77, 0, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Avatar wrapper with gradient ring */
.cs_team_card_avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 20px;
    padding: 4px;
    /* Space between image and ring */
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    /* Clean glass ring */
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: none;
}

.cs_team_card:hover .cs_team_card_avatar {
    transform: scale(1.05);
    border-color: #ff4d00;
    /* Ring highlights on hover */
    box-shadow: 0 0 25px rgba(255, 77, 0, 0.25);
}

.cs_team_card_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    /* Removed black stroke */
    display: block;
    background: #1a1a1a;
    image-rendering: auto;
}

.cs_team_card_info {
    padding: 0;
    position: relative;
    z-index: 1;
}

.cs_team_card_name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    transition: color 0.3s ease;
    letter-spacing: -0.5px;
}

.cs_team_card:hover .cs_team_card_name {
    background: linear-gradient(135deg, #ff4d00, #ff0055);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cs_team_card_role {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.7;
    color: #ccc;
}

/* Homepage Team Member Updates */
#homepage-team .cs_team_section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    /* Ensure space between items */
    overflow: visible;
    flex-wrap: wrap;
    /* allow wrapping on smaller screens */
}

#homepage-team .cs_team_img {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    /* Allow transforms to show outside if needed, though we want radius on image wrapper */
    border-radius: 0;
    /* Reset from base styles if any */
    transition: all 0.3s ease-in-out;
    padding-bottom: 20px;
    /* Space for shadow overlap if needed or generic spacing */
    position: relative;
    /* Context for potential absolute positioning if needed, but we are moving text below */
    background: transparent;
    border: none;
    /* Remove any default borders */
}

/* Image Container */
#homepage-team .cs_team_img a {
    display: block;
    width: 100%;
    /* Ensure standard height */
    height: 350px;
    /* Fixed height for uniformity */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

#homepage-team .cs_team_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease-in-out;
    border-radius: 15px;
    /* Match container */
    position: static;
    /* Reset absolute positioning from default style if necessary */
}

/* Hover Effects */
#homepage-team .cs_team_img:hover a {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#homepage-team .cs_team_img:hover img {
    transform: scale(1.05);
}

#homepage-team .cs_team_img:hover {
    flex-grow: 1;
    /* Override the default hover expansion behavior */
}

/* Text Styling */
#homepage-team .cs_team_text {
    position: static;
    /* Reset from absolute */
    transform: none;
    /* Reset rotation */
    width: 100%;
    text-align: center;
    padding: 15px 0 0 0;
    /* Add space above text */
    background: transparent;
    opacity: 1;
    /* Ensure always visible */
    visibility: visible;
}

#homepage-team .cs_team_text a {
    display: block;
    height: auto;
    /* Reset height override from image container style */
    box-shadow: none;
    /* Remove shadow from text container link if reused */
    margin-bottom: 5px;
}

#homepage-team .cs_team_text_title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--body-color);
    margin: 0;
}

/* Dark mode adjustment for text */
body.dark #homepage-team .cs_team_text_title {
    color: #fff;
}

#homepage-team .cs_team_subtitle {
    font-size: 0.95rem;
    font-style: italic;
    color: #ff6b00;
    margin: 0;
    opacity: 0.9;
}

/* Overlay Reset */
#homepage-team .cs_portfolio_overlay {
    display: none;
}

/* Fix Services Section Text Visibility in Light Mode */
body:not(.dark) .cs_service_title_modern {
    color: var(--heading-color);
}

body:not(.dark) .cs_service_item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark) .cs_service_item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark) .cs_service_number {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
    color: transparent;
}

/* Fix Side Navigation Email Visibility */
.cs_side_header .cs_box_two h2 {
    margin-bottom: 0;
    line-height: 1.4;
}

.cs_side_header .cs_box_two h2 a,
.cs_side_header .cs_box_two h2 a span {
    font-size: 18px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: block !important;
    line-height: 1.5 !important;
    color: #fff !important;
    /* Ensure visibility */
}

/* =========================================
   NEW REDESIGN ADDITIONS FOR INDEX.HTML
   ========================================= */

/* Portfolio Section Styles (Moved from Inline) */
.portfolio_section {
    padding: 100px 0;
    position: relative;
}

/* Enhanced Section Title */
.cs_section_title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cs_section_subtitle {
    color: #ff6b00;
    /* Match brand color */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
    background: rgba(255, 107, 0, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Modern Grid Layout */
.project_successfull {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Card Styling */
.cs_portfolio.cs_style_1 {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Border for dark mode definition */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cs_portfolio.cs_style_1::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 2;
}

/* Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Card Variation for Service/About */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
}

/* Services Section Styles (Moved from Inline) */
.cs_service_exploring_2 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    box-sizing: border-box;
}

.cs_service_exploring_img {
    position: relative;
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

/* Image */
.cs_service_exploring_img img.cs_img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

/* Text Overlay */
.cs_service_exploring_img_text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 20px 25px;
    border-radius: 15px;
    max-width: 85%;
}

.cs_service_exploring_img_text h6 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.cs_service_exploring_img_text p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.cs_icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

/* Responsive Design for Services */
@media (max-width: 992px) {
    .cs_service_exploring_img_text {
        bottom: 20px;
        left: 20px;
        padding: 18px;
        max-width: 90%;
    }

    .cs_service_exploring_img_text h6 {
        font-size: 1.15rem;
    }

    .cs_service_exploring_img_text p {
        font-size: 0.95rem;
    }

    .cs_icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .cs_service_exploring_img_text {
        position: static;
        background: rgba(0, 0, 0, 0.75);
        margin-top: 15px;
        text-align: center;
        border-radius: 12px;
    }

    .cs_service_exploring_img img.cs_img {
        border-radius: 15px;
    }

    .cs_service_exploring_2 {
        padding: 40px 15px;
        flex-direction: column;
    }

    .cs_service_exploring_img_text h6 {
        font-size: 1.1rem;
    }

    .cs_service_exploring_img_text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cs_service_exploring_img_text {
        padding: 15px;
    }

    .cs_service_exploring_img_text h6 {
        font-size: 1rem;
    }

    .cs_service_exploring_img_text p {
        font-size: 0.9rem;
    }

    .cs_icon {
        width: 30px;
        height: 30px;
    }
}

/* Fix visibility for About/Contact section with light background */
.cs_bg_img_about_titile .cs_section_title_3 {
    color: #002244 !important;
    /* Deep Navy Blue to match office ducts and contrast with white */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    font-weight: 800;
}

/* Fix Section Subtitle Alignment & Padding */
.cs_section_heading.cs_style_1 .cs_section_subtitle {
    padding: 10px 25px 10px 45px !important;
    /* More padding for pill shape and dot space */
    border-radius: 30px !important;
    display: inline-block !important;
    /* Ensure it behaves like a block for padding */
    line-height: 1.2 !important;
    /* Ensure the dot is positioned correctly relative to this container */
}

/* Position the orange dot correctly */
.cs_section_heading.cs_style_1 .cs_section_subtitle::before {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 18px !important;
    /* Move dot away from the left edge */
    background-color: #ff6b00 !important;
}

/* Increase Animated Badge Logo Size */
.cs_animated_badge .cs_ceneter_text {
    width: 140px !important;
    /* Increased from 100px */
    height: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cs_animated_badge .cs_ceneter_text img {
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    /* Reset default margin */
}

/* Adjust rotating text container if necessary to accommodate larger logo */
.cs_animated_badge .rounded_text {
    width: 250px !important;
    /* Increased from 200px */
    height: 250px !important;
}

/* Gallery Slider Image Spacing */
.cs_slider_6 .swiper-slide img {
    width: 100%;
    display: block;
    margin: 0 auto;
    padding: 0 15px;
    /* Add horizontal padding between slides */
    box-sizing: border-box;
    /* Ensure padding is included in width */
}