/* Root Variables */
:root {
  /* Colors */
  --border-color: rgba(0, 0, 0, 0.2); /* Default (day mode) border color */
  --border-radius: 3px; /* Global border-radius */
  --accent-color: #dfb011; /* DBC-blue for logo */
  --bg-color: #ffffff; /* White */
  --text-color: #0c0c0c; /* Rich-black */
  /* --card-bg: #ebebeb; /* Lightest-grey for cards - archive card bacground*/
  --card-bg: rgba(
    255,
    255,
    255,
    0.7
  ); /* Light-grey for cards with transparency */
  --frost-bg: rgba(255, 255, 255, 0.8); /* Frosted white */
  --secondary-text: #4d4d4d; /* Medium-grey for secondary text */

  /* Shadows */
  --shadow-portfolio: 0 0 15px rgba(0, 0, 0, 0.3); /* Portfolio card hover */
  --shadow-button: 0 0 15px rgba(0, 0, 0, 0.3); /* Button hover */

  /* Font Settings */
  --font-heading: "Lato", sans-serif;
  --font-body: "Lato", sans-serif;

  /* Typography */
  --heading-size: 0.8rem;
  --heading-large: 1.25rem;
  --text-size: 0.8rem;
  --small-text-size: 0.7rem;
  --text-cards: 0.8rem;
  --text-normal: 0.9rem;

  /* Spacing */
  --space-sm: 0.1rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --padding-card: 1rem;
  --container-padding: 20px; /* Default padding */
  --intro-padding: var(--space-sm); /* Adjustable padding for intro section */
}

/* Custom Underline for Mike Ching */
.custom-underline {
  text-decoration: none; /* Remove default underline */
  border-bottom: var(--underline-thickness, 1px) solid
    var(--underline-color, var(--text-color)); /* Adjustable thickness and color */
  padding-bottom: var(
    --underline-offset,
    1px
  ); /* Adjustable offset from text */
  transition: border-color 0.3s ease, color 0.3s ease; /* Smooth transitions */
}

.custom-underline:hover {
  border-bottom-color: var(--accent-color); /* Yellow underline on hover */
  color: var(--accent-color); /* Matches existing link hover behavior */
}

/* Night Mode Adjustments */
body.night-mode .custom-underline {
  border-bottom-color: var(--text-color); /* White in night mode */
}

body.night-mode .custom-underline:hover {
  border-bottom-color: var(--accent-color); /* Yellow underline on hover */
  color: var(--accent-color); /* Yellow text on hover */
}

/* Night Mode Styles */
body.night-mode {
  background: var(--bg-color);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.076) 100%,
      transparent 100%
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 50%, transparent 50%);
  background-size: 4px 4px;
  --border-color: rgba(255, 255, 255, 0.2); /* Night mode border color */
  --bg-color: #000000;
  --text-color: #ffffff;
  --card-bg: #303030;
  --frost-bg: rgba(0, 0, 0, 0.8);
  --secondary-text: #cccccc;
  --shadow-portfolio: 0 0 15px rgba(255, 196, 0, 0.2);
  --shadow-button: 0 0 15px rgb(255, 196, 0, 0.2);
}

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

/* Apply 3px border-radius to all box-like elements */
.card,
.form-input,
.button-1,
.button-2,
.learn-more,
.view-more,
.filter-button,
.process-strip {
  border-radius: 3px;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.02) 50%, transparent 50%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 50%, transparent 50%);
  background-size: 4px 4px; /* Small noise grain */
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.5s ease, color 0.5s ease;
}

main {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
}

.logo-img {
  width: 150px;
  height: 30px;
  display: block;
  margin-left: -27px;
  padding-left: 0;
  transition: filter 0.4s ease;
}

body.night-mode .logo-img {
  filter: brightness(0) invert(1);
}

