/* ==========================================
   TCC Website - Custom Styles
   Modern, Professional, Animated Design
   ========================================== */

/* ==========================================
   CSS Variables & Design Tokens
   ========================================== */
:root {
  /* Brand Colors - New Color Scheme */
  --tcc-primary: #C8102E;        /* Primary Red (200, 16, 46) */
  --tcc-primary-dark: #A00D25;  /* Darker Red */
  --tcc-secondary: #1C1C1C;     /* Secondary Black/Dark Gray (28, 28, 28) */
  --tcc-secondary-light: #2D2D2D; /* Lighter Black */
  --tcc-accent: #003366;        /* Accent Dark Blue (0, 51, 102) */
  --tcc-accent-light: #004488;  /* Lighter Dark Blue */
  --tcc-warning: #f59e0b;
  --tcc-error: #C8102E;          /* Error - Same as Primary Red */
  
  /* SkyOne Brand Colors (for Event section) */
  --skyone-primary: #3b82f6;
  --skyone-secondary: #8b5cf6;
  --skyone-accent: #06b6d4;
  
  /* Neutral Colors - Updated to match new scheme */
  --tcc-white: #FFFFFF;        /* Neutral White (255, 255, 255) */
  --tcc-gray-50: #F2F2F2;     /* Supportive Light Gray (242, 242, 242) */
  --tcc-gray-100: #E8E8E8;
  --tcc-gray-200: #D1D1D1;
  --tcc-gray-300: #BABABA;
  --tcc-gray-400: #A3A3A3;
  --tcc-gray-500: #8C8C8C;
  --tcc-gray-600: #757575;
  --tcc-gray-700: #5E5E5E;
  --tcc-gray-800: #474747;
  --tcc-gray-900: #303030;
  
  /* Typography - Enhanced */
  --tcc-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tcc-font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tcc-font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --tcc-spacing-xs: 0.25rem;
  --tcc-spacing-sm: 0.5rem;
  --tcc-spacing-md: 1rem;
  --tcc-spacing-lg: 1.5rem;
  --tcc-spacing-xl: 2rem;
  --tcc-spacing-2xl: 3rem;
  --tcc-spacing-3xl: 4rem;
  
  /* Border Radius */
  --tcc-radius-sm: 0.375rem;
  --tcc-radius-md: 0.5rem;
  --tcc-radius-lg: 0.75rem;
  --tcc-radius-xl: 1rem;
  --tcc-radius-2xl: 1.5rem;
  
  /* Shadows */
  --tcc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tcc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --tcc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --tcc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --tcc-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --tcc-transition-fast: 150ms ease-in-out;
  --tcc-transition-normal: 300ms ease-in-out;
  --tcc-transition-slow: 500ms ease-in-out;
  
  /* Z-Index Scale */
  --tcc-z-dropdown: 1000;
  --tcc-z-sticky: 1020;
  --tcc-z-fixed: 1030;
  --tcc-z-modal: 1040;
  --tcc-z-popover: 1050;
  --tcc-z-tooltip: 1060;
}

/* ==========================================
   Global Styles & Reset
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--tcc-font-primary);
  line-height: 1.6;
  color: var(--tcc-secondary); /* Changed from gray-800 to secondary black */
  background-color: var(--tcc-white);
  overflow-x: hidden;
}

/* Custom Scrollbar - Hidden */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

/* Hide scrollbar for all browsers */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* ==========================================
   Loading Screen Animations
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide elements during loading */
.hidden-during-loading {
  display: none !important;
}

/* Fade out animation for loading screen */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* ==========================================
   CEO Statement Section
   ========================================== */
#ceo-statement {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

#ceo-statement img {
  border-radius: 1.5rem;
}

#ceo-statement .relative > div.absolute {
  background: rgba(255, 255, 255, 0.1);
}

/* CEO Statement Typography */
#ceo-statement p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
}

#ceo-statement p.text-right {
  text-align: right;
}

