/* =========================================
   MASIMA AUTOMATION - PREMIUM CSS UPDATE
========================================= */

:root{
  --primary:#0B1F3A;
  --primary-light:#122d52;
  --secondary:#1d3557;
  --accent:#00AEEF;
  --accent-dark:#008bc4;
  --white:#ffffff;
  --light:#f4f8fc;
  --text:#5f6b7a;
  --heading:#0f172a;
  --border:rgba(255,255,255,.08);

  --gradient-primary:linear-gradient(135deg,#0B1F3A 0%,#163861 100%);
  --gradient-accent:linear-gradient(135deg,#00AEEF 0%,#008bc4 100%);
  --gradient-dark:linear-gradient(135deg,#091525 0%,#0B1F3A 100%);

  --shadow-lg:0 20px 60px rgba(0,0,0,.15);
  --shadow-md:0 10px 30px rgba(0,0,0,.08);

  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;

  --transition:.4s ease;
}

/* =========================================
   GLOBAL
========================================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:#fff;
  color:var(--text);
  overflow-x:hidden;
  line-height:1.7;
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  transition:var(--transition);
}

section{
  padding:100px 0;
  position:relative;
}

.container{
  position:relative;
  z-index:2;
}

/* =========================================
   NAVBAR
========================================= */

.navbar{
  padding:18px 0;
  transition:all .4s ease;
  background:rgba(7,17,31,.75);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.navbar.scrolled{
  padding:12px 0;
  background:#07111f;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.navbar-brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-m{
  width:48px;
  height:48px;
  border-radius:14px;
  background:var(--gradient-accent);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:1.5rem;
  font-weight:800;
  box-shadow:0 8px 25px rgba(0,174,239,.35);
}

.brand-text{
  font-family:'Poppins',sans-serif;
  font-size:1rem;
  font-weight:700;
  color:#fff;
  letter-spacing:.5px;
}

.nav-link{
  color:rgba(255,255,255,.82)!important;
  font-weight:500;
  padding:.8rem 1rem!important;
  position:relative;
}

.nav-link:hover,
.nav-link.active{
  color:#fff!important;
}

.nav-link::after{
  content:'';
  position:absolute;
  left:1rem;
  bottom:8px;
  width:0;
  height:2px;
  background:var(--accent);
  transition:.3s;
}

.nav-link:hover::after,
.nav-link.active::after{
  width:50%;
}

.nav-cta{
  background:var(--gradient-accent);
  border-radius:50px;
  padding:.9rem 1.4rem!important;
  color:#fff!important;
  box-shadow:0 10px 25px rgba(0,174,239,.25);
}

.nav-cta:hover{
  transform:translateY(-2px);
}

/* =========================================
   HERO
========================================= */

.hero-section{
  min-height:100vh;
  display:flex;
  align-items:center;
  background:var(--gradient-dark);
  overflow:hidden;
  padding-top:140px;
}

.hero-section::before{
  content:'';
  position:absolute;
  inset:0;
  background:
  radial-gradient(circle at top left,rgba(0,174,239,.16),transparent 30%),
  radial-gradient(circle at bottom right,rgba(0,174,239,.1),transparent 30%);
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  padding:10px 18px;
  border-radius:50px;
  color:#dbeafe;
  margin-bottom:25px;
  backdrop-filter:blur(12px);
  font-size:.9rem;
}

.hero-title{
  color:#fff;
  font-family:'Poppins',sans-serif;
  font-size:clamp(2.4rem,5vw,4.6rem);
  font-weight:800;
  line-height:1.15;
  margin-bottom:25px;
}

.highlight{
  background:linear-gradient(to right,#00AEEF,#7dd3fc);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-subtitle{
  color:rgba(255,255,255,.72);
  font-size:1.08rem;
  max-width:620px;
  margin-bottom:35px;
}

/* =========================================
   BUTTONS
========================================= */

.btn{
  border:none;
  font-weight:600;
  padding:14px 28px;
  border-radius:14px;
  transition:var(--transition);
}

.btn i{
  margin-right:8px;
}

.btn-accent{
  background:var(--gradient-accent);
  color:#fff;
  box-shadow:0 10px 30px rgba(0,174,239,.25);
}

.btn-accent:hover{
  transform:translateY(-3px);
  color:#fff;
}

.btn-whatsapp{
  background:#25D366;
  color:#fff;
}

.btn-whatsapp:hover{
  color:#fff;
  transform:translateY(-3px);
}

.btn-outline-light-custom{
  border:1px solid rgba(255,255,255,.2);
  background:transparent;
  color:#fff;
}

.btn-outline-light-custom:hover{
  background:#fff;
  color:#111;
}

.btn-outline-accent{
  border:2px solid var(--accent);
  color:var(--accent);
  background:transparent;
}

.btn-outline-accent:hover{
  background:var(--accent);
  color:#fff;
}

/* =========================================
   HERO STATS
========================================= */

.hero-stats{
  display:flex;
  gap:25px;
  margin-top:50px;
  flex-wrap:wrap;
}

.hero-stat{
  min-width:140px;
}

.hero-stat .number{
  display:block;
  color:#fff;
  font-size:2rem;
  font-weight:800;
  font-family:'Poppins',sans-serif;
}

.hero-stat .label{
  color:rgba(255,255,255,.6);
  font-size:.92rem;
}

/* =========================================
   HERO IMAGE
========================================= */

.hero-image-wrapper{
  position:relative;
  border-radius:30px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}

.hero-image-wrapper img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-floating-card{
  position:absolute;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px;
  display:flex;
  align-items:center;
  gap:15px;
  color:#fff;
  box-shadow:var(--shadow-md);
}

.hero-floating-card .icon{
  width:52px;
  height:52px;
  border-radius:14px;
  background:var(--gradient-accent);
  display:flex;
  align-items:center;
  justify-content:center;
}

.card-1{
  left:-40px;
  top:12%;
}

.card-2{
  right:-40px;
  bottom:10%;
}

/* =========================================
   SECTION TITLES
========================================= */

.section-label{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:.9rem;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:700;
  margin-bottom:15px;
}

.section-title{
  font-family:'Poppins',sans-serif;
  font-size:clamp(2rem,4vw,3rem);
  color:var(--heading);
  font-weight:800;
  line-height:1.2;
  margin-bottom:18px;
}

.section-subtitle{
  max-width:720px;
  margin:auto;
  color:var(--text);
  font-size:1.05rem;
}

/* =========================================
   DARK SECTION
========================================= */

.section-dark{
  background:var(--gradient-dark);
}

.section-dark .section-title,
.section-dark h2,
.section-dark h4{
  color:#fff;
}

.section-dark .section-subtitle{
  color:rgba(255,255,255,.65);
}

/* =========================================
   CARDS
========================================= */

.card-custom,
.product-card,
.service-detail-card,
.stat-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:30px;
  height:100%;
  transition:var(--transition);
  box-shadow:0 10px 40px rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.04);
}

.card-custom:hover,
.product-card:hover,
.service-detail-card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 60px rgba(15,23,42,.12);
}

.card-icon{
  width:72px;
  height:72px;
  border-radius:20px;
  background:rgba(0,174,239,.1);
  color:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.7rem;
  margin-bottom:22px;
}

/* =========================================
   PRODUCT CARD
========================================= */

.product-card{
  overflow:hidden;
  padding:0;
}

.product-img{
  position:relative;
  overflow:hidden;
}

.product-img img{
  width:100%;
  height:260px;
  object-fit:cover;
  transition:.6s;
}

.product-card:hover .product-img img{
  transform:scale(1.08);
}

.product-badge{
  position:absolute;
  top:18px;
  left:18px;
  background:var(--gradient-accent);
  color:#fff;
  padding:8px 14px;
  border-radius:50px;
  font-size:.8rem;
  font-weight:600;
}

.product-body{
  padding:28px;
}

.product-body h4{
  font-weight:700;
  margin-bottom:14px;
  color:var(--heading);
}

.product-specs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:22px 0;
}

.product-specs span{
  background:#eef7fd;
  color:var(--accent-dark);
  padding:8px 14px;
  border-radius:50px;
  font-size:.82rem;
  font-weight:600;
}

.product-cta{
  display:flex;
  gap:12px;
}

/* =========================================
   INDUSTRY ITEMS
========================================= */

.industry-item{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  border-radius:16px;
  padding:18px 20px;
  color:#fff;
  display:flex;
  align-items:center;
  gap:15px;
  transition:var(--transition);
}

.industry-item:hover{
  transform:translateY(-5px);
  background:rgba(255,255,255,.12);
}

.industry-item i{
  color:var(--accent);
  font-size:1.2rem;
}

/* =========================================
   AREA TAGS
========================================= */

.area-tag{
  padding:14px 22px;
  background:#f5f9fd;
  border-radius:50px;
  font-weight:600;
  color:#1e293b;
  transition:var(--transition);
}

.area-tag:hover{
  background:var(--gradient-accent);
  color:#fff;
  transform:translateY(-3px);
}

/* =========================================
   CTA
========================================= */

.cta-section{
  background:var(--gradient-primary);
  overflow:hidden;
}

.cta-section::before{
  content:'';
  position:absolute;
  inset:0;
  background:url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity:.06;
}

/* =========================================
   FOOTER
========================================= */

.footer{
  background:#07111f;
  padding-top:80px;
  color:rgba(255,255,255,.7);
}

.footer h5{
  color:#fff;
  margin-bottom:20px;
  font-weight:700;
}

.footer-links{
  list-style:none;
  padding:0;
}

.footer-links li{
  margin-bottom:12px;
}

.footer-links a{
  color:rgba(255,255,255,.6);
}

.footer-links a:hover{
  color:var(--accent);
  padding-left:6px;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.06);
  margin-top:50px;
  padding:25px 0;
  font-size:.9rem;
  color:rgba(255,255,255,.45);
}