/* Navbar */
.navbar {
  background: var(--frost-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-md) 0;
  transition: background 0.5s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

.navbar .nav-logo {
  margin: 0;
  padding: 0;
}

/* Nav Toggles Container */
.nav-toggles {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Theme Toggle Container */
.theme-toggle-container {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Menu Toggle Container */
.menu-toggle-container {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  padding: 0;
}

.toggle-text {
  font-family: var(--font-body);
  font-size: var(--small-text-size);
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  transition: color 0.3s ease;
  display: inline-block;
  text-align: right;
}

.toggle-text:hover {
  color: var(--accent-color);
}

/* Nav Links */
.nav-links {
  display: block; /* Always block, control visibility with max-height */
  position: absolute;
  top: calc(100% + var(--space-md)); /* Align below navbar */
  left: 0;
  right: 0;
  width: 100%;
  padding: 0.5rem var(--container-padding);
  padding-bottom: 9px;
  text-align: right;
  background: var(--frost-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-20px); /* Slide down from 20px above */
  max-height: 0; /* Collapsed by default */
  overflow: hidden; /* Prevent content overflow during animation */
  list-style: none;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 3px 3px;
  z-index: 9;
}

.nav-links.active {
  opacity: 1;
  transform: translateY(0); /* No scaling, just slide to position */
  max-height: 500px; /* Large enough for all links, adjust if needed */
  backdrop-filter: blur(10px);
  background: var(--frost-bg);
}

.nav-links li {
  list-style: none;
  margin: var(--space-md) 0;
}

.nav-links a {
  color: var(--text-color);
  font-size: var(--small-text-size);
  font-family: var(--font-body);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  transition: color 0.3s ease;
  display: block;
  padding-right: 0;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Theme Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-color);
  transition: background 0.4s ease;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: var(--accent-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #333333;
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #333333;
  box-shadow: inset -6px -3px 0 0 var(--accent-color);
}

/* Intro Section */
.intro {
  position: relative;
  padding: 72px var(--intro-padding);
  text-align: left;
  /*background-image: url('assets/image-covers/SVG/intro-grid.svg')
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
}

.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: linear-gradient(
    to bottom,
    rgb(221, 221, 221),
    rgba(255, 255, 255, 0.5)
  ); White gradient in light mode */
  z-index: 1;
}

/* body.night-mode .intro::before {
 background: rgba(0, 0, 0, 0.3);  Dark overlay in night mode
} --- you can add a backgroun dhere in dark mode*/

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 600px;
  margin-left: 0px; /* Align with logo */
  margin-right: auto; /* Center within container */
}

/* Intro Text Container */
.intro-text-container {
  max-width: 800px; /* 2/3 of 1200px */
  margin: 0; /* Align with intro-content */
}

/* Responsive Adjustments */
@media (max-width: 800px) {
  .intro-text-container {
    max-width: 100%; /* Full width on smaller screens */
  }
}

@media (max-width: 500px) {
  .intro {
    padding: 36px var(--intro-padding);
  }
}

/* Intro Testimonials Container */
.intro-testimonials {
  margin-top: var(--space-lg); /* 2rem spacing below paragraph */
}

/* Testimonial Row (Images + Text) */
.testimonial-row {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align with intro-content */
  gap: var(--space-sm); /* Small gap between images and text */
}

/* Testimonial Images Container */
.testimonial-images-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 162px; /* Increased from 132px to accommodate 33px circles with 27px gaps (33 + 4*27 = 141px, rounded up) */
  height: 33px; /* Matches circle size */
  text-decoration: none; /* Unchanged */
}

/* Testimonial Circle Images */
.testimonial-circle {
  width: 33px; /* Unchanged */
  height: 33px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  position: absolute;
  opacity: 0; /* Hidden initially for animation */
  transition: transform 0.8s ease, opacity 0.8s ease; /* Unchanged */
}

/* Overlapping Positions for 5 Circles */
.testimonial-circle-1 {
  left: 0; /* Unchanged */
  z-index: 5;
}

.testimonial-circle-2 {
  left: 27px; /* Increased from 22px for more spacing */
  z-index: 4;
}

.testimonial-circle-3 {
  left: 54px; /* Increased from 44px (27px step) */
  z-index: 3;
}

.testimonial-circle-4 {
  left: 81px; /* Increased from 66px (27px step) */
  z-index: 2;
}

.testimonial-circle-5 {
  left: 108px; /* Increased from 88px (27px step) */
  z-index: 1;
}

/* Animation for Circles (Slide from Right to Left) */
.testimonial-circle-1 {
  transform: translateX(150px); /* Unchanged, base start position */
}

.testimonial-circle-1.animate {
  opacity: 1;
  transform: translateX(0); /* Unchanged */
}

.testimonial-circle-2 {
  transform: translateX(177px); /* Increased from 172px (150 + 27) */
}

.testimonial-circle-2.animate {
  opacity: 1;
  transform: translateX(0); /* Unchanged */
}

.testimonial-circle-3 {
  transform: translateX(204px); /* Increased from 194px (150 + 27*2) */
}

.testimonial-circle-3.animate {
  opacity: 1;
  transform: translateX(0); /* Unchanged */
}

.testimonial-circle-4 {
  transform: translateX(231px); /* Increased from 216px (150 + 27*3) */
}

.testimonial-circle-4.animate {
  opacity: 1;
  transform: translateX(0); /* Unchanged */
}

.testimonial-circle-5 {
  transform: translateX(258px); /* Increased from 238px (150 + 27*4) */
}

.testimonial-circle-5.animate {
  opacity: 1;
  transform: translateX(0); /* Unchanged */
}

/* Responsive Adjustments */
@media (max-width: 500px) {
  .testimonial-images-container {
    width: 120px; /* Increased from 100px for 25px circles with 20px gaps (25 + 4*20 = 105px, rounded up) */
    height: 25px; /* Unchanged */
  }

  .testimonial-circle {
    width: 25px; /* Unchanged */
    height: 25px; /* Unchanged */
  }

  .testimonial-circle-1 {
    left: 0; /* Unchanged */
  }

  .testimonial-circle-2 {
    left: 20px; /* Increased from 16px for more spacing */
  }

  .testimonial-circle-3 {
    left: 40px; /* Increased from 32px (20px step) */
  }

  .testimonial-circle-4 {
    left: 60px; /* Increased from 48px (20px step) */
  }

  .testimonial-circle-5 {
    left: 80px; /* Increased from 64px (20px step) */
  }

  /* Adjust animation start positions for smaller size */
  .testimonial-circle-1 {
    transform: translateX(120px); /* Unchanged */
  }

  .testimonial-circle-2 {
    transform: translateX(140px); /* Increased from 136px (120 + 20) */
  }

  .testimonial-circle-3 {
    transform: translateX(160px); /* Increased from 152px (120 + 20*2) */
  }

  .testimonial-circle-4 {
    transform: translateX(180px); /* Increased from 168px (120 + 20*3) */
  }

  .testimonial-circle-5 {
    transform: translateX(200px); /* Increased from 184px (120 + 20*4) */
  }
}

/* Hover Effect for Testimonial Images */
.testimonial-images-container:hover .testimonial-circle {
  transform: scale(1.1); /* Subtle zoom on hover */
  transition: transform 0.5s ease-in, box-shadow 0.5s ease-in;
  box-shadow: var(--shadow-portfolio); /* Add drop shadow */
}

body.night-mode .testimonial-images-container:hover .testimonial-circle {
  box-shadow: 0 0 15px rgba(223, 176, 17, 0.2); /* 50% transparent accent shadow */
}

/* 100+ Happy Clients Text */
.happy-clients {
  visibility: hidden; /* Completely hide initially */
  opacity: 0; /* Hidden initially */
  transition: opacity 0.8s ease, visibility 0s linear; /* Fade in with easing */
}

.happy-clients.animate {
  visibility: visible; /* Show when animated */
  opacity: 0.7; /* Matches spaced-uppercase opacity */
  transition: opacity 0.8s ease, visibility 0s linear; /* Smooth transition */
}

/* Responsive Adjustments */
@media (max-width: 500px) {
  .testimonial-row {
    gap: var(--space-xs); /* Unchanged: Smaller gap on mobile */
  }

  .testimonial-images-container {
    width: 120px; /* Increased from 100px for 25px circles with 20px gaps (25 + 4*20 = 105px, rounded up) */
    height: 25px; /* Unchanged */
  }

  .testimonial-circle {
    width: 25px; /* Unchanged: Smaller size for mobile */
    height: 25px; /* Unchanged */
  }

  .testimonial-circle-1 {
    left: 0; /* Unchanged */
  }

  .testimonial-circle-2 {
    left: 20px; /* Increased from 16px for more spacing */
  }

  .testimonial-circle-3 {
    left: 40px; /* Increased from 32px (20px step) */
  }

  .testimonial-circle-4 {
    left: 60px; /* Increased from 48px (20px step) */
  }

  .testimonial-circle-5 {
    left: 80px; /* Increased from 64px (20px step) */
  }

  /* Adjust animation start positions for smaller size */
  .testimonial-circle-1 {
    transform: translateX(120px); /* Unchanged: Base start position */
  }

  .testimonial-circle-2 {
    transform: translateX(140px); /* Increased from 136px (120 + 20) */
  }

  .testimonial-circle-3 {
    transform: translateX(160px); /* Increased from 152px (120 + 20*2) */
  }

  .testimonial-circle-4 {
    transform: translateX(180px); /* Increased from 168px (120 + 20*3) */
  }

  .testimonial-circle-5 {
    transform: translateX(200px); /* Increased from 184px (120 + 20*4) */
  }
}

/* About Section (Matches Mission) */
.about {
  padding: var(--space-lg) 0;
  /*background: var(--frost-bg);
  backdrop-filter: blur(10px);
  transition: background 0.5s ease; */
}

.about-container {
  display: flex;
  align-items: center; /* Align text and image to the top */
  gap: 72px;
}

.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-image {
  flex: 1;
  max-width: 50%;
}

.about-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border-color);
}

