/* =========================================
   UI/UX ENHANCEMENT - OPTIMIZED SPACING
   Modern, Clean Design with Real Images
   ========================================= */

/* Override excessive padding/margins */
.section {
  padding: 40px 0 !important;
}

.section-sm {
  padding: 20px 0 !important;
}

.container {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.card {
  padding: 20px !important;
}

/* Compact spacing utilities */
.compact-grid {
  gap: 15px !important;
}

/* =========================================
   IMAGE-DRIVEN DESIGN ENHANCEMENTS
   ========================================= */

/* Hero with real background images */
.hero-modern {
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 58, 106, 0.85), rgba(5, 29, 54, 0.75));
  z-index: 1;
}

.hero-modern .container {
  position: relative;
  z-index: 2;
}

/* Image cards with overlay */
.image-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-card:hover {
  transform: scale(1.02);
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}

.image-card-overlay h3 {
  color: white;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.image-card-overlay p {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Team/About section with image grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Base Utility Layer - for content pages */
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-blue-100 { color: #dbeafe; }
.text-blue-300 { color: #93c5fd; }
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.border-none { border: none !important; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

/* Common Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.opacity-9 { opacity: 0.9; }
.leading-relaxed { line-height: 1.625; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.hover\:scale-110:hover { transform: scale(1.1); }
.transform { --tw-translate-x: 0; --tw-translate-y: 0; transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)); }
.rotate-3 { --tw-rotate: 3deg; transform: rotate(var(--tw-rotate)); }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: scale(1.05); }

.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-16 { gap: 4rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.prose h2 { margin-top: 2rem; margin-bottom: 1rem; }
.prose p { margin-bottom: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.team-member {
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid var(--primary);
}

/* Feature section with background image */
.feature-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 60px 0;
}

.feature-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
}

.feature-section .container {
  position: relative;
  z-index: 2;
}

/* Sector cards with images */
.sector-image-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}

.sector-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.sector-image-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 58, 106, 0.3) 0%, rgba(11, 58, 106, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}

.sector-image-card:hover .overlay {
  background: linear-gradient(180deg, rgba(11, 58, 106, 0.5) 0%, rgba(11, 58, 106, 0.95) 100%);
}

.sector-image-card h3 {
  color: white;
  margin: 0 0 8px 0;
}

.sector-image-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

/* Split content with image */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Testimonial with photo */
.testimonial-modern {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.testimonial-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial-info h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.testimonial-info p {
  margin: 4px 0 0 0;
  color: var(--slate-500);
  font-size: 0.9rem;
}

/* Gallery section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.gallery-item {
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Blog/News cards with featured images */
.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.news-content p {
  margin: 0 0 15px 0;
  color: var(--slate-600);
}

.news-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* CTA section with background */
.cta-with-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0;
  position: relative;
  text-align: center;
}

.cta-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 58, 106, 0.92), rgba(5, 29, 54, 0.92));
}

.cta-with-bg .container {
  position: relative;
  z-index: 2;
  color: white;
}

.cta-with-bg h2 {
  color: white;
  margin-bottom: 15px;
}

.cta-with-bg p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Icon feature boxes with images */
.icon-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.icon-feature:hover {
  transform: translateX(5px);
}

.icon-feature-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.icon-feature-content h4 {
  margin: 0 0 8px 0;
  color: var(--primary);
}

.icon-feature-content p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* Parallax sections */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  position: relative;
}

.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 58, 106, 0.7);
}

.parallax-section .container {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

/* =========================================
   RESPONSIVE OPTIMIZATIONS
   ========================================= */

@media (max-width: 768px) {
  .section {
    padding: 30px 0 !important;
  }

  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .card {
    padding: 15px !important;
  }

  .split-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .split-image {
    height: 300px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-modern {
    min-height: 400px;
  }

  .image-card {
    height: 250px;
  }

  .sector-image-card {
    height: 200px;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 20px 0 !important;
  }

  .image-card {
    height: 200px;
  }

  .news-image {
    height: 150px;
  }

  .split-image {
    height: 250px;
  }
}

/* =========================================
   UTILITY CLASSES FOR COMPACT LAYOUTS
   ========================================= */

.compact {
  padding: 15px !important;
}

.compact-section {
  padding: 30px 0 !important;
}

.no-extra-margin h1,
.no-extra-margin h2,
.no-extra-margin h3,
.no-extra-margin h4 {
  margin-bottom: 10px !important;
}

.no-extra-margin p {
  margin-bottom: 15px !important;
}

.tight-gap {
  gap: 10px !important;
}

/* Image placeholder backgrounds for development */
.bg-placeholder-1 {
  background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1200');
}

.bg-placeholder-2 {
  background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1200');
}

.bg-placeholder-3 {
  background-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=1200');
}

.bg-placeholder-4 {
  background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1200');
}

.bg-construction {
  background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1200');
}

.bg-logistics {
  background-image: url('https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55?w=1200');
}

.bg-healthcare {
  background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1200');
}

.bg-hospitality {
  background-image: url('https://images.unsplash.com/photo-1445019980597-93fa8acb246c?w=1200');
}

.bg-manufacturing {
  background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1200');
}

.bg-team {
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200');
}

/* Image filters */
.img-grayscale {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.img-grayscale:hover {
  filter: grayscale(0%);
}

.img-overlay-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.img-overlay-dark:hover::before {
  background: rgba(0, 0, 0, 0.2);
}

/* Modern gradient overlays */
.gradient-overlay-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 58, 106, 0.8), rgba(51, 154, 240, 0.6));
}

.gradient-overlay-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Fix for excessive CTA card height on sector pages */
section .card[style*="linear-gradient"] {
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
}

/* =========================================
   REVEAL & PREMIUM ENHANCEMENTS 2026
   ========================================= */

/* Reveal Animations */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-down {
  transform: translateY(-30px);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delays */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* Premium Card Overrides */
.card-premium {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-premium:hover::after {
  transform: scaleX(1);
}

/* Glass Buttons */
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

/* Smooth Transitions for Sticky Header */
.site-header {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
}