/* Section Variations with Diagonal Cuts */

/* Diagonal Section Dividers */
.section-diagonal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 50px, 0 100px);
  transform: translateY(-50px);
  z-index: 1;
}

.section-diagonal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: inherit;
  clip-path: polygon(0 50px, 100% 100px, 100% 100px, 0 100%);
  transform: translateY(50px);
  z-index: 1;
}

/* Wave Section Dividers */
.section-wave::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: ellipse(100% 100% at 50% 0%);
  z-index: 1;
}

.section-wave::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: ellipse(100% 100% at 50% 100%);
  z-index: 1;
}

/* Enhanced Section Color Schemes with Modern Gradients */
.section-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(21, 48, 87, 0.9) 50%, #1e4068 100%);
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.section-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(198, 156, 109, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

.section-primary h2,
.section-primary h3 {
  color: var(--secondary-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.section-secondary {
  background: linear-gradient(45deg, var(--secondary-color) 0%, #c69c6d 30%, #d4a879 70%, var(--secondary-dark) 100%);
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.section-secondary::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, rgba(21, 48, 87, 0.1), transparent);
  border-radius: 50%;
  transform: rotate(45deg);
}

.section-contrast {
  background: linear-gradient(90deg, var(--contrast-bg) 0%, #bec1c4 50%, #cbd0d3 100%);
  color: var(--text-color);
  position: relative;
  border-top: 4px solid var(--secondary-color);
  border-bottom: 4px solid var(--accent-color);
}

.section-contrast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 98%,
    rgba(198, 156, 109, 0.1) 100%
  );
  pointer-events: none;
}

.section-accent {
  background: radial-gradient(ellipse at center, var(--accent-color) 0%, rgba(190, 193, 196, 0.8) 50%, #cbd0d3 100%);
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.section-accent::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 100px;
  height: 100px;
  background: conic-gradient(from 45deg, rgba(198, 156, 109, 0.2), transparent, rgba(21, 48, 87, 0.1));
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.section-dark {
  background: linear-gradient(165deg, var(--dark-section) 0%, #0f1f3a 30%, var(--primary-color) 70%, #0a1528 100%);
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(198, 156, 109, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  animation: pulse-glow 12s ease-in-out infinite;
}

.section-dark h2,
.section-dark h3 {
  color: var(--secondary-color);
  text-shadow: 2px 2px 12px rgba(198, 156, 109, 0.3);
}

/* Slanted Sections */
.section-slant-left {
  clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 100%);
  padding-top: calc(5rem + 60px);
}

.section-slant-right {
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(5rem + 60px);
}

.section-slant-both {
  clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
  padding: calc(5rem + 60px) 0;
}

/* Enhanced Zigzag Sections with Gradient */
.section-zigzag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, inherit, rgba(198, 156, 109, 0.1));
  clip-path: polygon(0 0, 20% 60px, 40% 0, 60% 60px, 80% 0, 100% 60px, 100% 60px, 0 60px);
  transform: translateY(-30px);
  animation: shimmer 4s ease-in-out infinite;
}

.section-zigzag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(45deg, inherit, rgba(190, 193, 196, 0.1));
  clip-path: polygon(0 0, 20% 0, 40% 60px, 60% 0, 80% 60px, 100% 0, 100% 60px, 0 60px);
  transform: translateY(30px);
  animation: shimmer 4s ease-in-out infinite reverse;
}

/* Enhanced Wave Sections */
.section-wave-modern::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to right, rgba(198, 156, 109, 0.1), transparent, rgba(190, 193, 196, 0.1));
  clip-path: polygon(0 0, 100% 0, 100% 60%, 90% 80%, 70% 85%, 50% 80%, 30% 75%, 10% 70%, 0 60%);
  animation: wave-flow 6s ease-in-out infinite;
}

.section-wave-modern::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to left, rgba(21, 48, 87, 0.1), transparent, rgba(198, 156, 109, 0.05));
  clip-path: polygon(0 40%, 10% 30%, 30% 25%, 50% 20%, 70% 25%, 90% 20%, 100% 40%, 100% 100%, 0 100%);
  animation: wave-flow 8s ease-in-out infinite reverse;
}

/* Organic Shape Dividers */
.section-organic-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 95% 50%, 85% 60%, 70% 65%, 50% 60%, 30% 55%, 15% 45%, 5% 35%, 0 30%);
}

.section-organic-bottom::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 70%, 5% 65%, 15% 55%, 30% 45%, 50% 40%, 70% 35%, 85% 40%, 95% 50%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes shimmer {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}

