/**
 * TITAN ENERGY - Buildup Construction Template Stylesheet
 * Based on Buildup - Construction & Building Company Template Archetype
 * 
 * Signature Visual Palette:
 * - Safety / Industrial Yellow: #FFB600
 * - Yellow Hover / Accent: #E5A300
 * - Deep Industrial Charcoal: #1A1D24
 * - Secondary Dark Slate: #14171C / #22262E
 * - Neutral Background / Crisp Canvas: #FFFFFF & #F7F9FB
 * - Typography: Montserrat (Headings / Badges) & Plus Jakarta Sans (Body)
 */

:root {
  --color-yellow: #FFB600;
  --color-yellow-hover: #E5A300;
  --color-dark: #1A1D24;
  --color-darker: #14171C;
  --color-slate: #22262E;
  --color-gray-bg: #F7F9FB;
  --color-text-body: #4B5563;
  --color-text-dark: #111827;
  --color-border: #E5E7EB;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #FFFFFF;
  color: var(--color-text-dark);
}

.font-heading {
  font-family: 'Montserrat', system-ui, sans-serif;
}

.font-mono-tech {
  font-family: 'Space Grotesk', ui-monospace, monospace;
}

/* -------------------------------------------------------------------------- */
/* CRITICAL CYBERSECURITY: Honeypot Anti-Bot Field Trap                       */
/* Hidden strictly via CSS so human users never see it, but bots target it    */
/* -------------------------------------------------------------------------- */
.hp-field,
.trap-field-wrapper {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  z-index: -100 !important;
  pointer-events: none !important;
}

/* -------------------------------------------------------------------------- */
/* Buildup Signature Design Tokens & Components                               */
/* -------------------------------------------------------------------------- */

/* Section Subtitle Bar (The classic Buildup dual-line or block marker) */
.buildup-subtitle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFB600;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.buildup-subtitle::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background-color: #FFB600;
  border-radius: 2px;
}

.buildup-subtitle-dark::before {
  background-color: #FFB600;
}

/* Primary Buildup Yellow Button */
.btn-buildup-yellow {
  background-color: #FFB600;
  color: #1A1D24;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(255, 182, 0, 0.35);
}

.btn-buildup-yellow:hover {
  background-color: #E5A300;
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 182, 0, 0.45);
}

.btn-buildup-yellow:active {
  transform: translateY(0);
}

/* Dark Secondary Buildup Button */
.btn-buildup-dark {
  background-color: #1A1D24;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid #1A1D24;
  transition: all 0.25s ease;
}

.btn-buildup-dark:hover {
  background-color: #FFB600;
  color: #1A1D24;
  border-color: #FFB600;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 29, 36, 0.25);
}

/* Outline Buildup Button */
.btn-buildup-outline {
  background-color: transparent;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid #FFFFFF;
  transition: all 0.25s ease;
}

.btn-buildup-outline:hover {
  background-color: #FFB600;
  border-color: #FFB600;
  color: #1A1D24;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* Overlapping Feature Cards (Buildup Signature under Hero)                   */
/* -------------------------------------------------------------------------- */
.feature-box-overlap {
  position: relative;
  background-color: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid transparent;
  transition: all 0.35s ease;
}

.feature-box-overlap:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  border-bottom-color: #FFB600;
}

.feature-box-overlap:hover .feature-icon-wrapper {
  background-color: #FFB600;
  color: #1A1D24;
  transform: scale(1.06);
}

.feature-icon-wrapper {
  transition: all 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/* Experience Floating Badge (About Section)                                  */
/* -------------------------------------------------------------------------- */
.experience-badge {
  background-color: #FFB600;
  color: #1A1D24;
  box-shadow: 0 12px 32px rgba(255, 182, 0, 0.4);
}

/* -------------------------------------------------------------------------- */
/* Industrial Service Cards                                                   */
/* -------------------------------------------------------------------------- */
.service-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  border-color: #FFB600;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(26, 29, 36, 0.1);
}

.service-card:hover .service-img-overlay {
  opacity: 0.85;
}

.service-card:hover .service-hover-icon {
  background-color: #FFB600;
  color: #1A1D24;
  transform: rotate(45deg);
}

/* -------------------------------------------------------------------------- */
/* Project Portfolio Cards & Filter Tabs                                      */
/* -------------------------------------------------------------------------- */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-color: #1A1D24;
}

.project-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover img {
  transform: scale(1.08);
}

/* Touch devices (phones & tablets): readable overlay always visible */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 23, 28, 0.95) 0%, rgba(20, 23, 28, 0.65) 60%, rgba(20, 23, 28, 0.25) 100%);
  opacity: 0.94;
  transition: opacity 0.35s ease, background 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

/* Laptops & desktops (hover-capable devices): clean reveal on hover */
@media (min-width: 1024px) {
  .project-overlay {
    opacity: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(20, 23, 28, 0.96) 0%, rgba(20, 23, 28, 0.6) 50%, rgba(20, 23, 28, 0.15) 100%);
  }
  
  .project-card:hover .project-overlay {
    opacity: 1;
  }
}

.project-filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.project-filter-btn.active {
  background-color: #FFB600;
  color: #1A1D24;
  border-color: #FFB600;
}

/* -------------------------------------------------------------------------- */
/* Industrial Patterns & Grid Overlays                                        */
/* -------------------------------------------------------------------------- */
.bg-industrial-grid-dark {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 182, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 182, 0, 0.05) 1px, transparent 1px);
}

.bg-industrial-dots {
  background-image: radial-gradient(rgba(255, 182, 0, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Interactive Navigation Underline */
.buildup-nav-link {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1A1D24;
  transition: color 0.2s ease;
}

.buildup-nav-link:hover,
.buildup-nav-link.active {
  color: #FFB600;
}

.buildup-nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FFB600;
  transition: width 0.25s ease;
}

.buildup-nav-link:hover::after,
.buildup-nav-link.active::after {
  width: 100%;
}

/* Pulsing Status Beacon */
.pulse-beacon-yellow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #FFB600;
  animation: pulseYellow 2s infinite;
}

@keyframes pulseYellow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 182, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 182, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 182, 0, 0);
  }
}

/* Custom Corporate Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #14171C;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFB600;
}

/* Custom form focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #FFB600 !important;
  box-shadow: 0 0 0 3px rgba(255, 182, 0, 0.2) !important;
}

/* -------------------------------------------------------------------------- */
/* Device Compatibility & Image Robustness (Laptops, Tablets, Phones)          */
/* -------------------------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix for background image containers */
.img-container-responsive {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1A1D24;
}

/* Ensure smooth rendering of images across high-DPI tablets and retina phones */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Prevent horizontal overflow on narrow mobile screens (320px - 375px) */
body {
  overflow-x: hidden;
  width: 100%;
}

