/* 
   Solvitude Technologies Website Styles
   Colors: Orange, Peach, White
   Design: Clean, Modern, Minimalist
*/

/* ===== VARIABLES ===== */
:root {
  /* Brand Colors */
  --primary-color: #ff7f50; /* Orange */
  --secondary-color: #ffdab9; /* Peach */
  --accent-color: #ff5722; /* Darker Orange for CTAs */
  --light-color: #ffffff; /* White */
  --dark-color: #333333; /* Dark Gray for text */
  --gray-color: #f5f5f5; /* Light Gray for backgrounds */
  --border-color: #e0e0e0; /* Border color */

  /* Typography */
  --body-font: "Poppins", sans-serif;
  --heading-weight: 600;
  --body-weight: 400;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--heading-weight);
  line-height: 1.3;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--light-color);
  border: 2px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--light-color);
}

.btn-text {
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
}

.btn-text::after {
  content: "→";
  margin-left: 5px;
  transition: all 0.3s ease;
}

.btn-text:hover {
  color: var(--accent-color);
}

.btn-text:hover::after {
  margin-left: 10px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 2px 0;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(
      to right,
      rgba(255, 127, 80, 0.5),
      rgba(255, 218, 185, 0.5)
    ),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: left;
  color: var(--light-color);
  margin-top: 70px; /* Account for fixed header */
}

.hero-content {
  max-width: 800px;
  margin: 0 0 0 50px;
  text-align: left;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-align: left;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: var(--section-padding);
  background-color: var(--gray-color);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
  width: 70px;
  height: 70px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-card .icon i {
  font-size: 30px;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 20px;
  color: #666;
}

/* ===== STATISTICS SECTION ===== */
.statistics {
  padding: var(--section-padding);
  background-color: var(--primary-color);
  color: var(--light-color);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CTA SECTION ===== */
.cta {
  padding: var(--section-padding);
  text-align: center;
  background-color: var(--secondary-color);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background-color: var(--gray-color);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 20px;
  margin-right: 15px;
}

.contact-form {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: var(--body-font);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
  background-color: #222;
  color: var(--light-color);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-social h3::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 0;
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
  color: #ccc;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.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: var(--light-color);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #999;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cta h2 {
      font-size: 2rem;
  }
}

/* ===== SERVICES PAGE STYLES ===== */
.service-detail {
  padding: 50px 0;
}

.service-detail:nth-child(even) {
  background-color: var(--gray-color);
}

.service-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.service-detail-content {
  text-align: left;
}

.service-detail-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.service-detail-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.service-detail-content ul li {
  list-style-type: disc;
  margin-bottom: 10px;
  color: #666;
}

.service-detail-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-cta {
  background-color: var(--secondary-color);
  padding: 80px 0;
  text-align: center;
}

.service-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-cta p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

@media screen and (max-width: 768px) {
  .service-detail-container {
      grid-template-columns: 1fr;
  }
  
  .service-detail-image {
      order: 1;
  }
  
  .service-detail-content {
      order: 2;
  }
}

/* ===== BLOG PAGE STYLES ===== */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.blog-post {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-post-image {
  height: 200px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.blog-post:hover .blog-post-image img {
  transform: scale(1.1);
}

.blog-post-content {
  padding: 20px;
}

.blog-post-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #777;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.blog-post-content p {
  color: #666;
  margin-bottom: 15px;
}

.blog-categories {
  margin: 50px 0;
}

.blog-categories h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
}

.blog-categories h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 0;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tag {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.category-tag:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.blog-sidebar {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
}

.blog-sidebar h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 0;
}

.recent-posts {
  margin-top: 30px;
}

.recent-post {
  display: flex;
  margin-bottom: 20px;
}

.recent-post-image {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
}

.recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-content h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.recent-post-content p {
  font-size: 0.9rem;
  color: #777;
}

@media screen and (max-width: 992px) {
  .blog-container {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .blog-container {
      grid-template-columns: 1fr;
  }
}
