/* ============================================
   NOWMIX YAPI KİMYASALLARI - MODERN CORPORATE DESIGN
   Corporate Color Palette & Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

:root {
  /* Corporate Color Palette - Premium & Trustworthy */
  --primary-blue: #0A2342;
  /* Deeper, more authoritative blue */
  --primary-blue-light: #1C4E80;
  --secondary-orange: #FF9F1C;
  /* Vibrant but refined orange */
  --secondary-orange-dark: #cc7a00;
  --accent-gray: #556075;
  /* Softer gray for text */
  --accent-gray-light: #A0AEC0;

  /* Backgrounds & Surfaces */
  --bg-light: #F8FAFC;
  /* Clean, premium off-white */
  --bg-white: #FFFFFF;
  --text-dark: #1A202C;
  --white: #FFFFFF;
  --border-color: #E2E8F0;

  /* Modern Soft Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  /* Subtle depth */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  /* Elevated cards */
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  /* Floated elements */
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  /* Modals/Hovers */

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  /* Strong, geometric headings */
  --font-body: 'Inter', sans-serif;
  /* Highly readable body text */

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  /* Increased for breathing room */
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  /* Smoother, modern corners */
  --radius-lg: 20px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 12px;
  /* Reduced from 16px to match 75% zoom preference */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Corporate Typography Polish */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  /* Tight, premium feel */
  color: var(--primary-blue);
  line-height: 1.25;
}

h1 {
  font-weight: 800;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul,
ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--accent-gray);
  line-height: 1.7;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-orange);
  margin: var(--spacing-md) auto 0;
  border-radius: 2px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Top Bar - Unified Corporate Layout */
.top-bar {
  position: relative;
  z-index: 2100;
  background-color: var(--primary-blue);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  /* Valid space-between */
  align-items: center;
  gap: var(--spacing-lg);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

/* Hide duplicate contact info if it exists (legacy safety) */
.top-bar .container .top-bar-info:first-child {
  display: flex;
  /* Reset display */
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-social {
  display: flex;
  gap: 10px;
}

.top-bar-social a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.top-bar-social a:hover {
  color: var(--secondary-orange);
}

/* Language Switcher */
.language-selector {
  position: relative;
  display: inline-block;
  margin-left: 15px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  border-color: var(--secondary-orange);
  color: var(--secondary-orange);
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 120px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 2000;
  padding: 5px 0;
  margin-top: 5px;
}

.language-selector:hover .lang-dropdown {
  display: block;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.lang-item:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
}

.lang-item img {
  width: 20px;
  height: auto;
}


.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

/* Header Alignment Fixes - Standard Layout */
.announcement-bar a[href^="tel"],
.announcement-bar a[href^="mailto"] {
  display: inline-flex !important;
}

/* Top Bar Search */
.top-bar-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0 0 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 10px;
}

.top-bar-search input.search-input {
  background: transparent;
  border: none;
  color: white;
  padding: 4px 0;
  font-size: 0.85rem;
  width: 140px;
  outline: none;
}

.top-bar-search input.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.top-bar-search button.search-btn {
  background: transparent;
  border: none;
  color: white;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.2s;
}

.top-bar-search button.search-btn:hover {
  color: var(--secondary-orange);
}

/* Header Wrapper - Aligned Left (Matches Phone Number) */
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Align Logo to Left */
  padding: 0.75rem 0;
  gap: var(--spacing-lg);
}

/* Mobile Responsiveness for Header */
@media (max-width: 900px) {
  .header-wrapper {
    justify-content: space-between;
  }

  .header-wrapper>div.d-flex,
  .header-wrapper .header-search-form {
    position: relative;
    right: auto;
  }

  .header-logo {
    margin: 0;
  }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition-base);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 10;
  /* Ensure logo is clickable */
}

.header-logo:hover {
  background: transparent;
  transform: none;
}

.header-logo img {
  height: 60px;
  /* Slightly refined size */
  width: auto;
  object-fit: contain;
}


/* Header Action Buttons / Search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.primary-nav {
  background: var(--primary-blue);
  position: relative;
  width: 100%;
  z-index: 10000;
  /* Ensure it is extremely high */
  box-shadow: var(--shadow-md);
  display: block;
  top: 0;
  left: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centered navigation (Standard) */
  gap: 0.5rem;
  padding: 0;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.25rem;
  font-weight: 500;
  font-size: 1.25rem;
  /* Increased to compensate for global 12px root */
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  /* Flat look for menu items */
}

