/* Base styles and variables */
:root {
  --primary-color: #6a3ae8;
  --primary-light: #9a75ff;
  --primary-dark: #4a20c5;
  --secondary-color: #ff6b6b;
  --accent-color: #00d9ff;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fc;
  --bg-dark: #1a1a2e;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
  --footer-bg: #151628;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
  text-align: center;
}

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

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

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

ul {
  list-style: none;
}

section {
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Utility classes */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

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

.spell-check-btn {
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  margin: 1rem auto;
  display: block;
}

.spell-check-btn:hover {
  background-color: #00b7d9;
  transform: translateY(-2px);
}

/* Header and Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: var(--header-height);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  margin-right: 1rem;
  border-radius: 50%;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.25rem;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e2eeff 100%);
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Features Section */
.features {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 5rem 2rem;
  margin: 4rem auto;
}

.features h2 {
  margin-bottom: 3rem;
}

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

.feature-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

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

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

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Recent Posts Section */
.recent-posts {
  padding: 5rem 2rem;
}

.recent-posts h2 {
  margin-bottom: 3rem;
}

.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.post-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.read-more:hover {
  border-bottom-color: var(--primary-color);
}

.view-all {
  text-align: center;
  margin-top: 2.5rem;
}

/* Blog Page */
.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e2eeff 100%);
  border-radius: var(--border-radius);
}

.blog-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 4rem;
}

.blog-post {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  padding: 2rem;
}

.blog-post .post-image {
  align-self: center;
}

.blog-post .post-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.blog-post .post-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-align: left;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.post-text p {
  margin-bottom: 1.5rem;
  text-align: left;
}

.post-text h4 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  text-align: left;
}

.post-text ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-text ul li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
  text-align: left;
}

/* About Page */
.about-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e2eeff 100%);
  border-radius: var(--border-radius);
}

.about-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-header p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.about-content h3 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  text-align: left;
}

.about-content p {
  text-align: left;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.team-section {
  margin-bottom: 4rem;
}

.team-section h3 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.team-member {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-member p {
  margin-bottom: 1rem;
}

.team-member p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-color);
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.values-section {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 4rem 2rem;
}

.values-section h3 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

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

.value-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.value-card .icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.value-card h4 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* Contact Page */
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e2eeff 100%);
  border-radius: var(--border-radius);
}

.contact-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-header p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.contact-card .icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-form-container {
  background-color: var(--bg-light);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form-container h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

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

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-group input {
  width: auto;
}

.submit-btn {
  margin-top: 1rem;
  width: 100%;
}

.map-section {
  margin-bottom: 4rem;
}

.map-section h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--bg-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: var(--success-color);
  color: white;
  border-radius: 50%;
  margin: 0 auto 2rem;
}

.close-btn {
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.footer-links h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
  text-align: left;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-social h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
  text-align: left;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  padding: 1.5rem;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  color: white;
}

.cookie-content p {
  margin-bottom: 1rem;
  text-align: center;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-more {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-more a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding: 4rem 2rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .about-intro {
    grid-template-columns: 1fr;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
  
  .logo-container {
    margin-bottom: 1rem;
  }
  
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  section {
    padding: 3rem 1.5rem;
  }
  
  .feature-cards, 
  .post-cards, 
  .team-members,
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .blog-header h2,
  .about-header h2,
  .contact-header h2 {
    font-size: 2.25rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.75rem;
  }
  
  .feature-card,
  .contact-card,
  .value-card {
    padding: 1.5rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
