/* Base Styles */
:root {
  --primary-color: #C02026;
  --primary-dark: #9a1a1f;
  --dark-color: #333333;
  --light-color: #f5f5f5;
  --white: #ffffff;
  --gray: #e0e0e0;
  --dark-gray: #777777;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 5.6rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 4.2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 2.2rem;
}

p {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(192, 32, 38, 0.3);
}

.section-padding {
  padding: 8rem 0;
}

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

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

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

.section-header p {
  max-width: 700px;
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 1rem 0;
}

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

.logo img {
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

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

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/hero-bg.jpg') no-repeat center center/cover;
  padding-top: 8rem;
}

.hero-content {
  max-width: 700px;
}

.hero h1 span {
  color: var(--primary-color);
  position: relative;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgba(192, 32, 38, 0.2);
  z-index: -1;
}

.slogan {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

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

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--gray);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background-color: rgba(192, 32, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: var(--primary-color);
  color: var(--white);
}

.service-icon i {
  font-size: 3rem;
  color: var(--primary-color);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 1.5rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

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

.stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 1.4rem;
  color: var(--dark-gray);
}

/* Portfolio Section */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.filter-btn {
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
  background-color: transparent;
  border: 1px solid var(--gray);
  color: var(--dark-gray);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

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

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(192, 32, 38, 0.9);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay h3 {
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-overlay p {
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

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

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.client-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.client-info h4 {
  margin-bottom: 0.3rem;
}

.client-info p {
  font-size: 1.4rem;
  margin-bottom: 0;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-size: 1.6rem;
  font-family: inherit;
  border: 1px solid var(--gray);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(192, 32, 38, 0.2);
}

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

.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(192, 32, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.info-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.info-content p {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(192, 32, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 6rem 0 0;
}

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

.footer-col p {
  color: var(--gray);
  margin-top: 1.5rem;
}

.footer-col h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

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

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul li a {
  font-size: 1.5rem;
  color: var(--gray);
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 2rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  padding: 0 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 1.4rem;
  color: var(--gray);
  margin-bottom: 0;
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-links a {
  font-size: 1.4rem;
  color: var(--gray);
  transition: all 0.3s ease;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Animations */
.animate__animated {
  opacity: 0;
}

.fadeIn {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
      max-width: 600px;
  }
  
  h1 {
      font-size: 4.8rem;
  }
  
  h2 {
      font-size: 3.6rem;
  }
  
  .about-content {
      grid-template-columns: 1fr;
  }
  
  .about-image {
      order: -1;
  }
  
  .contact-content {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
      position: absolute;
      top: 80px;
      right: -100%;
      width: 60%;
      height: calc(100vh - 80px);
      background-color: var(--white);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3rem;
      transition: right 0.5s ease;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
      right: 0;
  }
  
  .burger {
      display: block;
  }
  
  .burger.active .line1 {
      transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .burger.active .line2 {
      opacity: 0;
  }
  
  .burger.active .line3 {
      transform: rotate(45deg) translate(-5px, -6px);
  }
  
  h1 {
      font-size: 4rem;
  }
  
  h2 {
      font-size: 3rem;
  }
  
  .section-padding {
      padding: 6rem 0;
  }
  
  .portfolio-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .testimonials-slider {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero {
      min-height: 600px;
  }
  
  .hero-content {
      text-align: center;
  }
  
  h1 {
      font-size: 3.2rem;
  }
  
  h2 {
      font-size: 2.8rem;
  }
  
  .slogan {
      font-size: 1.8rem;
  }
  
  .services-grid {
      grid-template-columns: 1fr;
  }
  
  .portfolio-filter {
      flex-wrap: wrap;
  }
  
  .stats {
      flex-direction: column;
      gap: 2rem;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
  }
  
  .footer-bottom {
      flex-direction: column;
      gap: 1.5rem;
      text-align: center;
  }
  
  .legal-links {
      flex-wrap: wrap;
      justify-content: center;
  }
}