@keyframes wave-flow {
  0%, 100% {
    clip-path: polygon(0 0, 100% 0, 100% 60%, 90% 80%, 70% 85%, 50% 80%, 30% 75%, 10% 70%, 0 60%);
  }
  50% {
    clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 65%, 70% 70%, 50% 75%, 30% 70%, 10% 65%, 0 70%);
  }
}

/* Arrow Sections */
.section-arrow-down::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-top: 60px solid;
  border-top-color: inherit;
}

.section-arrow-up::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 60px solid;
  border-bottom-color: inherit;
}

/* Enhanced Cards for High Contrast */
.card-enhanced {
  background: linear-gradient(135deg, var(--white-color) 0%, #bec1c4 100%);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow:
    0 10px 30px rgba(21, 48, 87, 0.1),
    0 1px 8px rgba(21, 48, 87, 0.05);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
}

.card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  border-radius: inherit;
  padding: 3px;
  margin: -3px;
  z-index: -1;
}

.card-enhanced::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(198, 156, 109, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-enhanced:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(21, 48, 87, 0.2),
    0 8px 25px rgba(198, 156, 109, 0.15);
}

.card-enhanced:hover::after {
  opacity: 1;
}

.card-dark {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f1f3a 50%, var(--dark-section) 100%);
  color: var(--white-color);
  border: 3px solid var(--secondary-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(198, 156, 109, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
}

.card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(198, 156, 109, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.card-dark:hover {
  background: linear-gradient(135deg, var(--dark-section) 0%, #0a1528 50%, var(--primary-color) 100%);
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(198, 156, 109, 0.2);
  border-color: #c69c6d;
}

/* Glassmorphism Cards */
.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow:
    0 8px 32px rgba(21, 48, 87, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
  box-shadow:
    0 16px 48px rgba(21, 48, 87, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Enhanced Button Variations */
.button-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #c69c6d 100%);
  color: var(--primary-color);
  border: 3px solid transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 8px 25px rgba(198, 156, 109, 0.3);
}

.button-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.button-secondary:hover {
  background: linear-gradient(135deg, #c69c6d 0%, var(--secondary-color) 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 15px 35px rgba(198, 156, 109, 0.4),
    0 0 25px rgba(198, 156, 109, 0.2);
}

.button-secondary:hover::before {
  left: 100%;
}

.button-outline {
  background: transparent;
  color: var(--primary-color);
  border: 3px solid var(--primary-color);
  font-weight: 600;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.button-outline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.button-outline:hover {
  color: var(--white-color);
  border-color: var(--secondary-color);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(21, 48, 87, 0.3);
}

.button-outline:hover::after {
  width: 300px;
  height: 300px;
}

/* Gradient Glow Button */
.button-glow {
  background: var(--gradient);
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 1.2rem 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 0 20px rgba(198, 156, 109, 0.4),
    0 8px 25px rgba(21, 48, 87, 0.2);
}

.button-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient);
  border-radius: inherit;
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button-glow:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow:
    0 0 30px rgba(198, 156, 109, 0.6),
    0 15px 40px rgba(21, 48, 87, 0.3);
}

.button-glow:hover::before {
  opacity: 1;
}

/* Text Enhancements */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(10, 29, 46, 0.3);
}

.text-highlight {
  background: linear-gradient(120deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
  background-repeat: no-repeat;
  background-size: 100% 30%;
  background-position: 0 90%;
  padding: 0 4px;
}

/* Section Spacing Adjustments */
.section-compact {
  padding: 3rem 0;
}

.section-spacious {
  padding: 8rem 0;
}

/* Modern Geometric Overlays */
.section-hexagon {
  position: relative;
  overflow: hidden;
}

.section-hexagon::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 120px;
  height: 140px;
  background: rgba(198, 156, 109, 0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: float 20s ease-in-out infinite;
}

.section-triangle {
  position: relative;
  overflow: hidden;
}

.section-triangle::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: -3%;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(190, 193, 196, 0.08);
  animation: pulse-glow 8s ease-in-out infinite;
}

.section-diamond {
  position: relative;
  overflow: hidden;
}

.section-diamond::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 80%;
  width: 80px;
  height: 80px;
  background: rgba(21, 48, 87, 0.06);
  transform: rotate(45deg);
  animation: spin 25s linear infinite reverse;
}

/* Enhanced Pattern Overlays */
.section-dots {
  background-image: radial-gradient(circle, rgba(198, 156, 109, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.section-grid {
  background-image:
    linear-gradient(rgba(21, 48, 87, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 48, 87, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.section-stripes {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(198, 156, 109, 0.02) 20px,
    rgba(198, 156, 109, 0.02) 40px
  );
}

/* Advanced Animation Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}

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

/* Section Layout Variations */
.section-asymmetric {
  background: linear-gradient(135deg, transparent 0%, transparent 30%, rgba(198, 156, 109, 0.05) 30%, rgba(198, 156, 109, 0.05) 100%);
}

.section-split {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 50%, var(--secondary-color) 100%);
  color: var(--white-color);
}

.section-split .container {
  position: relative;
  z-index: 2;
}

.section-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, transparent 48%, rgba(255, 255, 255, 0.1) 50%, transparent 52%, transparent 100%);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .section-diagonal::before,
  .section-diagonal::after {
    height: 50px;
  }

  .section-diagonal::before {
    clip-path: polygon(0 0, 100% 0, 100% 25px, 0 50px);
    transform: translateY(-25px);
  }

  .section-diagonal::after {
    clip-path: polygon(0 25px, 100% 50px, 100% 50px, 0 50px);
    transform: translateY(25px);
  }

  .section-slant-left,
  .section-slant-right {
    padding-top: calc(3rem + 30px);
  }

  .section-slant-both {
    padding: calc(3rem + 30px) 0;
  }

  .section-wave::before,
  .section-wave::after {
    height: 40px;
  }

  .section-hexagon::before {
    width: 80px;
    height: 100px;
  }

  .section-diamond::before {
    width: 60px;
    height: 60px;
  }

  .section-triangle::after {
    border-left-width: 40px;
    border-right-width: 40px;
    border-bottom-width: 70px;
  }

  .card-enhanced {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .card-dark {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .card-glass {
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
  }

  .button-secondary,
  .button-outline,
  .button-glow {
    padding: 0.95rem 1.75rem;
    font-size: 0.9rem;
    border-radius: 40px;
  }
}

@media screen and (max-width: 640px) {
  .section-diagonal::before,
  .section-diagonal::after {
    height: 40px;
  }

  .section-diagonal::before {
    clip-path: polygon(0 0, 100% 0, 100% 20px, 0 40px);
    transform: translateY(-20px);
  }

  .section-diagonal::after {
    clip-path: polygon(0 20px, 100% 40px, 100% 40px, 0 40px);
    transform: translateY(20px);
  }

  .section-slant-left,
  .section-slant-right {
    padding-top: calc(2.5rem + 25px);
  }

  .section-slant-both {
    padding: calc(2.5rem + 25px) 0;
  }

  .section-wave::before,
  .section-wave::after {
    height: 35px;
  }

  .section-hexagon::before {
    width: 70px;
    height: 85px;
  }

  .section-diamond::before {
    width: 50px;
    height: 50px;
  }

  .section-triangle::after {
    border-left-width: 35px;
    border-right-width: 35px;
    border-bottom-width: 60px;
  }

  .card-enhanced {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }

  .card-dark {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }

  .card-glass {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }

  .button-secondary,
  .button-outline,
  .button-glow {
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
}

@media screen and (max-width: 480px) {
  .section-diagonal::before,
  .section-diagonal::after {
    height: 30px;
  }

  .section-diagonal::before {
    clip-path: polygon(0 0, 100% 0, 100% 15px, 0 30px);
    transform: translateY(-15px);
  }

  .section-diagonal::after {
    clip-path: polygon(0 15px, 100% 30px, 100% 30px, 0 30px);
    transform: translateY(15px);
  }

  .section-slant-left,
  .section-slant-right {
    padding-top: calc(2rem + 20px);
  }

  .section-slant-both {
    padding: calc(2rem + 20px) 0;
  }

  .section-wave::before,
  .section-wave::after {
    height: 30px;
  }

  .section-hexagon::before {
    width: 60px;
    height: 75px;
  }

  .section-diamond::before {
    width: 45px;
    height: 45px;
  }

  .section-triangle::after {
    border-left-width: 30px;
    border-right-width: 30px;
    border-bottom-width: 50px;
  }

  .card-enhanced {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .card-dark {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .card-glass {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }

  .button-secondary,
  .button-outline,
  .button-glow {
    padding: 0.85rem 1.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.75px;
  }
}

@media screen and (max-width: 350px) {
  .section-diagonal::before,
  .section-diagonal::after {
    height: 25px;
  }

  .section-hexagon::before {
    width: 50px;
    height: 65px;
  }

  .section-diamond::before {
    width: 40px;
    height: 40px;
  }

  .section-triangle::after {
    border-left-width: 25px;
    border-right-width: 25px;
    border-bottom-width: 45px;
  }

  .card-enhanced,
  .card-dark {
    padding: 1.25rem 0.85rem;
    border-radius: 10px;
  }

  .card-glass {
    padding: 1rem 0.85rem;
    border-radius: 10px;
  }

  .button-secondary,
  .button-outline,
  .button-glow {
    padding: 0.8rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
}