/* Modern CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Custom Properties for Design System */
:root {
  --primary-color: #1e3a5f;
  --primary-dark: #0b2a4a;
  --primary-light: #2d5a8e;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-hero: #ecf0f1;
  --border-color: #e1e8ed;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --container-max-width: 1200px;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: #f5f5f5;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  font-weight: 500;
  transition: var(--transition);
}

.skip-to-content:focus {
  top: 6px;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  
}

.header .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 20px;
  min-height: 140px;
  
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo img {
  height: 120px;
  margin-right: 12px;
  transition: var(--transition);
}

/* Navigation Styles */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav a:hover {
  color: var(--accent-color);
  background: rgba(52, 152, 219, 0.1);
}

.nav a:hover::after {
  width: 80%;
}

.nav a.active {
  color: var(--accent-color);
  background: rgba(52, 152, 219, 0.1);
}

.nav a.active::after {
  width: 80%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
  background: transparent;
  padding: 40px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero.index-hero {
  background: linear-gradient(135deg, var(--bg-hero) 0%, var(--bg-secondary) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--primary-dark);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Section Styles */
.section {
  padding: 2px 0 60px;
}

.section .container {
  max-width: var(--container-max-width);
}

/* Call to Action Section */
.cta-section {
  text-align: center;
  margin: 2rem 0;
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button:active {
  transform: translateY(0);
}

/* Why Section */
.why-section {
  margin-top: 3rem;
  text-align: center;
}

.why-section h2 {
  color: var(--primary-dark);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-item {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent-color);
  transition: var(--transition);
}

.why-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.why-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

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

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.client-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.client-logo {
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.client-card:hover .client-logo {
  transform: scale(1.05);
}

.client-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.4;
}

.grid > div {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.grid > div:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Typography */
h1, h2, h3 {
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.0;
  margin-bottom: 1rem;
  margin-top: 1rem;
  
}
h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 1.0rem;
}

h3 {
  font-size: 1.0rem;
}

/* Service Desk Section */
.service-desk-section {
  margin: 3rem 0;
  text-align: center;
}

.service-desk-link {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 500px;
}

.service-desk-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lazy.loaded {
  opacity: 1;
}

/* Image optimization */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

@supports (image-rendering: -webkit-optimize-contrast) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

.service-desk-image {
  width: auto;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.service-desk-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 2rem;
  text-align: left;
  transition: var(--transition);
}

.service-desk-overlay h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: white;
}

.service-desk-overlay p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .service-desk-section {
    margin: 2rem 0;
  }
  
  .service-desk-link {
    max-width: 100%;
  }
  
  .service-desk-overlay {
    padding: 1.5rem;
  }
  
  .service-desk-overlay h3 {
    font-size: 1.1rem;
  }
}
.content-with-image {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.text-content {
  flex: 1;
}

.image-content {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-image {
  height: 240px;
  width: auto;
  max-width: 400px;
}

/* Section heading with image */
.section-heading-with-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.heading-image {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  margin-left: auto;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0rem;
  margin-top: 0.5rem;
}

ul {
  margin-left: 20px;
  margin-bottom: 0.5rem;
}

li {
  margin-bottom: 0.2rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: #ffffff;
  color: var(--text-primary);
  padding: 1rem 0;
  text-align: center;
}

.footer p {
  color: var(--text-secondary);
  margin: 0;
}

/* Image Enlargement Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  animation: fadeIn 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.image-modal img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.image-modal:hover {
  background-color: rgba(0, 0, 0, 0.95);
}

.image-modal img:hover {
  transform: translate(-50%, -50%) scale(1.02);
}

/* Close button for mobile */
.image-modal::before {
  content: '×';
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.image-modal::before:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Clickable images */
.clickable-image {
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--border-radius);
  position: relative;
}

.clickable-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.clickable-image:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Enhanced button interactions */
.nav a, .logo, button {
  position: relative;
  overflow: hidden;
}

.nav a::before, .logo::before, button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.nav a:active::before, .logo:active::before, button:active::before {
  width: 300px;
  height: 300px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .content-with-image {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .image-content {
    order: -1;
    margin-bottom: 1rem;
  }
  
  .side-image {
    height: 80px;
  }
  
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .client-card {
    padding: 1.5rem;
    min-height: 180px;
  }
  
  .client-logo {
    max-width: 180px;
    max-height: 100px;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .why-item {
    padding: 1rem;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav a {
    font-size: 18px;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid > div {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 20px 0;
  }
}
