/* Reset & Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6c63ff;
  --primary-light: #e6e4ff;
  --text-dark: #333333;
  --text-light: #666666;
  --background: #ffffff;
  --gray-light: #f8f9fa;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-pill: 50px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

a {
  text-decoration: none;
  color: inherit;
}

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

h1, h2, h3, h4 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

.section {
  padding: 80px 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

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

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* Header */
header {
  background-color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 8px;
}

.navbar {
  display: flex;
  gap: 2rem;
}

.navbar a {
  font-weight: 500;
  color: var(--text-dark);
}

.navbar a:hover {
  color: var(--primary);
}

.navbar a.active {
  color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-white {
  background-color: white;
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

/* Hero */
.hero {
  background-color: var(--primary);
  color: white;
  padding: 80px 0;
}

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

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
}

/* Features */
.features {
  padding: 80px 0;
}

.card {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Services */
.services {
  background-color: var(--gray-light);
  padding: 80px 0;
}

.service-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.service-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.checklist {
  margin-top: 2rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.check-icon {
  color: var(--primary);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Data Analysis */
.data-analysis {
  padding: 80px 0;
}

.chart-container {
  height: 300px;
  position: relative;
}

/* Contact */
.contact {
  background-color: var(--primary);
  color: white;
  padding: 80px 0;
}

.contact-form {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

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

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
}

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

/* Footer */
footer {
  background-color: #1e293b;
  color: white;
  padding: 60px 0 30px;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

/* Sociala medier */
.social-media-section {
  padding: 80px 0;
}

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

.social-media-image {
  text-align: center;
}

.social-media-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.stat-card {
  background-color: var(--gray-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  width: 45%;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* About Us */
.about-us {
  padding: 80px 0;
}

.about-image {
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    margin-top: 2rem;
    order: 2;
  }
  
  .navbar {
    display: none;
  }
  
  .social-media-content {
    grid-template-columns: 1fr;
  }
}

/* Bildspecifika kontroller för storlek */
.feature-image {
  max-height: 400px;
  object-fit: contain;
}

.medium-image {
  max-height: 350px;
  object-fit: cover;
}

.small-image {
  max-height: 250px;
  object-fit: cover;
}

.chart-image {
  max-height: 300px;
  object-fit: contain;
}

/* Lägg till bildkorrigering för AI-bild på tjänstsidan */
img[src="ai-circuit.jpg"] {
  max-height: 350px;
  object-fit: cover;
}

/* Lägg till bildkorrigering för team-bilder */
img[src="planning-team.jpg"], 
img[src="team-collaboration.jpg"] {
  max-height: 350px;
  object-fit: cover;  
}
