/*
Template Name: Crystal Interior
File: Layout CSS
Author: TemplatesOnWeb
Author URI: https://www.templateonweb.com/
Licence: <a href="https://www.templateonweb.com/license">Website Template Licence</a>
*/

/*********************center_home****************/
.center_home img {
    height: 750px;
    object-fit: cover;
}

.carousel-caption {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.2) 100%);
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    display: flex !important;
    /* Ensure it overrides bootstrap d-none */
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    text-align: left;
}

/* Modern Slider Typography */
.carousel-caption h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.carousel-caption .button,
.carousel-caption .button_1 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600;
}

@media (max-width: 767px) {
    .center_home img {
        height: 500px;
    }

    .carousel-caption {
        padding: 0 5%;
        align-items: center;
        text-align: center;
        background: rgba(0, 0, 0, 0.6);
    }

    .carousel-caption p {
        width: 100% !important;
    }
}

/*********************center_home_end****************/

/*********************design****************/
#design {
    padding-top: 0px;
    /* Reduced padding since we are pulling it up */
    padding-bottom: 80px;
    background-color: transparent;
    /* Transparent so it looks like it's floating */
    margin-top: -120px;
    /* Pull layout up over the slider */
    position: relative;
    z-index: 20;
    /* Sit on top of slider */
}


.design_1i {
    background: #fff;
    border-radius: 20px;
    margin-top: 50px;
    /* Space for floating icon */
    padding-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Soft, premium shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 3px solid transparent;
    /* Prepare for hover effect */
}

/* Zigzag Effect: Push the middle card down */
.design_1>div:nth-child(2) .design_1i {
    margin-top: 100px;
    /* Offset to create Zigzag */
}

/* Mobile Fix: Remove zigzag on small screens */
@media (max-width: 767px) {
    .design_1>div:nth-child(2) .design_1i {
        margin-top: 50px;
    }
}

.design_1i:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
    /* Deep Navy Shadow */
    border-bottom: 3px solid #D4AF37;
    /* Gold Border on Hover */
}

/* Floating 3D Icon */
.design_1i1 {
    top: -45px;
    z-index: 10;
}

.design_1i1 span {
    width: 90px;
    height: 90px;
    line-height: 90px;
    background: #0F172A;
    /* Navy Brand Color */
    color: #D4AF37;
    /* Gold Icon */
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
    border: 4px solid #fff;
    /* Separation ring */
    font-size: 32px;
    transition: all 0.5s ease;
}

.design_1i:hover .design_1i1 span {
    background: #D4AF37;
    color: #0F172A;
    /* Switch to Navy text */
    border-color: #f8f9fa;
    transform: rotateY(360deg);
    /* 3D Spin Interaction */
}

/* Card Content */
.design_1i2 {
    background: transparent !important;
    box-shadow: none !important;
    /* Remove bootstrap shadow */
    padding: 60px 30px 20px 30px !important;
    margin-top: 0 !important;
}

.design_1i2 h4 {
    color: #0F172A;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.design_1i2 p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Action Link */
.design_1i3 {
    margin-top: 10px;
}

.design_1i3 h6 a {
    display: inline-block !important;
    padding: 12px 30px;
    background: transparent !important;
    color: #0F172A !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid #0F172A;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.design_1i3 h6 a:hover {
    background: #0F172A !important;
    color: #D4AF37 !important;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

/* Clean up old hover overrides */
.design_1i:hover .design_1i2,
.design_1i:hover .design_1i2 h4,
.design_1i:hover .design_1i2 p {
    background: transparent !important;
    color: inherit;
    /* Prevent color changes on hover, keep clean */
}

/*********************design_end****************/

/*********************about_h (Innovative Redesign)****************/
/* Layout & Spacing */
#about_h {
    overflow: visible !important;
    /* Allow badge to pop out */
}

.rounded_custom {
    border-radius: 30px;
}

.shadow_lg {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    /* Soft deep shadow */
}

.shadow_xl {
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
}

/* Image Stack */
.img_main img {
    transition: transform 0.7s ease;
}

.about_image_stack:hover .img_main img {
    transform: scale(1.05);
}

.overlay_gradient {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
    z-index: 1;
}

/* Floating Experience Badge */
.experience_badge {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border: 4px solid #fff;
    animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Glassmorphism Card */
.about_glass_card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.border_glass {
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
}

/* Mission/Vision Tabs */
.mission_vision_tabs .nav-link {
    color: #0F172A;
    /* Navy */
    background: rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

.mission_vision_tabs .nav-link.active {
    background: #0F172A;
    color: #D4AF37;
    /* Gold text */
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .about_glass_card {
        margin-top: 30px !important;
        margin-left: 0 !important;
        padding: 30px !important;
    }

    .experience_badge {
        width: 120px !important;
        height: 120px !important;
        bottom: -20px !important;
        left: -10px !important;
    }

    .experience_badge span:first-child {
        font-size: 2rem !important;
    }

    #about_h h1 {
        /* Watermark */
        display: none;
    }
}

/*********************about_h_end****************/

/* Carousel Card Style */
.carousel-item .bg_navy {
    background: #0F172A !important;
    border-left: 5px solid #D4AF37;
}

.carousel-indicators [data-bs-target] {
    background-color: #0F172A !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.5;
    border: none;
}

.carousel-indicators .active {
    background-color: #D4AF37 !important;
    opacity: 1;
    transform: scale(1.2);
}

/*********************work_h (Interactive Grid Redesign)****************/
#work_h {
    background-color: #0F172A !important;
    background-image: none !important;
    min-height: 600px;
}

.work_card {
    height: 400px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.work_bg_img {
    transition: transform 0.8s ease;
    z-index: 1 !important;
    /* Ensure it sits above any card background */
    display: block !important;
}

.work_card_overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 2 !important;
    /* Ensure overlay sits on top of image */
    transition: all 0.4s ease;
}

/* Hover Effects */
.work_card:hover .work_bg_img {
    transform: scale(1.1);
}

.work_card:hover .work_card_overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.7) 100%);
}

