/* =================== BRAND HUB STYLES =================== */

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Above Header */
.above-header {
  background-color: #27ABE3;
  padding: 3px 0;
  font-size: 12px;
  border-bottom: 1px solid #dee2e6;
}

.above-header .ast-custom-html {
  color: #FFFFFF;
}

.social-icons a {
  color: #FFFFFF;
  margin-left: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #007bff;
}

/* Navigation */
.navbar {
  background-color: #FFFFFF !important;
  padding: 15px 0;
}

.brand-logo {
  height: 40px;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Hero Background Container for Rotating Videos/Images */
.hero-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background-image,
.hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-background-image.active,
.hero-background-video.active {
  opacity: 1;
  z-index: 2;
}

/* =================== NAMED VIDEO POSITIONING CLASSES =================== */

/* Brand Hub Videos - Transglobal Brand */
.hero-background-video.video-drone-truck-shot,
.hero-background-image.image-drone-truck-shot {
  object-position: center 35%;
}

/* Oil Facility Turn - More specific selector to override responsive rules */
.hero-background-container .hero-background-video.video-oil-facility-turn,
.hero-background-container .hero-background-image.image-oil-facility-turn {
  object-position: center 90%;
}

/* Responsive overrides for this specific video */
@media (max-width: 768px) {
  .hero-background-container .hero-background-video.video-oil-facility-turn,
  .hero-background-container .hero-background-image.image-oil-facility-turn {
    object-position: center 30%;
  }
}

@media (max-width: 480px) {
  .hero-background-container .hero-background-video.video-oil-facility-turn,
  .hero-background-container .hero-background-image.image-oil-facility-turn {
    object-position: center 30%;
  }
}

.hero-background-video.video-oil-pump-zoom-out,
.hero-background-image.image-oil-pump-zoom-out {
  object-position: center 40%;
}

/* Brand Hub Videos - TGS Transform Brand */
.hero-background-video.video-tgs-interface,
.hero-background-image.image-tgs-interface {
  object-position: center 25%;
}

.hero-background-video.video-tgs-layer-map,
.hero-background-image.image-tgs-layer-map {
  object-position: center 30%;
}

.hero-background-video.video-tgs-spin-globe,
.hero-background-image.image-tgs-spin-globe {
  object-position: center 50%;
}

/* Brand Hub Videos - Gullett Brand */
.hero-background-video.video-drone-flydown,
.hero-background-image.image-drone-flydown {
  object-position: center 20%;
}

.hero-background-video.video-oil-facility-reverse-closeup,
.hero-background-image.image-oil-facility-reverse-closeup {
  object-position: center 35%;
}

.hero-background-video.video-oil-pump-turn-reverse,
.hero-background-image.image-oil-pump-turn-reverse {
  object-position: center 40%;
}

/* Brand Hub Videos - Evolve AI Brand */
.hero-background-video.video-evolve-ai-data-terrain,
.hero-background-image.image-evolve-ai-data-terrain {
  object-position: center 30%;
}

.hero-background-video.video-ai-cpu,
.hero-background-image.image-ai-cpu {
  object-position: center 25%;
}

.hero-background-video.video-evolve-ai-digital-brain,
.hero-background-image.image-evolve-ai-digital-brain {
  object-position: center 35%;
}



/* =================== BRAND HUB RESPONSIVE ADJUSTMENTS =================== */

/* Tablet adjustments for brand hub videos only */
@media (max-width: 768px) {
  .hero-background-video[class*="video-"],
  .hero-background-image[class*="image-"] {
    object-position: center 45% !important;
  }
}

/* Mobile adjustments for brand hub videos only */
@media (max-width: 480px) {
  .hero-background-video[class*="video-"],
  .hero-background-image[class*="image-"] {
    object-position: center 50% !important;
  }
}

/* Legacy hero-background class - kept for fallback */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  transition: all 0.8s ease;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.8) 0%,
    rgba(49, 27, 146, 0.6) 100%
  );
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

/* Hero Content */
.hero-content {
  color: white;
  padding: 40px 0;
}

.hero-logo-container {
  margin-bottom: 30px;
}

.hero-main-logo {
  max-height: 80px;
  max-width: 300px;
  transition: all 0.5s ease;
  /* Drop shadow for better visibility against backgrounds */
  filter: drop-shadow(2px 4px 12px rgba(0, 0, 0, 0.8))
          drop-shadow(0 0 8px rgba(0, 0, 0, 0.6))
          drop-shadow(1px 2px 6px rgba(0, 0, 0, 0.9));
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  max-width: 500px;
}

