/* Colocation Hero Section */
.colocation-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  overflow: hidden;
}

.colocation-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/datacenter-bg.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
}

.colocation-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.colocation-hero .hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.colocation-hero .hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.service-features {
  text-align: left;
}

.service-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: var(--gray-color);
}

.service-features i {
  margin-right: 10px;
  color: var(--success-color);
}

/* Specifications Section */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.spec-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.spec-item:hover {
  transform: translateY(-5px);
}

.spec-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spec-label {
  font-size: 1.2rem;
  color: var(--gray-color);
}

/* Sustainability Section */
.sustainability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.sustainability-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sustainability-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.sustainability-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.sustainability-card p {
  color: var(--gray-color);
}

.certifications {
  margin-top: 60px;
  text-align: center;
}

.certifications h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.certifications ul {
  display: inline-block;
  text-align: left;
}

.certifications li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.certifications i {
  margin-right: 10px;
  color: var(--primary-color);
}

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

.hero-section .stat-item:nth-child(1) { animation-delay: 0.2s; }
.hero-section .stat-item:nth-child(2) { animation-delay: 0.4s; }
.hero-section .stat-item:nth-child(3) { animation-delay: 0.6s; }
.hero-section .stat-item:nth-child(4) { animation-delay: 0.8s; }

/* Enhanced form field states and animations */
.form-group {
  transition: all 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
  opacity: 1 !important;
  visibility: visible !important;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group.focused input,
.form-group.focused select,
.form-group.focused textarea {
  border-color: #ff6600 !important;
}

.form-group.filled {
  animation: none;
}

.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
  border-color: rgba(34, 197, 94, 0.5) !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
}

/* Form completion states */
.config-form.form-partial {
  border-left: 4px solid rgba(255, 193, 7, 0.5);
}

