:root{
  --bg:#f7fafc; --muted:#6b7280; --primary:#0f172a; --accent:#0ea5a4; --brand:#1d4ed8; --nav-offset:84px;
}
html,body{height:100%}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial; background:var(--bg); color:var(--primary); -webkit-font-smoothing:antialiased}

/* Navbar */
.navbar{backdrop-filter:blur(6px); background:#ffffff; padding: 0.8rem 0; transition:background .2s ease,box-shadow .2s ease; position:fixed; top:0; left:0; width:100%; z-index:1050}
.navbar.scrolled{background:#ffffff; box-shadow:0 8px 30px rgba(2,6,23,.08)}
.navbar.scrolled .nav-link{color:var(--primary)}
.navbar.scrolled .nav-link:hover{color:#0b2540}
.navbar.scrolled .navbar-brand img{filter:none}
.navbar.scrolled .navbar-toggler{border-color:rgba(15,23,42,.06)}
.navbar.scrolled .navbar-toggler-icon{filter:none}
.navbar .nav-inner{max-width:none; margin:0; width:100%; display:flex; align-items:center; gap:1rem; padding:0 2rem}
.navbar-brand{position:relative; left:auto; transform:none; z-index:1060; margin-right:auto; margin-left:0; display:flex; align-items:center; text-decoration:none}
.navbar-brand img{height:52px; display:block}
.nav-link{color:var(--primary); font-weight:600; padding:.5rem 1rem}
.nav-link.active{color:var(--brand); position:relative}
.nav-link.active::after{content:""; position:absolute; bottom:-8px; left:50%; transform:translateX(-50%); width:6px; height:6px; background:var(--brand); border-radius:50%}

/* Dropdown hover functionality - Desktop only */
@media (min-width:992px){
  .navbar .nav-item.dropdown:hover .dropdown-menu{display:block; margin-top:0}
}
.dropdown-menu{border:none; box-shadow:0 10px 40px rgba(2,6,23,.12); border-radius:.5rem; padding:.5rem; min-width:220px}
.dropdown-item{padding:.5rem 1rem; border-radius:.35rem; transition:background .15s ease; font-size:.95rem}
.dropdown-item:hover{background:#f1f5f9; color:var(--brand)}
.dropdown-divider{margin:.5rem 0; opacity:.1}

/* Mobile navbar styles */
@media (max-width:991px){
  /* Mobile menu animations */
  @keyframes slideInFromRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideOutToRight {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }

  /* Navbar structure - Logo left, Toggler right */
  .navbar {position:fixed}
  .navbar .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1.25rem;
  }
  
  .navbar-brand {
    margin-right: 0;
    margin-left: 0;
    order: 1;
    flex-shrink: 0;
  }
  
  .navbar-toggler {
    order: 2;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
    border: 2px solid #f1f5f9;
    padding: .5rem .75rem;
    border-radius: .5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(29,78,216,.1);
  }
  
  .navbar-brand img {height:42px; display:block}
  
  /* Mobile menu slide from right */
  .navbar-collapse{
    background:#fff; 
    padding:1.5rem 0; 
    border-radius:.5rem; 
    box-shadow:0 10px 30px rgba(2,6,23,.08);
    position: fixed;
    right: 0;
    top: var(--nav-offset, 96px);
    width: 100%;
    max-width: 380px;
    height: calc(100vh - var(--nav-offset, 96px));
    overflow-y: auto;
    animation: slideInFromRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 1040;
  }

  .navbar-collapse.collapsing {
    animation: slideOutToRight 0.35s cubic-bezier(0.7, 0, 0.84, 0) forwards;
  }

  .navbar-collapse:not(.show) {
    transform: translateX(100%);
    visibility: hidden;
  }

  /* Backdrop blur effect for mobile menu */
  .navbar::after {
    content: '';
    position: fixed;
    top: var(--nav-offset, 96px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 1035;
    pointer-events: none;
    animation: none;
    transition: backdrop-filter 0.35s ease, background 0.35s ease;
    visibility: hidden;
  }

  .navbar.show::after {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    visibility: visible;
  }

  .navbar-nav{gap:0 !important}
  .nav-link{padding:1rem 1.5rem; display:block; border-bottom:1px solid #f1f5f9}
  .nav-link.active::after{display:none}
  .dropdown-menu{box-shadow:none; padding:0 0 0 1rem; margin-top:0; background:transparent; position:static; border:none}
  .dropdown-item{padding:.75rem 1rem; font-size:.9rem; border-bottom:1px solid #f9fafb}
  .dropdown-item:last-child{border-bottom:none}
  .dropdown-toggle::after{float:right; margin-top:.5rem}
}

/* Extra small devices */
@media (max-width:575px){
  .navbar-collapse{
    max-width: 100%;
    width: 100%;
  }
}

/* Hero */
/* Video-backed hero with overlay for contrast */
.hero{min-height:78vh; display:flex; align-items:center; position:relative; overflow:hidden; padding:2rem 0}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(8,16,35,.72), rgba(8,16,35,.72));z-index:1;pointer-events:none}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero .container{position:relative;z-index:2; padding:0 1.5rem}
.hero .eyebrow{display:inline-block;padding:.35rem .7rem;border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-weight:700;font-size:.8rem}
.hero h1{color:#fff;font-size:clamp(2rem,4.2vw,3.4rem);line-height:1.1;font-weight:800;margin-top:.6rem}
.hero p{color:rgba(255,255,255,.9);max-width:56rem; font-size:clamp(1rem, 2vw, 1.25rem)}
.hero .btn{margin-top:1.5rem; padding:.75rem 2rem; font-size:1rem}

@media (max-width:768px){
  .hero{min-height:60vh; padding:1.5rem 0}
  .hero h1{line-height:1.2}
  .hero .btn{width:100%; margin-top:1rem}
}

/* Sections */
section{padding:4rem 0}

@media (max-width:991px){
  section{padding:3rem 0}
}

@media (max-width:768px){
  section{padding:2rem 0}
  .container{padding:0 1rem}
  h1, .h1{font-size:2rem !important}
  h2, .h2{font-size:1.75rem !important}
  h3, .h3{font-size:1.5rem !important}
  .display-4{font-size:2.5rem !important}
  .lead{font-size:1.1rem !important}
}

/* About section */
.about-section{background:#fff;border-radius:.85rem;padding:2.25rem;box-shadow:0 12px 40px rgba(2,6,23,.04);margin-bottom:2.5rem}
.about-inner{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:start;max-width:1100px;margin:0 auto}
.about-figure{background:#fff;padding:12px;border-radius:8px;box-shadow:0 18px 40px rgba(2,6,23,.12);display:block}
.about-figure img, .about-figure video{width:100%;height:100%;max-height:460px;object-fit:cover;border-radius:6px;display:block}
.about-content{padding-top:6px}
.about-title{font-size:1.6rem;font-weight:800;margin-bottom:.25rem;color:var(--primary)}
.about-content .lead{color:var(--muted);margin-bottom:1rem}
.about-profile p{color:#1f2937;line-height:1.6}
.about-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.25rem}
.about-card{background:linear-gradient(180deg,#fff,#f8fbff);padding:1rem;border-radius:.6rem;border:1px solid #eef3ff;box-shadow:0 8px 20px rgba(13,38,82,.04)}
.about-card h6{margin-bottom:.4rem;font-weight:700;color:var(--primary)}
.about-products ul{list-style:disc;padding-left:1.05rem;margin:0}
.about-details{max-width:1100px;margin:1.5rem auto 0;padding-top:1rem}
.about-details h4{font-size:1.05rem;font-weight:700;margin-bottom:.6rem;color:var(--primary)}
.about-details p{color:#374151;line-height:1.7}

@media (max-width:991px){ 
  .about-inner{grid-template-columns:1fr; gap:1.5rem} 
  .about-cards{grid-template-columns:1fr} 
  .about-section{padding:1.5rem; margin-bottom:1.5rem}
  .about-figure img, .about-figure video{max-height:300px}
}

@media (max-width:768px){
  .about-section{padding:1rem; border-radius:.5rem}
  .about-figure{padding:8px}
  .about-title{font-size:1.35rem}
  .about-card{padding:.875rem}
}
.card-ghost{background:#fff;border-radius:.75rem;padding:1.5rem;box-shadow:0 12px 30px rgba(2,6,23,.04)}
.service-ico{width:62px;height:62px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eef2ff,#fff);font-size:1.6rem;color:var(--brand)}

@media (max-width:991px){
  .card-ghost{padding:1.25rem}
  .service-ico{width:52px; height:52px; font-size:1.4rem}
}

@media (max-width:768px){
  .card-ghost{padding:1rem; border-radius:.5rem}
  .service-ico{width:48px; height:48px; font-size:1.25rem}
}

/* Portfolio */
.product-thumb{height:220px;object-fit:cover;border-radius:.5rem}

/* Modern portfolio grid */
.portfolio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem}
.portfolio-card{background:#fff;border-radius:.75rem;overflow:hidden;display:flex;flex-direction:column;transition:transform .28s cubic-bezier(.2,.9,.2,1),box-shadow .28s;box-shadow:0 10px 30px rgba(2,6,23,.04)}
.portfolio-card img{width:100%;height:180px;object-fit:cover}
.portfolio-card .meta{padding:1rem 1rem 1.25rem;display:flex;flex-direction:column;gap:.45rem}
.portfolio-card .meta .title{font-weight:700;color:var(--primary); font-size:1rem}
.portfolio-card .meta .subtitle{font-size:.9rem;color:var(--muted)}
.portfolio-card:hover{transform:translateY(-8px);box-shadow:0 26px 60px rgba(2,6,23,.14)}
.portfolio-card .actions{margin-top:auto;display:flex;gap:.5rem;opacity:0;transition:opacity .22s ease}
.portfolio-card:hover .actions{opacity:1}
.portfolio-badge{font-size:.75rem;padding:.25rem .6rem;border-radius:999px;background:linear-gradient(135deg,#eef2ff,#fff);color:var(--brand);font-weight:700}

@media (max-width:991px){ 
  .product-thumb{height:180px}
  .portfolio-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem}
}

@media (max-width:768px){
  .portfolio-grid{grid-template-columns:1fr; gap:.875rem}
  .portfolio-card img{height:200px}
  .portfolio-card .meta{padding:.875rem}
  .portfolio-card:hover{transform:translateY(-4px)}
}

@media (min-width:768px) and (max-width:991px){
  .portfolio-grid{grid-template-columns:repeat(2,1fr)}
}

/* Glimpse cards */
.glimpse-card{background:#ffffff;border-radius:.65rem;padding:1.6rem;box-shadow:0 18px 40px rgba(2,6,23,.06);min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.glimpse-card .glimpse-icon{opacity:.95;color:#6b7280; font-size:2.5rem; margin-bottom:.75rem}
.glimpse-card h3{font-size:2rem; font-weight:700; margin-bottom:.25rem}
.glimpse-card p{font-size:.9rem; color:var(--muted); margin:0}

@media (max-width:991px){
  .glimpse-card{padding:1.25rem; min-height:140px}
  .glimpse-card .glimpse-icon{font-size:2rem}
  .glimpse-card h3{font-size:1.75rem}
}

@media (max-width:768px){
  .glimpse-card{padding:1rem; min-height:120px; border-radius:.5rem}
  .glimpse-card .glimpse-icon{font-size:1.75rem; margin-bottom:.5rem}
  .glimpse-card h3{font-size:1.5rem}
  .glimpse-card p{font-size:.85rem}
}

/* Contact */
.contact-card{border-radius:.8rem;padding:1.25rem;background:#fff;box-shadow:0 10px 30px rgba(2,6,23,.04)}
.contact-card .form-control{margin-bottom:1rem; padding:.75rem 1rem; border-radius:.5rem; border:1px solid #e5e7eb}
.contact-card .btn{padding:.75rem 1.5rem; width:auto}

@media (max-width:991px){
  .contact-card{padding:1rem}
}

@media (max-width:768px){
  .contact-card{padding:.875rem; border-radius:.5rem}
  .contact-card .form-control{padding:.625rem .875rem; font-size:.9rem}
  .contact-card .btn{width:100%; padding:.875rem 1rem}
}

/* Footer (modern) */
.site-footer{background:linear-gradient(180deg,#050812,#071226);color:#cbd5e1;padding:3.5rem 0;font-size:.95rem}
.site-footer a{color:rgba(255,255,255,.88);text-decoration:none}
.site-footer a:hover{color:#cfe9ff}
.site-footer .footer-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start; padding:0 1rem}
.site-footer .footer-brand{display:flex;flex-direction:column;gap:.5rem}
.site-footer .footer-brand img{height:48px; max-width:180px}
.site-footer .footer-brand p{font-size:.9rem; line-height:1.6}
.site-footer .footer-links{display:flex;gap:2rem;flex-wrap:wrap}
.site-footer .link-column{min-width:140px}
.site-footer .link-column ul{padding:0; margin:0}
.site-footer .link-column li{margin-bottom:.5rem}
.site-footer h6{color:rgba(255,255,255,.9);margin-bottom:.6rem; font-size:.95rem}
.site-footer .newsletter{display:flex;gap:.5rem;align-items:center}
.site-footer .newsletter input{flex:1;padding:.6rem .8rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.03);color:inherit}
.site-footer .newsletter button{white-space:nowrap}
.site-footer .socials{display:flex;gap:.6rem;margin-top:.6rem}
.site-footer .socials a{width:36px;height:36px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.03);color:inherit; transition:all .3s ease}
.site-footer .socials a:hover{background:rgba(255,255,255,.1); transform:translateY(-2px)}
.site-footer .footer-bottom{border-top:1px solid rgba(255,255,255,.04);margin-top:1.6rem;padding-top:1rem;display:flex;justify-content:space-around;align-items:center;gap:1rem;flex-direction:row}
.site-footer .footer-bottom .muted{color:rgba(255,255,255,.45); font-size:.875rem}

@media (min-width:900px){ 
  .site-footer .footer-inner{grid-template-columns:460px 1fr} 
}

@media (max-width:991px){
  .site-footer{padding:2.5rem 0}
  .site-footer .footer-inner{gap:1.5rem}
  .site-footer .footer-links{gap:1.5rem}
}

@media (max-width:768px){ 
  .site-footer{padding:2rem 0; font-size:.9rem} 
  .site-footer .footer-inner{grid-template-columns:1fr; gap:2rem; padding:0 1rem} 
  .site-footer .footer-brand img{height:42px}
  .site-footer .footer-links{flex-direction:column; gap:1.5rem}
  .site-footer .link-column{min-width:auto; width:100%}
  .site-footer h6{font-size:.9rem; margin-bottom:.5rem}
  .site-footer .footer-bottom{flex-direction:column; align-items:flex-start; gap:.5rem; padding-top:.875rem; margin-top:1.25rem}
  .site-footer .footer-bottom .muted{font-size:.8rem}
  .site-footer .socials{margin-top:.5rem}
  .site-footer .socials a{width:32px; height:32px}
}

@media (max-width:991px){ 
  .navbar-brand{position:relative; left:0; transform:none; margin-right:0; margin-left:0} 
  .navbar .nav-inner{padding:0 1rem} 
}

@media (max-width:768px){
  .btn{padding:.625rem 1.25rem; font-size:.9rem}
  .btn-lg{padding:.75rem 1.5rem; font-size:1rem}
  .badge{font-size:.75rem; padding:.25rem .5rem}
}

/* Breadcrumbs */
.breadcrumb-wrap{background:#fff;padding:.6rem 0;box-shadow:0 6px 18px rgba(2,6,23,.04);margin-top:calc(var(--nav-offset,96px) * 0.0)}
.breadcrumb{background:transparent;margin-bottom:0; padding:.75rem 1rem}
.breadcrumb a{color:var(--primary);text-decoration:none; font-size:.9rem}
.breadcrumb .active{color:#6b7280; font-size:.9rem}

@media (max-width:768px){
  .breadcrumb-wrap{padding:.5rem 0}
  .breadcrumb{padding:.5rem .75rem; font-size:.85rem}
  .breadcrumb-item + .breadcrumb-item::before{font-size:.75rem}
}

/* Why Mirai page tweaks */
.why-mirai .lead{font-size:1.125rem;color:#0f172a;margin-bottom:1rem}
.why-mirai h1{font-weight:800;margin-bottom:.5rem}
.why-mirai figure img{width:100%;max-height:420px;object-fit:cover;border-radius:.5rem}
.why-mirai ul{margin-left:1rem}

/* Modern About Section */
.about-section-modern{background:#fff}
.about-image-wrapper{position:relative}
.about-image-wrapper img{width:100%;height:auto;object-fit:cover}
.about-image-badge{position:absolute;bottom:20px;right:20px;background:linear-gradient(135deg,#1e40af,#3b82f6);padding:1.5rem 2rem;border-radius:1rem;box-shadow:0 20px 40px rgba(30,64,175,.3)}
.about-image-badge .badge-content h3{font-size:2.5rem;font-weight:800}
.feature-card{background:#fff;padding:2rem;border-radius:1rem;box-shadow:0 4px 20px rgba(0,0,0,.06);transition:all .3s ease;border:1px solid #f3f4f6}
.feature-card:hover{transform:translateY(-8px);box-shadow:0 12px 40px rgba(0,0,0,.12);border-color:#e5e7eb}
.feature-icon{width:70px;height:70px;border-radius:1rem;background:linear-gradient(135deg,#eff6ff,#dbeafe);display:flex;align-items:center;justify-content:center}
.about-highlight{background:linear-gradient(135deg,#1e293b,#334155);position:relative;overflow:hidden}
.about-highlight::before{content:"";position:absolute;top:0;right:0;width:300px;height:300px;background:radial-gradient(circle,rgba(59,130,246,.2),transparent);border-radius:50%}
.section-badge{display:inline-block}

/* Modern Services Section */
.services-modern{background:#f9fafb}
.service-card{background:#fff;border-radius:1rem;overflow:hidden;transition:all .3s ease;border:1px solid #f3f4f6;height:100%}
.service-card:hover{transform:translateY(-10px);box-shadow:0 20px 50px rgba(0,0,0,.1);border-color:#e5e7eb}
.service-card-inner{padding:2rem}
.service-icon-wrapper{display:inline-block}
.service-icon{width:80px;height:80px;border-radius:1rem;display:flex;align-items:center;justify-content:center;transition:all .3s ease}
.service-card:hover .service-icon{transform:scale(1.1) rotate(5deg)}

/* Modern Glimpse/Stats Section */
.glimpse-modern{background:#fff}
.stats-container .stat-card{background:#fff;padding:2rem;border-radius:1rem;text-align:center;transition:all .3s ease;border:1px solid #f3f4f6;box-shadow:0 4px 15px rgba(0,0,0,.05);height:100%}
.stats-container .stat-card:hover{transform:translateY(-8px);box-shadow:0 15px 40px rgba(0,0,0,.1);border-color:#e5e7eb}
.stat-icon{transition:transform .3s ease}
.stat-card:hover .stat-icon{transform:scale(1.15)}
.stats-container .highlight-card{background:linear-gradient(135deg,#3b82f6,#2563eb);border:none;color:#fff}
.stats-container .highlight-card:hover{transform:translateY(-8px);box-shadow:0 20px 50px rgba(59,130,246,.4)}

/* Modern Portfolio Section */
.portfolio-modern{background:#f9fafb}
.product-card{background:#fff;border-radius:1rem;overflow:hidden;transition:all .3s ease;box-shadow:0 4px 20px rgba(0,0,0,.06);border:1px solid #f3f4f6;display:flex;flex-direction:column}
.product-card:hover{transform:translateY(-10px);box-shadow:0 20px 50px rgba(0,0,0,.12);border-color:#e5e7eb}
.product-image-wrapper{position:relative;overflow:hidden;height:240px}
.product-image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.product-card:hover .product-image{transform:scale(1.08)}
.product-badge{position:absolute;top:15px;right:15px}
.product-content{padding:1.75rem;flex-grow:1;display:flex;flex-direction:column}
.product-features{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:auto}
.feature-tag{font-size:.8rem;padding:.35rem .75rem;background:#f0fdf4;color:#15803d;border-radius:.5rem;display:inline-flex;align-items:center;white-space:nowrap}

/* Modern Contact Section */
.contact-modern{background:#fff}
.contact-form-card{background:#fff;padding:2.5rem;border-radius:1rem;box-shadow:0 10px 40px rgba(0,0,0,.08);border:1px solid #f3f4f6}
.contact-form-card .form-control{border:2px solid #f3f4f6;padding:.75rem 1rem;border-radius:.5rem;transition:all .3s ease}
.contact-form-card .form-control:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.1)}
.contact-info-card{background:linear-gradient(135deg,#f8fafc,#f1f5f9);padding:2rem;border-radius:1rem;border:1px solid #e2e8f0}
.contact-info-card a{color:#3b82f6;transition:color .3s ease}
.contact-info-card a:hover{color:#2563eb}

@media (max-width:991px){
  .about-image-badge{bottom:10px;right:10px;padding:1rem 1.5rem}
  .about-image-badge .badge-content h3{font-size:1.75rem}
  .feature-card,.service-card-inner,.contact-form-card{padding:1.5rem}
  .feature-icon{width:60px; height:60px}
  .service-icon{width:70px; height:70px}
}

@media (max-width:768px){
  .about-image-badge{padding:.75rem 1rem; bottom:8px; right:8px}
  .about-image-badge .badge-content h3{font-size:1.5rem}
  .feature-card,.service-card-inner,.contact-form-card{padding:1rem}
  .feature-icon{width:50px; height:50px; font-size:1.5rem}
  .service-icon{width:60px; height:60px; font-size:1.75rem}
  .stat-card{padding:1.25rem !important}
}

/* Products Page Styles */
.products-page-main{padding-top:130px !important;background:#f9fafb; min-height:100vh}
.products-header{background:#fff;padding:3rem;border-radius:1rem;box-shadow:0 4px 20px rgba(0,0,0,.06);margin-bottom:2rem}
.products-filter-section{background:#fff;padding:1.5rem;border-radius:1rem;box-shadow:0 2px 10px rgba(0,0,0,.04); margin-bottom:2rem}
.products-filter-section .btn{transition:all .3s ease; font-size:.9rem; padding:.5rem 1rem}
.products-filter-section .btn:hover{transform:translateY(-2px)}

@media (max-width:991px){
  .products-header{padding:2rem;margin-bottom:1.5rem}
  .product-image-wrapper-enhanced{height:220px}
  .product-card-body{padding:1.5rem}
  .products-page-main{padding-top:110px !important}
  .products-filter-section{padding:1.25rem; margin-bottom:1.5rem}
}

@media (max-width:768px){
  .products-page-main{padding-top:90px !important}
  .products-header{padding:1.5rem; margin-bottom:1rem; border-radius:.75rem}
  .products-header .display-4{font-size:1.875rem !important}
  .products-header .lead{font-size:1rem !important}
  .products-header .btn{width:100%; margin-top:1rem}
  .products-filter-section{padding:1rem; border-radius:.75rem; margin-bottom:1rem}
  .products-filter-section .btn{font-size:.85rem; padding:.45rem .875rem; white-space:nowrap}
  .products-filter-section .d-flex{overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:.5rem}
}

/* Enhanced Product Cards for Products Page */
.product-card-enhanced{background:#fff;border-radius:1rem;overflow:hidden;transition:all .3s ease;box-shadow:0 4px 20px rgba(0,0,0,.06);border:1px solid #f3f4f6;display:flex;flex-direction:column; height:100%}
.product-card-enhanced:hover{transform:translateY(-12px);box-shadow:0 25px 60px rgba(0,0,0,.15);border-color:#e5e7eb}
.product-image-wrapper-enhanced{position:relative;overflow:hidden;height:280px;background:#f3f4f6}
.product-image-enhanced{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.product-card-enhanced:hover .product-image-enhanced{transform:scale(1.1) rotate(2deg)}
.product-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.7));opacity:0;transition:opacity .3s ease;display:flex;align-items:center;justify-content:center}
.product-card-enhanced:hover .product-overlay{opacity:1}
.product-quick-actions{display:flex;gap:.75rem}
.product-quick-actions .btn{width:45px;height:45px;display:flex;align-items:center;justify-content:center;transform:translateY(20px);opacity:0;transition:all .3s ease}
.product-card-enhanced:hover .product-quick-actions .btn{transform:translateY(0);opacity:1}
.product-quick-actions .btn:nth-child(1){transition-delay:.1s}
.product-quick-actions .btn:nth-child(2){transition-delay:.2s}
.product-badge-category{position:absolute;top:15px;right:15px;z-index:2}
.product-card-body{padding:2rem;flex-grow:1;display:flex;flex-direction:column}
.product-card-body h5{font-size:1.15rem; margin-bottom:.5rem; line-height:1.3}
.product-card-body p{font-size:.9rem; line-height:1.6; margin-bottom:1rem}
.product-specs{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:auto}
.spec-item{font-size:.8rem;padding:.4rem .8rem;background:#f0fdf4;color:#15803d;border-radius:.5rem;display:inline-flex;align-items:center;white-space:nowrap}
.products-cta-section{position:relative;overflow:hidden}
.products-cta-section::before{content:"";position:absolute;top:-50%;right:-20%;width:400px;height:400px;background:radial-gradient(circle,rgba(59,130,246,.15),transparent);border-radius:50%}

@media (max-width:991px){
  .product-image-wrapper-enhanced{height:220px}
  .product-card-body{padding:1.5rem}
  .product-card-body h5{font-size:1.05rem}
  .product-card-body p{font-size:.875rem}
  .product-card-enhanced:hover{transform:translateY(-8px)}
}

@media (max-width:768px){
  .product-card-enhanced{border-radius:.75rem}
  .product-image-wrapper-enhanced{height:200px}
  .product-card-body{padding:1rem}
  .product-card-body h5{font-size:1rem; margin-bottom:.375rem}
  .product-card-body p{font-size:.85rem; margin-bottom:.75rem}
  .product-specs{gap:.375rem}
  .spec-item{font-size:.75rem; padding:.35rem .7rem}
  .product-badge-category{top:10px; right:10px; font-size:.75rem}
  .product-card-enhanced:hover{transform:translateY(-4px)}
  .product-quick-actions .btn{width:40px; height:40px; font-size:.875rem}
}

/* Product Detail Pages */
.product-detail-page{padding-top:130px !important;background:#f9fafb; min-height:100vh}
.product-detail-images .main-image{position:relative;overflow:hidden;border-radius:1rem}
.product-detail-images .main-image img{width:100%;height:auto;transition:transform .5s ease}
.product-detail-images .main-image:hover img{transform:scale(1.05)}
.gallery-thumb{width:100%;height:100px;object-fit:cover;cursor:pointer;transition:all .3s ease;opacity:.7; border-radius:.5rem}
.gallery-thumb:hover{opacity:1;transform:scale(1.05)}
.product-detail-content .product-meta{padding-left:0}
.product-detail-content h1{font-size:2rem; font-weight:700; margin-bottom:1rem}
.product-detail-content .lead{font-size:1.1rem; line-height:1.7}
.quick-specs-card{border:1px solid #e5e7eb; padding:1.5rem; border-radius:.75rem; background:#fff}
.spec-item-inline{display:flex;flex-direction:column;gap:.25rem}
.spec-label{font-size:.875rem; color:var(--muted); font-weight:600}
.spec-value{font-size:1rem; font-weight:700; color:var(--primary)}
.specifications-section{border:1px solid #f3f4f6; border-radius:.75rem; background:#fff; padding:1.5rem}
.specifications-section table{margin-bottom:0; width:100%}
.specifications-section th{background:#f9fafb;font-weight:600;padding:1rem; text-align:left}
.specifications-section td{padding:.875rem 1rem; border-bottom:1px solid #f3f4f6}
.specifications-section tr:last-child td{border-bottom:none}
.applications-section .application-card{background:#fff;padding:2rem;border-radius:1rem;text-align:center;transition:all .3s ease;border:1px solid #f3f4f6}
.applications-section .application-card:hover{transform:translateY(-8px);box-shadow:0 15px 40px rgba(0,0,0,.1);border-color:#e5e7eb}
.app-icon{transition:transform .3s ease; font-size:2.5rem; margin-bottom:.75rem}
.application-card:hover .app-icon{transform:scale(1.1) rotate(-5deg)}
.product-cta-final{position:relative;overflow:hidden}

@media (max-width:991px){
  .product-detail-page{padding-top:110px !important}
  .product-detail-content h1{font-size:1.75rem}
  .product-detail-content .lead{font-size:1rem}
  .quick-specs-card{padding:1.25rem}
  .specifications-section{padding:1.25rem}
  .specifications-section th, .specifications-section td{padding:.75rem}
  .applications-section .application-card{padding:1.5rem}
  .app-icon{font-size:2rem}
}

@media (max-width:768px){
  .product-detail-page{padding-top:90px !important}
  .product-detail-images .main-image{border-radius:.75rem}
  .product-detail-content h1{font-size:1.5rem; margin-bottom:.75rem}
  .product-detail-content .lead{font-size:.95rem}
  .quick-specs-card{padding:1rem; border-radius:.5rem}
  .spec-label{font-size:.8rem}
  .spec-value{font-size:.9rem}
  .specifications-section{padding:1rem; border-radius:.5rem}
  .specifications-section th, .specifications-section td{padding:.625rem .75rem; font-size:.875rem}
  .specifications-section table{font-size:.85rem}
  .applications-section .application-card{padding:1.25rem; border-radius:.75rem}
  .applications-section .application-card:hover{transform:translateY(-4px)}
  .app-icon{font-size:1.75rem; margin-bottom:.5rem}
  .gallery-thumb{height:80px}
}
.product-cta-final::before{content:"";position:absolute;top:-30%;right:-10%;width:300px;height:300px;background:radial-gradient(circle,rgba(255,255,255,.15),transparent);border-radius:50%}

/* Additional Responsive Utilities */
@media (max-width:991px){
  .product-detail-page{padding-top:110px !important}
  .product-detail-images .main-image{margin-bottom:1rem}
  .gallery-thumb{height:80px}
  .quick-specs-card,.specifications-section,.features-section,.benefits-section,.applications-section{padding:1.5rem !important}
}

/* Tablet specific (iPad, etc) */
@media (min-width:768px) and (max-width:1024px){
  .hero{min-height:65vh}
  .container{max-width:90%; padding:0 1.5rem}
  .row{margin:0 -1rem}
  .col, [class*="col-"]{padding:0 1rem}
}

/* Small tablets and large phones in landscape */
@media (min-width:576px) and (max-width:767px){
  .portfolio-grid{grid-template-columns:repeat(2,1fr)}
  .glimpse-card{min-height:130px}
  .product-card-enhanced{margin-bottom:1rem}
}

/* Mobile first utilities */
img, video{max-width:100%; height:auto; display:block}
iframe{max-width:100%}

/* Touch device optimizations */
@media (hover:none) and (pointer:coarse){
  .portfolio-card:hover, .product-card-enhanced:hover, .application-card:hover{
    transform:none;
  }
  .product-overlay{display:none}
  .portfolio-card .actions{opacity:1}
}