.about-content h1 {
  margin-top: 0;
  font-size: var(--heading-large);
  letter-spacing: 0.05rem;
}

.about-content .learn-more {
  align-self: flex-start;
  margin-top: var(--space-md); /* Adds 1rem space above the button */
}

.brief-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* About Hero Section */
.about-hero {
  padding: var(--space-lg) 0 var(--space-md) 0;
}

.about-intro-image {
  width: 100%;
  max-width: 1200px; /* Matches .container max-width */
  margin: var(--space-lg) auto var(--space-md) auto;
}

.about-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* Matches .project-hero-img */
  object-fit: cover; /* Matches .project-hero-img */
  border-radius: var(--border-radius); /* 3px */
  border: 1px solid var(--border-color); /* Matches .project-hero-img */
  transition: transform 0.3s ease; /* Matches .project-hero-img */
}

/* Hover Effect (Optional, matches .project-intro-image) 
.about-intro-image:hover .about-hero-img {
  transform: scale(1.02); /* Slight zoom, matches .blog-card-img 
  box-shadow: var(--shadow-portfolio);  Matches .project-intro-image hover 
} */

/* Responsive Adjustments */
@media (max-width: 500px) {
  .about-hero {
    padding: var(--space-md) 0; /* Reduced padding for mobile */
  }

  .about-intro-image {
    margin: var(--space-md) auto; /* Reduced margin for mobile */
  }

  .about-hero-img {
    aspect-ratio: 3 / 2; /* Maintain aspect ratio */
  }
}

/* About Team Section */
.about-team {
  padding: var(--space-md) 0 var(--space-lg) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.team-card {
  background: var(--card-bg);
  padding: var(--padding-card);
  transition: box-shadow 0.3s ease, background 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card:hover {
  box-shadow: var(--shadow-portfolio);
}

@media (hover: none) {
  .team-card:active {
    box-shadow: var(--shadow-portfolio);
  }
}

.team-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);

  margin-top: 27px;
}

.team-name {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
}

.team-role {
  font-family: var(--font-body);
  font-size: var(--text-size);
  color: var(--secondary-text);
  letter-spacing: 0;
  margin: 0 0 var(--space-sm);
  margin-bottom: var(--space-md);
}

.team-bio {
  font-family: var(--font-body);
  font-size: var(--text-normal);
  color: var(--text-color);
  letter-spacing: 0;
  margin: 0;
  margin-bottom: var(--space-md);
}

/* Services Section */
.services {
  padding: var(--space-lg) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: var(--padding-card);
  transition: box-shadow 0.3s ease, background 0.5s ease;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.service-card:hover {
  box-shadow: var(--shadow-portfolio);
}

.service-title {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 var(--space-lg);
  text-align: left;
  margin-bottom: var(--space-sm); /* Reduced from implicit 1rem gap */
}

.service-description {
  font-family: var(--font-body);
  font-size: var(--text-normal);
  color: var(--secondary-text);
  letter-spacing: 0;
  text-align: left;
  margin-top: auto;
  margin-bottom: 0.5rem; /* Increased from implicit 1rem gap */
}

/* Testimonials Section */
/* Testimonials Section */
.testimonials {
  padding: var(--space-lg) 0;
}

.testimonials h1 {
  text-align: left;
  margin-bottom: 2rem;
}

.testimonials .text-normal {
  text-align: left;
  max-width: 800px;
  margin: 0 0 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius); /* 3px */
  padding: var(--space-lg, 1.5rem);
  transition: box-shadow 0.3s ease, background 0.5s ease, border-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-portfolio);
}

.testimonial-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 1rem 0; /* Align image to the left */
  border: 1px solid var(--border-color);
  transition: border-color 0.3s;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: var(--text-cards, 1rem);
  color: var(--text-color);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: var(--small-text-size, 0.9rem);
  color: var(--text-color);

  text-transform: uppercase;
}

.testimonial-company {
  font-family: var(--font-body);
  font-size: calc(var(--small-text-size, 0.9rem) - 0.05rem);
  color: var(--secondary-text, #666);
}

.testimonials-buttons {
  text-align: left;
  margin-top: var(--space-lg);
}

@media (max-width: 500px) {
  .testimonials {
    padding: var(--space-md) 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: var(--padding-card, 1rem);
  }
}

/* Insights & Updates Section */
.insights-updates {
  padding: var(--space-lg) 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: var(--padding-card);
  transition: box-shadow 0.3s ease, background 0.5s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-portfolio);
}

.blog-title {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
}

.blog-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-cards);
  color: var(--secondary-text);
  letter-spacing: 0;
  margin: 0 0 var(--space-sm);
}

.blog-link {
  font-family: var(--font-body);
  font-size: var(--small-text-size);
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-decoration: none;
  margin-top: auto;
}

