

/* Override flex alignment only for home page */
body {
  justify-content: center;
  align-items: center;
}

/* Container */
.container {
  width: 100%;
  max-width: 500px;
  perspective: 1000px;
}

/* Contact Transition Container (replaces multi-card-container) */
.contact-transition-container {
  position: relative;
  width: 100%;
  height: 800px;
  margin-bottom: 20px;
  overflow: hidden; /* Prevent container from expanding */
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Card Styles */
.card {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 25px;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  backface-visibility: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

/* Add a content wrapper inside each card for proper scrolling */
.card-content {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 5px; /* Small padding for scrollbar space */
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.card-content::-webkit-scrollbar {
  width: 5px;
}

.card-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* Adjust all card content to use the wrapper */
.card > * {
  width: 100%;
}

.card.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.card.hidden {
  opacity: 0;
  transform: translateY(-50px) scale(0.9);
  pointer-events: none;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  z-index: -1;
}

/* Ensure specific sections don't overflow */
.services-detailed,
.trust-factors,
.mission-vision,
.testimonials-preview {
  width: 100%;
  max-height: none; /* Let the card-content handle scrolling */
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  backface-visibility: hidden;
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-form-wrapper.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.contact-form {
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.95), rgba(42, 82, 152, 0.95));
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.form-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.form-group {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e90ff;
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.submit-btn:hover,
.submit-btn:focus {
  background: linear-gradient(135deg, #00bfff, #1e90ff);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
  outline: none;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-method i {
  font-size: 20px;
  color: var(--accent);
  width: 30px;
}

.contact-method a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-method a:hover,
.contact-method a:focus {
  color: var(--accent);
  outline: none;
}

/* Animation for form elements when form is active */
.contact-form-wrapper.active .form-group,
.contact-form-wrapper.active .submit-btn,
.contact-form-wrapper.active .contact-methods {
  opacity: 1;
  transform: translateY(0);
}

.contact-form-wrapper.active .form-group:nth-child(1) { transition-delay: 0.1s; }
.contact-form-wrapper.active .form-group:nth-child(2) { transition-delay: 0.2s; }
.contact-form-wrapper.active .form-group:nth-child(3) { transition-delay: 0.3s; }
.contact-form-wrapper.active .submit-btn { transition-delay: 0.4s; }
.contact-form-wrapper.active .contact-methods { transition-delay: 0.5s; }

/* Modern Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 20px;
  max-width: 400px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  border-left: 5px solid #4CAF50;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.notification-icon {
  font-size: 28px;
  color: #4CAF50;
  flex-shrink: 0;
}

.notification-text h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 18px;
}

.notification-text p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.notification-close:hover {
  color: #333;
}

/* Loading animation for form submission */
.form-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.form-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error notification variant */
.notification.error {
  border-left-color: #f44336;
}

.notification.error .notification-icon {
  color: #f44336;
}

/* Logo */
.logo {
  width: 250px;
  margin-bottom: 15px;
  animation: slideIn 1.5s ease-out;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
  max-width: 80%;
  height: auto;
}

/* Slide-In Animation for Logo */
@keyframes slideIn {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/*.logo:hover {
  animation: bounce 0.5s infinite alternate;
  cursor: pointer;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}*/

/* Heading */
h1 {
  font-size: 22px;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

h2 {
  margin: 18px 0 12px;
  font-size: 18px;
  color: var(--accent);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

h3 {
  margin: 15px 0 10px;
  font-size: 16px;
  color: var(--accent);
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #fff;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #1e90ff, 0 0 40px #1e90ff;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
}

/* Description */
p {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
  animation: fadeIn 1.5s ease-out 0.5s;
  animation-fill-mode: both;
}

.contact-info {
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.8;
  font-style: italic;
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  width: 100%;
  max-width: 300px;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.nav-button:hover,
.nav-button:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  outline: none;
}

.nav-button i {
  font-size: 18px;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: var(--primary-dark);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeIn 1.5s ease-out 0.8s;
  animation-fill-mode: both;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-links a:hover,
.social-links a:focus {
  background: linear-gradient(45deg, #ff6b6b, #5f27cd);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transform: scale(1.3) translateY(-5px);
  outline: none;
}

/* Services List */
.services-list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
  font-size: 14px;
  color: #f0f0f0;
  animation: fadeIn 1.5s ease-out 1s;
  animation-fill-mode: both;
  text-align: left;
  width: 100%;
  max-width: 300px;
}

.services-list li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.services-list li:hover {
  transform: translateX(5px);
}

.services-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Services Detailed */
.services-detailed {
  width: 100%;
  margin: 20px 0;
}

.service-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-item i {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 10px;
}

.service-item h3 {
  margin: 10px 0;
  font-size: 17px;
}

.service-item p {
  font-size: 13px;
  margin-bottom: 0;
}

/* Trust Factors */
.trust-factors {
  width: 100%;
  margin: 20px 0;
}

.trust-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.trust-item i {
  font-size: 30px;
  color: #4CAF50;
  margin-bottom: 10px;
}

.trust-item h3 {
  margin: 10px 0;
  font-size: 17px;
}

.trust-item p {
  font-size: 13px;
  margin-bottom: 0;
}

/* Mission & Vision */
.mission-vision {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
  width: 100%;
}

.mission, .vision {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mission:hover, .vision:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.1);
}

.mission h3, .vision h3 {
  margin: 10px 0;
  font-size: 17px;
}

.mission i, .vision i {
  color: var(--accent);
  margin-right: 8px;
}

/* Testimonials */
.testimonials-preview {
  width: 100%;
  margin: 20px 0;
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  font-style: italic;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.testimonial:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.testimonial span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-style: normal;
  color: var(--accent);
}

/* Contact CTA */
.contact-cta {
  text-align: center;
}

/* Value Proposition Styling */
.value-prop {
  font-size: 16px;
  margin: 12px 0 20px;
  color: var(--accent);
  animation: fadeIn 1.5s ease-out 0.8s;
  animation-fill-mode: both;
  font-weight: 600;
}

/* Contact Button */
.contact-section {
  margin: 20px 0;
}

.contact-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  animation: fadeIn 1.5s ease-out 1.2s;
  animation-fill-mode: both;
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
  border: none;
  cursor: pointer;
}

.contact-button:hover,
.contact-button:focus {
  background: linear-gradient(135deg, #00bfff, #1e90ff);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.6);
  outline: none;
}

/* Slide-Up Animation for Footer */
@keyframes slideUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .container {
    max-width: 90%;
  }

  .contact-transition-container {
    height: 700px;
  }

  .logo {
    width: 200px;
  }

  h1 {
    font-size: 19px;
  }

  h2 {
    font-size: 17px;
  }

  p {
    font-size: 13px;
  }

  .navigation-buttons {
    max-width: 280px;
  }
  
  .nav-button {
    font-size: 14px;
    padding: 10px 15px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .contact-button {
    font-size: 15px;
    padding: 10px 20px;
  }

  footer {
    font-size: 13px;
  }
  
  .card {
    padding: 20px;
  }
  
  .service-item, .trust-item {
    padding: 12px;
  }
  
  .contact-form {
    padding: 20px;
  }
  
  .back-to-card {
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
  }

  .services-list, .benefits-list {
    max-width: 100%;
  }
  
  .mission-vision {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .contact-transition-container {
    height: 650px;
  }
  
  .logo {
    width: 180px;
  }
  
  h1 {
    font-size: 16px;
  }
  
  h2 {
    font-size: 14px;
  }
  
  .services-list, .benefits-list {
    font-size: 11px;
  }
  
  .navigation-buttons {
    max-width: 250px;
    gap: 10px;
  }
  
  .nav-button {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .nav-button i {
    font-size: 12px;
  }
  
  .back-button {
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .service-item i, .trust-item i {
    font-size: 18px;
  }
  
  .mission-vision {
    gap: 15px;
  }
  
  .mission, .vision {
    padding: 12px;
  }
  
  .contact-form {
    padding: 15px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .submit-btn {
    padding: 12px;
    font-size: 12px;
  }

  .service-item, .trust-item, .mission, .vision, .testimonial {
    margin: 10px 0;
  }
  
  .value-prop {
    font-size: 12px;
  }
}

@media print {
  .card {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .contact-button, .back-button {
    display: none !important;
  }
  
  .social-links {
    display: none !important;
  }
}
