/* Thermonic Website - Header CSS Styles
   This stylesheet contains styles for the website header
*/

/* Top Bar Styles */
.thermonic-top-bar {
    background: #1d3557 !important;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav .nav-link.active {
    color: black !important;
}
.nav-link.active::after {
    content: "";                 /* zaroori */
    display: block;
    width: 30px;
    height: 2px;
    background-color: black!important;     /* text ke bajaye bg-color use karo */
    margin: 0 auto;              /* center align */
}

.thermonic-top-bar .top-bar-info span {
    font-size: 13px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.thermonic-top-bar .top-bar-info span:hover {
    opacity: 1;
}

.thermonic-top-bar .social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.thermonic-top-bar .social-links .social-link:hover {
    background: #3c5f8e;
    color: #fff;
    transform: translateY(-2px);
}

/* Main Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-header .navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Logo Styles */
.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand .logo-img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.main-header.sticky .navbar-brand .logo-img {
    max-height: 40px;
}

.navbar-brand .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #1d3557;
    text-decoration: none;
}

/* Navigation Styles */
.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px !important;
    position: relative;
    transition: all 0.3s ease;
}


.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 30px;
}

/* Dropdown Styles */
/* .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    min-width: 220px;
    border-radius: 0px!important;
}

.navbar-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-bottom: 8px solid #fff;
}

.navbar-nav .dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    color: #1d3557;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background: #f8f9fa;
    color: #3c5f8e;
    padding-left: 25px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
*/
/* Main dropdown hidden by default */
.navbar-nav .dropdown-menu {
    display: none;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 6px !important;
    background: #fff;
    min-width: 230px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    padding: 6px 0;
}

/* ✅ Show main dropdown on hover */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

/* ✅ Submenu positioning */
.dropdown-submenu {
    position: relative;
}

/* Submenu placement (2nd level) */
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    border-left: 2px solid #007bff20;
    border-radius: 6px;
}

/* ✅ Show submenu only on hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Base dropdown item styling */
.dropdown-item {
    padding: 10px 18px;
    font-weight: 500;
    color: #1d3557;
    white-space: normal;
    line-height: 1.5;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ✅ Hover styling */
.dropdown-item:hover {
    background-color: #f5f8ff;
    color: #0056b3;
    padding-left: 22px;
    border-left: 3px solid #007bff;
}

/* ✅ Smooth fade-in animation for dropdowns */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease-in-out;
}

.nav-item.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ✅ Prevent overlap for multiple open levels */
.navbar-nav .dropdown:hover > .dropdown-menu:not(:hover) .dropdown-menu {
    display: none !important;
}

/* ✅ Optional divider between items */
.dropdown-menu li + li {
    border-top: 1px solid #f2f2f2;
}

/* ✅ Soft glow for hovered submenus */
.dropdown-submenu:hover > .dropdown-menu {
    box-shadow: 0 4px 18px rgba(0, 123, 255, 0.15);
}

/* 🔹 Remove Bootstrap's triangle caret completely */
.dropdown-toggle::after {
    display: none !important;
}

/* ✅ Add + / − icons for submenu items */
.dropdown-submenu > .dropdown-item::after {
    content: "+";
    font-size: 18px;
    font-weight: 700;
    color: #6c757d;
    transition: all 0.3s ease;
    margin-left: 10px;
    display: inline-block;
}

/* ✅ On hover show − sign */
.dropdown-submenu:hover > .dropdown-item::after {
    content: "−";
    color: #007bff;
    transform: scale(1.2);
}




/* CTA Button */
.cta-btn {
    background: #3c5f8e;
    color: #fff;
    border: 2px solid #3c5f8e;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cta-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 95, 142, 0.3);
    border: none!important;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25);
}

.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
    background: #1d3557;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #1d3557;
    border-radius: 2px;
    transition: 0.5s ease-in-out;
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon::after {
    bottom: 0;
}

.navbar-toggler-icon {
    background: #1d3557;
    height: 2px;
    border-radius: 2px;
    top: 8px;
}

