/**
 * Patterns & Decorative Elements
 * This CSS file contains various background patterns and decorative elements
 * that can be applied throughout the website for visual interest.
 *
 * Usage Guidelines:
 * - Background patterns can be applied to sections or divs to add texture or visual interest.
 * - Decorative elements like circles, dots, and abstract shapes can be used as overlays or accents.
 * - Section dividers can be used to separate content sections with visual flair.
 * - Ensure that patterns and decorative elements do not overpower the main content.
 * - Use position helpers (e.g., .top-right, .bottom-left) to position decorative elements.
 */

/* ===== BACKGROUND PATTERNS ===== */

/* Blueprint grid pattern */
/* Use for sections that require a technical or structured look. */
.bg-blueprint {
  background-color: var(--bs-light);
  background-image: 
    linear-gradient(var(--bs-primary-rgb-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--bs-primary-rgb-light) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  overflow: hidden;
}

/* Floating gradient background */
/* Ideal for sections that need a soft, flowing background. */
.bg-floating-gradient {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.bg-floating-gradient::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.2) 0%, rgba(var(--bs-primary-rgb), 0) 70%);
  border-radius: 50%;
  top: -150px;
  right: -150px;
  animation: float 15s infinite alternate ease-in-out;
}

.bg-floating-gradient::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.15) 0%, rgba(var(--bs-primary-rgb), 0) 70%);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  animation: float 10s infinite alternate-reverse ease-in-out;
}

/* Hexagonal grid pattern */
/* Suitable for sections that need a modern, geometric background. */
.bg-hexagons {
  background-color: var(--secondary);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Animated lines background */
/* Use for dynamic sections that require movement and energy. */
.bg-animated-lines {
  background: linear-gradient(135deg, #f5f7fa00 0%, #e4eaec00 100%);
  background-size: 100% 100%;
  animation: gradient-shift 15s ease infinite;
  position: relative;
}

.bg-animated-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(var(--bs-secondary-rgb), 0.05) 10px,
    rgba(var(--bs-secondary-rgb), 0.05) 20px
  );
  z-index: 0;
  animation: shift-lines 30s linear infinite;
}

/* Dot pattern texture */
/* Adds a subtle texture to sections, ideal for backgrounds. */
.texture-dots {
  position: relative;
}

.texture-dots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--dark) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
  pointer-events: none;
}