.blog-link:hover {
  text-decoration: underline;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  color: var(--text-color);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

h1,
h2,
h3.bold {
  font-weight: 700;
}

/* Larger Heading Style */
.heading-large {
  font-size: 1.2rem; /* Larger than --heading-size (0.7rem) */
  line-height: 1.4; /* Slightly adjusted for readability */
  letter-spacing: 0.05em;
}

@media (min-width: 501px) {
  .heading-large {
    font-size: 1.5rem; /* Even larger on bigger screens */
  }
}

@media (max-width: 500px) {
  .heading-large {
    font-size: 1.2rem; /* Slightly smaller for mobile */
  }
}

p {
  font-family: var(--font-body);
  font-size: var(--text-size);
  color: var(--text-color);
  letter-spacing: 0;
  margin: var(--space-sm) 0;
}

p.spaced-uppercase {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

p.text-normal {
  font-size: var(--text-normal);
}

p.bold {
  font-weight: 700;
}

.small-text {
  font-size: var(--small-text-size);
  color: var(--secondary-text);
}

.small-text-uppercase {
  font-size: var(--small-text-size);
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.paragraph-spacing {
  margin-top: var(--space-md); /* or use a specific value like 1.5rem */
}

a {
  color: var(--text-color);
  text-decoration: none;
}

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

/* Button Styles */
.button-1 {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-color);
  background: var(--text-color); /* Black in light, white in dark */
  color: var(--bg-color); /* White in light, black in dark */
  font-family: var(--font-body);
  font-size: var(--text-size);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  transition: box-shadow 0.3s ease;
}

.button-1:hover {
  box-shadow: var(--shadow-button);
}

.night-mode .button-1 {
  background: var(--card-bg); /* Dark background */
  color: var(--text-color); /* White text */
  border: 1px solid var(--border-color); /* Match button-2 style */
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

.night-mode .button-1:hover {
  color: var(--accent-color); /* Yellow text */
  box-shadow: var(--shadow-button);
}

.button-2 {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-color);
  background: var(--card-bg); /* White in light, dark in dark */
  color: var(--text-color); /* Black in light, white in dark */
  font-family: var(--font-body);
  font-size: var(--text-size);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.button-2:hover {
  background: var(--accent-color); /* Yellow background */
  color: var(--text-color); /* Black in light, white in dark */
  box-shadow: var(--shadow-button);
}

.night-mode .button-2 {
  background: #ffffff; /* White background */
  color: var(--bg-color); /* Black text */
  border: 1px solid var(--border-color);
}

.night-mode .button-2:hover {
  background: var(--accent-color); /* Yellow background */
  color: var(--bg-color); /* Black text */
  box-shadow: var(--shadow-button);
}

.learn-more,
.view-more {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: var(--text-size);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  transition: box-shadow 0.3s ease;
}

.view-more:hover,
.learn-more:hover {
  background: var(--accent-color); /* Yellow background */
  color: var(--text-color); /* Black in light, white in dark */
  box-shadow: var(--shadow-button);
}

.night-mode .view-more,
.night-mode .learn-more {
  background: var(--card-bg); /* White background */
  color: #ffffff; /* Black text */
  border: 1px solid var(--border-color);
}

.night-mode .view-more:hover,
.night-mode .learn-more:hover {
  background: var(--accent-color); /* Yellow background */
  color: var(--bg-color); /* Black text */
  box-shadow: var(--shadow-button);
}

/* View More Text Link Container */
.view-more-text-link {
  margin-top: var(--space-lg); /* 1rem spacing above the link */
  text-align: left; /* Aligns with service-areas text */
}

/* Optional: Ensure the link inherits font properties for consistency */
.view-more-text-link .custom-underline {
  font-family: var(--font-body);
  font-size: var(--text-size); /* 0.8rem, matches other text */
  text-transform: uppercase; /* Matches site typography */
  letter-spacing: 0.2em; /* Matches nav and button typography */
}

/* Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Portfolio */
.portfolio {
  padding: var(--space-MD) 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.grid-container .project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
}

.project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
}

/* Ensure cover image is hidden in expanded state */
.grid-item.expanded .project-image {
  display: none; /* Completely remove from layout */
  /* Alternatively, use opacity and z-index if needed:
  opacity: 0;
  z-index: -1;
  */
}

/* Ensure slideshow slides are properly layered */
.grid-item.expanded .slideshow .slide {
  position: absolute; /* Ensure slides stack */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Match project-image styling */
  opacity: 0;
  transition: opacity 0.5s ease; /* Match existing transition */
}

.grid-item.expanded .slideshow .slide.active {
  opacity: 1;
  z-index: 1; /* Ensure active slide is on top */
}

.card {
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-portfolio);
}

.card-header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding-card);
  background: transparent;
  z-index: 2;
}

.project-title {
  font-size: var(--font-heading);
  color: var(--accent-color);
  text-align: left;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Toggle Icon Enhancements */
/* Toggle Icon Enhancements */
.toggle-expand,
.toggle-collapse {
  font-size: var(--text-normal);
  color: var(--text-color);
  cursor: pointer;
  position: relative; /* For positioning the circle */
  width: 24px; /* Fixed size for consistency */
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

/* Circle for toggle icons */
.toggle-expand::before,
.toggle-collapse::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-bg); /* Light-grey in light mode, dark in night mode */
  opacity: 0.5;
  z-index: -1; /* Behind the icon */
  transition: opacity 0.3s ease, background 0.3s ease;
}

/* Yellow circle when hovering over the entire card (for +) */
.grid-item:hover .toggle-expand::before {
  background: var(--accent-color); /* Yellow #dfb011 */
  opacity: 1; /* Fully visible */
}

/* Yellow circle when hovering over the close button (×) */
.toggle-collapse:hover::before {
  background: var(--accent-color); /* Yellow #dfb011 */
  opacity: 1; /* Fully visible */
}

/* Accent color circle when card is expanded */
.grid-item.expanded .toggle-expand::before {
  background: var(--accent-color); /* #dfb011 */
  opacity: 1;
}

/* Temporary highlight for toggle-expand and toggle-collapse click */
.toggle-expand.highlight::before,
.toggle-collapse.highlight::before {
  background: var(--accent-color); /* #dfb011 */
  opacity: 1;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.grid-item:hover .project-title {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grid-item.expanded .project-image {
  opacity: 1;
}

.grid-item.expanded .card-header {
  display: none;
}

.grid-item-content {
  display: none;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
}

.grid-item.expanded .grid-item-content {
  display: block;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.expanded-header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding-card);
  background: var(--frost-bg);
  z-index: 3;
}

.view-item {
  font-size: var(--text-size);
  color: var(--text-color);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.view-item:hover {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Slideshow */
.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Maintains full card height */
  background: var(--card-bg);
  z-index: 2;
  opacity: 1;
  user-select: none; /* Prevent text/image selection during drag */
  -webkit-user-drag: none; /* Prevent image dragging in Safari */
  touch-action: pan-y; /* Allow vertical scrolling, block horizontal */
  overflow: hidden; /* Ensure slides don’t overflow */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease; /* Faster transition for smoother slides */
  display: hidden; /* Hide inactive slides */
  border-radius: 2px; /* Matches your existing style */
}

.slide.active {
  opacity: 1;
  display: visible; /* Show active slide */
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures SVGs and images scale correctly */
  display: block; /* Ensures proper rendering */
}

.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-color); /* #dfb011 from your --accent-color */
  /* altrenative background: rgba(255, 255, 255, 0.5); /* Frosted white, not from --frost-bg */
  color: var(--bg-color); /* White in light, black in dark */
  border: none;
  font-size: var(--small-text-size); /* 0.7rem */
  font-weight: 200;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease;
  border-top-right-radius: 9px; /* Default for prev */
  border-bottom-right-radius: 9px;
  border-top-left-radius: 9px; /* Default for next */
  border-bottom-left-radius: 9px;
}

