/*
Theme Name: Atera Analytics
Theme URI: https://atera-analytics.co.uk
Author: Atera Analytics Ltd
Author URI: https://atera-analytics.co.uk
Description: Enterprise-grade WordPress theme for Atera Analytics - AI-powered transport solutions. Dark navy / cyan-purple gradient design with Agentic AI focus.
Version: 4.2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atera-analytics
Domain Path: /languages
Tags: business, analytics, ai, agentic-ai, technology, custom-colors, custom-menu, featured-images, flexible-header, custom-logo
*/

/* ============================================================================
   ROOT VARIABLES & COLORS
   ============================================================================ */
:root {
  color-scheme: dark;

  /* Brand colors - cyan to purple gradient */
  --primary-cyan: #00d4ff;
  --primary-turquoise: #00d4dd;
  --primary-teal: #00ffcc;
  --primary-blue: #4da6ff;
  --primary-purple: #7c4dff;
  --accent-purple: #7c4dff;
  --primary-violet: #9c27b0;

  /* Backgrounds */
  --bg-dark: #0a0a14;
  --bg-navy: #16213e;
  --bg-deep-blue: #1a1a2e;
  --bg-slate: #2d3561;
  --dark-bg: #0a0a14;
  --light-bg: #f5f5f5;

  /* Text */
  --text-white: #ffffff;
  --text-light: #e0e0e0;
  --text-gray: #b0b0b0;
  --text-dark: #1a1a1a;

  /* Accents */
  --accent-green: #00ff88;
  --accent-orange: #ff9800;
  --accent-red: #ff5252;
  --success: #00ff88;
  --error: #ff5252;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-violet) 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
  --gradient-cyan-teal: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-teal) 100%);

  --border-color: #2a3f5f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   GLOBAL RESETS & TYPOGRAPHY
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-white);
}

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

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a,
a:link,
a:visited {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

ul, ol {
  list-style-position: outside;
}

img {
  max-width: 100%;
  display: block;
}

/* Screen reader / accessibility helpers */
.screen-reader-text,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-cyan);
  color: var(--bg-dark);
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus,
.skip-link.screen-reader-text:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
}

/* ============================================================================
   LAYOUT / CONTAINERS
   ============================================================================ */
.container,
.section-container,
.homepage-container,
.projects-container,
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

#page.site {
  overflow-x: hidden;
}

.site-main,
.site-main-wrapper {
  display: block;
}

section {
  padding: 80px 0;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */
.site-header {
  background: var(--gradient-dark);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-cyan);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.12);
}

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

/* Logo / branding */
.site-branding {
  display: flex;
  align-items: center;
}