.nav-menu a:hover,
.nav-menu a.active {
  background: transparent;
  color: white;
  border-bottom-color: var(--secondary-orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-blue);
  /* Visible on white header on mobile */
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
}

/* ============================================
   HERO SECTION
   ============================================ */

/* ============================================
   HERO SECTION - Impactful & Professional
   ============================================ */

.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  background: #1e487a9c;
  background-attachment: scroll;
  width: 100%;
}

/* Subtle pattern overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--white) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.03;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 72, 122, 0.85) 0%, rgba(30, 72, 122, 0.65) 100%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  /* Changed from relative to absolute to force position */
  top: 30%;
  /* Position it high up near the molecule graphic */
  left: 50%;
  transform: translateX(-50%);
  /* Center horizontally */
  z-index: 20;
  width: 100%;
  max-width: 1000px;
  text-align: center;
  padding: 0 var(--spacing-md);
  margin: 0;
  /* Remove auto margins since we are using absolute positioning */
}

.hero-section h1 {
  color: white;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  font-size: clamp(2rem, 5vw, 3.5rem);
  /* Reduced max size from 4.5rem to 3.5rem for better fit */
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 100%;
  word-wrap: break-word;
  /* Prevent overflow */
}

.hero-section .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   BUTTONS
   ============================================ */

/* ============================================
   BUTTONS - Modern & Tactile
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--secondary-orange);
  color: #fff;
  border-color: var(--secondary-orange);
  box-shadow: 0 4px 6px -1px rgba(255, 159, 28, 0.3);
}

.btn-primary:hover {
  background: var(--secondary-orange-dark);
  border-color: var(--secondary-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -3px rgba(255, 159, 28, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary-blue);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary-blue-light);
  color: var(--primary-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: white;
  color: var(--primary-blue);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CARDS
   ============================================ */

/* ============================================
   CARDS - Clean & Elevated
   ============================================ */

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy subtle effect */
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 10px 15px -3px rgba(10, 35, 66, 0.2);
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(3deg);
}

.card h3 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.card p {
  color: var(--accent-gray);
  margin-bottom: auto;
  /* Push any following content (buttons) to bottom */
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* ============================================
   WHY NOWMIX SECTION
   ============================================ */

.why-nowmix {
  background: var(--white);
  padding: var(--spacing-2xl) 0;
}

.why-nowmix .grid {
  margin-top: var(--spacing-xl);
}

/* ============================================
   PRODUCT CATEGORIES
   ============================================ */

.product-categories {
  background: var(--bg-light);
  padding: var(--spacing-2xl) 0;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  transition: var(--transition-base);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-orange);
}

.category-card .card-icon {
  margin: 0 auto var(--spacing-md);
}

.category-card .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ============================================
   SOLUTIONS BY APPLICATION
   ============================================ */

.solutions-section {
  background: var(--white);
  padding: var(--spacing-2xl) 0;
}

.solution-card {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  transition: var(--transition-base);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.solution-card h3 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.solution-card p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-orange-dark) 100%);
  color: var(--white);
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   FOOTER
   ============================================ */

/* ============================================
   FOOTER - Corporate & Structured
   ============================================ */

.site-footer {
  background: linear-gradient(to bottom, var(--primary-blue) 0%, #05162b 100%);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-md);
  font-size: 0.95rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h3 {
  color: var(--secondary-orange);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}

/* Decorative line under headings */
.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 24px;
  height: 2px;
  background: var(--secondary-orange);
  opacity: 0.7;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.footer-logo img {
  height: auto;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  opacity: 1;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 0;
}

.footer-section a:hover {
  color: var(--secondary-orange);
  padding-left: 8px;
  /* Slide effect */
}

/* Blog Split Layout */
.blog-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-viewer {
  background: #ffffff !important;
  color: #000000 !important;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  order: 2;
}

/* Ensure no child elements inherit weird backgrounds */
.blog-viewer * {
  background-color: transparent !important;
}

.viewer-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 300px;
  color: #000000 !important;
  padding: 2rem;
}

.viewer-placeholder i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
  color: #000000 !important;
}

.viewer-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
  color: #000000 !important;
}

.viewer-content h2 {
  color: #000000 !important;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-size: 1.75rem;
  font-weight: 700;
}

.viewer-date {
  color: #555555 !important;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.viewer-body {
  color: #000000 !important;
  line-height: 1.8;
  font-size: 1.05rem;
}

