/* Base styles and resets */
:root {
  --primary-color: #3a7bd5;
  --secondary-color: #00d2ff;
  --accent-color: #f39c12;
  --text-color: #333;
  --light-text: #666;
  --very-light-text: #999;
  --background-color: #fff;
  --light-bg: #f5f7fa;
  --border-color: #e1e1e1;
  --success-color: #2ecc71;
  --error-color: #e74c3c;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --border-radius: 8px;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

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

.btn.secondary {
  background: var(--light-bg);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

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

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

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.5rem;
}

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

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

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

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
  transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, rgba(58, 123, 213, 0.1), rgba(0, 210, 255, 0.1));
}

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

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero-image {
  flex: 1;
  max-width: 500px;
  margin-left: 2rem;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Section Styling */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
}

.section-header p {
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

/* About Section */
.about {
  background-color: var(--light-bg);
}

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

.about-image {
  flex: 1;
  max-width: 450px;
  margin-right: 2rem;
}

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

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary-color);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-card p {
  color: var(--light-text);
}

.services-image {
  max-width: 600px;
  margin: 0 auto;
}

.services-image img {
  width: 100%;
  height: auto;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-bg);
}

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 0.5rem;
  margin-bottom: 3rem;
  scrollbar-width: none; /* For Firefox */
}

.testimonials-slider::-webkit-scrollbar {
  display: none; /* For Chrome, Safari and Opera */
}

.testimonial-card {
  flex: 0 0 350px;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  position: relative;
}

.quote-icon {
  color: rgba(58, 123, 213, 0.1);
  position: absolute;
  top: -10px;
  left: -10px;
  width: 40px;
  height: 40px;
}

.testimonial-content p {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.author-avatar svg {
  color: var(--primary-color);
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

.author-info span {
  color: var(--light-text);
  font-size: 0.9rem;
}

.testimonials-image {
  max-width: 400px;
  margin: 0 auto;
}

.testimonials-image img {
  width: 100%;
  height: auto;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.blog-card:hover {
  transform: translateY(-5px);
}

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

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

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

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

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

.blog-cta {
  text-align: center;
}

.blog-image-main {
  max-width: 300px;
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-detail svg {
  color: var(--primary-color);
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-detail h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.social-media h3 {
  margin-bottom: 1rem;
}

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

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

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form h3 {
  margin-bottom: 0.5rem;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

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

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.form-group.checkbox label {
  font-weight: 400;
  font-size: 0.9rem;
}

.contact-image {
  max-width: 400px;
  margin: 0 auto;
}

.contact-image img {
  width: 100%;
  height: auto;
}

/* Footer */
footer {
  background-color: #263238;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-logo span {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-links {
  flex: 1;
  min-width: 150px;
  margin-bottom: 2rem;
}

.footer-links h3,
.footer-newsletter h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-links ul li {
  margin-bottom: 0.75rem;
}

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

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

.footer-newsletter {
  flex: 2;
  min-width: 300px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.footer-newsletter .social-icons {
  margin-top: 1.5rem;
}

.footer-newsletter .social-icons a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer-newsletter .social-icons a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Media Queries */
@media screen and (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-image {
    display: none;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 2rem;
    order: -1;
  }
  
  .about-text {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 4rem 1rem;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 0 0 1.5rem;
  }
  
  nav ul li a {
    display: block;
    padding: 0.5rem 0;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .testimonials-slider {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo, .footer-links, .footer-newsletter {
    min-width: 100%;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .hero {
    padding: 5rem 0 3rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}

/* Additional Styling for article pages */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin-bottom: 1rem;
}

.article-header .article-meta {
  color: var(--light-text);
  font-size: 0.9rem;
}

.article-image {
  margin-bottom: 2rem;
}

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

.article-body {
  line-height: 1.8;
}

.article-body h2 {
  margin: 2rem 0 1rem;
}

.article-body h3 {
  margin: 1.5rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body ul li, .article-body ol li {
  margin-bottom: 0.5rem;
}

/* Styling for legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin: 2rem 0 1rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content ul li, .legal-content ol li {
  margin-bottom: 0.5rem;
}

/* Styling for thanks page */
.thanks-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
}

.thanks-content h1 {
  margin-bottom: 1.5rem;
}

.thanks-content p {
  margin-bottom: 2rem;
}

.thanks-icon {
  color: var(--success-color);
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}
