/*
Theme Name: Atera Analytics
Theme URI: https://atera-analytics.co.uk
Author: Atera Analytics Ltd
Author URI: https://atera-analytics.co.uk
Description: Custom WordPress theme for Atera Analytics - Advanced Data Modelling and AI solutions for transport optimization. Version 4 with content optimization and navigation fixes.
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atera-analytics
Tags: business, analytics, ai, technology, custom-colors, custom-menu, featured-images, flexible-header, custom-logo
*/

/* ==========================================================================
   Base Styles & Color Variables
   ========================================================================== */

:root {
  /* Brand Colors - Cyan to Purple Gradient */
  --primary-cyan: #00CED1;
  --primary-turquoise: #00d4dd;
  --primary-blue: #4da6ff;
  --primary-purple: #7c4dff;
  --primary-violet: #9c27b0;
  
  /* Background Colors */
  --bg-dark: #0a0a14;
  --bg-navy: #16213e;
  --bg-deep-blue: #1a1a2e;
  --bg-slate: #2d3561;
  
  /* Accent Colors */
  --accent-green: #00ff88;
  --accent-orange: #ff9800;
  --accent-red: #ff5252;
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-light: #e0e0e0;
  --text-gray: #b0b0b0;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00CED1 0%, #7c4dff 100%);
  --gradient-secondary: linear-gradient(135deg, #4da6ff 0%, #9c27b0 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a14 0%, #16213e 100%);
}

/* ==========================================================================
   Global Resets & Typography
   ========================================================================== */

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

body {
  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: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

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

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

/* ==========================================================================
   Layout Components
   ========================================================================== */

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

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

section {
  padding: 80px 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: var(--gradient-dark);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-cyan);
  box-shadow: 0 4px 20px rgba(0, 206, 209, 0.1);
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.main-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-menu a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--gradient-primary);
  color: var(--text-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background: var(--gradient-dark);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::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 1200 800"><circle cx="200" cy="200" r="100" fill="rgba(0,206,209,0.03)"/><circle cx="800" cy="400" r="150" fill="rgba(124,77,255,0.03)"/><circle cx="400" cy="600" r="80" fill="rgba(0,206,209,0.02)"/></svg>');
  opacity: 0.5;
}

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

.hero-title {
  font-size: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 206, 209, 0.4);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-cyan);
  color: var(--primary-cyan);
}

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

/* ==========================================================================
   Cards & Content Blocks
   ========================================================================== */

.card {
  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, 206, 209, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 206, 209, 0.2);
  border-color: var(--primary-cyan);
}

.card-title {
  color: var(--primary-cyan);
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* ==========================================================================
   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); }

@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 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

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

.section-title h2 {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   Services Section
   ========================================================================== */

.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;
}

/* ==========================================================================
   Technology Stack
   ========================================================================== */

.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);
}

/* ==========================================================================
   Team Section
   ========================================================================== */

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

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-cyan);
  object-fit: cover;
}

.team-name {
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

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

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

.footer-column h4 {
  color: var(--primary-cyan);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.25rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .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 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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