/* Custom styles for K11 Software Solutions */

/* Global Page Styles */
body {
  background-color: #f0f4f5; /* Light teal-gray background */
  margin: 0;
  padding: 0;
}

.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 40px 30px 60px; /* Extra left padding for readability */
  background-color: #ffffff; /* White content area */
  min-height: calc(100vh - 200px); /* Approximate header + footer height */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.page-content {
  padding: 0 20px;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); /* Professional teal gradient */
  color: white;
  padding: 80px 20px;
  text-align: center;
  margin: -30px -30px 40px -30px;
  border-radius: 0 0 20px 20px;
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 5px;
}

.btn-primary {
  background-color: #001f3f;
  color: white;
  border: 2px solid #001f3f;
}

.btn-primary:hover {
  background-color: #003366;
  border-color: #003366;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 31, 63, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.hero-buttons {
  margin-top: 30px;
}

/* Services Section */
.services-section {
  margin: 60px 0;
}

.services-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #667eea;
}

.service-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.learn-more {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: #764ba2;
}

/* Why Choose Us */
.why-choose-us {
  background: #f8f9fa;
  padding: 60px 20px;
  margin: 60px -30px;
  border-radius: 20px;
}

.why-choose-us h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.reason {
  text-align: center;
  padding: 20px;
}

.reason h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #667eea;
}

.reason p {
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  margin: 60px 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.cta-section p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

/* Values Grid (About Page) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.value-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #667eea;
}

.value-card p {
  color: #666;
  line-height: 1.6;
}

/* Process Steps (Services Page) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.process-step {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.process-step:hover {
  background: #667eea;
  color: white;
  transform: translateY(-3px);
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #667eea;
}

.process-step:hover h3 {
  color: white;
}

.process-step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
}

.process-step:hover p {
  color: rgba(255, 255, 255, 0.95);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.portfolio-item {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.portfolio-item h3 {
  margin-bottom: 15px;
}

.portfolio-item h3 a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.portfolio-item h3 a:hover {
  color: #764ba2;
}

.project-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.view-project {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-project:hover {
  color: #764ba2;
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tech-tag {
  background: #e7eafd;
  color: #667eea;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Coming Soon Message */
.coming-soon {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 40px 0;
}

.coming-soon h2 {
  color: #667eea;
  margin-bottom: 20px;
}

.coming-soon p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Blog Posts */
.blog-posts {
  margin: 40px 0;
}

.blog-post-preview {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.blog-post-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.blog-post-preview h2 {
  margin-bottom: 15px;
}

.blog-post-preview h2 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-preview h2 a:hover {
  color: #667eea;
}

.post-meta {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.post-meta .post-author {
  margin-left: 15px;
}

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

.read-more {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #764ba2;
}

.no-posts {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-content {
    padding: 20px 20px 20px 30px; /* Reduced padding for mobile */
  }

  .page-content {
    padding: 0 10px;
  }

  .container {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

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

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

  .hero {
    padding: 60px 15px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* Additional Minima theme overrides */
.site-header {
  background-color: #001f3f; /* Dark navy blue */
  border-top: 5px solid #667eea;
  padding: 15px 0;
}

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

.site-title, .site-title:visited {
  color: #ffffff !important; /* White text on dark background */
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-title a, .site-title a:visited {
  color: #ffffff !important; /* Ensure link is also white */
  text-decoration: none;
}

.site-logo {
  width: 50px;
  height: 50px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav li {
  margin: 0;
  padding: 0;
}

.site-nav .page-link {
  color: #ffffff; /* White text for dark background */
  transition: color 0.3s ease;
}

.site-nav .page-link:hover {
  color: #667eea; /* Purple hover color */
  text-decoration: none;
}

/* Footer Styles */
.site-footer {
  background-color: #f8f9fa;
  padding: 30px 0;
  margin-top: 60px;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content p {
  margin: 0;
  color: #666;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #17a2b8;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: #138496;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}
