/* Global utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
  --primary-color: #d32f2f;
  --secondary-color: #1a237e;
  --accent-blue: #2196f3;
  --dark-color: #030712;
  --white: #ffffff;
  --text-color: #1e293b;
  --light-bg: #f8fafc;
  --header-height: 140px;
  --border-radius: 20px;
  --box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  --glass: rgba(10, 25, 41, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--light-bg);
  background: 
    radial-gradient(circle at 10% 20%, rgba(211, 47, 47, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(26, 35, 126, 0.06) 0%, transparent 40%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header Re-Design - Glassmorphism */
.header {
  height: var(--header-height);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.header-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.nav-with-logo {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-logo-link {
  background: white;
  padding: 8px 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.header-logo-link:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.company-logo {
  height: 38px;
  width: auto;
}

.nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  background: rgba(255,255,255,0.05);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.05);
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 30px;
  display: block;
}

.nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.nav a.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
}

/* Section Header Styling */
.section-header-wrapper {
  margin: 60px 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.section-header {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 5px;
}

.section-header span {
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1rem;
  color: #64748b;
  font-weight: 400;
  max-width: 600px;
}

.header-accent {
  width: 60px;
  height: 5px;
  background: var(--primary-color);
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Search Bar - Modern Floating */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 550px;
}

.search-bar i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 0.9rem;
}

.search-bar input {
  width: 100%;
  padding: 12px 25px 12px 50px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  font-family: inherit;
  font-size: 0.9rem;
  color: white;
  transition: all 0.4s ease;
  outline: none;
  backdrop-filter: blur(10px);
}

.search-bar input::placeholder {
  color: rgba(255,255,255,0.4);
}

.search-bar input:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 25px rgba(211, 47, 47, 0.4);
  transform: translateY(-2px);
}

/* Hero Section - Dynamic */
.hero {
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.8), rgba(26, 35, 126, 0.8)), url('images/hero_honeywell.webp');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(211, 47, 47, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.8;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Product Cards - Interactive Glass */
.category-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 80px 0;
}

.category-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px 25px;
  border-radius: var(--border-radius);
  text-align: center;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(to bottom, rgba(211, 47, 47, 0.05), transparent);
  transition: 0.5s ease;
  z-index: -1;
}

.category-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(26, 35, 126, 0.1);
  border-color: rgba(211, 47, 47, 0.2);
}

.category-card:hover::before {
  height: 100%;
}

.category-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  display: inline-block;
  transition: 0.5s;
}

.category-card:hover i {
  transform: scale(1.2) rotate(10deg);
  color: var(--secondary-color);
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-weight: 800;
}

.category-card p {
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1.6;
}

/* Product Item - Grid Styling */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 35px;
    padding: 60px 0;
}

.product-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.product-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-img {
    height: 240px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}

.product-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: 0.5s;
}

.product-item:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.05rem;
    font-weight: 700;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-check {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), #f44336);
    color: white;
    text-decoration: none;
    font-weight: 800;
    border-radius: 40px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
    transition: all 0.3s ease;
}

.btn-check:hover {
    background: linear-gradient(135deg, var(--secondary-color), #283593);
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.2);
    transform: scale(1.05);
}

/* Footer - Dark & Sophisticated */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 100px 0;
  border-top: 5px solid var(--primary-color);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(211, 47, 47, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.office-box {
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s;
}

.office-box:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--primary-color);
}

.office-box h3 {
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-box h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(211, 47, 47, 0.3);
}

/* Sticky Bar - Compact & Vibrant */
.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary-color);
  padding: 12px 0;
  z-index: 999;
  display: flex;
  justify-content: center;
}

.sticky-container {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.sticky-link {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.sticky-link:hover {
  color: var(--primary-color);
}

.sticky-link.wa {
  background: #25d366;
  padding: 8px 20px;
  border-radius: 40px;
  color: white;
}

.sticky-link.wa:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  :root { --header-height: auto; }
  body { padding-top: 250px; }
  .nav-with-logo { flex-direction: column; gap: 20px; }
  .hero h1 { font-size: 2.5rem; }
}

/* Home Latest News Section */
.home-news-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.news-card-home {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.news-card-home:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.news-card-home .img-box {
  height: 200px;
  overflow: hidden;
}

.news-card-home .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card-home:hover .img-box img {
  transform: scale(1.1);
}

.news-card-home .content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-home .date {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-card-home h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--secondary-color);
  line-height: 1.4;
}

.news-card-home p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 25px;
  line-height: 1.6;
}

.news-card-home .btn-read {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-card-home .btn-read i {
  transition: transform 0.3s ease;
}

.news-card-home:hover .btn-read i {
  transform: translateX(5px);
}

/* Floating Shortcut Sidebar */
.side-shortcut-bar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortcut-item {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.03);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.shortcut-item i {
  font-size: 1.2rem;
  transition: 0.3s;
}

.shortcut-item:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1) translateX(5px);
}

.shortcut-item .tooltip {
  position: absolute;
  left: 65px;
  background: var(--dark-color);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  pointer-events: none;
}

.shortcut-item .tooltip::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--dark-color);
}

.shortcut-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
  left: 60px;
}

@media (max-width: 1024px) {
  .side-shortcut-bar {
    display: none; /* Hide on mobile to keep clean */
  }
}
