@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --primary: #F97316; /* FLIR Orange */
  --primary-glow: rgba(249, 115, 22, 0.4);
  --secondary: #0EA5E9; /* Tech Blue */
  --bg-dark: #020617; /* Slate Black */
  --bg-glass: rgba(15, 23, 42, 0.85);
  --card-bg: rgba(30, 41, 59, 0.5);
  --text-main: #F1F5F9;
  --text-dim: #94A3B8;
  --scanline-color: rgba(6, 182, 212, 0.05); /* Very subtle scanning cyan */
}

/* 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;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #020617 0%, #0F172A 100%);
  background-attachment: fixed;
}

/* Add a scanner effect background overlay */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  z-index: 1001;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  opacity: 0.3;
}

/* Header - Modern Minimal & Centered */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 90px;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-flir {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.logo-shgi {
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-shgi span {
  color: var(--primary);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; width: 0; height: 2px;
  background: var(--primary);
  transition: 0.4s;
}

.nav a:hover, .nav a.active {
  color: var(--primary);
}

.nav a:hover::after, .nav a.active::after {
  width: 100%;
}

/* Technical Search Bar */
.search-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 15px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  transition: 0.3s;
}

.search-box:focus-within {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.05);
  box-shadow: 0 0 15px var(--primary-glow);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 0.85rem;
  width: 100%;
}

.search-box i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Hero Section - The "Thermal Scan" Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
}

.thermal-bg-gradient {
  position: absolute;
  top: 50%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
  filter: blur(50px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  margin-bottom: 25px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.hero h1 span {
  -webkit-text-stroke: 1px var(--primary);
  color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  border-left: 2px solid var(--primary);
  padding-left: 25px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn-thermal {
  padding: 18px 35px;
  background: var(--primary);
  color: #000;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 1.5px;
  transition: 0.4s;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-thermal:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--primary-glow);
  background: #fff;
}

.btn-outline {
  padding: 18px 35px;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: 0.4s;
  font-size: 0.85rem;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: white;
}

/* Category Grid - Modern Cyberpunk Bento */
.category-section {
  padding: 100px 0;
  background: rgba(2, 6, 23, 0.5);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 350px);
  gap: 24px;
}

.cat-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: 0.5s;
  text-decoration: none;
}

.cat-card:nth-child(1) { grid-column: span 7; }
.cat-card:nth-child(2) { grid-column: span 5; }
.cat-card:nth-child(3) { grid-column: span 4; }
.cat-card:nth-child(4) { grid-column: span 8; }

.cat-card:hover {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.cat-card .content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
  z-index: 5;
}

.cat-card .content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}

.cat-card .content p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: 0.8s;
}

.cat-card:hover img {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Data News Section */
.news-section {
  padding: 100px 0;
}

.news-header {
  margin-bottom: 60px;
  text-align: center;
}

.news-header h2 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.news-header h2 span {
  color: var(--primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-item {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.1);
}

.product-img {
    height: 300px; /* Fixed height for consistency */
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: 0.5s;
}

.product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1; /* Stretch to fill space */
}

.product-info h4 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    min-height: 3em; /* Ensure titles take uniform space */
    display: flex;
    align-items: center;
}

.product-specs {
    flex: 1; /* Push button to bottom */
    min-height: 120px; /* Ensure specs area has uniform height */
}

.btn-thermal {
    margin-top: auto; /* Always at the bottom */
}

.news-item {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.4s;
}

.news-item:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.news-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.news-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, transparent 30%, rgba(2, 6, 23, 0.8) 100%);
}

.news-img img {
  width: 100%; height: 100%; object-fit: cover;
}

.news-content {
  padding: 30px;
}

.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
}

.news-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
}

.news-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-link i {
  color: var(--primary);
}

/* Footer Section - Futuristic */
.footer {
  background: #020617;
  padding: 100px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 80px;
}

.footer-logo h2 {
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-logo h2 span {
  color: var(--primary);
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 300px;
}

.office-card {
  margin-bottom: 30px;
}

.office-card h4 {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.office-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.office-card i {
  width: 20px;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Sidebar Shortcut - Cyber Version */
.cyber-sidebar {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cyber-btn {
  width: 55px;
  height: 55px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  position: relative;
}

.cyber-btn:hover {
  background: var(--primary);
  color: black;
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 30px var(--primary-glow);
}

.cyber-btn .tip {
  position: absolute;
  right: 70px;
  background: white;
  color: black;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(20px);
  transition: 0.3s;
  pointer-events: none;
}

.cyber-btn:hover .tip {
  opacity: 1;
  transform: translateX(0);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .cat-grid { grid-template-rows: auto; }
  .cat-card { grid-column: span 12 !important; height: 300px; }
  .cyber-sidebar { display: none; }
}
