/* =========================================================
   LB Solar Tec - main stylesheet
   Sections: 1 Base | 2 Header | 3 Hero | 4 About | 5 Directors
             6 Services | 7 Video | 8 Image Gallery | 9 Clients
             10 Blog | 11 Footer | 12 Video Modal
   ========================================================= */

/* 1. Base ------------------------------------------------- */
:root {
    --primary: #f58b1f;          /* Solar orange (main) */
    --primary-light: #fc9f46;
    --secondary: #0e6b5c;        /* Deep green (combination) */
    --dark: #17201e;
    --text: #14183a;
    --muted: #5b6188;
    --soft: #fff6ec;
    --line: #f6e3cc;
    --bs-primary: #f58b1f;
    --bs-primary-rgb: 245, 139, 31;
    --swiper-theme-color: #f58b1f;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.bg-soft { background: var(--soft); }
.btn-primary {
    --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-color: #1b1200;
    --bs-btn-hover-bg: var(--secondary); --bs-btn-hover-border-color: var(--secondary); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--secondary); --bs-btn-active-border-color: var(--secondary); --bs-btn-active-color: #fff;
    font-weight: 700; padding: 11px 26px; border-radius: 8px; transition: .25s;
}

img.img-fluid.blog{
    height: 160px;
}
.btn-primary i { transition: .25s; }
.btn-primary:hover i { transform: translateX(4px); }
.section-title { color: var(--primary); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.section-title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--secondary); border-radius: 4px; margin-top: 8px; }
.section-subtitle { color: var(--muted); margin-bottom: 28px; }
.swiper-pagination { position: static; margin-top: 18px; }
.swiper-pagination-bullet-active { width: 24px; border-radius: 8px; }