/* =========================================
   STICKY CTA
========================================= */

.sticky-cta{
  position:fixed;
  right:20px;
  z-index:999;
}

.sticky-whatsapp{
  bottom:90px;
}

.sticky-call{
  bottom:20px;
}

.sticky-cta .btn{
  width:58px;
  height:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  position:relative;
  box-shadow:0 15px 30px rgba(0,0,0,.2);
}

.tooltip-text{
  position:absolute;
  right:70px;
  white-space:nowrap;
  background:#111;
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  opacity:0;
  visibility:hidden;
  transition:.3s;
  font-size:.82rem;
}

.sticky-cta:hover .tooltip-text{
  opacity:1;
  visibility:visible;
}

/* =========================================
   SCROLL TOP
========================================= */

.scroll-top{
  position:fixed;
  bottom:20px;
  left:20px;
  width:52px;
  height:52px;
  border:none;
  border-radius:50%;
  background:var(--gradient-accent);
  color:#fff;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,174,239,.3);
}

/* =========================================
   ANIMATION
========================================= */

.fade-up,
.fade-left,
.fade-right{
  opacity:0;
  transform:translateY(40px);
  animation:fadeUp .8s forwards;
}

.fade-left{
  transform:translateX(-40px);
}

.fade-right{
  transform:translateX(40px);
}

.delay-1{animation-delay:.1s}
.delay-2{animation-delay:.2s}
.delay-3{animation-delay:.3s}
.delay-4{animation-delay:.4s}

@keyframes fadeUp{
  to{
    opacity:1;
    transform:translate(0);
  }
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:991px){

  section{
    padding:80px 0;
  }

  .hero-section{
    text-align:center;
    padding-top:140px;
  }

  .hero-stats{
    justify-content:center;
  }

  .card-1,
  .card-2{
    position:relative;
    inset:auto;
    margin-top:20px;
  }

  .hero-image-col{
    margin-top:30px;
  }
}

@media(max-width:767px){

  .navbar{
    background:#07111f;
  }

  .hero-title{
    font-size:2.4rem;
  }

  .section-title{
    font-size:2rem;
  }

  .product-cta{
    flex-direction:column;
  }

  .sticky-cta .tooltip-text{
    display:none;
  }
}

@media(max-width:480px){

  .btn{
    width:100%;
  }

  .hero-badge{
    font-size:.8rem;
  }

  .hero-stat{
    width:100%;
  }

  .brand-text{
    font-size:.85rem;
  }
}