.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-branding img.custom-logo {
  max-height: 50px;
  width: auto;
  display: block;
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-branding .site-title a,
.site-branding .site-title a:visited {
  color: var(--text-white) !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Primary navigation */
.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.primary-navigation {
  display: flex;
}

.primary-menu,
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.primary-menu li,
.main-navigation ul li {
  position: relative;
}

.primary-menu a,
.primary-menu a:link,
.primary-menu a:visited,
.main-navigation ul a,
.main-navigation ul a:link,
.main-navigation ul a:visited {
  display: inline-block;
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.primary-menu a:hover,
.primary-menu a:visited:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-item > a:visited,
.primary-menu .current_page_item > a,
.primary-menu .current_page_item > a:visited {
  background: var(--gradient-primary);
  color: var(--text-white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary-cyan);
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-navigation {
    width: 100%;
    justify-content: flex-start;
  }

  .primary-navigation {
    width: 100%;
  }

  .primary-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: var(--bg-navy);
    border-radius: 8px;
    margin-top: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .primary-menu.active {
    display: flex;
  }

  .primary-menu li {
    width: 100%;
  }

  .primary-menu a {
    display: block;
    width: 100%;
  }
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn,
.cta-button,
button[type="submit"],
input[type="submit"] {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary,
.btn-primary:visited,
.cta-button.primary,
.cta-button.primary:visited,
.cta-button:not(.secondary):not(.outline),
.cta-button:not(.secondary):not(.outline):visited {
  background: var(--gradient-primary);
  color: var(--text-white) !important;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover,
.cta-button.primary:hover,
.cta-button:not(.secondary):not(.outline):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.45);
  color: var(--text-white);
}

.btn-outline,
.btn-outline:visited,
.cta-button.secondary,
.cta-button.secondary:visited,
.cta-button.outline,
.cta-button.outline:visited {
  background: transparent;
  border: 2px solid var(--primary-cyan);
  color: var(--primary-cyan) !important;
}

.btn-outline:hover,
.cta-button.secondary:hover,
.cta-button.outline:hover {
  background: var(--primary-cyan);
  color: var(--bg-dark);
}

.cta-button.large {
  padding: 18px 42px;
  font-size: 1.1rem;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero-section {
  background: var(--gradient-dark);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-bottom: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 80% 60%, rgba(124, 77, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

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

.hero-title {
  font-size: 3rem;
  color: var(--primary-cyan);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   SECTION HEADERS
   ============================================================================ */
.section-title,
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2,
.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-cyan);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-subtitle,
.section-header p,
.section-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Generic page header (used on About / Services / Technology / Contact / Projects) */
.page-header {
  background: var(--gradient-primary);
  text-align: center;
  padding: 100px 0;
}

.page-header h1,
.page-header-section .page-title {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p,
.page-header-section .page-subtitle {
  color: white;
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-header-section {
  background: var(--gradient-primary);
  text-align: center;
  padding: 100px 0;
  margin-bottom: 0;
}

.page-header-section .header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================================
   GRID SYSTEM
   ============================================================================ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.about-grid,
.services-preview-grid,
.projects-preview-grid,
.skills-grid,
.projects-grid,
.coverage-grid,
.faq-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.skills-grid,
.about-grid,
.services-preview-grid,
.projects-preview-grid,
.coverage-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4,
  .skills-grid, .about-grid, .services-preview-grid, .projects-preview-grid,
  .projects-grid, .coverage-grid, .faq-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   CARDS - GENERAL
   ============================================================================ */
.card,
.about-card,
.service-preview-card,
.project-preview-card,
.contact-card,
.coverage-item,
.faq-item {
  background: var(--bg-navy);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.card:hover,
.about-card:hover,
.service-preview-card:hover,
.project-preview-card:hover,
.contact-card:hover,
.coverage-item:hover,
.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.18);
  border-color: var(--primary-cyan);
}

.card-title,
.about-card h3,
.service-preview-card h3,
.project-preview-card h3,
.coverage-item h3,
.faq-item h3 {
  color: var(--primary-cyan);
  margin-bottom: 1rem;
}

.card p,
.about-card p,
.service-preview-card p,
.project-preview-card p,
.contact-card p,
.coverage-item p,
.faq-item p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-cyan);
  margin-bottom: 1rem;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

/* ============================================================================
   SKILL CARDS (Core Competencies / Agentic AI)
   ============================================================================ */
.top-skills-section {
  padding: 60px 0;
  background: var(--bg-navy);
}

.skill-card {
  background: var(--bg-deep-blue);
  border-radius: 12px;
  padding: 30px;
  border: 2px solid var(--bg-slate);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.skill-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
  transform: translateY(-5px);
}

.skill-card.featured,
.skill-card.agentic-ai-card {
  border: 2px solid var(--primary-cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(124, 77, 255, 0.08) 100%);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.skill-card.featured:hover {
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.35);
}

.skill-icon,
.skill-icon .icon-label {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
}

.skill-title {
  font-size: 1.3rem;
  margin: 15px 0;
  color: var(--text-white);
}

.skill-description {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.skill-features {
  list-style: none;
  margin-top: 15px;
}

.skill-features li {
  padding: 8px 0;
  color: var(--text-light);
  padding-left: 28px;
  position: relative;
}

.skill-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary-cyan);
  font-weight: bold;
}

/* ============================================================================
   TECHNOLOGY TAGS / BADGES
   ============================================================================ */
.tech-badge {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg-slate);
  border-radius: 25px;
  margin: 5px;
  border: 1px solid var(--primary-cyan);
  color: var(--text-light);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.05);
}

.tech-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tech-tag,
.project-tech .tech-tag {
  display: inline-block;
  background: var(--gradient-cyan-teal);
  color: var(--bg-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 212, 255, 0.25);
  transition: all 0.3s ease;
  margin: 4px 6px 4px 0;
}

.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.project-tech {
  margin-top: 1rem;
}

.project-badge {
  display: inline-block;
  background: var(--primary-cyan);
  color: var(--bg-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 8px 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-badge.autonomous-badge {
  background: var(--primary-purple);
  color: white;
}

.project-badge.ai-badge {
  background: var(--primary-teal);
  color: var(--bg-dark);
}

/* ============================================================================
   HOMEPAGE SECTIONS
   ============================================================================ */
.about-section,
.services-overview-section,
.featured-projects-section,
.technology-stack-section {
  padding: 80px 0;
}

.about-section,
.technology-stack-section {
  background: var(--bg-navy);
}

.about-section h2,
.services-overview-section h2,
.featured-projects-section h2,
.technology-stack-section h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-cyan);
  display: block;
}

.about-section > .section-container > p,
.services-overview-section > .section-container > p,
.featured-projects-section > .section-container > p,
.technology-stack-section > .section-container > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-gray);
  font-size: 1.1rem;
}

.services-cta,
.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

/* "Featured projects" / "supporting projects" CTA section on Projects page */
section.projects-cta {
  text-align: center;
  padding: 80px 0;
  margin-top: 0;
}

section.projects-cta h2 {
  color: var(--primary-cyan);
  display: inline-block;
}

section.projects-cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-gray);
}

