/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-color: #1e40af;      /* Deep professional blue */
  --primary-dark: #1e3a8a;       /* Darker blue for hovers */
  --primary-light: #eff6ff;      /* Very light blue for backgrounds */
  --secondary-color: #374151;    /* Charcoal gray for secondary elements */
  --secondary-light: #f3f4f6;    /* Light gray for accents */
  --accent-color: #059669;       /* Professional green for highlights */
  --accent-light: #ecfdf5;       /* Light green for backgrounds */
  --success-color: #059669;      /* Professional green for success states */
  --error-color: #dc2626;        /* Professional red for error states */
  --warning-color: #d97706;      /* Professional orange for warnings */
  --text-primary: #111827;       /* Very dark gray for main text */
  --text-secondary: #4b5563;     /* Medium gray for secondary text */
  --text-light: #6b7280;         /* Light gray for muted text */
  --bg-primary: #ffffff;         /* Pure white backgrounds */
  --bg-secondary: #f9fafb;       /* Off-white for sections */
  --bg-tertiary: #f3f4f6;        /* Light gray for cards */
  --border-color: #d1d5db;       /* Professional border color */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--primary-color);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-primary);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  padding: 120px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 3rem 0;
  transition: var(--transition);
}

.header-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Main Content */
main {
  background: var(--bg-secondary);
}

/* Sections */
section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#services {
  background: var(--bg-primary);
  padding-top: 40px;
}

#faq {
  background: linear-gradient(135deg, var(--accent-light) 0%, #fde68a 50%, #fcd34d 100%);
}

#contact {
  background: linear-gradient(135deg, var(--secondary-light) 0%, #a7f3d0 50%, #6ee7b7 100%);
}

/* Services */
.services-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.services-intro img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* Learn More Button */
.learn-more-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.learn-more-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Modal Dialog Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 3rem 2rem 2rem;
}

.service-modal-content {
  display: none;
  gap: 2rem;
  align-items: flex-start;
}

.service-modal-content.active {
  display: flex;
}

.service-modal-content img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.modal-text h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.modal-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-text p:last-child {
  margin-bottom: 0;
}

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

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

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.service-card:hover .service-image {
  transform: scale(1.02);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item-static {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.faq-item-static:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.faq-item-static h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item-static p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Contact Form */
.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-primary);
}

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

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-button {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.form-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.form-button:active {
  transform: translateY(0);
}

/* Footer */
footer {
  background: #1f2937;
  color: #f9fafb;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #10b981;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p, .footer-section a {
  color: #d1d5db;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  transition: var(--transition);
}

.footer-section a:hover {
  color: #10b981;
}

/* External link styling */
.footer-section a[target="_blank"] {
  position: relative;
  display: inline-block;
}

.footer-section a[target="_blank"]::after {
  content: "↗";
  font-size: 0.8em;
  margin-left: 4px;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  color: #9ca3af;
}

.version-info {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  font-family: 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    display: none; /* Mobile menu would need JavaScript */
  }

  header {
    padding: 100px 1rem 60px;
  }

  section {
    padding: 60px 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Form Error States */
.form-input.error {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  min-width: 300px;
  max-width: 500px;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-color: var(--success-color);
}

.toast-success .toast-message {
  color: var(--success-color);
}

.toast-error {
  border-color: var(--error-color);
}

.toast-error .toast-message {
  color: var(--error-color);
}

.toast-info {
  border-color: var(--primary-color);
}

.toast-info .toast-message {
  color: var(--primary-color);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.toast-message {
  font-weight: 500;
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Loading states */
.form-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
  .modal-body {
    padding: 2rem 1.5rem 1.5rem;
  }

  .service-modal-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .service-modal-content img {
    max-width: 100%;
    width: 100%;
  }

  .modal-text h3 {
    font-size: 1.5rem;
  }
}

/* Additional responsive improvements */
@media (max-width: 480px) {
  .toast {
    left: 10px;
    right: 10px;
    min-width: auto;
  }

  .nav-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    text-align: center;
    margin: 0.5rem 0;
  }

  .nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }
}