/* Paper texture */
/* Provides a soft, paper-like texture for sections. */
.texture-paper {
  background-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Grain texture */
/* Adds a grainy texture, suitable for backgrounds needing a rustic feel. */
.texture-grain {
  position: relative;
}

.texture-grain::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

/* ===== SECTION DIVIDERS ===== */

/* Wave divider */
/* Use to create a smooth transition between sections. */
.divider-wave {
  position: relative;
}

.divider-wave::before {
  content: '';
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' class='shape-fill' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' class='shape-fill' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' class='shape-fill' fill='%23FFFFFF'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Slant divider */
/* Use for a sharp, angled transition between sections. */
.divider-slant {
  position: relative;
}

.divider-slant::before {
  content: '';
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M1200 120L0 16.48 0 0 1200 0 1200 120z' fill='%23FFFFFF'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Triangle divider */
/* Use for a pointed, triangular transition between sections. */
.divider-triangle {
  position: relative;
}

.divider-triangle::before {
  content: '';
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M649.97 0L599.91 54.12 550.03 0 0 0 0 120 1200 120 1200 0 649.97 0z' fill='%23FFFFFF'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* ===== DECORATIVE ELEMENTS ===== */

/* Decorative circles */
/* Use as accents in corners or to highlight specific areas. */
.decorative-circles {
  position: absolute;
  width: 300px;
  height: 300px;
  z-index: 0;
  pointer-events: none;
}

.decorative-circles::before,
.decorative-circles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.decorative-circles::before {
  width: 300px;
  height: 300px;
  border: 2px solid var(--bs-primary);
  top: 0;
  left: 0;
}

.decorative-circles::after {
  width: 200px;
  height: 200px;
  border: 3px solid var(--bs-primary);
  top: 50px;
  left: 50px;
}

/* Decorative dots */
/* Use to add a dotted texture to backgrounds or overlays. */
.decorative-dots {
  position: absolute;
  width: 200px;
  height: 200px;
  z-index: 0;
  pointer-events: none;
}

.decorative-dots::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--bs-primary) 1px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.2;
}

/* Abstract shapes */
/* Use as background accents or to add interest to sections. */
.abstract-shape {
  position: absolute;
  width: 200px;
  height: 200px;
  z-index: 0;
  pointer-events: none;
}

.abstract-shape::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%234d84ff' fill-opacity='0.2' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/path%3E%3C/svg%3E");
}

/* Position helpers for decorative elements */
/* Use these classes to position elements in corners. */
.top-right {
  top: 0;
  right: 0;
}

.top-left {
  top: 0;
  left: 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
}

/* Animations for decorative elements */
.rotating {
  animation: rotate 30s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes shift-lines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Patterns and Decorative Elements
------------------------------------------ */

/* Base Pattern Classes */
.pattern {
  position: relative;
  overflow: hidden;
}

/* Geometric Patterns */
.pattern-diagonal-stripes {
  background-image: linear-gradient(45deg, var(--color-primary-light) 25%, transparent 25%, transparent 50%, var(--color-primary-light) 50%, var(--color-primary-light) 75%, transparent 75%, transparent);
  background-size: 10px 10px;
  opacity: 0.1;
}

.pattern-grid {
  background-image: 
    linear-gradient(var(--color-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
}

.pattern-dots {
  background-image: radial-gradient(var(--color-accent) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.1;
}

.pattern-honeycomb {
  background-color: transparent;
  background-image: 
    linear-gradient(30deg, var(--color-accent) 12%, transparent 12.5%, transparent 87%, var(--color-accent) 87.5%, var(--color-accent)),
    linear-gradient(150deg, var(--color-accent) 12%, transparent 12.5%, transparent 87%, var(--color-accent) 87.5%, var(--color-accent)),
    linear-gradient(30deg, var(--color-accent) 12%, transparent 12.5%, transparent 87%, var(--color-accent) 87.5%, var(--color-accent)),
    linear-gradient(150deg, var(--color-accent) 12%, transparent 12.5%, transparent 87%, var(--color-accent) 87.5%, var(--color-accent)),
    linear-gradient(60deg, rgba(0,0,0,.1) 25%, transparent 25.5%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1)),
    linear-gradient(60deg, rgba(0,0,0,.1) 25%, transparent 25.5%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1));
  background-size: 20px 35px;
  background-position: 0 0, 0 0, 10px 17.5px, 10px 17.5px, 0 0, 10px 17.5px;
  opacity: 0.05;
}

/* Decorative Dividers */
.divider {
  height: 5px;
  width: 100%;
  background-color: var(--color-primary);
  margin: 2rem 0;
  position: relative;
}

.divider-dashed {
  border: none;
  border-top: 2px dashed var(--color-primary);
  background: transparent;
  height: 0;
}

.divider-zigzag {
  height: 15px;
  background: 
    linear-gradient(45deg, transparent 33.333%, var(--color-primary) 33.333%, var(--color-primary) 66.667%, transparent 66.667%),
    linear-gradient(-45deg, transparent 33.333%, var(--color-primary) 33.333%, var(--color-primary) 66.667%, transparent 66.667%);
  background-size: 20px 40px;
  margin: 2rem 0;
}

.divider-dots {
  height: 6px;
  background: radial-gradient(circle, var(--color-primary) 3px, transparent 3px);
  background-size: 15px 15px;
  background-position: center;
  margin: 2rem 0;
}

/* Background Overlays */
.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, var(--color-primary), transparent);
  opacity: 0.1;
  z-index: -1;
}

.overlay-texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000000' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.2;
  z-index: -1;
}

/* Corner Decorations */
.corner-triangle {
  position: relative;
}

.corner-triangle::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 50px 50px 0;
  border-style: solid;
  border-color: transparent var(--color-primary-light) transparent transparent;
}

.corner-circle {
  position: relative;
}

.corner-circle::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.1;
  z-index: -1;
}

/* Animated Backgrounds */
.bg-animate-gradient {
  background: linear-gradient(-45deg, var(--color-primary-light), var(--color-primary), var(--color-secondary), var(--color-accent));
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  opacity: 0.05;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-ripple {
  position: relative;
}

.bg-ripple::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.2;
  animation: ripple 4s linear infinite;
}

@keyframes ripple {
  0% { width: 0; height: 0; opacity: 0.2; }
  100% { width: 500px; height: 500px; opacity: 0; }
}

/* Steel-themed Patterns */
.pattern-steel-plate {
  background-image: 
    radial-gradient(circle at 50% 50%, var(--color-gray-dark) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--color-gray-dark) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.1;
}

