/* Infinity 13 Corp - Professional One-Page Website Styles */
/* Custom enhancements beyond Tailwind CDN */

:root {
  --primary: #1e3a5f;
  --accent: #6366f1;
  --accent-teal: #14b8a6;
  --gold: #d4af37;
  --dark: #0f172a;
  --light: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

/* Navbar */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Hero Section */
.hero-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #312e81 100%);
}

.hero-overlay {
  background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(20, 184, 166, 0.1) 0%, transparent 60%);
}

/* Service Cards */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.08),
    transparent
  );
  transition: 0.6s;
}

.service-card:hover::before {
  left: 300%;
}

/* Modal */
.modal {
  animation: modalPop 0.2s ease-out forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content {
  max-height: 85vh;
  overflow-y: auto;
}

/* Form Styles */
.form-input {
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #e2e8f0;
}

/* Utility */
.section-header {
  position: relative;
  display: inline-block;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-teal));
  border-radius: 3px;
}

/* Testimonials */
.testimonial {
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
}

/* Legal Pages Specific */
.legal-content h2 {
  color: var(--primary);
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

.legal-content h3 {
  color: var(--text);
  margin-top: 1.5rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Accessibility & Focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Mobile Nav */
.mobile-nav {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Placeholder Image Styling */
.placeholder-img {
  background: linear-gradient(135deg, #1e3a5f, #312e81);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Infinity Symbol Styling */
.infinity-symbol {
  display: inline-block;
  width: 42px;
  height: 24px;
  position: relative;
}

.infinity-symbol::before,
.infinity-symbol::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 50%;
  top: 2px;
}

.infinity-symbol::before {
  left: 0;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.infinity-symbol::after {
  right: 0;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

/* Print styles for legal pages */
@media print {
  nav, footer, .no-print {
    display: none !important;
  }
  .legal-content {
    max-width: 100%;
    padding: 0;
  }
}