/* =====================================================
ROOT VARIABLES
===================================================== */
:root{
  --brand:#0179b4;
  --brand-dark:#005f8f;
  --text-dark:#1f2937;
  --text-body:#4b5563;
  --bg-soft:#f5fcff;
} 

/* =====================================================
RESET
===================================================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Manrope",sans-serif;
}

body{
  background:linear-gradient(180deg,#f5fcff,#ebfaff);
  color:var(--text-body);
}

img{max-width:100%;height:auto;}

.container{
  max-width:1200px;
  margin:auto;
  padding:0 24px;
}

/* =====================================================
BUTTONS
===================================================== */
.btn-primary{
  background:linear-gradient(120deg,var(--brand),var(--brand-dark));
  color:#fff;
  padding:14px 30px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  transition:.3s;
}

.btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(1,121,180,.3);
}
/* =====================================================
HEADER
===================================================== */
.header{
  background:#fff;
  position:sticky;
  top:0;
  z-index:1000;
}

.header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:90px;
}

.logo{width:110px;}

.nav{
  display:flex;
  gap:36px;
}

.nav a{
  position:relative;
  text-decoration:none;
  font-weight:600;
  color:#3d3d3d;
  padding-bottom:6px;
}

.nav a.active,
.nav a:hover{
  color:var(--brand);
}

.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:2px;
  background:var(--brand);
  transition:.3s;
}

.nav a:hover::after,
.nav a.active::after{
  width:100%;
}

/* =====================================================
HEADER
===================================================== */
.header{
  background:#fff;
  position:sticky;
  top:0;
  z-index:1000;
}

.header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:90px;
}

.logo{width:110px;}

.nav{
  display:flex;
  gap:36px;
}

.nav a{
  position:relative;
  text-decoration:none;
  font-weight:600;
  color:#3d3d3d;
  padding-bottom:6px;
}

.nav a.active,
.nav a:hover{
  color:var(--brand);
}

.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:2px;
  background:var(--brand);
  transition:.3s;
}

.nav a:hover::after,
.nav a.active::after{
  width:100%;
}

/* =====================================================
MOBILE NAV
===================================================== */
.hamburger{
  display:none;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}

.hamburger span{
  width:26px;
  height:3px;
  background:#0a2e72;
  border-radius:2px;
}