/* CEO Signature Styling */
#ceo-statement .border-t {
  border-color: #e5e7eb;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 390px) {
  #ceo-statement img {
    max-height: 200px;
  }
  
  #ceo-statement h2 {
    font-size: 2rem;
  }
  
  #ceo-statement p {
    font-size: 1rem;
  }
}

#ceo-statement img[loading="lazy"] {
  min-height: 570px;
  max-height: 570px;
  width: 440px;
  object-fit: cover;
  object-position: top;
}

#ceo-statement img.loaded {
  min-height: 570px;
  max-height: 570px;
  width: 440px;
  object-fit: cover;
  object-position: top;
}

/* Responsive adjustments for CEO image */
@media (max-width: 768px) {
  #ceo-statement img[loading="lazy"],
  #ceo-statement img.loaded {
    min-height: 400px;
    max-height: 400px;
    width: 310px;
  }
}

@media (max-width: 480px) {
  #ceo-statement img[loading="lazy"],
  #ceo-statement img.loaded {
    min-height: 300px;
    max-height: 300px;
    width: 235px;
  }
}



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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes loadingBar {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animation-delay-200 {
  animation-delay: 200ms;
}

.loading-bar {
  animation: loadingBar 3s ease-out forwards;
}

/* ==========================================
   Header & Navigation
   ========================================== */
#header {
  transition: all var(--tcc-transition-normal);
  max-width: 100vw;
  overflow-x: hidden;
  /* Removed background-color to use inline styles from header.php */
}

/* Ensure header doesn't overflow */
#header nav {
  max-width: 100%;
  overflow-x: hidden;
}

#header .flex {
  flex-wrap: nowrap;
  min-width: 0;
}

#header.scrolled {
  /* Removed background-color to use inline styles from header.php */
  box-shadow: var(--tcc-shadow-md);
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: all var(--tcc-transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tcc-primary), var(--tcc-secondary));
  transition: width var(--tcc-transition-normal);
}

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

/* Mobile Menu */
#mobile-menu {
  transition: all var(--tcc-transition-normal);
  max-width: 100vw;
  overflow-x: hidden;
}

#mobile-menu .flex {
  flex-direction: column;
  width: 100%;
}

.mobile-nav-link {
  padding: var(--tcc-spacing-md);
  border-radius: var(--tcc-radius-md);
  transition: all var(--tcc-transition-normal);
}

.mobile-nav-link:hover {
  background-color: var(--tcc-gray-100);
  color: var(--tcc-primary);
}

/* Language Toggle */
.language-toggle a {
  font-weight: 500;
  transition: all var(--tcc-transition-normal);
}

/* Mobile Menu Button */
#mobile-menu-btn {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

/* Logo Container */
.header-logo {
  flex-shrink: 0;
  max-width: 200px;
}

.header-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  object-position: center;
}

/* Loading screen logos */
#loading-screen img {
  object-fit: contain;
  object-position: center;
}

/* Footer logo */
footer img {
  object-fit: contain;
  object-position: center;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .desktop-nav {
    flex-shrink: 1;
    min-width: 0;
  }
  
  .desktop-nav a {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ==========================================
   Hero Section & Parallax
   ========================================== */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  animation: heroFloat 20s ease-in-out infinite;
}

.parallax-bg {
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

/* Hero Background Animation */
@keyframes heroFloat {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
  25% {
    transform: scale(1.05) translate(-10px, -5px) rotate(0.5deg);
  }
  50% {
    transform: scale(1.1) translate(5px, -10px) rotate(-0.5deg);
  }
  75% {
    transform: scale(1.05) translate(10px, 5px) rotate(0.3deg);
  }
  100% {
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
}

@keyframes heroSway {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  33% {
    transform: translateX(-15px) scale(1.03);
  }
  66% {
    transform: translateX(15px) scale(1.06);
  }
}

.hero-bg.animated-sway {
  animation: heroSway 15s ease-in-out infinite;
}

.hero-bg.animated-float {
  animation: heroFloat 25s ease-in-out infinite;
}

/* Enhanced Hero Section Animations */
@keyframes heroPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.02);
  }
}

