/**
 * V1 Services - Global Styles
 * Black background, Red accent, Professional Service Look
 */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2a2a2a;
  --accent-color: #e10600;
  --accent-light: #ff4444;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --success: #00d084;
  --warning: #ff9500;
  --danger: #ff3b30;
  --border-color: #444444;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid rows for section alignment */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 30px 0;
}

.row-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.row-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card p { line-height: 1.6; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); }

/* Section heading (centered on landing page) */
.section-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* Page title utility */
.page-title { text-align: center; margin-bottom: 18px; }

/* Animate on scroll (fade + slide up) */
.animate .section-heading,
.animate .card,
.animate .timeline-step,
.animate .support-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(.2,.9,.2,1), transform 600ms cubic-bezier(.2,.9,.2,1);
}

.animate.in-view .section-heading,
.animate.in-view .card,
.animate.in-view .timeline-step,
.animate.in-view .support-card {
  opacity: 1;
  transform: none;
}

/* Stagger children for nicer entrance */
.animate .card:nth-child(1) { transition-delay: 0.05s; }
.animate .card:nth-child(2) { transition-delay: 0.12s; }
.animate .card:nth-child(3) { transition-delay: 0.20s; }
.animate .card:nth-child(4) { transition-delay: 0.28s; }
.animate .card:nth-child(5) { transition-delay: 0.36s; }
.animate .card:nth-child(6) { transition-delay: 0.44s; }

.animate .timeline-step:nth-child(1) { transition-delay: 0.05s; }
.animate .timeline-step:nth-child(2) { transition-delay: 0.12s; }
.animate .timeline-step:nth-child(3) { transition-delay: 0.20s; }
.animate .timeline-step:nth-child(4) { transition-delay: 0.28s; }

/* Subtle heading underline animation */
.section-heading {
  position: relative;
}
.section-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 450ms cubic-bezier(.2,.9,.2,1);
}
.animate.in-view .section-heading::after { transform: translateX(-50%) scaleX(1); }

/* Section centering and layout improvements */
.process-section,
#services,
.company-section {
  max-width: 1100px !important;
  margin: 100px auto 60px !important;
  padding: 0 20px !important;
}

.company-section {
  margin: 60px auto !important;
}

/* Support section improvements */
.support-section {
  max-width: 1100px !important;
  margin: 100px auto 60px !important;
  padding: 0 20px !important;
}

/* FAQ styling */
.faq-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow);
}

.faq-question {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-question::before {
  content: '▶';
  display: inline-block;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::before {
  transform: rotate(90deg);
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}
.view-more-btn {
  display: block;
  margin: 24px auto 0;
  padding: 12px 32px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(225, 6, 0, 0.3);
}

/* Hide extra cards by default */
.cards-container .card:nth-child(n+4) {
  display: none;
}

.cards-container.expanded .card {
  display: block;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-light);
}

/* Logo Styling */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(225, 6, 0, 0.3));
  animation: logoHover 0.3s ease;
}

.logo-img:hover {
  filter: drop-shadow(0 4px 8px rgba(225, 6, 0, 0.5));
}

.logo-img-small {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(225, 6, 0, 0.3));
}

@keyframes logoHover {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text h1 {
  font-size: 1.5rem;
  margin: 0;
}

.logo-text p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #3a3a3a;
  border-color: var(--accent-color);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #ff5544;
}

.btn-success {
  background-color: var(--success);
  color: #000;
}

.btn-success:hover {
  background-color: #00e090;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--secondary-color);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Cards */
.card {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 { margin-top: 0; margin-bottom: 12px; color: var(--accent-color); }
.card h2 { margin: 24px 0 16px 0; }
.card ul { margin: 12px 0; padding-left: 20px; }
.card ol { margin: 12px 0; padding-left: 20px; }
.card li { margin-bottom: 10px; line-height: 1.6; }
.card p { margin-bottom: 12px; line-height: 1.7; }
.card p:last-child { margin-bottom: 0; }

.card-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Navigation */
nav {
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 70px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.navbar-nav {
  display: flex;
  gap: 30px;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: var(--accent-color);
}

.navbar-nav .active a {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

thead {
  background-color: var(--secondary-color);
  border-bottom: 2px solid var(--border-color);
}

th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

tr:hover {
  background-color: rgba(225, 6, 0, 0.05);
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-submitted {
  background-color: rgba(255, 149, 0, 0.2);
  color: #ff9500;
}

.status-assigned {
  background-color: rgba(0, 208, 132, 0.2);
  color: #00d084;
}

.status-in-progress {
  background-color: rgba(0, 122, 255, 0.2);
  color: #007aff;
}

.status-completed {
  background-color: rgba(0, 208, 132, 0.2);
  color: #00d084;
}

.status-rejected {
  background-color: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.row-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.row-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.col {
  min-width: 0;
}

.col-12 { grid-column: 1 / -1; }
.col-8 { grid-column: span 2; }
.col-6 { grid-column: span 1; }

/* Alerts */
.alert {
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-info {
  background-color: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.3);
  color: #007aff;
}

.alert-success {
  background-color: rgba(0, 208, 132, 0.1);
  border: 1px solid rgba(0, 208, 132, 0.3);
  color: #00d084;
}

.alert-warning {
  background-color: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: #ff9500;
}

.alert-danger {
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff3b30;
}

/* Loading Spinner */
.loader {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-text {
  color: var(--text-primary);
  margin-top: 20px;
  font-size: 1.1rem;
}

/* Notifications/Toast */
.notification {
  position: fixed;
  bottom: -100px;
  left: 20px;
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  padding: 16px 20px;
  border-radius: 6px;
  max-width: 400px;
  z-index: 10000;
  transition: bottom 0.3s ease;
  box-shadow: var(--shadow);
}

.notification.show {
  bottom: 20px;
}

.notification-success {
  border-left-color: var(--success);
}

.notification-danger {
  border-left-color: var(--danger);
}

.notification-warning {
  border-left-color: var(--warning);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  border-top: 1px solid var(--border-color);
  padding: 60px 20px 20px;
  margin-top: 80px;
  color: var(--text-secondary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.footer-section p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section ul li {
  margin-bottom: 0;
}

.footer-section a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 0;
  color: var(--text-secondary);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 20px;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
  }

  .row,
  .row-2,
  .row-3 {
    grid-template-columns: 1fr;
  }

  .col-12,
  .col-8,
  .col-6 {
    grid-column: 1;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 10px;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .notification {
    max-width: 90%;
    left: 5%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .card {
    padding: 16px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  footer {
    padding: 30px 15px 15px;
  }

  .footer-content {
    gap: 20px;
  }
}

/* Navigation and hero alignment tweaks */
.navbar.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

.navbar-nav a {
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}