.slideshow-prev {
  left: 0;
  border-top-left-radius: 0; /* Remove left-side radius for prev */
  border-bottom-left-radius: 0;
}

.slideshow-next {
  right: 0;
  border-top-right-radius: 0; /* Remove right-side radius for next */
  border-bottom-right-radius: 0;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  background: var(--text-color); /* Black in light, white in dark */
}

.grid-item-content {
  display: none;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
}

.grid-item.expanded .grid-item-content {
  display: block;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Design Brief */
.design-brief {
  padding: var(--space-lg) 0;
  background: var(--frost-bg);
  backdrop-filter: blur(10px);
  transition: background 0.5s ease;
}

.brief-content {
  text-align: left;
  background: transparent;
}

/* Footer */
.footer {
  padding: var(--space-lg) 0;
  background: var(--frost-bg);
  width: 100%;
  transition: background 0.5s ease;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.back-to-top {
  text-transform: uppercase;
  color: var(--secondary-text);
  font-size: var(--small-text-size);
}

.back-to-top:hover {
  color: var(--accent-color);
}

/* Media Queries */
@media (min-width: 501px) {
  :root {
    --container-padding: 40px;
  }
}

@media (max-width: 1000px) {
  .grid-container,
  .services-grid,
  .testimonials-grid,
  .team-grid,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  :root {
    --container-padding: 20px;
  }

  .grid-container,
  .services-grid,
  .testimonials-grid,
  .team-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-image {
    width: 50px;
    height: 50px;
  }

  .team-image {
    width: 60px;
    height: 60px;
  }

  .footer-container {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: left;
  }

  .brief-buttons {
    flex-direction: column;
    gap: var(--space-md);
  }

  .theme-toggle-container {
    width: 40px;
  }

  .menu-toggle-container {
    width: 60px;
  }

  .nav-toggles {
    gap: 1.25rem;
  }
}

/* Contact Section */
.contact {
  padding: var(--space-lg) 0;
  /* background: var(--frost-bg);
  backdrop-filter: blur(10px); */
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 600px; /* Narrower for form readability */
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-heading);
  font-size: var(--text-size);
  color: var(--text-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.form-input {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  font-family: var(--font-body);
  font-size: var(--text-size);
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-input::placeholder {
  color: var(--secondary-text);
}

/* Textarea for Project Details */
textarea.form-input {
  resize: vertical;
  min-height: 200px; /* Larger height for bigger box */
  padding: 1rem; /* More spacing around text */
  font-size: var(--text-normal); /* 0.8rem for text and input */
}

/* Ensure placeholder matches text-normal size */
textarea.form-input::placeholder {
  font-size: var(--text-normal); /* 0.8rem for placeholder */
}

button.button-1 {
  align-self: flex-start;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.form-message.success {
  background: var(--accent-color);
  color: var(--bg-color);
}

.form-message.error {
  background: #ff4d4d;
  color: var(--bg-color);
}

.loading-spinner {
  font-size: 1.2rem;
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  justify-content: flex-start;
}

.filter-button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: var(--text-size);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: var(--shadow-button);
}

.filter-button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.filter-button:active {
  transform: scale(0.95);
}

/* Hide filtered items */
.grid-item.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  .portfolio-filters {
    justify-content: left;
  }

  .filter-button {
    padding: 0.4rem 0.8rem;
    font-size: var(--small-text-size);
  }
}

/* Process Strip */
.process-strip {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  background: var(--frost-bg);
  backdrop-filter: blur(10px);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  transition: background 0.5s ease;
}

.process-step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.process-icon {
  width: 27px;
  height: 27px;
  object-fit: contain;
  transition: filter 0.4s ease;
  opacity: 27%;
}

body.night-mode .process-icon {
  filter: brightness(0) invert(1);
}

.process-step h3 {
  font-size: var(--heading-size);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0;
}

.process-step p {
  font-size: var(--text-cards);
  color: var(--secondary-text);
  margin: 0;
}

/* Hover effects for process strip */
.process-strip {
  transition: box-shadow 0.3s ease; /* Smooth shadow transition */
}

.process-strip:hover {
  box-shadow: var(--shadow-button); /* 0 0 15px rgba(0, 0, 0, 0.4) */
}

/* 70% opacity for icon on individual process-step hover */
.process-step:hover .process-icon {
  opacity: 0.8; /* 70% opacity, 30% lighter appearance */
  transition: opacity 0.3s ease; /* Smooth transition */
}

/* Radio Buttons */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md); /* 1rem between radio option blocks */
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* Increased to 0.3rem for tiny bit more spacing */
}

.radio-group input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  margin: 0; /* Remove default margin */
  vertical-align: middle;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.radio-group input[type="radio"]:checked {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* .radio-group input[type="radio"]:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
} */

.radio-group label {
  font-family: var(--font-body);
  font-size: var(--text-normal); /* Changed to 0.8rem */
  color: var(--text-color);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

/* Form Group Spacing */
.form-group fieldset {
  border: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.form-group legend {
  font-family: var(--font-heading);
  font-size: var(--text-size);
  color: var(--text-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem; /* Reduced to 0.5rem for tiny spacing */
}

/* Phone Number Input */
.form-input[type="tel"] {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  font-family: var(--font-body);
  font-size: var(--text-size);
  color: var(--text-color);
  transition: border-color 0.3s ease;
  margin-bottom: var(--space-md);
}

.form-input[type="tel"]:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-input[type="tel"]::placeholder {
  color: var(--secondary-text);
}

/* Increase spacing between Annual Revenue radio buttons and optional text */
.form-group fieldset p.text-normal.small-text {
  margin-top: var(--space-md); /* 1rem for more spacing */
}

/* Responsive Adjustments */
@media (max-width: 500px) {
  .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm); /* 0.1rem between options on mobile */
  }

  .radio-option {
    flex: 0 0 calc(50% - var(--space-sm)); /* Two-column layout */
    margin-bottom: var(--space-sm);
  }

  .process-strip {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .process-step {
    padding: var(--space-sm);
  }

  .process-icon {
    width: 40px;
    height: 40px;
  }
}

/* Form Group Spacing */
.form-group fieldset {
  border: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.form-group legend {
  font-family: var(--font-heading);
  font-size: var(--text-normal);
  color: var(--text-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

/* Responsive Adjustments */
@media (max-width: 500px) {
  .process-strip {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .process-step {
    padding: var(--space-sm);
  }

  .process-icon {
    width: 27px;
    height: 27px;
  }

  .radio-group {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Project Page */
.project {
  padding: var(--space-lg) 0; /* Matches .portfolio, .services */
}

.project-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md); /* 1rem between items */
  margin: var(--space-lg) 0; /* Spacing above/below */
  /*border: 1px solid var(--text-color);*/
}

.project-details span {
  font-size: var(--small-text-size); /* 0.7rem */
  color: var(--secondary-text); /* Medium-grey light, light-grey dark */
  /* border: 1px solid var(--text-color); */ /* Commented for future use */
}

.project-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* 3:2 ratio */
  margin: var(--space-lg) 0; /* Spacing */
  background: var(--card-bg); /* Fallback for loading */
  user-select: none; /* Prevent text/image selection during drag */
  -webkit-user-drag: none; /* Prevent image dragging in Safari */
  touch-action: pan-y; /* Allow vertical scrolling, block horizontal */
}

.project-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover to fill 3:2 */
  opacity: 0;
  transition: opacity 1s ease; /* Matches .slide */
}

.project-slide.active {
  opacity: 1;
}

.project-buttons {
  display: flex;
  gap: var(--space-md); /* Matches .brief-buttons */
  margin-top: var(--space-lg);
}

/* Responsive Adjustments */
@media (max-width: 500px) {
  .project-details span {
    flex: 1 1 100%; /* Stack on mobile */
  }

  .project-buttons {
    flex-direction: column; /* Stack buttons */
    gap: var(--space-md);
  }
}

/* Word Cycle Animation */
.word-cycle {
  display: inline-block;
  min-width: 200px; /* Accommodates "TRANSFORM BRANDS" */
  text-align: left;
  color: var(--text-color);
  opacity: 0; /* Hide initially */
  white-space: nowrap; /* Prevent wrapping */
  position: relative; /* For cursor positioning */
  font-family: inherit; /* Match heading font */
}

.word-cycle.typing {
  opacity: 1; /* Show when typing starts */
}

/* Blinking cursor */
.word-cycle::after {
  content: "|";
  display: inline-block;
  color: var(--accent-color); /* Yellow (#dfb011) */
  margin-left: 2px;
  animation: blink 0.7s step-end infinite;
  opacity: 0; /* Hidden initially */
}

.word-cycle.typing::after {
  opacity: 1; /* Show cursor when typing */
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Ensure layout stability */
.heading-large {
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (min-width: 501px) {
  .heading-large {
    font-size: 1.5rem;
  }
}
@media (max-width: 500px) {
  .heading-large {
    font-size: 1.2rem;
  }
}

/* FAQs Section (Unchanged) */
.faqs {
  padding: var(--space-lg) 0;
}

.faqs-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: var(--padding-card);
  border-radius: 3px;
  transition: box-shadow 0.3s ease, background 0.5s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-portfolio);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 0;
  display: block;
}

.faq-answer {
  font-family: var(--font-body);
  font-size: var(--text-normal);
  color: var(--secondary-text);
  margin-top: var(--space-sm);
}

/* Responsive Adjustments (Updated for About) */
@media (max-width: 800px) {
  .about-container {
    flex-direction: column;
    gap: var(--space-md);
  }

  .about-content {
    order: 1; /* Text stays on top */
    text-align: left;
    font-size: var(--heading-large);
    letter-spacing: 0.05rem;
  }

  .about-image {
    max-width: 100%;
    order: 2; /* Image stacks below text */
  }

  .about-content .learn-more {
    align-self: stretch;
    text-align: center;
  }

  .mission-container {
    flex-direction: column;
    gap: var(--space-md);
  }

  .mission-image {
    max-width: 100%;
    order: 2; /* Image stacks below text */
  }

  .mission-content {
    order: 1; /* Text stays on top */
    text-align: left;
  }

  .mission-content .learn-more {
    align-self: stretch;
    text-align: center;
  }
}

.blog-article {
  padding: 4rem 0;
}

.blog-hero-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.blog-meta {
  color: var(--text-color-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.blog-share {
  margin: 2rem 0;
}

.social-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  border: 2px solid var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-button:hover {
  background: var(--accent-color);
  color: var(--bg-color);
}

@media (max-width: 500px) {
  .blog-article {
    padding: 2rem 0;
  }

  .blog-hero-img {
    max-height: 300px;
  }
}

/* Blog Card Image Styling */
.blog-card-img {
  width: 100%;
  height: 270px; /* Fixed height for consistent card appearance */
  object-fit: cover; /* Ensures image fills space without distortion */
  border-radius: 3px; /* Matches site-wide border-radius */
  border: 1px solid var(--border-color); /* Consistent with other images */
  margin-bottom: var(--space-md); /* Space between image and title */
  transition: transform 0.3s ease; /* Subtle hover effect */
}

.blog-card:hover .blog-card-img {
  transform: scale(1.02) translateY(-2px); /* Slight zoom and move up on hover for interactivity */
}

/* Adjust blog card padding to accommodate image */
.blog-card {
  padding: var(--padding-card); /* Existing padding */
  display: flex;
  flex-direction: column;
  gap: var(--space-sm); /* Ensure consistent spacing */
}

/* Ensure text remains readable */
.blog-card .service-title {
  margin: 0 0 var(--space-sm); /* Reduced margin to fit image */
}

.blog-card .service-description {
  margin: 0; /* Remove default margin for tighter layout */
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .blog-card-img {
    height: 150px; /* Smaller height on mobile for compact cards */
  }
}

/* Service Card Image Styling */
.service-card-img {
  width: 100%;
  height: 180px; /* Matches .blog-card-img for consistency */
  object-fit: cover; /* Ensures image fills space without distortion */
  border-radius: 3px; /* Matches site-wide border-radius */
  border: 1px solid var(--border-color); /* Consistent with other images */
  margin-bottom: var(--space-md); /* Space between image and title */
  transition: transform 0.3s ease; /* Subtle hover effect */
}

.service-card:hover .service-card-img {
  transform: scale(1.02) translateY(-2px); /* Matches .blog-card-img hover */
}

/* Adjust service card padding to accommodate image */
/* Service Card Link Styling */
.service-card {
  position: relative; /* For positioning pseudo-elements */
  text-decoration: none; /* Remove underline from link */
  transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth hover transition */
}

.service-card:hover {
  box-shadow: var(--shadow-portfolio); /* Matches existing hover */
  transform: translateY(-2px); /* Slight lift for interactivity */
}

.service-card:focus {
  outline: 2px solid var(--accent-color); /* Accessible focus state */
  outline-offset: 2px;
}

/* Prevent image hover effect from triggering independently */
.service-card:hover .service-card-img {
  transform: none; /* Override existing image hover to avoid double scaling */
}

/* Mobile active state for service cards */
@media (max-width: 500px) {
  .service-card:active {
    box-shadow: var(--shadow-portfolio);
    transform: translateY(-2px);
  }
}

/* Services Section Enhancements */

/* this for # links landing accuracy site wide */
.service-section:target,
.service-section:target::before {
  padding-top: 0;
  margin-top: 0;
  content: none;
}
/* Add scroll padding for anchor links */
html {
  scroll-padding-top: calc(
    80px + var(--container-padding)
  ); /* Navbar height + container padding */
}

/* Ensure normal stacking (optional, for safety) */
.service-section {
  position: relative;
  z-index: 1;
}

.service-section {
  margin-bottom: var(--space-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background 0.5s ease;
}

.service-section:hover {
  box-shadow: var(--shadow-portfolio);
}

.service-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.service-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

/* Service Slideshow */
.service-slideshow {
  position: relative;
  width: 100%;

  aspect-ratio: 3 / 2; /* Matches .project-slideshow */
  margin: 0;
  background: var(--card-bg); /* Fallback for loading */
  user-select: none; /* Prevent selection during drag */
  -webkit-user-drag: none; /* Prevent image dragging */
  touch-action: pan-y; /* Allow vertical scrolling */
  border-bottom: 1px solid var(--border-color); /* Matches .service-hero-img */
  overflow: hidden;
  border-radius: 3px 3px 0 0; /* Matches .service-section */
}

/* Reuse .project-slide for .service-slide */
.service-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.service-slide.active {
  opacity: 1;
}

/* Reuse existing .slideshow-controls, .swipe-icon, .slideshow-dots, .dot 
@media (max-width: 800px) {
  .service-slideshow {
    height: 400px; 
  }
}

@media (max-width: 500px) {
  .service-slideshow {
    height: 300px;
  }
}

/*.service-section:hover .service-hero-img {
  transform: scale(1.05);
}*/

.service-content {
  display: flex;
  flex-wrap: wrap;
  padding: var(--space-lg);
  gap: var(--space-xl);
}

.service-details {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-areas {
  flex: 1;
  min-width: 300px;
  /*background: var(--frost-bg);*/
  padding: 2rem; /* Increased from var(--space-md) (1rem) */
  border-radius: 3px;
  border: 1px solid var(--border-color);
}

.service-areas h4 {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  color: var(--text-color);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.service-areas ul {
  font-family: var(--font-body);
  font-size: var(--text-cards);
  color: var(--secondary-text);
  letter-spacing: 0;
  padding-left: 1rem;
  margin: 0;
}

.service-areas li {
  margin-bottom: var(--space-sm);
}

/* Animation for fade-in */
.service-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-details .button-1 {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem; /* Slightly reduced from implicit 1rem gap */
}

/* Responsive Adjustments */
@media (max-width: 800px) {
  .service-content {
    flex-direction: column;
  }

  .service-details,
  .service-areas {
    min-width: 100%;
  }

  .service-image {
    height: 400px;
  }
}

@media (max-width: 500px) {
  .service-image {
    height: 300px;
  }

  .service-details .button-1 {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem; /* Slightly reduced from implicit 1rem gap */
  }
}

/* Project Intro Image */
.project-intro-image {
  width: 100%;
  max-width: 1200px;
  margin: var(--space-lg) 0;
}

.project-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

/*.project-intro-image:hover .project-hero-img {
  transform: scale(1.02);
  box-shadow: var(--shadow-portfolio);
} */

/* Project Details */
.project-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns desktop */
  gap: var(--space-sm); /* Tighter gap */
  margin: var(--space-lg) 0;
  padding: var(--space-md); /* Reduced padding */
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: box-shadow 0.3s ease;
}

/*.project-details:hover {
  box-shadow: var(--shadow-portfolio);
} */

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; /* Tight spacing between title and text */
}

.detail-title {
  font-family: var(--font-heading);
  font-size: var(--small-text-size); /* 0.7rem */
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.detail-text {
  font-family: var(--font-body);
  font-size: var(--text-normal); /* 0.9rem */
  color: var(--secondary-text);
}

/* Slideshow Controls */
.slideshow-controls {
  position: absolute;
  bottom: var(--space-md); /* Reduce from 2rem to 1rem to stay inside */
  left: var(--space-md); /* 1rem padding */
  right: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 24px;
  z-index: 5;
  background: transparent; /* Ensure no white background */
}

/* Swipe Icon */
.swipe-icon {
  width: 24px; /* Matches control height */
  height: 24px;
  /* opacity: 0.7; Slightly faded for subtlety */
  transition: opacity 0.3s ease;
}

.swipe-icon:hover {
  opacity: 1; /* Full opacity on hover */
}

/* Dot Navigation */
.slideshow-dots {
  display: flex;
  gap: var(--space-md); /* Matches existing spacing */
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping */
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--secondary-text);
  border-radius: 50%;
  cursor: pointer;
  padding: var(--space-xs);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease,
    border-radius 0.3s ease;
}

.dot.active {
  width: 33px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .slideshow-controls {
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    height: 20px;
  }

  .swipe-icon {
    width: 20px;
    height: 20px;
  }

  .slideshow-dots {
    gap: var(--space-md);
  }

  .dot {
    width: 8px;
    height: 8px;
    padding: var(--space-xs);
  }

  .dot.active {
    width: 27px;
    height: 8px;
    border-radius: 4px;
  }
}

/* Related Portfolio */
.related-portfolio {
  margin: var(--space-xl) 0;
}

.related-portfolio h2 {
  margin-bottom: var(--space-md);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  @media (max-width: 600px) {
    .project-details {
      grid-template-columns: repeat(2, 1fr); /* 2 columns mobile */
      gap: var(--space-md); /* Even tighter */
      padding: var(--space-md);
    }

    .detail-item {
      gap: 0.2rem;
    }

    .detail-title {
      font-size: calc(var(--small-text-size) - 0.05rem); /* Slightly smaller */
    }

    .detail-text {
      font-size: calc(var(--text-normal) - 0.1rem); /* 0.8rem */
    }
  }

  .slideshow-controls {
    bottom: var(--space-md); /* Adjusted for mobile */
    left: var(--space-md); /* Adjusted for mobile */
    right: var(--space-md); /* Adjusted for mobile */
    height: 20px; /* Matches mobile day/night toggle height, change here to adjust */
  }

  .slideshow-play-pause {
    width: 20px; /* Matches mobile height, change here to adjust size */
    height: 20px; /* Matches mobile height, change here to adjust size */
    padding: 0; /* Ensure padding does not interfere with size */
  }

  .slideshow-dots {
    gap: var(--space-md); /* Slightly reduced for mobile */
  }

  .dot {
    width: 8px; /* Change this for mobile inactive dot size */
    height: 8px; /* Change this for mobile inactive dot size */
    padding: var(--space-xs);
  }

  .dot.active {
    width: 14px; /* Horizontal expansion for mobile */
    height: 8px; /* Same height as inactive */
    border-radius: 4px; /* Rounded rectangle for mobile */
  }
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Standard video aspect ratio */
  margin: var(--space-lg) 0; /* Matches project-slideshow spacing */
  cursor: pointer;
  border-radius: var(--border-radius); /* 3px */
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  background: var(
    --bg-color
  ); /* Solid background: #ffffff light, #000000 night */
}

.video-container:hover {
  box-shadow: var(--shadow-portfolio); /* Matches card hover */
  transform: scale(1.02); /* Matches blog-card-img/service-card-img hover */
}

.video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg); /* Fallback background */
}

.video-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Matches project-slide styling */
  border-radius: var(--border-radius); /* 3px */
}

.video-play-text {
  position: absolute;
  font-family: var(--font-heading);
  font-size: var(--heading-size); /* 0.8rem */
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.2em; /* Matches site typography */
  background: var(--frost-bg); /* Frosted background for readability */
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius); /* 3px */
  border: 1px solid var(--border-color);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover .video-play-text {
  background: var(--accent-color); /* Yellow on hover */
  color: var(--bg-color); /* Black in light, white in dark */
  box-shadow: var(--shadow-button); /* Matches button hover */
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius); /* 3px */
}

/* Responsive Adjustments */
@media (max-width: 500px) {
  .video-container {
    margin: var(--space-md) 0; /* Reduced spacing for mobile */
  }

  .video-play-text {
    font-size: var(--small-text-size); /* 0.7rem for mobile */
    padding: 0.4rem 0.8rem; /* Matches filter-button mobile */
  }
}

/* Portfolio Testimonials */
.portfolio-testimonials {
  margin-top: var(--space-lg); /* 2rem spacing above testimonial */
  text-align: left; /* Ensure left alignment */
}

.portfolio-testimonial-quote {
  font-family: var(--font-body);
  font-size: var(--text-normal); /* 0.9rem */
  color: var(--text-color);
  font-style: italic; /* Matches previous testimonial style */
  margin: 0 0 var(--space-md); /* 1rem below quote */
}

.portfolio-testimonial-author-container {
  display: flex;
  align-items: center; /* Vertically align image and text */
  gap: var(--space-md); /* 1rem between image and text */
}

.portfolio-testimonial-image {
  width: 50px; /* Matches previous mobile size */
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; /* Prevent image from shrinking */
}

.portfolio-testimonial-author-info {
  display: flex;
  flex-direction: column; /* Stack name and position */
  gap: var(--space-sm); /* 0.1rem between name and position */
}

.portfolio-testimonial-author {
  font-family: var(--font-body);
  font-size: var(--small-text-size); /* 0.7rem */
  color: var(--text-color);
  text-transform: uppercase; /* Matches previous style */
  margin: 0;
}

.portfolio-testimonial-company {
  font-family: var(--font-body);
  font-size: calc(var(--small-text-size) - 0.05rem); /* ~0.65rem */
  color: var(--secondary-text); /* Matches previous style */
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 500px) {
  .portfolio-testimonial-image {
    width: 40px; /* Slightly smaller for mobile */
    height: 40px;
  }
}

/* Footer */
.footer {
  padding: var(--space-lg) 0;
  background: var(--frost-bg);
  backdrop-filter: blur(10px);
  width: 100%;
  transition: background 0.5s ease;
}

.footer-container {
  display: grid;
  grid-template-columns: 200px auto; /* Fixed logo width, remaining space for links */
  align-items: start; /* Align all items to the top */
  max-width: 1200px;
  margin: var(--space-lg) auto 0 auto; /* Add top margin space-lg */
  padding: 0 var(--container-padding);
  gap: calc(var(--space-md) * 2.618); /* ~2.618rem */
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-align logo, copyright, back-to-top */
  gap: var(--space-md); /* Consistent spacing */
  width: 200px; /* Fixed width for proportion */
  flex-shrink: 0; /* Prevent shrinking */
  margin: 0; /* No margins */
  padding: 0; /* No padding */
}

.footer-logo .footer-logo-img {
  width: 150px; /* Consistent logo size */
  height: 30px;
  margin: -27px; /* Explicitly no negative margins */
  padding: 0;
  display: block; /* Ensure block display */
  object-fit: contain; /* Prevent SVG distortion */
}

.footer-logo > * {
  margin: 0; /* Remove default margins on all children */
  padding: 0; /* Remove default padding on all children */
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: var(--small-text-size);
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.back-to-top {
  font-family: var(--font-body);
  font-size: var(--small-text-size);
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.back-to-top:hover {
  color: var(--accent-color);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three equal columns */
  gap: var(--space-md);
  align-items: start; /* Align to top */
  margin: 0;
  padding: 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  font-family: var(--font-body);
  font-size: var(--small-text-size);
  color: var(--secondary-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.3s ease;
  line-height: 1.4;
}

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

body.night-mode .footer-logo .footer-logo-img {
  filter: brightness(0) invert(1); /* Night mode for footer logo */
}

/* Medium Breakpoint (≤1024px) */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-areas:
      "logo"
      "links";
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-logo {
    grid-area: logo;
    width: 100%;
    align-items: flex-start;
  }

  .footer-links {
    grid-area: links;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}

/* Mobile Breakpoint (≤768px) */
@media (max-width: 768px) {
  .footer-container {
    grid-template-areas:
      "logo"
      "links";
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-logo {
    grid-area: logo;
    width: 100%;
    align-items: flex-start;
  }

  .footer-links {
    grid-area: links;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    width: 100%;
    gap: var(--space-md);
  }

  .footer-column:nth-child(3) {
    grid-column: span 2; /* Resources spans both columns */
  }

  .footer-column {
    width: 100%;
  }
}