/* ============================================================================
   USE CASES PAGE
   ============================================================================ */
.usecase-group {
  padding: 60px 0;
}

.usecase-group:nth-child(even) {
  background: var(--bg-navy);
}

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

.usecase-group-header h2 {
  font-size: 2.25rem;
  color: var(--primary-cyan);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.usecase-group-header p {
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 2.5rem;
}

.usecase-card {
  background: var(--bg-deep-blue);
  border: 1px solid var(--bg-slate);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.usecase-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.18);
  transform: translateY(-5px);
}

.usecase-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-slate);
}

.usecase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.usecase-card:hover .usecase-image img {
  transform: scale(1.05);
}

.usecase-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.usecase-content h3 {
  color: var(--text-white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.usecase-tagline {
  color: var(--primary-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.usecase-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================================================
   MLOPS CAPABILITIES - INTERACTIVE DIAGRAM EMBED
   ============================================================================ */
.mlops-section {
  padding: 60px 0;
  background: var(--bg-navy);
}

.mlops-diagram-wrap {
  margin-top: 2.5rem;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.mlops-fulldetail-link {
  margin-top: 0.5rem;
}

.mlops-fulldetail-link a,
.mlops-fulldetail-link a:visited {
  color: var(--primary-cyan) !important;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.mlops-fulldetail-link a:hover,
.mlops-fulldetail-link a:visited:hover {
  border-bottom-color: var(--primary-cyan);
}

.mlops-diagram-iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: none;
}

@media (max-width: 768px) {
  .mlops-diagram-iframe {
    height: 520px;
  }
}

@media (max-width: 480px) {
  .mlops-diagram-iframe {
    height: 340px;
  }
}

/* ============================================================================
   PROJECTS PAGE
   ============================================================================ */
.projects-section {
  padding: 60px 0;
}

.projects-section.agentic-ai-featured {
  background: var(--bg-navy);
}

.projects-section.supporting-projects {
  background: var(--bg-dark);
}

/* Service detail blocks on the Services page */
.service-detail {
  overflow: hidden;
}

/* Generic page / single post navigation & meta helpers */
.page-links,
.post-tags {
  margin-top: 2rem;
  color: var(--text-gray);
}

.post-navigation {
  border-top: 1px solid var(--bg-slate);
  padding-top: 1.5rem;
}

.nav-previous a,
.nav-next a {
  color: var(--primary-cyan);
  font-weight: 600;
}

.no-results.not-found {
  text-align: center;
  padding: 60px 0;
}

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

/* Default WP search form */
.search-form {
  display: flex;
  gap: 0.75rem;
}

.search-form .search-field {
  flex: 1;
  background: var(--bg-navy);
  border: 2px solid var(--bg-slate);
  border-radius: 8px;
  color: var(--text-white);
  padding: 12px 16px;
  font-size: 1rem;
}

.search-form .search-field:focus {
  border-color: var(--primary-cyan);
  outline: none;
}

.search-form .search-submit {
  background: var(--gradient-primary);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
}

.project-card {
  background: var(--bg-deep-blue);
  border: 1px solid var(--bg-slate);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.18);
  transform: translateY(-5px);
}

.project-card.featured,
.project-card.agentic-project {
  border: 2px solid var(--primary-purple);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.project-card.flagship {
  border: 2px solid var(--primary-cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 77, 255, 0.1) 100%);
  box-shadow: 0 5px 25px rgba(0, 212, 255, 0.25);
}

.agentic-grid .project-card.flagship {
  grid-column: 1 / -1;
}

.project-header {
  margin-bottom: 1rem;
}

.project-title {
  color: var(--text-white);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.project-excerpt {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.project-features h4,
.project-results h4 {
  color: var(--primary-cyan);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.project-features ul,
.project-results ul {
  list-style: none;
  margin-bottom: 1.25rem;
}

.project-features li,
.project-results li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.project-features li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--primary-cyan);
}

.project-results li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

/* ============================================================================
   CONTACT PAGE
   ============================================================================ */
.contact-form-section,
.uk-coverage-section,
.faq-section {
  padding: 60px 0;
}

.uk-coverage-section {
  background: var(--bg-navy);
}

.uk-coverage-section .section-container > p {
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: center;
}

.uk-coverage-section h2,
.faq-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-cyan);
  display: block;
}

.coverage-item,
.faq-item {
  text-align: left;
}

.form-column h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.help-list,
.quick-links {
  list-style: none;
  margin-top: 0.75rem;
}

.help-list li {
  padding: 8px 0;
  padding-left: 26px;
  position: relative;
  border-bottom: 1px solid var(--bg-slate);
}

.help-list li:last-child {
  border-bottom: none;
}

.help-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

.quick-links li {
  padding: 6px 0;
}

.quick-links li::before {
  content: "\2192";
  margin-right: 8px;
  color: var(--primary-cyan);
}

.info-column .contact-card {
  margin-bottom: 1.5rem;
}

.info-column .contact-card:last-child {
  margin-bottom: 0;
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-info:last-child {
  margin-bottom: 0;
}

.contact-info h4 {
  color: var(--primary-cyan);
  margin-bottom: 0.25rem;
}

.contact-cta {
  text-align: center;
  padding: 80px 0;
  background: var(--gradient-primary);
}

.contact-cta h2,
.contact-cta p {
  color: white;
}

.contact-cta h2 {
  font-size: 2.5rem;
}

.contact-cta p {
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================================
   CTA SECTION (generic, used at bottom of pages)
   ============================================================================ */
.cta-section {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 77, 255, 0.1) 100%);
  padding: 60px 40px;
  text-align: center;
  border-radius: 12px;
  margin: 60px auto;
  max-width: 1200px;
}

.cta-section h2 {
  color: var(--primary-cyan);
  display: inline-block;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--text-gray);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  background: var(--bg-deep-blue);
  padding: 60px 0 20px;
  border-top: 2px solid var(--primary-cyan);
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-cyan);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-menu,
.footer-contact {
  list-style: none;
}

.footer-menu li,
.footer-contact li {
  margin-bottom: 0.6rem;
  color: var(--text-light);
}

.footer-menu a,
.footer-menu a:visited,
.footer-contact a,
.footer-contact a:visited {
  color: var(--text-light) !important;
}

.footer-menu a:hover,
.footer-menu a:visited:hover,
.footer-contact a:hover,
.footer-contact a:visited:hover,
.footer-contact .contact-link,
.footer-contact .contact-link:visited {
  color: var(--primary-cyan) !important;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
}

.footer-copyright {
  margin-bottom: 0.5rem;
}

.footer-partners {
  font-size: 0.9rem;
  color: var(--text-gray);
}

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

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

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.gradient-text {
  color: var(--primary-cyan);
}

.bg-gradient { background: var(--gradient-primary); }
.bg-dark { background: var(--bg-dark); }
.bg-navy { background: var(--bg-navy); }

/* ============================================================================
   GENERIC PAGE / SINGLE POST CONTENT
   ============================================================================ */
.entry-header,
.page-header {
  text-align: center;
}

.entry-content,
.page-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.entry-content .container,
.page-content.container {
  padding: 0 20px;
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 70px 0;
  }

  section,
  .projects-section,
  .contact-form-section,
  .uk-coverage-section,
  .faq-section,
  .about-section,
  .services-overview-section,
  .featured-projects-section,
  .technology-stack-section,
  .contact-cta,
  section.projects-cta {
    padding: 50px 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .cta-button,
  .btn {
    width: 100%;
  }

  .page-header,
  .page-header-section {
    padding: 60px 0;
  }

  .page-header h1,
  .page-header-section .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section-container,
  .container,
  .homepage-container,
  .projects-container,
  .contact-container {
    padding: 0 15px;
  }

  .skill-card, .card, .project-card, .contact-card {
    padding: 20px;
  }

  .cta-button, .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
