:root {
  --primary-color: #4e54c8;
  --secondary-color: #8f94fb;
  --accent-color: #39b9b9;
  --text-color: #333;
  --light-text: #666;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
  --radius: 8px;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-light);
}

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

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo h1 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

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

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  font-weight: 500;
  padding: 5px;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: var(--transition);
}

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

.nav-links .active {
  font-weight: 700;
}

.nav-links .active:after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(78, 84, 200, 0.7), rgba(143, 148, 251, 0.7)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.cta-btn:hover {
  background-color: #2fa0a0;
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  font-family: var(--font-heading);
  color: var(--primary-color);
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  height: 3px;
  width: 80px;
  background: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Blog Posts */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

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

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.post-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-date {
  font-size: 0.8rem;
  color: var(--light-text);
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  color: var(--primary-color);
}

.post-excerpt {
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--accent-color);
}

/* Testimonials */
.testimonials {
  background-color: var(--bg-white);
  padding: 60px 0;
  margin: 60px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--accent-color);
}

.testimonial-text {
  position: relative;
  font-style: italic;
  margin-bottom: 10px;
}

.testimonial-text:before {
  content: '"';
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
  z-index: -1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary-color);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(57, 185, 185, 0.3);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* About Us */
.about-section {
  padding: 60px 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.team-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.team-info p {
  margin-bottom: 10px;
}

.team-info .position {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: var(--light-text);
  transition: var(--transition);
}

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

/* Single Post */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.single-post-header {
  padding: 30px;
  border-bottom: 1px solid #eee;
}

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.post-meta .date {
  color: var(--light-text);
  margin-right: 20px;
}

.post-meta .category {
  background-color: var(--accent-color);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.single-post-title {
  font-size: 2rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.single-post-content {
  padding: 30px;
}

.post-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content h2, 
.single-post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.single-post-content ul, 
.single-post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.single-post-content li {
  margin-bottom: 10px;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.contact-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.contact-card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
}

.footer-logo h2 {
  font-size: 1.3rem;
}

.footer-about p {
  margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
  content: '';
  position: absolute;
  height: 2px;
  width: 40px;
  background: var(--accent-color);
  bottom: 0;
  left: 0;
}

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

.footer-links li {
  margin-bottom: 10px;
}

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

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

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: 15px;
}

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

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

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  padding: 15px 30px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-text {
  max-width: 60%;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.accept-btn:hover {
  background-color: var(--secondary-color);
}

.customize-btn, .reject-btn {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.customize-btn:hover, .reject-btn:hover {
  background-color: #f0f0f0;
}

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

.modal.show {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.3s;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-content i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.close-modal {
  margin-top: 20px;
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  background-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    position: relative;
  }
  
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    gap: 15px;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .hamburger {
    display: block;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 20px;
  }
  
  .cookie-consent {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px;
  }
  
  .cookie-text {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .testimonial-grid,
  .contact-info,
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .single-post-title {
    font-size: 1.5rem;
  }
  
  .copyright {
    font-size: 0.8rem;
  }
}
