/* Global styles for Horlle Design website */

@import url('cta-banner.css');
@import url('testimonials.css');

:root {
  --bs-dark-bg: #0c0e13;       /* Very dark background */
  --bs-dark: #ffffff;          /* Main text color on dark background */
  --bs-accent: #5B98FF;        /* CTA / accent color */
  --bs-secondary-accent: #38D6AE; /* Secondary accent example */
  --bs-light-bg: #1c1f26;      /* Lighter dark sections */
  --bs-heading-font-size: 2.5rem;
  --bs-subheading-font-size: 1.25rem;
}

body {
  background-color: var(--bs-dark-bg);
  color: var(--bs-dark);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-top: 70px;
}

a {
  text-decoration: none;
  color: var(--bs-accent);
}

a:hover {
  opacity: 0.8;
}

.navbar-dark .navbar-nav .nav-link {
  color: #fff;
}

.btn-accent {
  background-color: var(--bs-accent);
  color: #fff;
  border: none;
}

.btn-accent:hover {
  opacity: 0.9;
  color: #fff;
}

/* Modern Floating Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background-color: rgba(12, 14, 19, 0.85); /* Translucent background */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 1rem auto;
  border-radius: 12px;
  width: calc(100% - 2rem);
  max-width: 1320px; /* Match Bootstrap's .container-xxl */
}

.navbar > .container {
  max-width: 100%;
  padding: 0 1rem;
}

/* Section headings */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 2rem;
}

/* Subpage Headers */
.subpage-header {
  padding: 4rem 1rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 20% 35%, rgba(91, 152, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(56, 214, 174, 0.08) 0%, transparent 50%);
}

.subpage-header h1 {
  font-size: var(--bs-heading-font-size);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #5B98FF 0%, #38D6AE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.subpage-header .lead {
  font-size: var(--bs-subheading-font-size);
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
}

/* Filter Tabs */
.filter-section {
  padding: 0.5rem 1rem 1.5rem;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-tab {
  background-color: transparent;
  border: 1px solid var(--bs-light-bg);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  background-color: rgba(91, 152, 255, 0.1);
}

.filter-tab.active {
  background-color: var(--bs-accent);
  border-color: var(--bs-accent);
  color: #fff;
}

/* Portfolio Items */
.portfolio-section {
  padding: 2rem 1rem 4rem;
}

.portfolio-item {
  background-color: var(--bs-light-bg);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.03);
}

.tag {
  display: inline-block;
  background-color: var(--bs-accent);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* Case Study Section */
.case-study-section {
  background-color: var(--bs-light-bg);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.case-study-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--bs-accent);
}

/* Testimonial section */
.testimonial-section {
  padding: 3rem 1rem;
}

.testimonial-box {
  background-color: var(--bs-light-bg);
  padding: 2rem;
  border-radius: 0.5rem;
}

.testimonial-box p.quote {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-box p.author {
  font-weight: 600;  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: #0b0c10;
  padding: 2rem 1rem;
  text-align: center;
  color: #aaa;
}

footer a {
  color: #aaa;
  font-size: 0.875rem;
}

.footer-links a {
  margin: 0 0.5rem;
}

/* Portfolio Detail Page */
.portfolio-detail-header {
  padding: 4rem 0 2rem;
}

.portfolio-detail-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.portfolio-detail-header .client-name {
  color: var(--bs-accent);
  font-weight: 500;
}

.portfolio-detail-image {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.portfolio-detail-image img {
  width: 100%;
  height: auto;
}

.portfolio-detail-meta {
  background-color: var(--bs-light-bg);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.portfolio-detail-meta h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.image-gallery {
  margin: 3rem 0;
}

.gallery-item {
  margin-bottom: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.gallery-caption {
  margin-top: 0.5rem;
  color: #ccc;
  font-size: 0.9rem;
}

/* Client Detail Page */
.client-header {
  text-align: center;
  padding: 4rem 0 2rem;
}

.client-logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.client-projects {
  margin: 3rem 0;
}

.client-meta {
  background-color: var(--bs-light-bg);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .subpage-header h1 {
    font-size: 3rem;
  }
  
  .portfolio-detail-header h1 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
    flex-wrap: nowrap;
  }
  
  .filter-tab {
    white-space: nowrap;
  }
  
  /* Hero section mobile optimizations */
  .spots-tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
  }
  
  .btn-hero-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}