@keyframes heroGlow {
  0%, 100% {
    filter: brightness(1) contrast(1);
  }
  50% {
    filter: brightness(1.1) contrast(1.1);
  }
}

/* Interactive Hero Effects */
.hero-section:hover .hero-bg {
  animation-duration: 10s;
  filter: brightness(1.1) saturate(1.2);
}

.hero-section:active .hero-bg {
  transform: scale(1.15) !important;
  transition: transform 0.3s ease-out;
}

/* Hero Content Animations */
.hero-content h1 {
  background: linear-gradient(135deg, var(--tcc-white) 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Event Highlight Box */
.event-highlight {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--tcc-transition-normal);
}

.event-highlight:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--tcc-shadow-lg);
}

/* ==========================================
   Event Section - SkyOne Integration
   ========================================== */
.event-section {
  background: linear-gradient(135deg, var(--skyone-primary) 0%, var(--skyone-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.event-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.event-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--tcc-transition-normal);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tcc-shadow-2xl);
}

/* Video Container */
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--tcc-radius-2xl);
  box-shadow: var(--tcc-shadow-xl);
}

.video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  pointer-events: none;
}

/* Image Gallery */
.event-gallery img {
  transition: all var(--tcc-transition-normal);
  border-radius: var(--tcc-radius-lg);
}

.event-gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--tcc-shadow-xl);
}

/* ==========================================
   Services Section
   ========================================== */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all var(--tcc-transition-slow);
  border-radius: var(--tcc-radius-2xl);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--tcc-transition-slow);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--tcc-shadow-2xl);
}

.service-icon {
  transition: all var(--tcc-transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ==========================================
   Buttons & CTAs
   ========================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--tcc-primary), var(--tcc-primary-dark));
  color: var(--tcc-white);
  padding: var(--tcc-spacing-md) var(--tcc-spacing-xl);
  border-radius: var(--tcc-radius-lg);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all var(--tcc-transition-normal);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--tcc-transition-normal);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--tcc-shadow-lg);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--tcc-secondary), var(--tcc-secondary-dark));
  color: var(--tcc-white);
  padding: var(--tcc-spacing-md) var(--tcc-spacing-xl);
  border-radius: var(--tcc-radius-lg);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all var(--tcc-transition-normal);
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--tcc-shadow-lg);
}

/* Ensure readable text on white-background buttons inside service cards */
.service-card button.bg-white:not([class*="text-"]),
.service-card a.bg-white:not([class*="text-"]) {
  color: var(--tcc-secondary);
}

/* Override button text colors for specific service cards */
.service-card button.bg-white[class*="text-[#003366]"] {
  color: #003366 !important;
}

.service-card button.bg-white.text-red-600 {
  color: #dc2626 !important;
}

.service-card button.bg-white[class*="text-[#C8102E]"] {
  color: #C8102E !important;
}

.service-card button.bg-white.text-orange-600 {
  color: #ea580c !important;
}

/* Ensure outline buttons on dark backgrounds remain legible */
.service-card .border-white,
.service-card .border-white * {
  color: var(--tcc-white) !important;
}

/* ==========================================
   Form Styles
   ========================================== */
.form-group {
  margin-bottom: var(--tcc-spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--tcc-spacing-sm);
  font-weight: 500;
  color: var(--tcc-gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--tcc-spacing-md);
  border: 2px solid var(--tcc-gray-300);
  border-radius: var(--tcc-radius-md);
  font-size: 1rem;
  transition: all var(--tcc-transition-normal);
  background-color: var(--tcc-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--tcc-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--tcc-primary);
}

.form-error {
  color: var(--tcc-error);
  font-size: 0.875rem;
  margin-top: var(--tcc-spacing-xs);
}

/* ==========================================
   Cards & Containers - Enhanced
   ========================================== */
