/* 
   ===============================================
   Printcode Technologies - Modern UI Stylesheet 
   ===============================================
*/

:root {
  /* Corporate Brand Colors */
  --primary: #004AAD;
  /* Strong Corporate Blue */
  --primary-hover: #00388A;
  --secondary: #1E293B;
  /* Deep Blueprint Dark Gray */
  --accent: #EA580C;
  /* High Contrast Orange/Red Accent */

  /* Neutral Colors */
  --bg-color: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;

  /* Form & Alerts */
  --success: #10B981;
  --error: #EF4444;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-title: 'Outfit', var(--font-family);

  /* Utilities */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Spacing */
.section {
  padding: 5rem 0;
}

.section-bg {
  background-color: var(--surface);
}

/* Header & Navigation */
.header {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-top {
  background: var(--secondary);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top a {
  color: #fff;
  opacity: 0.8;
}

.header-top a:hover {
  opacity: 1;
}

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

.header-top-contacts,
.header-top-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-top-contacts i,
.header-top-links i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 85px;
  /* Increased from 60px based on user feedback */
  width: auto;
  max-width: 250px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  /* Reduced gap from 2rem to ensure items fit without wrapping */
  align-items: center;
}

.nav-links>li {
  position: relative;
}

.nav-links a {
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 0.85rem;
  /* Slightly smaller to fit more items */
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  display: block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  padding: 0.5rem 0;
}

.nav-links>li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  padding: 0.5rem 1.5rem;
  color: var(--text-main);
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background-color: rgba(15, 98, 223, 0.05);
  color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-family: var(--font-title);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 98, 223, 0.3);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  /* Adjust as needed */
  min-height: 500px;
  overflow: hidden;
  background-color: var(--secondary);
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-content h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Slider Controls */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-control:hover {
  background: var(--primary);
}

.prev-slide {
  left: 20px;
}

.next-slide {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 10px;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 98, 223, 0.2);
}

.product-img {
  height: 200px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

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

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-title a {
  color: var(--secondary);
}

.product-title a:hover {
  color: var(--primary);
}

.product-brand {
  font-size: 0.875rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Brand Logos Area */
.brands-section {
  text-align: center;
}

.brands-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.brands-container img {
  max-width: 250px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.brands-container a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #fff;
  padding: 4rem 0 1rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
  margin-right: 1rem;
  margin-top: 0.25rem;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Page Headers (Internal Pages) */
.page-header {
  background: var(--secondary);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: #fff;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Contact Us Styling */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
}

.contact-card h4 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.contact-card ul li {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-card ul li i {
  margin-right: 1rem;
  margin-top: 0.25rem;
  color: var(--accent);
}

.contact-form-container {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 98, 223, 0.1);
  background: var(--surface);
}

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

/* Alert Messages */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: none;
}

.alert-success {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--success);
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.alert-error {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--error);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Typography Page Specifics */
.content-area blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-main);
}

.content-area p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Product Content Specifics */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-detail-img {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.product-spec-list li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
}

.product-spec-list li strong {
  width: 150px;
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 991px) {
  .nav-links {
    display: none;
    /* Mobile menu handled via JS later */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links>li {
    width: 100%;
  }

  .nav-links a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.02);
    display: none;
  }

  .nav-links>li:hover .dropdown-menu {
    display: block;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-top-contacts {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .brands-container {
    gap: 2rem;
  }
}

/* =======================================
   Corporate Animations
   ======================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-card,
.contact-card,
.sidebar-widget,
.contact-form-container,
.hero-content,
.section-title {
  opacity: 0;
  transform: translateY(30px);
}

.product-card.is-visible,
.contact-card.is-visible,
.sidebar-widget.is-visible,
.contact-form-container.is-visible,
.hero-content.is-visible,
.section-title.is-visible {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}