.hero-cta {
  background: linear-gradient(45deg, #ff6b6b, #ffa726);
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  display: inline-block;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Brand Selector */
.brand-selector {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 40px 0;
}

.selector-title {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
  font-weight: 600;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.brand-option {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.brand-option:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.brand-option:hover::before {
  left: 100%;
}

.brand-option-logo {
  max-height: 60px;
  max-width: 150px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.brand-option:hover .brand-option-logo {
  transform: scale(1.1);
}

.brand-option-name {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
}

.brand-option.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffa726;
  transform: scale(1.05);
}

/* Content Container */
.content-container {
  min-height: 500px;
  position: relative;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #6c757d;
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Fade Transitions */
.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

/* Brand-specific backgrounds */
.hero-section.transglobal {
  background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
}

.hero-section.tgs-transform {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-section.gullett {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-section.evolve-ai {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .brand-selector {
    margin-top: 60px;
    padding: 30px;
  }
  
  .brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .brand-selector {
    padding: 20px;
  }
  
  .brand-option {
    padding: 20px;
  }
  
  .brand-option-logo {
    max-height: 50px;
  }
  
  .above-header {
    padding: 4px 0;
    font-size: 12px;
  }
  
  .social-icons a {
    margin-left: 10px;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 20px 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .brand-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Footer */
.footer {
  background-color: #194164 !important;
  border-top: 1px solid #333;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* Homepage Integration Styles */
.brand-hub-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.brand-hub-hero .container {
  position: relative;
  z-index: 2;
}

.brand-hub-hero .globe-wrapper {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.1;
}

/* Brand Logo Link Styling */
.brand-logo-link {
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.brand-logo-link:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.brand-logo-link.active {
  transform: scale(1.15);
  filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

.brand-logo-link.active::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  animation: pulse 2s ease-in-out infinite;
}

.brand-logo-link img {
  transition: all 0.3s ease;
}

/* Hero Brand Display */
.hero-brand-display {
  width: 100%;
  padding: 2rem 0;
}

.active-brand-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  transition: all 0.6s ease;
}

.active-brand-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.active-brand-logo img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.1);
  transition: all 0.5s ease;
}

.active-brand-content {
  text-align: center;
  color: white;
}

.brand-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
}

.brand-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.5s ease;
}

.brand-cta {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.brand-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Brand Selector */
.brand-selector {
  width: 100%;
  padding: 2rem;
}

.selector-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand-option {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.brand-option:hover {
  transform: translateY(-5px);
}

.brand-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.brand-option:hover .brand-card {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.2);
  transition: all 0.3s ease;
}

.brand-option:hover .brand-logo {
  transform: scale(1.1);
}

.brand-info {
  flex: 1;
  color: white;
}

.brand-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.brand-info p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
  line-height: 1.4;
}

.brand-arrow {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.brand-option:hover .brand-arrow {
  color: white;
  transform: translateX(5px);
}

/* Brand Content Section */
.brand-content-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 50vh;
}

#dynamicBrandContent {
  transition: all 0.6s ease;
}

/* Loading and Transition Animations */
.brand-content-section .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive adjustments for logo interactions */
@media (max-width: 991px) {
  .brand-logo-link.active::after {
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-width: 1px;
  }
}

/* Brand Hub Styles */

/* Hide brand content container by default (for Transglobal) */
#brandContentContainer {
  display: none;
}

/* Show brand content container when other brands are active */
body[data-active-brand="tgs-transform"] #brandContentContainer,
body[data-active-brand="gullett"] #brandContentContainer,
body[data-active-brand="evolve-ai"] #brandContentContainer {
  display: block;
}

/* Brand logo styling around the globe */
.brand-logo-link {
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.brand-logo-link:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.brand-logo-link.active {
  transform: scale(1.15);
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Active brand border overlay */
.brand-logo-link.active::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid #00bcd4;
  border-radius: 8px;
  animation: pulse-border 2s ease-in-out infinite;
  pointer-events: none;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .brand-logo-link {
    padding: 5px;
  }
  
  .brand-logo-link.active::after {
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
  }
}

/* Brand content section styling */
.brand-content-section {
  min-height: 0;
  padding: 0;
  margin: 0;
}

.brand-content-section .container {
  padding: 0;
}

#dynamicBrandContent {
  min-height: 0;
} 