/* 2. Header ----------------------------------------------- */
.header-top { position: relative; overflow: hidden; background: #21435f; color: #fff; font-size: .92rem; }
.header-top .top-inner { position: relative; z-index: 2; min-height: 52px; display: flex; align-items: center; }
.header-top .info-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; }
.header-top .info-list > li { display: flex; align-items: center; gap: 10px; padding: 0 24px; border-right: 1px solid var(--primary); }
.header-top .info-list > li:first-child { padding-left: 0; }
.header-top .info-list > li:last-child { border-right: 0; }
.header-top i { color: var(--soft); }
.social-links { gap: 16px; }
.social-links a { transition: transform .3s; }
.social-links a:hover { transform: translateY(-3px); }
.top-pattern {
    position: absolute; right: 0; top: 0; bottom: 0; width: 30%;
    background: repeating-linear-gradient(115deg, var(--dark) 0 20px, var(--primary-light) 20px 44px, #f7c38a 44px 56px);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); opacity: .9;
}
.main-header { background: #fff; box-shadow: 0 2px 14px rgba(245, 139, 31, .2); z-index: 1030; }
.header-lower .outer-box { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.logo-box img { width: auto; display: block; }
.menu-toggle { font-size: 1.6rem; color: var(--primary); }
.main-menu .navigation { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-menu .navigation > li { position: relative; }
.main-menu .navigation > li > a {
    display: block; padding: 12px 22px; font-weight: 600; font-size: .92rem; text-transform: uppercase;
    letter-spacing: .3px; color: var(--text); opacity: .85; transition: color .3s, opacity .3s;
}
.main-menu .navigation > li > a:hover, .main-menu .navigation > li.current > a { color: var(--primary); opacity: 1; }
/* Sub menu - slow motion */
.main-menu .navigation > li > ul {
    position: absolute; top: 100%; left: 0; min-width: 210px; list-style: none; margin: 0; padding: 0;
    background: #fff; border-top: 3px solid var(--primary); box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
    opacity: 0; visibility: hidden; transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease, visibility .8s;
}
.main-menu .navigation > li > ul > li > a {
    display: block; padding: 13px 22px; font-weight: 600; opacity: 0; transform: translateY(12px);
    transition: opacity .7s ease, transform .7s ease, color .3s;
}
.main-menu .navigation > li > ul > li + li > a { border-top: 1px solid var(--line); }
.main-menu .navigation > li > ul > li > a:hover { color: var(--primary); }
.main-menu .navigation > li.dropdown:hover > ul,
.main-menu .navigation > li.dropdown:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.main-menu .navigation > li.dropdown:hover > ul > li > a,
.main-menu .navigation > li.dropdown:focus-within > ul > li > a { opacity: 1; transform: none; }
.main-menu .navigation > li.dropdown:hover > ul > li:nth-child(1) > a { transition-delay: .25s; }
.main-menu .navigation > li.dropdown:hover > ul > li:nth-child(2) > a { transition-delay: .45s; }
/* Mobile menu */
.mobile-navigation a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-navigation a:hover { color: var(--primary); }

/* 3. Hero Slider ------------------------------------------ */
.hero-section { position: relative; height: min(82vh, 640px); background: var(--dark); }
.hero-section .hero-slide, .hero-section .swiper-wrapper, .hero-section .swiper-slide { height: 100%; }
.hero-wrapper { position: relative; height: 100%; overflow: hidden; }
.hero-wrapper::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .2)); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.hero-bg.zoom-out { transform: scale(1.18); }
.hero-slide .swiper-slide-active .zoom-in { animation: zoomIn 7s ease-out forwards; }
.hero-slide .swiper-slide-active .zoom-out { animation: zoomOut 7s ease-out forwards; }
@keyframes zoomIn { from { transform: scale(1); } to { transform: scale(1.18); } }
@keyframes zoomOut { from { transform: scale(1.18); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-content-wrapper { max-width: 600px; color: #fff; text-align: left; }
.hero-heading { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; margin-bottom: 18px; }
.hero-description { font-size: 1.15rem; margin: 0; }
.hero-heading, .hero-description { opacity: 0; transform: translateX(-120px); transition: 1s ease; }
.hero-slide .swiper-slide-active .hero-heading,
.hero-slide .swiper-slide-active .hero-description { opacity: 1; transform: none; transition-delay: .5s; }
.hero-slide .swiper-slide-active .hero-description { transition-delay: .8s; }
.hero-slide .swiper-pagination { position: absolute; bottom: 18px; margin: 0; }
.hero-slide .swiper-pagination-bullet { background: #fff; opacity: .6; }
.hero-slide .swiper-pagination-bullet-active { background: var(--primary); opacity: 1; }
.hero-slide .swiper-button-prev, .hero-slide .swiper-button-next { color: #fff; }

/* 4. About ------------------------------------------------ */
.about-video { border-radius: 14px; overflow: hidden; }
.video-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px;
    border-radius: 50%; border: 0; background: #fff; color: var(--primary); font-size: 1.6rem; cursor: pointer;
    animation: pulse 1.8s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 100% { box-shadow: 0 0 0 24px rgba(255, 255, 255, 0); } }

/* 5. Directors -------------------------------------------- */
.director-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; height: 100%; box-shadow: 0 6px 18px rgba(245, 139, 31, .13); }
.director-img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid var(--primary); margin-bottom: 14px; }
.director-name { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.director-designation { display: block; color: var(--secondary); font-weight: 700; margin-bottom: 10px; }
.director-text { color: var(--muted); font-size: .95rem; }

/* 6. Services --------------------------------------------- */
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; height: 100%; box-shadow: 0 6px 18px rgba(245, 139, 31, .13); transition: .3s; }
.service-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.service-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--primary); font-size: 1.6rem; margin-bottom: 14px; }
.service-title { font-size: 1.1rem; font-weight: 700; color: var(--secondary); }

/* 7. Video Gallery ---------------------------------------- */
.video-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.video-card-inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.video-card .video-btn { position: static; transform: none; width: 56px; height: 56px; font-size: 1.2rem; animation: none; }
.video-name { color: #fff; font-size: 1rem; font-weight: 700; margin: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

/* 8. Image Gallery ---------------------------------------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-btn { border: 1px solid var(--primary); background: none; color: var(--primary); padding: 7px 18px; border-radius: 20px; font-weight: 600; cursor: pointer; transition: .25s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #1b1200; }
.gallery-card { position: relative; border-radius: 10px; overflow: hidden; height: 150px;}
.gallery-card img { width: 100%; transition: .4s; }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-cat { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .8rem; padding: 2px 10px; border-radius: 12px; }
.gallery-item { transition: opacity .9s ease, transform .9s ease; }
.gallery-item.is-hidden { display: none; }
/* slow-motion filter: items fade out, then the new category fades/slides in one by one */
.gallery-grid.filtering .gallery-item { opacity: 0; transform: translateY(26px) scale(.92); transition-duration: .45s; transition-delay: 0s !important; }
.gallery-card { cursor: zoom-in; }
.gallery-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 107, 92, .45); color: #fff; font-size: 1.8rem; opacity: 0; transition: opacity .5s ease; }
.gallery-card:hover .gallery-zoom { opacity: 1; }

/* 9. Clients & Partners ----------------------------------- */
.logo-card { height: 92px; padding: 8px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.logo-card img { max-height: 64px; width: auto; }

/* 10. Blog ------------------------------------------------ */
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; height: 100%; box-shadow: 0 6px 18px rgba(245, 139, 31, .13); }
.blog-thumb { display: block; overflow: hidden; }
.blog-thumb img { width: 100%; transition: .4s; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-body { padding: 16px 18px 20px; }
.blog-date { color: var(--primary); font-weight: 700; font-size: .85rem; }
.blog-title { font-size: 1.05rem; font-weight: 700; margin: 6px 0; }
.blog-title a:hover { color: var(--primary); }

/* 11. Footer ---------------------------------------------- */
.footer { background: var(--secondary); color: #fff; }
.footer-logo img {  padding: 6px; border-radius: 8px; }
.widgettitle { color: var(--primary-light); font-weight: 700; margin-bottom: 14px; }
.footer-links li { margin: 7px 0; }
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }
.footer a { transition: .25s; }
.address-box { background: #111; color: #fff; border-left: 4px solid #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: .92rem; }
.address-box strong { display: block; color: var(--primary-light); margin-bottom: 2px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .25); font-size: .9rem; }

/* 12. Video Modal ----------------------------------------- */
.video-modal-close { position: absolute; top: -34px; right: 0; z-index: 5; }

/* 13. Image Lightbox -------------------------------------- */
.image-modal .modal-content { align-items: center; }
.image-modal-close { position: absolute; top: -34px; right: 0; z-index: 5; }
.lightbox-img { max-width: 100%; max-height: 78vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.94); transition: opacity .7s ease, transform .7s ease; }
.lightbox-img.in { opacity: 1; transform: none; }
.lightbox-caption { color: #fff; margin-top: 12px; font-weight: 600; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--primary); color: #1b1200; z-index: 5; transition: .3s; }
.lightbox-nav:hover { background: var(--secondary); color: #fff; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
