/* ==========================================================================
   NITCO Solution Technology - Modern Green Brand CSS Styling
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Color Palette - NITCO Logo Brand Green */
  --bg-dark: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #26334d;
  
  --primary: #84cc16;          /* NITCO Brand Green */
  --primary-light: #a3e635;    /* Vibrant Green Light */
  --primary-dark: #65a30d;     /* Green Dark */
  --secondary: #10b981;        /* Emerald Accent */
  
  --accent-gradient: linear-gradient(135deg, #84cc16 0%, #10b981 100%);
  --glow-gradient: radial-gradient(circle, rgba(132, 204, 22, 0.2) 0%, rgba(0, 0, 0, 0) 70%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(132, 204, 22, 0.5);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(132, 204, 22, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.note-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(9, 13, 22, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Enhanced High-Contrast Logo Badge with Green Glow */
.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25), 0 0 20px rgba(132, 204, 22, 0.35);
  transition: var(--transition);
}

.logo a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.35), 0 0 30px rgba(132, 204, 22, 0.6);
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.menu-main ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu-main a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.menu-main a:hover,
.menu-main a.active {
  color: var(--primary-light);
}

.menu-main a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-main a:hover::after {
  width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 170px 0 100px 0;
  overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(132, 204, 22, 0.15) 0%, rgba(9, 13, 22, 1) 70%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: var(--glow-gradient);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(132, 204, 22, 0.1);
  border: 1px solid rgba(132, 204, 22, 0.3);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.8;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 30px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(132, 204, 22, 0.5);
  color: #000000;
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 72px;
  height: 72px;
  background: rgba(132, 204, 22, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 12px;
}

.service-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  gap: 10px;
  color: #ffffff;
}

/* Products Section */
.products-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  position: relative;
}

.products-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--accent-gradient);
  color: #0f172a;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.tab-content-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.tab-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tab-pane.active {
  display: grid;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-img {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.product-details h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.product-details h3 span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 6px;
}

.product-details p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 20px 0 32px 0;
}

/* Featured Section */
.featured-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.featured-img {
  height: 220px;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-img img {
  transform: scale(1.05);
}

.featured-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.featured-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}

.featured-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.2);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 28px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(132, 204, 22, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-text span:first-child {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 2px;
}

.info-text span:last-child {
  color: var(--text-main);
  font-size: 0.95rem;
}

.info-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Footer */
footer {
  background: #060911;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo a {
  display: inline-flex;
  padding: 6px 14px;
  background: #ffffff;
  border-radius: 10px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.copyright {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Floating Chat Support Widget */
.chat-support-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  transition: var(--transition);
}

.chat-support-widget:hover {
  transform: scale(1.1);
}

.chat-support-widget img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .tab-pane {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .menu-main {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    padding: 32px;
    transition: var(--transition);
  }
  .menu-main.open {
    right: 0;
  }
  .menu-main ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .tab-content-container {
    padding: 24px;
  }
}
