/* CSS Variables */
:root {
  --primary: #000000;
  --primary-foreground: #FFFFFF;
  --secondary: #F59F0A;
  --secondary-foreground: #111827;
  --accent: #16A249;
  --accent-foreground: #111827;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #000000;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Open Sans', sans-serif;
  --radius: 0.75rem;
}

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

body {
  font-family: var(--font-family);
  color: var(--foreground);
  background: var(--background);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }

.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

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

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Icon Styles */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 3rem; height: 3rem; }

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: underline;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

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

.logo-img {
  height: 2.5rem;
  width: auto;
}

.polarnexa_mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

.polarnexa_mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polarnexa_mobile-menu-content {
  text-align: center;
}

.polarnexa_mobile-menu-link {
  display: block;
  color: var(--primary-foreground);
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1rem 0;
  text-decoration: none;
}

.polarnexa_mobile-menu-link:hover {
  color: var(--secondary);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  padding: 8rem 0 5rem;
  margin-top: 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--primary-foreground) !important;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: var(--primary-foreground);
  color: var(--primary);
  border-color: var(--primary-foreground);
}

.hero-actions .btn-primary:hover {
  background: transparent;
  color: var(--primary-foreground);
  border-color: var(--primary-foreground);
}

.hero-actions .btn-outline {
  border-color: var(--primary-foreground);
  color: var(--primary-foreground);
}

.hero-actions .btn-outline:hover {
  background: var(--primary-foreground);
  color: var(--primary);
}

.hero-image {
  position: relative;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  max-width: 100%;
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

/* Page Header */
.page-header {
  background: var(--muted);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 4rem;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Cards */
.service-card,
.team-card,
.pricing-card,
.project-card,
.team-member-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover,
.team-card:hover,
.pricing-card:hover,
.project-card:hover,
.team-member-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Service Cards */
.service-image {
  margin-bottom: 1.5rem;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  max-width: 100%;
}

.service-title,
.team-name,
.pricing-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.service-description,
.team-description,
.pricing-description {
  margin-bottom: 1.5rem;
  color: var(--card-foreground);
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

/* Process Steps */
.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.step-description {
  color: var(--muted-foreground);
}

/* Testimonials */
.testimonial-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--card-foreground);
}

.author-name {
  font-weight: 600;
  color: var(--card-foreground);
}

.author-role {
  color: var(--muted-foreground);
}

.testimonial-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  max-width: 100%;
}

@media (max-width: 768px) {
  .testimonial-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

/* Team */
.team-avatar {
  text-align: center;
  margin-bottom: 1.5rem;
}

.team-role {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
}

.team-skills,
.skill-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

/* Pricing */
.pricing-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

/* Stats Counter */
.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* CTA Section */
.cta-section {
  background: var(--background);
}

.cta-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--card-foreground);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--input);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--ring);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.contact-description {
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.contact-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.contact-card-description {
  margin-bottom: 2rem;
  color: var(--card-foreground);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-text h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--card-foreground);
}

.contact-text p {
  margin: 0;
  color: var(--card-foreground);
}

.map-container {
  margin-top: 2rem;
}

.map-placeholder {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  border: 2px dashed var(--border);
}

.map-content h4 {
  margin-top: 1rem;
  color: var(--foreground);
}

.map-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Success Message */
.success-message {
  background: rgba(22, 163, 74, 0.1);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.success-content h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.success-content p {
  color: var(--foreground);
  margin: 0;
}

/* Footer */
footer {
  background: transparent;
  border-top: 1px solid var(--border);
  color: var(--foreground);
  padding: 3rem 0 1rem;
}

footer a {
  color: var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  height: 2rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.company-info p {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.business-hours {
  margin-top: 1rem;
}

.business-hours p:first-child {
  font-weight: 500;
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: 1rem;
}

.legal-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
}

.legal-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
}

/* Cookie Consent */
.polarnexa_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 1500;
}

.polarnexa_cookie-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.polarnexa_cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.polarnexa_cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.polarnexa_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polarnexa_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.polarnexa_cookie-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cookie-toggles {
  margin-bottom: 2rem;
}

.polarnexa_cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.polarnexa_cookie-toggle-row:last-child {
  border-bottom: none;
}