.card {
  background: var(--tcc-white);
  border-radius: var(--tcc-radius-xl);
  box-shadow: var(--tcc-shadow-md);
  padding: var(--tcc-spacing-xl);
  transition: all var(--tcc-transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: var(--tcc-shadow-xl);
  transform: translateY(-4px);
  border-color: rgba(200, 16, 46, 0.1);
}

/* Service Cards Enhanced */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all var(--tcc-transition-slow);
  border-radius: var(--tcc-radius-2xl);
  /* Removed background to allow inline styles to work */
}

.service-card::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 var(--tcc-transition-slow);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Improve legibility of text on gradient/dark service cards */
.service-card h3,
.service-card p,
.service-card .text-white,
.service-card .text-white\/90 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Ensure feature list items are visible */
.service-card .space-y-2 span {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Ensure button text in service cards is clearly readable */
.service-card button,
.service-card a.bg-white {
  text-shadow: none !important;
  font-weight: 600 !important;
}

/* Force specific text colors for service card buttons */
.service-card button.bg-white,
.service-card a.bg-white {
  color: #1f2937 !important; /* Dark gray text for visibility */
  font-weight: 600 !important;
  text-shadow: none !important;
}

.service-card button.bg-white:hover,
.service-card a.bg-white:hover {
  color: #1f2937 !important;
  font-weight: 600 !important;
}

/* Specific button color overrides with higher specificity */
.service-card button.bg-white.text-red-600,
.service-card a.bg-white.text-red-600 {
  color: #dc2626 !important;
}

.service-card button.bg-white.text-red-600:hover,
.service-card a.bg-white.text-red-600:hover {
  color: #dc2626 !important;
}

.service-card button.bg-white.text-orange-600,
.service-card a.bg-white.text-orange-600 {
  color: #ea580c !important;
}

.service-card button.bg-white.text-orange-600:hover,
.service-card a.bg-white.text-orange-600:hover {
  color: #ea580c !important;
}

.service-card button.bg-white.text-blue-600,
.service-card a.bg-white.text-blue-600 {
  color: #2563eb !important;
}

.service-card button.bg-white.text-blue-600:hover,
.service-card a.bg-white.text-blue-600:hover {
  color: #2563eb !important;
}

.service-card button.bg-white.text-green-600,
.service-card a.bg-white.text-green-600 {
  color: #16a34a !important;
}

.service-card button.bg-white.text-green-600:hover,
.service-card a.bg-white.text-green-600:hover {
  color: #16a34a !important;
}

/* ==========================================
   Animations & Micro-interactions - Enhanced
   ========================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(200, 16, 46, 0.6);
  }
}

@keyframes bounce-in {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slide-up {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in-scale {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

.animate-bounce-in {
  animation: bounce-in 0.6s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out;
}

.animate-fade-in-scale {
  animation: fade-in-scale 0.5s ease-out;
}

/* Hover Effects - Enhanced */
.hover-lift {
  transition: all var(--tcc-transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--tcc-shadow-lg);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(200, 16, 46, 0.3);
}

.hover-scale {
  transition: all var(--tcc-transition-normal);
}

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

.hover-rotate {
  transition: all var(--tcc-transition-normal);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-bounce {
  transition: all var(--tcc-transition-normal);
}

.hover-bounce:hover {
  animation: bounce 0.6s ease-in-out;
}

/* Button Hover Effects */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
  transition: all var(--tcc-transition-normal);
}

.btn-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--tcc-transition-normal);
}

.btn-hover-effect:hover::before {
  left: 100%;
}

.btn-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: var(--tcc-shadow-lg);
}

/* ==========================================
   Back to Top Button
   ========================================== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--tcc-primary), var(--tcc-secondary));
  color: var(--tcc-white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--tcc-shadow-lg);
  transition: all var(--tcc-transition-normal);
  z-index: var(--tcc-z-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--tcc-shadow-xl);
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Mobile First Approach - Fixed */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--tcc-spacing-md);
  overflow-x: hidden;
}

