/* Global Styles */
:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #00d4ff;
  --text-color: #333;
  --bg-color: #f9f9f9;
  --light-bg: #ffffff;
  --dark-bg: #1a1a2e;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: white;
}

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

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

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
}

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

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

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  color: var(--text-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

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

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

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  margin-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.9), rgba(37, 117, 252, 0.9));
  z-index: -1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/1.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: translateZ(-1px) scale(1.5);
}

.hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Posts Section */
.posts {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

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

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

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

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

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

.post-meta {
  display: flex;
  align-items: center;
  color: #888;
  font-size: 0.9rem;
}

.post-date {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.post-date i, .post-author i {
  margin-right: 5px;
}

/* Compare Table */
.compare-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.compare-table th {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 15px;
  text-align: left;
}

.compare-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.compare-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* Call to Action */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background-color: var(--dark-bg);
  color: white;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-text {
  margin-bottom: 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  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-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

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

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

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

.footer-links a:hover {
  color: white;
  margin-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

.social-icon:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: translateY(-3px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.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.7);
}

/* Contact Page */
.contact-section {
  padding: 150px 0 100px;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-text p {
  color: #666;
}

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

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

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

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

/* About Page */
.about-section {
  padding: 150px 0 100px;
}

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

.about-text {
  font-size: 1.1rem;
  margin-top: 30px;
  color: #666;
}

.team-section {
  margin-top: 80px;
}

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

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

.team-card:hover {
  transform: translateY(-10px);
}

.team-image {
  height: 250px;
  overflow: hidden;
}

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

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.team-bio {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.team-social a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.team-social svg {
  width: 18px;
  height: 18px;
  fill: #666;
  transition: var(--transition);
}

.team-social a:hover svg {
  fill: white;
}

/* Blog Post Page */
.post-header {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 50px;
}

.post-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.post-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.post-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
}

.post-header-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.post-header-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  gap: 20px;
}

.post-header-date, .post-header-author {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-article {
  max-width: 800px;
  margin: 0 auto 100px;
  padding: 0 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.post-article p {
  margin-bottom: 25px;
}

.post-article h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: var(--text-color);
}

.post-article h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--text-color);
}

.post-article ul, .post-article ol {
  margin-bottom: 25px;
  padding-left: 25px;
}

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

.post-article img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 30px 0;
}

.post-article blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  background-color: #f5f5f5;
  margin: 30px 0;
  font-style: italic;
  color: #555;
}

.share-post {
  margin-top: 50px;
  display: flex;
  align-items: center;
}

.share-post span {
  font-weight: 600;
  margin-right: 15px;
}

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

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.related-posts {
  margin-top: 80px;
}

.related-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--light-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

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

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-text h3 {
  margin-bottom: 5px;
}

.cookie-text p {
  font-size: 0.9rem;
  color: #666;
}

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

.cookie-btn {
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

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

.cookie-btn.customize, .cookie-btn.decline {
  background-color: transparent;
  border: 1px solid #ddd;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #999;
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon i {
  font-size: 2rem;
  color: white;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-text {
  color: #666;
  margin-bottom: 20px;
}

/* Parallax Effect */
.parallax-section {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140%;
  background-image: url('images/4.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: translateZ(-1px) scale(2);
}

.parallax-content {
  text-align: center;
  color: white;
  z-index: 1;
  position: relative;
  padding: 0 20px;
}

.parallax-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.parallax-text {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .post-header-title {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: var(--light-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-text {
    margin-bottom: 15px;
  }

  .post-header-title {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .post-header {
    height: 400px;
  }

  .post-header-title {
    font-size: 1.8rem;
  }

  .compare-table {
    font-size: 0.9rem;
  }

  .compare-table th, .compare-table td {
    padding: 10px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}
