/* Base styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-color: #e1e4e8;
  --accent-color: #e74c3c;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

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

/* Header styles */
.site-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title-wrapper {
  margin-bottom: 0.5rem;
}

.site-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: block;
}

.site-title:hover {
  color: var(--secondary-color);
}

.site-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.2rem;
}

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

.nav-trigger {
  display: none;
}

.menu-icon {
  display: none;
}

.trigger {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.page-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.page-link:hover {
  color: var(--secondary-color);
}

/* Language switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.3);
}

.language-switcher select {
  background-color: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  outline: none;
}

.language-switcher select:hover {
  background-color: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.language-switcher select:focus {
  background-color: rgba(255,255,255,0.2);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.language-switcher select option {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem;
}

/* Main content */
.page-content {
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
  border-radius: 8px;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  color: #555;
}

/* Updates grid */
.latest-updates {
  margin-top: 3rem;
}

.latest-updates h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.update-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.update-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.update-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.update-card .date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.update-card p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* About page */
.about-page h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.philosophy-list {
  list-style: none;
  padding-left: 0;
}

.philosophy-list li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--light-bg);
  border-left: 4px solid var(--secondary-color);
  border-radius: 4px;
  font-size: 1.1rem;
}

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

.principle-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.principle-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Projects page */
.projects-page h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.projects-section {
  margin-bottom: 3rem;
}

.projects-section h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.no-projects {
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 8px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.project-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-header h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin: 0;
}

.project-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-description {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.project-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.project-features li {
  padding: 0.5rem 0;
  color: #666;
  font-size: 0.95rem;
}

.project-features li::before {
  content: '✓ ';
  color: #27ae60;
  font-weight: bold;
  margin-right: 0.5rem;
}

.btn-project {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-project:hover {
  background: #2980b9;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Contacts page */
.contacts-page h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.contacts-section {
  max-width: 600px;
}

.contact-info {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 8px;
}

.contact-info a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.site-footer p {
  margin: 0;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .menu-icon {
    display: block;
    cursor: pointer;
  }
  
  .nav-trigger:checked ~ .trigger {
    display: flex;
  }
  
  .trigger {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
  }
  
  .language-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.5rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .updates-grid {
    grid-template-columns: 1fr;
  }
  
  .principles-grid {
    grid-template-columns: 1fr;
  }
}