/* Fix for horizontal overflow */
body, html {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure all sections don't exceed viewport */
section {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile Responsive Utilities - Enhanced */
@media (max-width: 768px) {
  .mobile-text-center {
    text-align: center;
  }
  
  .mobile-margin-bottom {
    margin-bottom: var(--tcc-spacing-xl);
  }
  
  .mobile-padding {
    padding: var(--tcc-spacing-md);
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  /* Enhanced Mobile Typography */
  .mobile-text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  .mobile-text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  /* Mobile Button Improvements */
  .mobile-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 44px; /* iOS touch target */
    border-radius: 0.5rem;
  }
  
  /* Mobile Card Improvements */
  .mobile-card {
    margin: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  /* Mobile Spacing */
  .mobile-space-y-4 > * + * {
    margin-top: 1rem;
  }
  
  .mobile-space-y-6 > * + * {
    margin-top: 1.5rem;
  }
  
  /* Mobile Grid Improvements */
  .mobile-grid-1 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Mobile Navigation Improvements */
  .mobile-nav-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Mobile Hero Section */
  .mobile-hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .mobile-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  /* Mobile Service Cards */
  .mobile-service-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .mobile-service-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
  }
  
  .mobile-service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .mobile-service-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
}

/* ==========================================
   Accessibility & RTL Support
   ========================================== */

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --tcc-primary: #0000ff;
    --tcc-secondary: #ff6600;
    --tcc-gray-800: #000000;
    --tcc-white: #ffffff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--tcc-primary);
  outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--tcc-gray-900);
  color: var(--tcc-white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--tcc-radius-md);
  z-index: var(--tcc-z-tooltip);
}

.skip-link:focus {
  top: 6px;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .ml-auto {
  margin-left: unset;
  margin-right: auto;
}

[dir="rtl"] .mr-auto {
  margin-right: unset;
  margin-left: auto;
}

[dir="rtl"] .text-left {
  text-align: right;
}

[dir="rtl"] .text-right {
  text-align: left;
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr,
  img {
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================
   Our Partners Section
   ========================================== */
.partner-card {
  position: relative;
  overflow: hidden;
  transition: all var(--tcc-transition-normal);
  cursor: pointer;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--tcc-primary), var(--tcc-secondary));
  opacity: 0;
  transition: opacity var(--tcc-transition-normal);
  z-index: 1;
}

.partner-card:hover::before {
  opacity: 0.05;
}

.partner-card img {
  position: relative;
  z-index: 2;
  transition: all var(--tcc-transition-normal);
  max-height: 60px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card:hover img {
  transform: scale(1.1);
  filter: grayscale(0) !important;
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tcc-shadow-2xl);
  border-color: var(--tcc-primary);
}

/* Partner section container optimization */
#partners .container {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

#partners .grid {
  margin: 0 auto;
  width: 100%;
}

/* Responsive partner cards */
@media (max-width: 768px) {
  .partner-card {
    padding: 0.75rem;
    min-height: 80px;
  }
  
  .partner-card img {
    max-height: 50px;
    max-width: 100px;
  }
}

@media (max-width: 640px) {
  .partner-card {
    padding: 0.5rem;
    min-height: 70px;
  }
  
  .partner-card img {
    max-height: 40px;
    max-width: 80px;
  }
}

@media (max-width: 390px) {
  .partner-card {
    padding: 0.4rem;
    min-height: 60px;
  }
  
  .partner-card img {
    max-height: 35px;
    max-width: 70px;
  }
}

/* ==========================================
   Visual Hierarchy & Layout Utilities
   ========================================== */

/* Visual Hierarchy Classes */
.visual-priority-1 {
  z-index: 10;
  transform: scale(1);
}

.visual-priority-2 {
  z-index: 5;
  transform: scale(0.98);
}

.visual-priority-3 {
  z-index: 1;
  transform: scale(0.96);
}