.polarnexa_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .polarnexa_cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .polarnexa_cookie-banner-actions {
    justify-content: center;
  }
  
  .polarnexa_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Legal Pages */
.legal-content {
  padding: 2rem 0 5rem;
}

.legal-document {
  max-width: 800px;
  margin: 0 auto;
  color: var(--foreground);
}

.legal-meta {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.legal-meta p {
  margin: 0.25rem 0;
  font-weight: 500;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  color: var(--foreground);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.legal-section h3 {
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-section ul {
  margin-bottom: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.contact-details {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.legal-footer {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}

/* Cookie Table */
.cookie-table {
  margin: 2rem 0;
}

.cookie-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cookie-details-table th,
.cookie-details-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-details-table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.cookie-details-table td {
  color: var(--foreground);
}

/* Timeline (About Page) */
.timeline-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-marker {
  flex-shrink: 0;
  width: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 2rem;
}

.timeline-year {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-icon {
  width: 3rem;
  height: 3rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content-block {
  flex: 1;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.timeline-description {
  color: var(--card-foreground);
}

@media (max-width: 768px) {
  .timeline-content::before {
    left: 1rem;
  }
  
  .timeline-marker {
    width: 2rem;
    margin-right: 1rem;
  }
  
  .timeline-year {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
  }
  
  .timeline-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .timeline-content-block {
    padding: 1.5rem;
  }
}

/* Mission and Values */
.mission-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mission-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.mission-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  max-width: 100%;
}

.value-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.value-description {
  color: var(--card-foreground);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-image {
  position: relative;
  margin-bottom: 1.5rem;
}

.project-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  max-width: 100%;
}

.project-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-category {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.project-description {
  margin-bottom: 1.5rem;
  color: var(--card-foreground);
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--card-foreground);
}

/* Results and Achievements */
.result-card,
.achievement-item {
  text-align: center;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.result-label {
  color: var(--card-foreground);
  font-weight: 500;
}

.achievement-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.achievement-description {
  color: var(--card-foreground);
}

/* Case Study */
.case-study-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.case-study-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.case-study-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.case-study-description {
  margin-bottom: 2rem;
  color: var(--card-foreground);
}

.case-study-results h4 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.achievement {
  text-align: center;
}

.achievement-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.achievement-text {
  color: var(--card-foreground);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.case-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  max-width: 100%;
}

@media (max-width: 768px) {
  .case-study-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Team Values and Join */
.value-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.join-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.join-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
}

.join-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .join-benefits {
    grid-template-columns: 1fr;
  }
  
  .value-item {
    flex-direction: column;
    text-align: center;
  }
}

/* Contact Options */
.contact-option {
  text-align: center;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.option-description {
  margin-bottom: 2rem;
  color: var(--card-foreground);
}

/* Services Page Specific */
.services-overview .service-card {
  display: flex;
  flex-direction: column;
}

.category-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.category-description {
  margin-bottom: 1.5rem;
  color: var(--card-foreground);
}

.category-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.feature-tag {
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

/* Partner Logos */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: center;
}

.partner-item {
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partner-item:hover {
  opacity: 1;
}

.partner-icon {
  margin-bottom: 1rem;
}

.partner-name {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animation Classes */
.animate-slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s ease-out;
}

.animate-slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s ease-out;
}

.animate-in {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Apply animation classes to specific elements */
.service-card,
.team-card,
.pricing-card,
.project-card,
.team-member-card,
.process-step,
.testimonial-card,
.value-card,
.stat-item,
.partner-item,
.contact-option,
.category-card,
.result-card,
.achievement-item {
  transition: all 0.7s ease-out;
}

/* Alternate animation direction for even items */
.service-card:nth-child(even),
.team-card:nth-child(even),
.pricing-card:nth-child(even),
.project-card:nth-child(even),
.team-member-card:nth-child(even),
.process-step:nth-child(even),
.value-card:nth-child(even),
.stat-item:nth-child(even),
.partner-item:nth-child(even),
.contact-option:nth-child(even),
.category-card:nth-child(even),
.result-card:nth-child(even),
.achievement-item:nth-child(even) {
  transition: all 0.7s ease-out;
}

/* === CLASS ALIAS FIXES (injected by engine) === */
.hero-text { /* alias for .hero-content */ }
.hero-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#polarnexa_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#polarnexa_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#polarnexa_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