.config-form.form-complete {
  border-left: 4px solid rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.config-form.form-complete::after {
  content: '✓';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  animation: checkmarkBounce 0.6s ease-out;
}

@keyframes checkmarkBounce {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Premium Colocation Configuration Styles */
.colocation-config {
  background: linear-gradient(135deg, #f8fafd 0%, #eef2f7 100%);
  min-height: 100vh;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.colocation-config::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/tech-bg-pattern.svg') repeat;
  opacity: 0.03;
  z-index: 0;
}

.colocation-config .container {
  position: relative;
  z-index: 1;
}

.config-form {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(20px);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 10px 30px rgba(255, 102, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 900px;
  margin: 0 auto;
  animation: formFadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  transform: translateY(30px);
  opacity: 0;
}

@keyframes formFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6600 0%, #ff3c00 50%, #e63946 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Smaller minimum width */
  gap: 16px; /* Reduced gap for more compact layout */
  margin-bottom: 16px; /* Reduced margin */
}

.form-group {
  margin-bottom: 16px; /* Reduced margin for compactness */
  position: relative;
  opacity: 1;
  transform: translateX(0);
}

@keyframes fieldSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-group label {
  display: block;
  margin-bottom: 6px; /* Reduced margin for compactness */
  font-weight: 700;
  font-size: 0.9rem; /* Slightly smaller label text */
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.form-group label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #ff6600, #ff3c00);
  border-radius: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px; /* Further reduced for compact look */
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: 6px; /* Smaller border radius */
  font-family: var(--font-primary);
  font-size: 0.85rem; /* Smaller font size */
  font-weight: 500;
  color: #2c3e50;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 38px; /* Smaller minimum height */
  outline: none;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(255, 102, 0, 0.4);
  box-shadow: 
    0 4px 16px rgba(255, 102, 0, 0.08),
    0 0 12px rgba(255, 102, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px) scale(1.005);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ff6600;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
  box-shadow: 
    0 8px 25px rgba(255, 102, 0, 0.2),
    0 0 20px rgba(255, 102, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(255, 102, 0, 0.1);
  transform: translateY(-3px) scale(1.02);
}

/* Enhanced placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(107, 114, 128, 0.7);
  font-size: 0.8rem;
  font-style: italic;
  transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  color: rgba(255, 102, 0, 0.4);
  transform: translateY(-2px);
}

/* Enhanced select dropdown styling */
.form-group select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #ff6600 50%),
                    linear-gradient(135deg, #ff6600 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% + 1px),
                       calc(100% - 12px) calc(50% + 1px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-group select:focus {
  background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%),
                    linear-gradient(135deg, #ffffff 50%, transparent 50%);
}

/* Enhanced number input styling */
.form-group input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add subtle pulse animation for empty required fields */
.form-group input:required:invalid:not(:focus):not(:placeholder-shown) {
  animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
  0%, 100% { 
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  50% { 
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
  }
}

/* Enhanced textarea specific styling */
.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-group textarea:focus {
  min-height: 100px;
}

/* Success state for completely filled forms */
.form-success .form-group input:valid,
.form-success .form-group select:valid,
.form-success .form-group textarea:valid {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Loading state for form submission */
.form-loading .form-group input,
.form-loading .form-group select,
.form-loading .form-group textarea {
  pointer-events: none;
  opacity: 0.7;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Premium Resources Section */
.resources-section {
  margin: 30px 0;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.08) 0%, rgba(255, 60, 0, 0.05) 100%);
  border-radius: 16px;
  border: 2px solid rgba(255, 102, 0, 0.15);
  box-shadow: 
    0 15px 35px rgba(255, 102, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.resources-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.03) 0%, transparent 70%);
  animation: resourcesGlow 4s ease-in-out infinite alternate;
}

@keyframes resourcesGlow {
  from { transform: scale(0.8) rotate(0deg); }
  to { transform: scale(1.2) rotate(180deg); }
}

.resources-section h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.resources-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff6600, #ff3c00);
  border-radius: 2px;
}

/* Premium Price Summary */
.price-summary {
  margin: 45px 0 35px;
  padding: 40px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 20px;
  color: white;
  box-shadow: 
    0 20px 40px rgba(44, 62, 80, 0.3),
    0 10px 25px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.price-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  animation: priceShimmer 3s linear infinite;
}

@keyframes priceShimmer {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

.price-summary h3 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.price-grid {
  display: grid;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.price-item span:first-child {
  font-weight: 600;
  font-size: 1.1rem;
}

.price-item span:last-child {
  font-weight: 700;
  font-size: 1.2rem;
  color: #ff9f43;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.price-total {
  margin-top: 20px;
  padding: 20px 25px;
  background: linear-gradient(135deg, #ff6600 0%, #ff3c00 100%);
  border-radius: 15px;
  box-shadow: 
    0 10px 25px rgba(255, 102, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.price-total span {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Premium Submit Button */
.submit-btn {
  width: 100%;
  max-width: 400px;
  margin: 40px auto 0;
  display: block;
  padding: 20px 40px;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff6600 0%, #ff3c00 50%, #e63946 100%);
  color: white;
  border: none;
  border-radius: 15px;
  box-shadow: 
    0 15px 35px rgba(255, 102, 0, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.submit-btn::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 0.5s;
}

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

.form-complete .submit-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { 
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
  }
  50% { 
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .colocation-hero {
    min-height: 60vh;
    padding: 100px 0 60px;
  }
  
  .colocation-hero .hero-title {
    font-size: 3rem;
  }
  
  .colocation-hero .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-height: 36px;
  }
  
  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  
  .config-form {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .colocation-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 5px 8px;
    font-size: 0.75rem;
    min-height: 34px;
  }
  
  .form-group label {
    font-size: 0.8rem;
  }
}

/* Enhanced Header and Products Dropdown */
.header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header .nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header .nav-links ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

/* Enhanced Products Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 25px rgba(255, 102, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  margin-top: 10px;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  margin: 5px;
  position: relative;
  overflow: hidden;
}

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

.dropdown-content a:hover {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(255, 60, 0, 0.05) 100%);
  color: #ff6600;
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.2);
}

.dropdown-content a:hover::before {
  left: 100%;
}

.dropdown-content a i {
  font-size: 1.1rem;
  width: 18px;
  text-align: center;
  color: #ff6600;
}

.dropdown-content a:first-child {
  margin-top: 8px;
}

.dropdown-content a:last-child {
  margin-bottom: 8px;
}

/* Mobile Menu Adjustments */
@media (max-width: 768px) {
  .header .navbar {
    justify-content: space-between;
  }
  
  .header .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
}

/* --- FOOTER ANIMATIONS --- */
.footer {
  position: relative;
  overflow: hidden;
  animation: fadeInFooter 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
}
.footer-newsletter-section, .footer-content {
  opacity: 0;
  transform: translateY(40px);
  animation: footerSectionFadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}
.footer-content {
  animation-delay: 1s;
}
.footer-logo img, .footer-links, .footer-services, .footer-contact {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: footerItemFadeIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}
.footer-links { animation-delay: 1.3s; }
.footer-services { animation-delay: 1.4s; }
.footer-contact { animation-delay: 1.5s; }
.footer-logo img { animation-delay: 1.2s; }

@keyframes fadeInFooter {
  from { opacity: 0; transform: translateY(60px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes footerSectionFadeIn {
  to { opacity: 1; transform: none; }
}
@keyframes footerItemFadeIn {
  to { opacity: 1; transform: none; }
}

/* Subtle floating animation for social icons */
.footer .social-icon {
  animation: socialFloat 2.8s ease-in-out infinite alternate;
}
.footer .social-icon:nth-child(2) { animation-delay: 0.2s; }
.footer .social-icon:nth-child(3) { animation-delay: 0.4s; }
.footer .social-icon:nth-child(4) { animation-delay: 0.6s; }
@keyframes socialFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-8px) scale(1.08); }
}

/* --- FOOTER MAIN STYLES --- */
.footer { 
  background-color: var(--white); 
  color: var(--dark-color); 
  padding: 60px 0 60px; 
  position: relative; 
  overflow: hidden; 
}

/* Wave background - subtle and non-interfering */
.footer::before { 
  content: ''; 
  position: absolute; 
  top: -30px; 
  left: 0; 
  width: 100%; 
  height: calc(100% + 60px); 
  background-image: url('/parallax-bg-wave.png'); 
  background-size: cover; 
  background-position: center bottom; 
  background-attachment: fixed; 
  background-repeat: no-repeat; 
  opacity: 0.08; 
  z-index: 1; 
  transform: scale(1.05);
}

/* Text and content above background */
.footer .container { 
  position: relative; 
  z-index: 10; 
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(2px);
}

/* Newsletter Section */
.footer-newsletter-section { 
  background: var(--gradient-primary); 
  border-radius: 15px; 
  padding: 40px; 
  margin-bottom: 60px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 30px; 
  position: relative; 
  z-index: 15; 
}
.newsletter-content h2 { 
  color: var(--white); 
  font-size: 2.5rem; 
  margin-bottom: 10px; 
  font-weight: 700; 
}
.newsletter-content p { 
  color: rgba(255,255,255,0.9); 
  font-size: 1.1rem; 
  margin: 0; 
}
.footer-newsletter-section .newsletter-form { 
  display: flex; 
  gap: 15px; 
  align-items: center; 
  flex-wrap: wrap; 
}
.footer-newsletter-section .newsletter-form input { 
  padding: 12px 20px; 
  border: none; 
  border-radius: 25px; 
  font-size: 1rem; 
  min-width: 250px; 
  outline: none; 
}
.footer-newsletter-section .newsletter-form button { 
  padding: 12px 25px; 
  background-color: var(--white); 
  color: var(--primary-color); 
  border: none; 
  border-radius: 25px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s; 
}
.footer-newsletter-section .newsletter-form button:hover { 
  background-color: rgba(255,255,255,0.9); 
  transform: translateY(-2px); 
}

/* Footer Content Grid */
.footer-content { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 1.5fr; 
  gap: 40px; 
  margin-bottom: 40px; 
}

/* Footer Logo Section */
.footer-logo { 
  max-width: 350px; 
}
.footer-logo img { 
  height: 80px; 
  width: auto; 
  margin-bottom: 20px;
  /* Ensure logo is always visible */
  filter: brightness(0.8) contrast(1.2);
  /* Add subtle background for better visibility */
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.05) 0%, rgba(255, 60, 0, 0.03) 100%);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.15);
  filter: brightness(0.9) contrast(1.3);
}
.footer-logo p { 
  color: rgba(0,0,0,0.7); 
  line-height: 1.6; 
  margin-bottom: 25px; 
  font-size: 0.95rem; 
}

/* Social Icons */
.social-icons { 
  display: flex; 
  gap: 15px; 
}
.social-icon { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  background: rgba(0,0,0,0.1); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--dark-color); 
  transition: all 0.3s; 
  text-decoration: none; 
}
.social-icon:hover {
    background: rgba(255,60,0,0.15); /* subtle orange glow */
    box-shadow: 0 4px 16px rgba(255,60,0,0.18);
    transform: translateY(-3px) scale(1.08);
    color: var(--primary-color);
}

/* Footer Links and Services */
.footer-links h3, .footer-services h3, .footer-contact h3 { 
  color: var(--dark-color); 
  font-size: 1.3rem; 
  margin-bottom: 25px; 
  font-weight: 600; 
}
.footer-links ul, .footer-services ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}
.footer-links ul li, .footer-services ul li { 
  margin-bottom: 12px; 
}
.footer-links a, .footer-services a { 
  color: rgba(0,0,0,0.6); 
  text-decoration: none; 
  transition: color 0.3s; 
  font-size: 0.95rem; 
}
.footer-links a:hover, .footer-services a:hover { 
  color: var(--primary-color); 
}

/* Contact Section */
.contact-item { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
  margin-bottom: 20px; 
}
.contact-icon { 
  width: 45px; 
  height: 45px; 
  border-radius: 50%; 
  background: var(--primary-color); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--white); 
  font-size: 1.1rem; 
}
.contact-info { 
  display: flex; 
  flex-direction: column; 
}
.contact-label { 
  color: var(--primary-color); 
  font-size: 0.85rem; 
  font-weight: 600; 
  margin-bottom: 2px; 
}
.contact-value { 
  color: var(--dark-color); 
  font-size: 1rem; 
  font-weight: 500; 
}

/* --- FOOTER DIVIDER --- */
.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 20%,
    rgba(0, 0, 0, 0.3) 80%,
    transparent 100%
  );
  margin: 40px 0 0 0;
  position: relative;
  z-index: 12;
}

/* Enhanced text contrast for footer */
.footer-links h3, 
.footer-services h3, 
.footer-contact h3 { 
  color: var(--dark-color) !important; 
  font-size: 1.3rem; 
  margin-bottom: 25px; 
  font-weight: 700 !important; 
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.footer-links a, 
.footer-services a { 
  color: rgba(0, 0, 0, 0.8) !important; 
  text-decoration: none; 
  transition: color 0.3s; 
  font-size: 0.95rem; 
  font-weight: 500 !important;
}

.footer-logo p { 
  color: rgba(0, 0, 0, 0.8) !important; 
  line-height: 1.6; 
  margin-bottom: 25px; 
  font-size: 0.95rem; 
  font-weight: 500 !important;
}

/* Enhanced Footer Logo Visibility */
.footer-logo img {
  /* Ensure VTL logo is always visible with proper contrast */
  filter: brightness(0.8) contrast(1.2) !important;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.05) 0%, rgba(255, 60, 0, 0.03) 100%) !important;
  border-radius: 12px !important;
  padding: 10px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  height: 80px !important;
}

.contact-label { 
  color: var(--primary-color) !important; 
  font-size: 0.85rem; 
  font-weight: 700 !important; 
  margin-bottom: 2px; 
}

.contact-value { 
  color: var(--dark-color) !important; 
  font-size: 1rem; 
  font-weight: 600 !important; 
}

/* --- FOOTER RESPONSIVE --- */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
  }
  .footer-logo { max-width: 260px; }
}
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .footer-logo { max-width: 100%; }
}
@media (max-width: 700px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }
  .footer-logo, .footer-links, .footer-services, .footer-contact {
    margin-bottom: 28px;
    max-width: 100%;
  }
  .footer-newsletter-section {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 10px;
    gap: 18px;
  }
  .footer-newsletter-section .newsletter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .footer-newsletter-section .newsletter-form input {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .footer {
    padding: 36px 0 0;
  }
  .footer-newsletter-section {
    padding: 16px 4px;
  }
  .footer-content {
    margin-bottom: 18px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  background: linear-gradient(135deg, #ff6600, #ff8533);
  color: white;
  padding: 24px 30px;
  border-radius: 16px 16px 0 0;
  position: relative;
  text-align: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-header i {
  font-size: 1.8rem;
}

.close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close:hover,
.close:focus {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.modal-body {
  padding: 30px;
}

.modal-subtitle {
  margin-bottom: 25px;
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.modal .form-group {
  margin-bottom: 20px;
}

.modal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.modal .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fafbfc;
}

.modal .form-group input:focus {
  outline: none;
  border-color: #ff6600;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.modal .form-group input:valid {
  border-color: #10b981;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: flex-end;
}

.modal-actions .btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-actions .btn-secondary {
  background-color: #6b7280;
  color: white;
}

.modal-actions .btn-secondary:hover {
  background-color: #4b5563;
  transform: translateY(-1px);
}

.modal-actions .btn-primary {
  background: linear-gradient(135deg, #ff6600, #ff8533);
  color: white;
}

.modal-actions .btn-primary:hover {
  background: linear-gradient(135deg, #e55a00, #ff6600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.modal-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.modal-actions .btn.loading {
  position: relative;
  overflow: hidden;
}

.modal-actions .btn.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 1.5s infinite;
}

/* Modal Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .modal-header {
    padding: 20px 25px;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .modal-body {
    padding: 25px 20px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Form Status Messages in Modal */
.modal .form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.modal .form-status.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.modal .form-status.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.modal .form-status i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.modal .form-status strong {
  display: block;
  margin-bottom: 5px;
}

.modal .form-status small {
  display: block;
  margin-top: 8px;
  opacity: 0.8;
}