/* Modern Gradient Color Scheme */
:root {
  --primary-color: #4F46E5;
  --secondary-color: #7C3AED;
  --accent-color: #22C55E;
  --light-color: #F9FAFB;
  --dark-color: #1F2937;
  --gray-color: #6B7280;
  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-secondary: linear-gradient(135deg, #22C55E 0%, #10B981 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 12px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

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

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.language-switch {
  display: flex;
  align-items: center;
  margin-right: 2rem;
  font-size: 0.9rem;
}

.language-switch a {
  text-decoration: none;
  color: var(--primary-color);
  margin: 0 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.language-switch a:hover {
  background-color: rgba(79, 70, 229, 0.1);
}

.language-switch a.lang-active {
  background-color: var(--primary-color);
  color: white !important;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 8rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-weight: 400;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Section Styles */
section {
  padding: 8rem 0;
  position: relative;
}

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

section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.subheading {
  text-align: center;
  font-size: 1.25rem;
  color: var(--gray-color);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* About Section */
.about .content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about .content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-color);
}

/* Services Section */
.services {
  padding: 8rem 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service-item {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-item h4 {
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.service-item p {
  color: var(--gray-color);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Training & News Section */
.training-news {
  padding: 8rem 0;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.news-item {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-secondary);
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-item h4 {
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

.news-date {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: block;
}

.news-item p {
  color: var(--gray-color);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Table Styles for News Content */
.news-item table,
.news-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border: 1px solid #ddd;
}

.news-item th,
.news-item td,
.news-body th,
.news-body td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.news-item th,
.news-body th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: var(--dark-color);
}

.news-item tr:nth-child(even),
.news-body tr:nth-child(even) {
  background-color: #f9fafb;
}

.news-item tr:hover,
.news-body tr:hover {
  background-color: #f3f4f6;
}

/* Cases Section */
.cases {
  padding: 8rem 0;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.case-item {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}

.case-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.case-item h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.case-item p {
  color: var(--gray-color);
  line-height: 1.7;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-info p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--gray-color);
}

.contact-info strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 3rem 0;
}

footer .container p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 1.75rem;
  }
  
  section h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .language-switch {
    margin: 1rem 0 0 0;
    order: 3;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }

  .hero {
    padding: 6rem 0 4rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  section:nth-child(odd), section:nth-child(even) {
    background-color: white;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .subheading {
    font-size: 1.1rem;
  }
  
  .service-list,
  .news-list,
  .case-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info {
    margin: 0 1rem;
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.25rem;
  }
  
  section h2 {
    font-size: 1.75rem;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}