/* Mobile Menu Animation */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 8px;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    bottom: 8px;
    transform: rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
        padding: 20px;
    }

    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        border-bottom: 1px solid #f8f9fa;
        margin: 0;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar-nav .dropdown-menu {
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 0px!important;
        margin: 10px 0 0 20px;
        padding: 10px 0;
    }

    .navbar-nav .dropdown-menu::before {
        display: none;
    }

    .navbar-nav .dropdown-item {
        padding: 8px 15px;
        font-size: 14px;
    }

    .cta-btn {
        margin-top: 15px;
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* Tablet Styles */
@media (max-width: 768px) {
    .thermonic-top-bar {
        display: none !important;
    }

    .main-header .navbar {
        padding: 12px 0;
    }

    .navbar-brand .logo-img {
        max-height: 40px;
    }

    .navbar-brand .logo-text {
        font-size: 24px;
    }
}

/* Mobile Styles */
@media (max-width: 575.98px) {
    .main-header .navbar {
        padding: 10px 0;
    }

    .navbar-brand .logo-img {
        max-height: 35px;
    }

    .navbar-brand .logo-text {
        font-size: 20px;
    }

    .navbar-toggler {
        padding: 2px 6px;
    }

    .navbar-toggler-icon {
        width: 20px;
        height: 16px;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        width: 20px;
    }
}

/* Header Spacing - main content header niche na overlap mate */
body.thermonic-website {
    padding-top: 0;
}
/*#wrapwrap.thermonic-website main,
.thermonic-website main {
    padding-top: 120px !important;
}
@media (max-width: 767.98px) {
    #wrapwrap.thermonic-website main,
    .thermonic-website main {
        padding-top: 80px !important;
    }
}*/

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility Improvements */
.navbar-nav .nav-link:focus,
.cta-btn:focus,
.navbar-toggler:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .navbar-nav .nav-link {
        border-bottom: 1px solid transparent;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        border-bottom-color: #3c5f8e;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .main-header,
    .navbar-nav .nav-link,
    .cta-btn,
    .navbar-toggler-icon,
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        transition: none;
    }

    .fade-in,
    .slide-down {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .thermonic-top-bar,
    .main-header {
        display: none !important;
    }
}


/* Container styling */
.mega-menu {
    background-color: #fff;
    border-top: 3px solid #007bff; /* Blue line */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 22px 23px;
    width: 1000px;
    z-index: 999;
}

/* Each column */
.mega-menu .col-md-3 {
    max-width: 250px;
}

/* Category titles */
.mega-menu h6 {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Product links */
.mega-menu  h6 a{
    color: #333333;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0;
}

.mega-menu  li a{
    color: #777777;
    font-family: Open Sans, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 35px;
    letter-spacing: 0;
    }

.mega-menu ul li a:hover {
    text-decoration: underline;
}

.mega-menu h6 a:hover {
    text-decoration: underline;
}

/* hover par dropdown open karva mate */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}


.item_hover:hover {
    color: #333333!important;
    background: none!important;
    padding: 8px!important;
}

.item_hover {
    padding: 8px !important;   /* fix padding */
    transition: color 0.3s ease, background 0.3s ease; /* smooth effect without zoom */
}

.event_image_sec{
    margin-bottom: 50px;
}

.event_main_section{
    margin-bottom: 50px;
}

.event-img-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    margin: auto;   /* center align */
}

.event-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* image zoom properly */
}


.event-header-section {
    position: relative;
    background-blend-mode: overlay;
    text-align: center;
}
.event-header-section .overlay {
    background: rgba(0,0,0,0.4);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.event-header-section h1 {
    position: relative;
    z-index: 2;
    font-size: 48px;
    font-weight: 700;
}

.btn-read-more {
    background-color: #3c5f8e !important;
    color: #fff !important;
    border: none !important;
    padding: 13px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn-read-more:hover {
    background-color: #2e4970 !important; /* little darker shade */
    color: #fff !important;
}


.event_video{
    height: 55%;
    width: 100%;
    margin-bottom: 80px;
}



.product-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Image */
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

/* Overlay with product name */
.product-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    padding: 10px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}
.product-card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}


.object-fit-cover {
    object-fit: cover;
}
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



.zoom-card {
    overflow: hidden;
    position: relative;
    height: 300px;
    border-radius: 10px;
}

.zoom-card img {
    transition: transform 0.5s ease;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.zoom-card:hover img {
    transform: scale(1.1); /* Zoom on hover */
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Optional: smooth shadow text visibility */
.overlay-bottom {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}


.scrollable-projects::-webkit-scrollbar {
    width: 6px;
}

.scrollable-projects::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-projects::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    border: 1px solid transparent;
}

.scrollable-projects {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
    scroll-behavior: smooth;
}


.background-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    animation: float 2.5s infinite ease-in-out alternate;
}

/* Circles with unique speeds and positions */
.circle-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 30%;
    animation-delay: 0.3s;
    animation-duration: 3s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 75%;
    animation-delay: 0.6s;
    animation-duration: 3.2s;
}

.circle-4 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 10%;
    animation-delay: 0.2s;
    animation-duration: 2.7s;
}

.circle-5 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 5%;
    animation-delay: 0.8s;
    animation-duration: 2.9s;
}

.circle-6 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 20%;
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
}

.feature-header-section {
    position: relative;
    color: #fff;
}
.feature-header-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 95, 142, 0.4);  /* #3c5f8e ka halka transparent shade */
    z-index: 1;
}
.feature-header-section .container {
    position: relative;
    z-index: 2; /* text overlay ke upar rahe */
}


.blog-header-section {
    position: relative;
    color: #fff;
}
.blog-header-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 95, 142, 0.4); /* #3c5f8e transparent */
    z-index: 1;
}
.blog-header-section .container {
    position: relative;
    z-index: 2;
}


.feature-card {
    border: none;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.feature-img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    display: block;
}

.feature-card:hover .feature-img {
    transform: scale(1.08); /* zoom effect */
}

.feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(60, 95, 142, 0.7); /* #3c5f8e with transparency */
    color: #fff;
    text-align: center;
    padding: 8px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.feature-card:hover .feature-overlay {
    opacity: 1;
    transform: translateY(0);
}