.mobile-menu{
  display:none;
  flex-direction:column;
  background:#fff;
  padding:20px;
  gap:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.mobile-menu a{
  text-decoration:none;
  font-weight:600;
  color:#3d3d3d;
}

.mobile-menu.active{display:flex;}
/* ================================
HAMBURGER ANIMATION
================================ */
.hamburger.active span:nth-child(1){
  transform:rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2){
  opacity:0;
}

.hamburger.active span:nth-child(3){
  transform:rotate(-45deg) translate(6px,-6px);
}

/* Smooth animation */
.hamburger span{
  transition:all .3s ease;
}
/* =====================================================
TITLE
===================================================== */
.portfolio-title{
  text-align:center;
  margin:80px auto 50px;
  max-width:700px;
}

.portfolio-title h1{
  font-size:32px;
  background:linear-gradient(90deg,#0e83bb,#7acef7);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.portfolio-title p{
  margin-top:16px;
}

/* =====================================================
PRODUCT GRID (FINAL RESPONSIVE)
===================================================== */
.products{padding-bottom:80px;}

.product-grid{
  display:grid;
  gap:24px;
}

/* Desktop */
@media (min-width:1024px){
  .product-grid{grid-template-columns:repeat(3,1fr);}
}

/* Tablet */
@media (min-width:600px) and (max-width:1023px){
  .product-grid{grid-template-columns:repeat(2,1fr);}
}

/* Mobile */
@media (max-width:599px){
  .product-grid{grid-template-columns:1fr;}
}

/* =====================================================
DEPARTMENT CARD
===================================================== */
.card{
  background:#fff;
  padding:36px 20px;
  border-radius:18px;
  text-align:center;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  transition:.3s;
  cursor:pointer;
}

.card:hover{transform:translateY(-6px);}

.card img{
  width:52px;
  margin-bottom:16px;
}

.card h3{
  font-size:18px;
  color:#0a2e72;
}

/* =====================================================
MODALS – FINAL CLEAN VERSION (MATCHES INDEX PAGE)
===================================================== */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* COMMON MODAL BOX */
.modal-content{
  background: #ffffff;
  width: 92%;
  max-width: 1100px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 14px;
  position: relative;
  opacity: 1;
}

/* CLOSE BUTTON */
.close{
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  color: #111827;
}

/* =====================================================
PRODUCT LIST – 3 COLUMN GRID
===================================================== */
.product-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.product-card{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: .25s ease;
}

.product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.product-card img{
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-card h4{
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

/* =====================================================
DETAIL MODAL (IMAGE + CONTENT)
===================================================== */
#detailModal{
  z-index: 10000;
}

#detailModal .modal-content{
  display: flex;
  gap: 30px;
  background: #ffffff;
}

/* IMAGE SIDE */
.modal-image{
  flex: 1;
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
}

.modal-image img{
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

/* CONTENT SIDE */
.modal-details{
  flex: 1;
}

.modal-details h2{
  font-size: 22px;
  margin-bottom: 10px;
  color: #111827;
}

.modal-details p{
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

.pdf-btn{
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

/* =====================================================
RESPONSIVE
===================================================== */
@media(max-width: 992px){
  .product-list{
    grid-template-columns: repeat(2, 1fr);
  }

  #detailModal .modal-content{
    flex-direction: column;
  }
}

@media(max-width: 576px){
  .product-list{
    grid-template-columns: 1fr;
  }
}
/* =====================================================
HELP DESK
===================================================== */
.helpdesk{
  background:#f0f9ff;
  text-align:center;
  padding:80px 24px;
}

.helpdesk span{color:#00a4f4;}

.help-form{
  margin-top:30px;
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

.help-form input{
  padding:16px;
  width:260px;
  border-radius:12px;
  border:1px solid #ccecff;
}

.help-form button{
  background:#00a4f4;
  color:#fff;
  padding:16px 28px;
  border-radius:12px;
  border:none;
  font-weight:700;
}

/* =====================================================
FOOTER
===================================================== */
.footer{
  background:#f2faff;
  padding:60px 0 20px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:40px;
}

.footer-logo{width:120px;margin-bottom:12px;}

.footer h4{color:#00a4f4;margin-bottom:12px;}

.footer a,.footer p{
  color:#6d6d6d;
  font-size:15px;
  text-decoration:none;
  display:block;
  margin-bottom:8px;
}

.footer-bottom{
  text-align:center;
  margin-top:40px;
  color:#b0b0b0;
  font-size:14px;
}

/* FLOATING SOCIAL ICONS */
.social-float {
  position: fixed;
  right: 24px;
  bottom: 120px; /* corner-la irukka */
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon img {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

/* BRAND COLORS */
.social-icon.whatsapp {
  background: #25d366;
}

.social-icon.instagram {
  background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);
}

.social-icon.linkedin {
  background: #0077b5;
}

/* HOVER */
.social-icon:hover {
  transform: scale(1.12) translateX(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
}

.social-icon:hover img {
  transform: rotate(8deg) scale(1.1);
}

/* ACTIVE (CLICK) */
.social-icon:active {
  transform: scale(0.95);
}

/* MOBILE SAFE */
@media (max-width: 768px) {
  .social-float {
    right: 16px;
    bottom: 80px;
  }
}

/* =====================================================
RESPONSIVE NAV
===================================================== */
@media(max-width:768px){
  .nav,.desktop-cta{display:none;}
  .hamburger{display:flex;}
}