.viewer-body p,
.viewer-body span,
.viewer-body div {
  color: #000000 !important;
  margin-bottom: 1.25rem;
}

.viewer-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #000000 !important;
  font-size: 1.2rem;
  font-weight: 600;
}

.viewer-body ul,
.viewer-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: #000000 !important;
}

.viewer-body li {
  margin-bottom: 0.5rem;
  color: #000000 !important;
}

.viewer-close-mobile {
  display: none;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 992px) {
  .blog-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .blog-list {
    flex: 1;
    /* Ensure the grid inside blog-list works */
  }

  .blog-viewer {
    flex: 1;
    position: sticky;
    top: 140px;
    /* Adjusted sticky position */
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    order: 2;
  }

  .viewer-close-mobile {
    display: none;
    /* Always hide on desktop */
  }
}


/* Footer Bottom Layout */
.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  /* Improved layout if space allows */
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--spacing-md);
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  /* More subtle background */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
}

.social-links a:hover {
  background: var(--secondary-orange);
  transform: translateY(-4px) scale(1.1);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 159, 28, 0.4);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-orange);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-blue);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-xl);
    transition: var(--transition-base);
    z-index: 1001;
    box-shadow: var(--shadow-xl);
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-toggle {
    display: block;
  }

  /* Tablet Grid Adjustments */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-logo img {
    height: 60px;
  }

  .hero-section {
    min-height: 90vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }

  .header-logo {
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
  }

  .header-logo img {
    height: 55px;
  }

  .hero-section {
    min-height: 80vh;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .hero-subtitle {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .card {
    padding: var(--spacing-md);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ============================================
   NEW UTILITIES & COMPONENTS (Refactored)
   ============================================ */

/* Text Styles */
.text-primary-blue {
  color: var(--primary-blue);
}

.text-accent-gray {
  color: var(--accent-gray);
}

.text-white {
  color: var(--white);
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.fw-400 {
  font-weight: 400;
}

.fs-sm {
  font-size: 0.875rem;
}

.fs-lg {
  font-size: 1.125rem;
}

.fs-xl {
  font-size: 1.25rem;
}

.fs-2xl {
  font-size: 1.5rem;
}

.lh-1-8 {
  line-height: 1.8;
}

.section-head-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.section-sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent-gray);
  font-weight: 600;
}

/* Backgrounds */
.bg-white {
  background: var(--white);
}

.bg-light {
  background: var(--bg-light);
}

.bg-blue-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
}

/* Spacing */
.py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-3 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-4 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-5 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 4rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Flex Utilities */
.d-flex {
  display: flex;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-column {
  flex-direction: column;
}

.gap-1 {
  gap: 1rem;
}

.gap-05 {
  gap: 0.5rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

/* Header Search */
.header-search-form {
  display: flex;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}

.header-search-input {
  border: none;
  padding: 0.5rem 1rem;
  min-width: 200px;
}

.header-search-btn {
  border: none;
  background: #F2A900;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* Gradients for Cards */
.gradient-banner {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
}

.gradient-banner-tall {
  height: 250px;
  font-size: 1.5rem;
  padding: 1rem;
}

.gradient-orange {
  background: linear-gradient(135deg, #F2A900 0%, #D99A00 100%);
}

.gradient-teal {
  background: linear-gradient(135deg, #4ECDC4 0%, #3BA99F 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, #9B59B6 0%, #7D3C98 100%);
}

.gradient-gray {
  background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.gradient-dark-orange {
  background: linear-gradient(135deg, #FFA500 0%, #CC8500 100%);
}

.gradient-red {
  background: linear-gradient(135deg, #FF6B6B 0%, #CC5555 100%);
}

.gradient-teal-dark {
  background: linear-gradient(135deg, #00A8A8 0%, #008080 100%);
}

/* Max Width Helpers */
.max-w-800 {
  max-width: 800px;
}

.max-w-900 {
  max-width: 900px;
}

.max-w-1000 {
  max-width: 1000px;
}

/* Additional Utilities */
.hero-small {
  min-height: 300px !important;
}

.scroll-mt-100 {
  scroll-margin-top: 100px;
}

.flex-1 {
  flex: 1;
}

.py-05 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}



.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   PRODUCT & CERTIFICATE IMAGES
   ============================================ */

.product-img-wrapper {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 5px;
}

.product-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.card:hover .product-card-img,
.category-card:hover .product-card-img {
  transform: scale(1.08);
}

.cert-img-wrapper {
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #eee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.cert-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover .cert-img {
  transform: scale(1.05);
}

/* ============================================
   PRODUCT NAVIGATION GRID (ICON BASED)
   ============================================ */

.product-nav-section {
  padding: var(--spacing-xl) 0;
  background: #fff;
  text-align: center;
}

.product-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.product-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.product-nav-card:hover {
  transform: translateY(-5px);
  background: var(--bg-light);
  border-color: #eee;
  box-shadow: var(--shadow-md);
}

.product-nav-icon {
  font-size: 3.5rem;
  color: #9CA3AF;
  /* Muted gray per reference */
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.product-nav-card:hover .product-nav-icon {
  color: var(--secondary-orange);
}

.product-nav-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #4B5563;
  text-align: center;
}

.product-nav-card:hover .product-nav-title {
  color: var(--primary-blue);
}

@media (max-width: 900px) {
  .product-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .product-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-nav-icon {
    font-size: 2.5rem;
  }
}

/* ============================================
   CORPORATE PAGE ELEMENTS
   ============================================ */

/* Breadcrumbs */
.breadcrumb {
  padding: 1rem 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--primary-blue);
}

.breadcrumb-item.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.breadcrumb-separator {
  color: #adb5bd;
  font-size: 0.8rem;
}

/* Corporate Section Header */
.corp-section-header {
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.corp-section-title {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin: 0;
  position: relative;
}

.corp-section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  /* aligns with border-bottom padding */
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-orange);
}

/* Technical Product Card */
.tech-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  /* Sharper corners for corporate look */
  padding: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tech-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.tech-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.tech-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

.tech-card-body {
  padding: 1.25rem;
  flex: 1;
}

.tech-specs-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.tech-specs-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.tech-specs-list li i {
  color: var(--secondary-orange);
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.tech-card-footer {
  padding: 1rem 1.25rem;
  background: white;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 0.75rem;
}

/* ============================================
   PRODUCT IMAGE HOVER EFFECTS
   ============================================ */

.product-img-wrapper {
  overflow: hidden;
  height: 250px;
  /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Smooth easing */
  will-change: transform;
}

.tech-card:hover .product-card-img,
.product-card:hover .product-card-img {
  transform: scale(1.1);
  /* Zoom effect */
}

/* ============================================
   RESPONSIVE GRID
   ============================================ */

@media (max-width: 1400px) {
  .grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {

  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Document Center Styles */
.card-header-with-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 1rem;
}

.card-icon.small {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.download-category h4 {
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--secondary-orange);
  padding-left: 0.75rem;
}

.download-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-category ul li {
  margin-bottom: 0.5rem;
}

.download-category ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.25rem 0;
}

.download-category ul li a:hover {
  color: var(--secondary-orange);
}

.download-category ul li a i {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ============================================
   CORPORATE POLISH STYLES
   ============================================ */

/* Top Bar */
.top-bar {
  background-color: var(--primary-blue);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1002;
  /* Above nav */
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  /* Match other containers */
}

.top-bar-info {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item i {
  color: var(--secondary-orange);
  font-size: 0.9rem;
}

.top-bar-social {
  display: flex;
  gap: 1rem;
}

.top-bar-social a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.top-bar-social a:hover {
  color: var(--secondary-orange);
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  /* Hide on mobile for cleanliness */
}

/* Refined Footer */
.site-footer {
  background-color: var(--primary-blue);
  color: white;
  padding: 4rem 0 0 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-orange);
}

.footer-about p {
  color: var(--accent-gray-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: var(--accent-gray-light);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links ul li a::before {
  content: '\f054';
  /* fa-chevron-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  color: var(--secondary-orange);
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s;
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-links ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--secondary-orange);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.footer-contact-item p {
  color: var(--accent-gray-light);
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--accent-gray-light);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer Logo */
.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

.catalog-full-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
}

.catalog-page {
  height: 100%;
  padding: 0;
  overflow: hidden;
}

/* ============================================
   DIGITAL CATALOG STYLES
   ============================================ */

/* 3D Book Cover Mockup */
.catalog-cover-3d {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.book-container {
  width: 200px;
  height: 280px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.book-container:hover {
  transform: rotateY(-15deg) rotateX(5deg);
}

.book {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-20deg);
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.3);
}

.book-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #05162b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: left;
  z-index: 2;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
}

.cover-content {
  text-align: center;
  color: white;
  padding: 20px;
  border: 2px solid rgba(255, 159, 28, 0.3);
  margin: 10px;
  height: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.book-logo {
  width: 60px;
  height: auto;
  border-radius: 4px;
}

.cover-content h2 {
  color: white;
  font-size: 1.8rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.cover-content h3 {
  color: var(--secondary-orange);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: #061830;
  transform: rotateY(90deg) translateZ(-20px);
  z-index: 1;
}

/* Catalog Viewer */
.catalog-viewer-frame {
  background: #333;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.viewer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--secondary-orange);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.viewer-content {
  flex: 1;
  background: #555;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Catalog Pages */
.catalog-page {
  display: none;
  width: 100%;
  height: 100%;
  animation: fadeIn 0.4s ease;
}

.catalog-page.active {
  display: block;
}

.page-inner {
  background: white;
  width: 100%;
  /* Responsive width */
  max-width: 500px;
  /* A4 aspect ratio approximation width */
  aspect-ratio: 210/297;
  margin: 0 auto;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (max-width: 600px) {
  .page-inner {
    padding: 20px;
  }
}

.page-header {
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header h4 {
  margin: 0;
  color: var(--primary-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.page-num {
  font-weight: 800;
  color: #ccc;
  font-size: 1.2rem;
}

/* Sidebar TOC */
.catalog-toc {
  list-style: none;
  padding: 0;
}

.catalog-toc li {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--accent-gray);
  transition: all 0.2s;
}

.catalog-toc li:hover {
  background-color: var(--bg-light);
  color: var(--primary-blue);
}

.catalog-toc li.active {
  background-color: var(--primary-blue);
  color: white;
  font-weight: 600;
  border-radius: 4px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .catalog-container {
    flex-direction: column;
  }

  .catalog-sidebar,
  .catalog-main {
    min-width: 100%;
  }
}

/* Language Selector Styles */
.top-bar {
  position: relative;
  z-index: 3000 !important;
  /* Higher than navigation */
}

.language-selector {
  position: relative;
  z-index: 999999;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  background-color: #ffffff !important;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999999 !important;
  overflow: hidden;
  pointer-events: none;
  padding-top: 0.5rem;
  margin-top: -0.5rem;
  border: 1px solid #e5e7eb;
}

.language-selector.active .lang-dropdown,
.language-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}

.lang-item:hover {
  background: var(--bg-light);
}

.lang-item i {
  width: 16px;
}

/* ============================================
   APPLICATION TECHNIQUES MODAL
   ============================================ */

/* Modal Overlay */
.app-tech-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  overflow-y: auto;
  padding: 2rem;
}

.app-tech-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Content */
.app-tech-modal-content {
  background: white;
  border-radius: var(--radius-md);
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Modal Header */
.app-tech-modal-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-tech-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.app-tech-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.app-tech-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Modal Body */
.app-tech-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

/* Image Carousel */
.app-tech-carousel {
  position: relative;
}

.app-tech-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.app-tech-carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-tech-carousel-slide img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

/* Carousel Controls */
.app-tech-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-orange);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.app-tech-carousel-btn:hover {
  background: var(--secondary-orange-dark);
  transform: translateY(-50%) scale(1.1);
}

.app-tech-carousel-btn.prev {
  left: -25px;
}

.app-tech-carousel-btn.next {
  right: -25px;
}

/* Carousel Indicators */
.app-tech-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.app-tech-carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.app-tech-carousel-indicator.active {
  background: var(--secondary-orange);
  transform: scale(1.3);
}

/* Application Techniques Button */
.btn-app-tech {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
}

.btn-app-tech:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .app-tech-modal {
    padding: 1rem;
  }

  .app-tech-modal-content {
    max-height: 95vh;
  }

  .app-tech-modal-header {
    padding: 1rem;
  }

  .app-tech-modal-title {
    font-size: 1.2rem;
  }

  .app-tech-modal-body {
    padding: 1rem;
  }

  .app-tech-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .app-tech-carousel-btn.prev {
    left: 10px;
  }

  .app-tech-carousel-btn.next {
    right: 10px;
  }
}

/* ============================================
   TOP BAR CENTERING
   ============================================ */

.top-bar .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8rem;
}

/* Header logo alignment for all pages */
.header-logo {
  margin-left: 10rem;
}

/ *     B l o g     S p l i t     L a y o u t     * /     