@import url(https://fonts.googleapis.com/css2?family=Karla:wght@200;300;400;500;600;700;800&display=swap);

/* About Section Card Hover Effects */
.about-card {
  cursor: default;
}

.about-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
}

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

@media (max-width: 991px) {
  .about-card {
    margin-bottom: 2rem;
  }
}

.mb-12 {
  margin-bottom: 24px;
}

/* Contact Section Styles */
.contact-input:focus {
  outline: none !important;
  border-color: #000 !important;
  background: white !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

.contact-form-card {
  position: relative;
}

.contact-info-card {
  position: relative;
}

.contact-info-item {
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-item a:hover {
  color: #000 !important;
  text-decoration: underline !important;
}

.black-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Hero Section Buttons */
.hero-cta .black-btn,
.hero-cta .white-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 56px !important;
  min-width: 160px !important;
  padding: 0 2.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

.hero-cta .black-btn {
  background: #000 !important;
  color: white !important;
  border: 2px solid #000 !important;
}

.hero-cta .white-btn {
  background: white !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

.hero-cta .black-btn:hover {
  background: #333 !important;
  border-color: #333 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta .white-btn:hover {
  background: #f8f9fa !important;
  border-color: #333 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
  .contact-form-card,
  .contact-info-card {
    margin-bottom: 2rem;
  }
}

/* Waitlist Modal Styles */
#waitlistModal .form-control:focus,
#successModal .form-control:focus,
#waitlistModal select:focus,
#successModal select:focus {
  outline: none !important;
  border-color: #000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
  background: white !important;
}

#waitlistModal select.form-control,
#successModal select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem !important;
}

#waitlistModal .modal-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

#successModal .modal-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

#waitlistSubmitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Featured Servers Card Styles */
.feature-pro .big-card {
  background: white;
  border-radius: clamp(12px, 1.5vw, 16px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  min-height: 0; /* Prevents flex overflow issues */
}

.feature-pro .big-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #e0e0e0;
}

.feature-pro .card-img {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  width: 100%;
  height: clamp(150px, 20vw, 200px);
  min-height: 150px;
  max-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: clamp(8px, 1vw, 10px);
  flex-shrink: 0;
}

.feature-pro .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-pro .big-card:hover .card-img img {
  transform: scale(1.05);
}

.feature-pro .card-content {
  padding: clamp(1rem, 1.5vw, 1.25rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Prevents flex overflow */
}

.feature-pro .card-content h4 {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700;
  color: #000;
  margin-bottom: clamp(0.5rem, 0.8vw, 0.75rem);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feature-pro .pro-info {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(0.75rem, 1vw, 1rem) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}

.feature-pro .pro-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  background: #f8f9fa;
  padding: clamp(0.4rem, 0.6vw, 0.5rem) clamp(0.7rem, 0.9vw, 0.875rem);
  border-radius: clamp(6px, 0.8vw, 8px);
  flex: 0 1 calc(50% - 0.2rem);
  min-width: calc(50% - 0.2rem);
  max-width: calc(50% - 0.2rem);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.feature-pro .big-card:hover .pro-info li {
  background: #f0f0f0;
}

.feature-pro .pro-info li img {
  width: clamp(16px, 1.2vw, 18px);
  height: clamp(16px, 1.2vw, 18px);
  min-width: 16px;
  min-height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-pro .pro-info li h6 {
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  word-break: break-word;
  line-height: 1.3;
  width: 100%;
}

.feature-pro .pro-info li h6 span {
  color: #666;
  font-weight: 500;
  display: block;
  width: 100%;
}

.feature-pro .invest-details {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: clamp(0.75rem, 1vw, 1rem);
  border-radius: clamp(10px, 1.2vw, 12px);
  margin-bottom: clamp(0.75rem, 1vw, 1rem);
  border: 1px solid #e9ecef;
  flex-shrink: 0;
}

.feature-pro .invest-details h5 {
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: clamp(0.375rem, 0.5vw, 0.5rem);
}

.feature-pro .invest-details h6 {
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 700;
  color: #000;
  margin: clamp(0.15rem, 0.2vw, 0.2rem) 0;
  word-wrap: break-word;
}

.feature-pro .invest-details h6 span {
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  font-weight: 500;
  color: #28a745;
  margin-left: clamp(0.375rem, 0.5vw, 0.5rem);
  white-space: nowrap;
}

.feature-pro .big-card .black-btn {
  width: 100%;
  text-align: center;
  padding: clamp(0.625rem, 0.8vw, 0.75rem) clamp(1.25rem, 1.5vw, 1.5rem);
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  font-weight: 600;
  border-radius: clamp(6px, 0.8vw, 8px);
  margin-top: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Responsive breakpoints */
@media (max-width: 1400px) {
  .feature-pro .pro-info li {
    flex: 0 1 calc(50% - 0.2rem);
    min-width: calc(50% - 0.2rem);
    max-width: calc(50% - 0.2rem);
  }
}

@media (max-width: 1200px) {
  .feature-pro .card-img {
    height: clamp(140px, 18vw, 180px);
  }

  .feature-pro .pro-info li {
    flex: 0 1 calc(50% - 0.2rem);
    min-width: calc(50% - 0.2rem);
    max-width: calc(50% - 0.2rem);
  }
}

@media (max-width: 991px) {
  .feature-pro .big-card {
    margin-bottom: 2rem;
  }

  .feature-pro .card-img {
    height: clamp(160px, 25vw, 200px);
  }

  .feature-pro .pro-info li {
    flex: 0 1 calc(50% - 0.2rem);
    min-width: calc(50% - 0.2rem);
    max-width: calc(50% - 0.2rem);
  }
}

@media (max-width: 768px) {
  .feature-pro .card-content {
    padding: 1rem;
  }

  .feature-pro .card-img {
    height: 180px;
  }

  .feature-pro .pro-info {
    gap: 0.4rem;
  }

  .feature-pro .pro-info li {
    flex: 0 1 calc(50% - 0.2rem);
    min-width: calc(50% - 0.2rem);
    max-width: calc(50% - 0.2rem);
  }

  .feature-pro .invest-details h6 {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .feature-pro .card-img {
    height: 160px;
  }

  .feature-pro .card-content h4 {
    font-size: 1.1rem;
  }

  .feature-pro .pro-info {
    gap: 0.35rem;
  }

  .feature-pro .pro-info li {
    flex: 0 1 calc(50% - 0.175rem);
    min-width: calc(50% - 0.175rem);
    max-width: calc(50% - 0.175rem);
    padding: 0.45rem 0.75rem;
  }

  .feature-pro .invest-details {
    padding: 0.875rem;
  }
}

/* Fix for zoomed screens - ensure 2-column layout with minimal gap */
@media (min-width: 577px) {
  .feature-pro .pro-info {
    gap: 0.4rem !important;
  }

  .feature-pro .pro-info li {
    flex: 0 1 calc(50% - 0.2rem) !important;
    min-width: calc(50% - 0.2rem) !important;
    max-width: calc(50% - 0.2rem) !important;
  }
}

/* Zoom level adjustments */
@media (min-resolution: 1.5dppx) {
  .feature-pro .card-img {
    height: clamp(140px, 18vw, 200px);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .feature-pro .pro-info li img {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 991px) {
  .card-container {
    gap: 15px;
  }
}

/* Data Center Locations Section */
.data-center-locations .col-12.col-lg-6 > div > div {
  transition: all 0.3s ease;
}

.data-center-locations .col-12.col-lg-6 > div > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.data-center-locations iframe {
  border-radius: 0 0 20px 20px;
}

@media (max-width: 991px) {
  .data-center-locations .col-12.col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  .data-center-locations iframe {
    min-height: 400px;
  }
}

/* Featured Servers Section Container */
.feature-pro.index-feature-pro .row.justify-content-center {
  margin-left: -10px;
  margin-right: -10px;
}

.feature-pro.index-feature-pro .row.justify-content-center > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
  .feature-pro.index-feature-pro .row.justify-content-center {
    margin-left: -7.5px;
    margin-right: -7.5px;
  }

  .feature-pro.index-feature-pro .row.justify-content-center > [class*="col-"] {
    padding-left: 7.5px;
    padding-right: 7.5px;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .feature-pro.index-feature-pro .row.justify-content-center {
    margin-left: -5px;
    margin-right: -5px;
  }

  .feature-pro.index-feature-pro .row.justify-content-center > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }
}
