/* ============================================
   WYBO Branding Agency - Custom Styles
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #e45be4;
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-dark: #0a0a0a;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
  --font-primary: "Inter", sans-serif;
  --font-display: "Bebas Neue", serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand .brand-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 2px;
}

.navbar-nav .nav-link {
  color: var(--secondary-color) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  display: inline-block; /* Makes the link only as wide as its content */
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: calc(100% - 2rem);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  text-align: right; /* Aligns text to the right */
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--secondary-color);
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 51, 102, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(51, 102, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 0;
  transition: var(--transition);
}

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

.hero-buttons .btn-primary:hover {
  background: transparent;
  color: var(--secondary-color);
}

.hero-buttons .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-outline-light:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  display: block;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ============================================
   Section Styles
   ============================================ */
section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 3rem;
}

.section-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--text-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  background: var(--secondary-color);
}

.about-content .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.vision-box {
  background: var(--bg-light);
  padding: 2rem;
  margin-top: 2rem;
  border-left: 4px solid var(--primary-color);
}

.vision-box h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.vision-box p {
  margin-bottom: 0;
}

.about-image .image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.image-grid .grid-item {
  overflow: hidden;
  border-radius: 4px;
}

.image-grid .grid-item.large {
  grid-column: span 2;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

/* ============================================
   Services Section
   ============================================ */
.services-section {
  background: var(--bg-light);
}

.service-card {
  background: var(--secondary-color);
  padding: 2.5rem;
  height: 100%; /* Ensures all cards are same height if in a grid */
  transition: var(--transition);
  border: 1.5px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.service-icon {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  transition: var(--transition);
}

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

.service-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
  min-height: 3rem; /* adjusts based on your longest title */
  display: flex;
  align-items: flex-start; /* aligns text to top */
  justify-content: center; /* keeps text centered */
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Pushes the service-stat down by expanding the paragraph */
}

.service-stat {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto; /* Forces the stat to the bottom */
}

.service-stat span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   Team Section
   ============================================ */
.team-section {
  background: var(--secondary-color);
}

.team-card {
  background: var(--bg-light);
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.team-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333 0%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-placeholder span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.team-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* makes this section expand */
}

.team-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-role {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.team-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto; /* Forces the team-focus to the bottom */
}

.team-focus span {
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  background: var(--secondary-color);
  color: var(--text-light);
  border-radius: 20px;
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio-section {
  background: var(--bg-dark);
  color: var(--secondary-color);
}

.portfolio-section .section-title {
  color: var(--secondary-color);
}

.portfolio-filter {
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1.5rem;
  margin: 0 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-image img {
  width: 436px;
  height: 291px;
  object-fit: cover;
  transition: var(--transition);
}

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

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-overlay h5 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   Clients Section - Infinite Carousel with Images
   ============================================ */
.clients-section {
  background: var(--secondary-color);
  overflow: hidden; /* Prevents horizontal scroll on page */
}

.logo-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.logo-carousel {
  display: flex;
  gap: 2rem;
  animation: scroll 30s linear infinite;
  width: max-content; /* Allows content to expand */
  align-items: center; /* Vertical alignment of all items */
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-carousel:hover {
  animation-play-state: paused; /* Pause on hover */
}

.logo-slide {
  flex: 0 0 auto;
  width: 140px; /* Fixed container width */
  height: 80px; /* Fixed container height */
  display: flex; /* For vertical centering */
  align-items: center; /* Vertical center */
  justify-content: center; /* Horizontal center */
}

.client-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* Remove background color */
  border: none; /* Remove border or keep if desired */
  padding: 0.5rem;
  transition: var(--transition);
}

.client-logo img {
  max-width: 100%;
  max-height: 60px; /* Consistent max height for all logos */
  width: auto;
  height: auto;
  object-fit: contain; /* Maintains aspect ratio */
  filter: grayscale(100%); /* Optional: make logos grayscale */
  opacity: 1; /* Optional: slight transparency */
  transition: var(--transition);
}

.client-logo:hover img {
  filter: grayscale(0%); /* Color on hover */
  opacity: 1;
  transform: scale(1.1);
}

/* Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-slide {
    width: 100px;
    height: 60px;
  }

  .client-logo img {
    max-height: 40px;
  }

  .client-logo {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .logo-carousel {
    gap: 2rem;
  }
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  background: var(--bg-light);
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.contact-item h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--secondary-color);
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.contact-form .btn-primary {
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 0;
  padding: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}

.contact-form .btn-primary:hover {
  background: transparent;
  color: var(--primary-color);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand .brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-brand .brand-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991.98px) {
  .hero-stats {
    padding-left: 0;
    padding-top: 2rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-direction: row;
    justify-content: space-between;
  }

  .about-image {
    margin-top: 2rem;
  }

  .contact-form {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0 !important;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .filter-btn {
    display: block;
    width: 100%;
    margin: 0.25rem 0;
  }

  .portfolio-filter {
    display: flex;
    flex-direction: column;
  }

  .footer-brand {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .copyright {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  section {
    padding: 3rem 0;
  }

  .service-card,
  .contact-form {
    padding: 1.5rem;
  }

  .team-info {
    padding: 1rem;
  }
}

/* ============================================
   Animation Classes
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Portfolio item visibility for filtering */
.portfolio-item {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item.fade-out {
  opacity: 0;
  transform: scale(0.9);
}