/* Focus States */
.focus-primary:focus {
  outline: 2px solid var(--tcc-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

.focus-secondary:focus {
  outline: 2px solid var(--tcc-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

/* Layout Utilities */
.container-fluid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
}

/* Spacing System */
.space-section {
  padding: 5rem 0;
}

.space-section-sm {
  padding: 3rem 0;
}

.space-section-lg {
  padding: 8rem 0;
}

/* ==========================================
   Utility Classes
   ========================================== */

/* Typography Utilities - Enhanced */
.font-display {
  font-family: var(--tcc-font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.font-body {
  font-family: var(--tcc-font-primary);
  font-weight: 400;
  line-height: 1.6;
}

.font-heading {
  font-family: var(--tcc-font-secondary);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--tcc-primary), var(--tcc-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Typography Classes */
.heading-xl {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.heading-lg {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.heading-sm {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
}

.body-md {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.body-sm {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Background Utilities */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--tcc-primary), var(--tcc-primary-dark));
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--tcc-secondary), var(--tcc-secondary-dark));
}

.bg-gradient-skyone {
  background: linear-gradient(135deg, var(--skyone-primary), var(--skyone-secondary));
}

/* Spacing Utilities */
.section-padding {
  padding: var(--tcc-spacing-3xl) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--tcc-spacing-2xl) 0;
  }
}

/* Animation Utilities */
.animate-delay-100 {
  animation-delay: 100ms;
}

.animate-delay-200 {
  animation-delay: 200ms;
}

.animate-delay-300 {
  animation-delay: 300ms;
}

.animate-delay-400 {
  animation-delay: 400ms;
}

.animate-delay-500 {
  animation-delay: 500ms;
}

/* ==========================================
   Custom Components
   ========================================== */

/* Stats Counter */
.stats-counter {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--tcc-primary), var(--tcc-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Testimonial Card */
.testimonial-card {
  background: var(--tcc-white);
  border-radius: var(--tcc-radius-2xl);
  padding: var(--tcc-spacing-xl);
  box-shadow: var(--tcc-shadow-lg);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  color: var(--tcc-primary);
  opacity: 0.1;
  font-family: var(--tcc-font-secondary);
}

/* Pricing Card */
.pricing-card {
  background: var(--tcc-white);
  border-radius: var(--tcc-radius-2xl);
  padding: var(--tcc-spacing-xl);
  box-shadow: var(--tcc-shadow-lg);
  transition: all var(--tcc-transition-normal);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid var(--tcc-primary);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--tcc-primary);
  color: var(--tcc-white);
  padding: 5px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
}

/* ==========================================
   Dark Mode Support (Future Enhancement)
   ========================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --tcc-gray-800: #f9fafb;
    --tcc-gray-700: #f3f4f6;
    --tcc-gray-600: #e5e7eb;
    --tcc-gray-100: #1f2937;
    --tcc-gray-50: #111827;
    --tcc-white: #0f172a;
  }
  
  body {
    background-color: var(--tcc-white);
    color: var(--tcc-gray-800);
  }
}

/* ==========================================
   Performance Optimizations
   ========================================== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  transition: opacity 0.3s;
}

/* Critical CSS Above the Fold */
.critical {
  display: block !important;
}
/* ==========================================
   Header & Navigation Fixes
   ========================================== */

#header {
  max-width: 100vw;
  overflow-x: hidden;
}

#header nav {
  max-width: 100%;
  overflow-x: hidden;
}

#header .flex {
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  white-space: nowrap;
}

.mobile-nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin: 0.25rem 0;
  display: block;
}

.mobile-nav-link:hover {
  background-color: var(--tcc-gray-100);
}

/* Mobile menu button */
#mobile-menu-btn {
  padding: 0.5rem;
  transition: var(--tcc-transition);
}

#mobile-menu-btn:hover {
  background-color: var(--tcc-gray-100);
  border-radius: 0.5rem;
}

/* Language toggle spacing */
.flex.items-center.space-x-2 {
  margin-left: 1rem;
}

/* ==========================================
   End of Styles
   ========================================== */