.pattern-steel-rivets {
  background-image: 
    radial-gradient(circle, var(--color-gray-dark) 3px, transparent 3px);
  background-size: 40px 40px;
  opacity: 0.2;
}

.pattern-brushed-metal {
  background-image: linear-gradient(to right, var(--color-gray-light) 1px, transparent 1px);
  background-size: 5px 100%;
  opacity: 0.1;
}

/* ===== INDUSTRIAL STEEL PATTERNS ===== */

/* Industrial diamond plate pattern */
.pattern-diamond-plate {
  background-color: #2a2a2a;
  background-image: 
    linear-gradient(45deg, #444 25%, transparent 25%),
    linear-gradient(-45deg, #444 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #444 75%),
    linear-gradient(-45deg, transparent 75%, #444 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  position: relative;
}

/* Industrial gears pattern */
.pattern-gears {
  background-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M20 20.5V18H0v4h20v-1.5zm0 9V27H0v4h20v-1.5zm0 9V36H0v4h20v-1.5zm60-1.5V36H40v4h40v-1.5zm0-9V27H40v4h40v-1.5zm0-9V18H40v4h40v-1.5zm-60 27V45H0v4h20v-1.5zm60 0V45H40v4h40v-1.5zm0 9V54H40v4h40v-1.5zm-60 0V54H0v4h20v-1.5zm60 9V63H40v4h40v-1.5zm-60 0V63H0v4h20v-1.5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Industrial circuit pattern */
.pattern-circuit {
  background-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23000000' fill-opacity='0.05' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 217.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E");
}

/* Steel construction pattern */
.pattern-steel-construction {
  background-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.08'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 20.83l2.83-2.83 1.41 1.41L1.41 22.24H0v-1.41zM0 3.07l2.83-2.83 1.41 1.41L1.41 4.48H0V3.07zm58.24 20.83l2.83-2.83 1.41 1.41-2.83 2.83h-1.41v-1.41zM58.24 3.07l2.83-2.83 1.41 1.41-2.83 2.83h-1.41V3.07zm-20.83 0l2.83-2.83 1.41 1.41-2.83 2.83h-1.41V3.07zm-20.83 20.83l2.83-2.83 1.41 1.41-2.83 2.83h-1.41v-1.41zm0-17.76l2.83-2.83 1.41 1.41-2.83 2.83h-1.41V6.14zM20.83 40l2.83-2.83 1.41 1.41L22.24 40h-1.41v-1.41zm-3.07-17.17l2.83-2.83 1.41 1.41L4.48 24.24H0v-1.41zM37.93 40l2.83-2.83 1.41 1.41L39.34 40h-1.41v-1.41zm-19.66 0l2.83-2.83 1.41 1.41L19.68 40h-1.41v-1.41zM20.83 22.24l2.83-2.83 1.41 1.41-2.83 2.83h-1.41v-1.41zm0-17.76l2.83-2.83 1.41 1.41-2.83 2.83h-1.41V4.48zM3.07 22.24l2.83-2.83 1.41 1.41-2.83 2.83H3.07v-1.41zm0-17.76l2.83-2.83 1.41 1.41-2.83 2.83H3.07V4.48zM40 20.83l-2.83 2.83-1.41-1.41 2.83-2.83H40v1.41zM40 3.07l-2.83 2.83-1.41-1.41 2.83-2.83H40v1.41zM37.93 22.24l2.83-2.83 1.41 1.41-2.83 2.83h-1.41v-1.41zm0-17.76l2.83-2.83 1.41 1.41-2.83 2.83h-1.41V4.48zM20.83 6.14l2.83-2.83 1.41 1.41-2.83 2.83h-1.41V6.14zm0 34.52l2.83-2.83 1.41 1.41L4.48 40H3.07v-1.41zM20.83 38.59l2.83-2.83 1.41 1.41L22.24 40h-1.41v-1.41zm0-17.76l2.83-2.83 1.41 1.41-2.83 2.83h-1.41v-1.41zm0-17.76l2.83-2.83 1.41 1.41-2.83 2.83h-1.41V3.07zm-17.76 17.76l2.83-2.83 1.41 1.41-2.83 2.83H3.07v-1.41zm0-17.76l2.83-2.83 1.41 1.41-2.83 2.83H3.07V3.07zm17.76 0l2.83-2.83 1.41 1.41-2.83 2.83h-1.41V3.07zm0 17.76l2.83-2.83 1.41 1.41-2.83 2.83h-1.41v-1.41zm-17.76 0l2.83-2.83 1.41 1.41-2.83 2.83H3.07v-1.41zm17.76-17.76l2.83-2.83 1.41 1.41-2.83 2.83h-1.41v-1.41zm0 17.76l2.83-2.83 1.41 1.41-2.83 2.83h-1.41v-1.41zm-17.76 0l2.83-2.83 1.41 1.41-2.83 2.83H3.07v-1.41z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Metal mesh pattern */
.pattern-metal-mesh {
  background-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Steel angle decor */
.steel-angle-decor {
  position: relative;
  overflow: hidden;
}

.steel-angle-decor::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpolygon points='0,0 100,0 100,100' fill='%23000000' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: contain;
  z-index: 0;
  pointer-events: none;
}

/* Steel frame border */
.steel-frame {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.steel-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

/* Riveted steel corners */
.riveted-corners {
  position: relative;
}

.riveted-corners::before,
.riveted-corners::after,
.riveted-corners .corner-tl,
.riveted-corners .corner-br {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  z-index: 1;
}

.riveted-corners::before {
  top: 5px;
  left: 5px;
}

.riveted-corners::after {
  top: 5px;
  right: 5px;
}

.riveted-corners .corner-tl {
  bottom: 5px;
  left: 5px;
}

.riveted-corners .corner-br {
  bottom: 5px;
  right: 5px;
}

/* ===== ANIMATIONS FOR STEEL PATTERNS ===== */

/* Animated welding effect */
.animate-welding {
  position: relative;
  overflow: hidden;
}

.animate-welding::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  animation: welding 3s infinite linear;
}

@keyframes welding {
  0%, 100% {
    opacity: 0;
    top: 0;
    left: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    opacity: 0.8;
    top: 40%;
    left: 30%;
  }
  50% {
    opacity: 1;
    top: 60%;
    left: 60%;
  }
  70% {
    opacity: 0.6;
    top: 30%;
    left: 80%;
  }
  90% {
    opacity: 0.8;
    top: 80%;
    left: 20%;
  }
}

/* Animated steel shimmer */
.steel-shimmer {
  position: relative;
  overflow: hidden;
}

.steel-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/*
========================================
INDIGO TMT - Patterns & Decorative Elements
========================================
*/

/* Background Patterns */
.bg-dots {
  background-image: radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: var(--light);
  opacity: 0.1;
}

.bg-grid {
  background-image: linear-gradient(var(--secondary) 1px, transparent 1px),
    linear-gradient(90deg, var(--secondary) 1px, transparent 1px);
  background-size: 50px 50px;
  background-color: var(--light);
  opacity: 0.05;
}

/* Decorative Elements */
.decorative-lines {
  position: absolute;
  width: 200px;
  height: 200px;
  pointer-events: none;
}

.decorative-lines::before,
.decorative-lines::after {
  content: '';
  position: absolute;
  background: var(--primary);
  opacity: 0.1;
}

.decorative-lines::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.decorative-lines::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.decorative-circles {
  position: absolute;
  width: 300px;
  height: 300px;
  pointer-events: none;
}

.decorative-circles::before,
.decorative-circles::after {
  content: '';
  position: absolute;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.1;
}

.decorative-circles::before {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.decorative-circles::after {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
}

/* DNA Helix Animation */
.dna-helix {
  position: absolute;
  width: 100px;
  height: 400px;
  opacity: 0.1;
  pointer-events: none;
}

.dna-strand {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate 20s linear infinite;
}

.dna-strand::before,
.dna-strand::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.dna-strand::before {
  left: 0;
}

.dna-strand::after {
  right: 0;
}

/* Position Utilities */
.top-left {
  top: 0;
  left: 0;
}

.top-right {
  top: 0;
  right: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
}

/* Animations */
@keyframes rotate {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Gradient Overlays */
.gradient-overlay {
  position: relative;
}

.gradient-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary) 0%, transparent 100%);
  opacity: 0.8;
  z-index: 1;
}

/* Steel Bar Pattern */
.steel-pattern {
  position: relative;
  overflow: hidden;
}

.steel-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    var(--secondary) 0,
    var(--secondary) 2px,
    transparent 2px,
    transparent 8px
  );
  opacity: 0.05;
  z-index: 1;
}

/* Texture Overlays */
.texture-dots {
  position: relative;
}

.texture-dots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--dark) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
  pointer-events: none;
}

/* Section Dividers */
.section-divider {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
} 