/* Content Animations */
.work_content {
    transform: translateY(20px);
}

.work_hidden_content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work_card:hover .work_content {
    transform: translateY(0);
}

.work_card:hover .work_hidden_content {
    max-height: 200px;
    /* Reveal content */
    opacity: 1;
    margin-top: 10px;
}

/* Floating Icon */
.work_icon_float {
    width: 60px;
    height: 60px;
    top: 20px;
    right: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.bg_gold {
    background-color: #D4AF37 !important;
}

.work_card:hover .work_icon_float {
    transform: scale(1.2) rotate(360deg);
    background-color: #D4AF37 !important;
    color: #fff !important;
}

/*********************work_h_end****************/




/*********************connect****************/
#connect {
    background-image: url(../img/2.jpg);
    background-position: center;
}

/*********************proj_h (New Grid)****************/
.project_overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
    opacity: 0.8;
}

.project_card:hover .project_img {
    transform: scale(1.1);
}

.project_card:hover .project_overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.4) 100%);
    opacity: 1;
}

.project_card:hover .project_hidden_link {
    max-height: 50px !important;
}

/*********************process (Roadmap Design)****************/
.process_step {
    border-bottom: 3px solid transparent;
}

.process_step:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid #D4AF37;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.process_step:hover .step_icon_wrapper {
    background-color: #D4AF37 !important;
    color: #0F172A !important;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-05 {
    opacity: 0.05;
}

/*********************process_end****************/

/*********************proj_h_end****************/




/*********************Slider Buttons (Modern)****************/
.carousel-caption .button,
.carousel-caption .button_1 {
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    padding: 15px 35px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Primary Button: Gold -> Navy Slide */
.carousel-caption .button {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.carousel-caption .button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #0F172A;
    /* Navy */
    z-index: -1;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-caption .button:hover::before {
    width: 100%;
}

.carousel-caption .button:hover {
    border-color: #0F172A;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(15, 23, 42, 0.4);
}

/* Secondary Button: Outline -> White Fill */
.carousel-caption .button_1 {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff !important;
    backdrop-filter: blur(4px);
}

.carousel-caption .button_1:hover {
    background: #fff;
    color: #0F172A !important;
    transform: translateY(-3px);
    border-color: #fff;
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2);
}

/* Icon Animation */
.carousel-caption .button i,
.carousel-caption .button_1 i {
    transition: transform 0.3s ease;
}

.carousel-caption .button:hover i,
.carousel-caption .button_1:hover i {
    transform: translateX(5px);
}

/*********************Slider Buttons End****************/

@media screen and (max-width : 767px) {
    .center_home img {
        min-height: 350px;
    }

    .main_2 {
        position: static !important;
    }

    .design_1i1 {
        position: static !important;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #design {
        padding-top: 30px;
    }

    .carousel-caption {
        padding: 15px;
        text-align: center;
    }

    .carousel-caption p {
        width: 100% !important;
    }

    .carousel-caption .font_60 {
        font-size: 40px;
    }

    .carousel-caption .button {
        padding: 10px 15px 10px 15px;
        font-size: 14px;
    }

    .carousel-caption .button_1 {
        padding: 10px 13px 10px 13px;
        font-size: 14px;
    }

    .design_1i2 {
        padding-top: 30px !important;
    }

    .design_1i {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .design_1i2 p {
        text-align: left;
    }

    #about_h {
        margin-top: 0;
    }

    .about_h1r {
        margin-top: 15px;
    }

    .about_h1r h5 {
        text-align: center;
    }

    .about_h1ri {
        text-align: center;
    }

    .about_h1ri p {
        text-align: left;
    }

    .appoint_1r {
        text-align: center !important;
        margin-top: 15px;
    }

    .connect_1l {
        text-align: center;
    }

    .connect_1r {
        padding: 20px !important;
        text-align: center;
        margin-top: 15px;
    }

    .connect_1r p {
        text-align: left;
    }

}

@media (min-width:576px) and (max-width:767px) {
    .carousel-caption {
        padding: 40px;
    }
}

@media (min-width:768px) and (max-width:991px) {
    .carousel-caption p {
        width: 100% !important;
    }

    .about_h1ril span {
        font-size: 40px;
    }

}

@media (min-width:992px) and (max-width:1200px) {
    .carousel-caption p {
        width: 70% !important;
    }

    .about_h1ril span {
        font-size: 50px;
    }
}