/* BuildSmart - CSS Variables and Custom Styles */
:root {
  --primary-bg: #171717;
  --accent-primary: #24156a;
  --accent-secondary: #4a3d8d;
  --light-bg: #f1f1f1;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #666666;
  --border-color: #dee2e6;
  --border-accent: #24156a;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Fira Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-primary);
}

/* Header Styles */
.navbar {
  background: var(--accent-primary) !important;
  box-shadow: 0 2px 10px var(--shadow-light);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--light-bg) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(23, 23, 23, 0.7), rgba(23, 23, 23, 0.7)), url('./img/hero-renovation.webp');
  background-size: cover;
  background-position: center;
  min-height: 96vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
}

.hero-content {
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 3rem;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

.hero-icon {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.1);
}

.hero-icon i {
  font-size: 2.5rem;
  color: var(--white);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-hero {
  background: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  color: var(--white);
  padding: 12px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-hero:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(36, 21, 106, 0.4);
}

/* Section Backgrounds */
.bg-dark {
  background-color: var(--primary-bg) !important;
  color: var(--white);
}

.bg-light {
  background-color: var(--light-bg) !important;
}

.bg-accent {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
  color: var(--white);
}

/* Cards */
.service-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.service-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.service-card .icon {
  width: 70px;
  height: 70px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

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

.service-card .icon i {
  font-size: 1.8rem;
  color: var(--accent-primary);
  transition: var(--transition);
}

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

/* Feature Cards (Dark Theme) */
.feature-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.feature-card .icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-card .icon i {
  font-size: 1.5rem;
  color: var(--white);
}

/* Statistics Cards */
.stats-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.stats-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* Blog Cards */
.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}

.blog-card-header {
  background: var(--accent-primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--white);
}

.timeline-icon {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--accent-primary);
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 3px 10px var(--shadow-light);
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent-primary);
  position: absolute;
  top: -10px;
  left: 15px;
  font-weight: bold;
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: var(--white);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Forms */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.2rem rgba(36, 21, 106, 0.25);
}

.form-select {
  border: 2px solid var(--border-color);
  border-radius: 5px;
  padding: 12px 15px;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.2rem rgba(36, 21, 106, 0.25);
}

.btn-primary {
  background: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(36, 21, 106, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-bg);
  color: var(--white);
  padding: 1.5rem;
  z-index: 1000;
  border-top: 3px solid var(--accent-primary);
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner .btn {
  margin: 0 0.5rem;
}

/* Footer */
.footer {
  background: var(--primary-bg);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: #c4bcec;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--accent-primary);
}

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

/* Page Header (Secondary Pages) */
.page-header {
  background: var(--light-bg);
  padding: 8rem 0 4rem;
  text-align: center;
  border-bottom: 3px solid var(--accent-primary);
}

.page-header h1 {
  color: var(--accent-primary);
  font-size: 2.5rem;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-content {
    padding: 8rem 2rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .timeline {
    padding-left: 2rem;
  }
  
  .timeline::before {
    left: 0.5rem;
  }
  
  .timeline-item::before {
    left: -1.8rem;
  }
}

/* Utility Classes */
.section-padding {
  padding: 5rem 0;
}

.text-accent {
  color: var(--accent-primary) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

.border-bottom-accent {
  border-bottom: 3px solid var(--accent-primary);
}

/* Contact Page Styles */
.contact-info .contact-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.contact-info .contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--white);
  font-size: 1.5rem;
}

.contact-info h5 {
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--accent-primary);
}

.contact-form .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-medium);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent-secondary);
  transform: translateY(-3px);
}
