/* Import Fonts from Fontshare */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=canela@300,400&display=swap');

/* Fallback for Canela - TAN Pearl and Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500&display=swap');

/* CSS Variables for Brand Colors - Strictly Following Guidelines */
:root {
  /* Primary Colors */
  --primary-bg: #F5F9FB;           /* Misty Blue - soft, calm background */
  --primary-text: #2D3A48;        /* Deep Slate Blue - sharp but not harsh */
  
  /* Accent Colors */
  --accent-ocean: #497BAE;         /* Ocean Blue - CTAs, hover states */
  --accent-sky: #A4C1D8;          /* Pale Sky - borders, subtle backgrounds */
  --highlight-navy: #0F2A3F;      /* Midnight Navy - contrast, hero overlays */
  --link-hover: #C6DFEF;          /* Ice Blue Tint - interactive highlight */
  
  /* Typography */
  --font-header: 'Canela', 'TAN Pearl', 'Playfair Display', serif;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Layout */
  --max-width: 90%;
  --container-max: 1400px;
  --section-padding: 80px 0;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text);
  background-color: var(--primary-bg);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Disable text selection globally */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Override selection styling */
*::selection {
  background: transparent;
}

*::-moz-selection {
  background: transparent;
}

/* Pulse animation for map dots */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
}

p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--primary-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Container and Layout */
.container {
  max-width: var(--container-max);
  width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Mobile container adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    width: 100%;
  }
  
  /* Reduce main padding-top on portfolio pages */
  main {
    padding-top: 100px !important;
  }
  
  /* Portfolio CTA section mobile spacing */
  .portfolio-cta-section {
    margin: 3rem 0 2rem !important;
    padding: 2rem 1rem !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  main {
    padding-top: 90px !important;
  }
  
  .portfolio-cta-section {
    margin: 2rem 0 1.5rem !important;
    padding: 1.5rem 0.75rem !important;
  }
  
  .portfolio-cta-section h2 {
    margin-bottom: 0.75rem !important;
    font-size: 1.5rem !important;
  }
  
  .portfolio-cta-section p {
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  /* Button container in CTA sections */
  .portfolio-cta-section div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .portfolio-cta-section .btn {
    width: 100%;
    max-width: 280px;
  }
}

.section {
  padding: var(--section-padding);
}

/* Mobile section padding reduction */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2rem 0;
  }
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(245, 249, 251, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-sky);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo {
  display: block;
  height: 40px;
  width: auto;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.logo:hover {
  opacity: 1;
}

.logo:focus {
  outline: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--primary-text);
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-ocean);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Dropdown Menu for Portfolio */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(245, 249, 251, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-sky);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(45, 58, 72, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: var(--primary-text);
  text-decoration: none;
  transition: var(--transition);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.dropdown-content a:hover {
  background: var(--link-hover);
  color: var(--primary-text);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-text);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 42, 63, 0.4);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent-ocean);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
}

.btn:hover {
  background: var(--highlight-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(73, 123, 174, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-ocean);
  color: var(--accent-ocean);
  align-items: center;
}

.btn-secondary:hover {
  background: var(--accent-ocean);
  color: white;
}

.btn-outline {
  background: white;
  border: 2px solid var(--accent-ocean);
  color: var(--accent-ocean);
  align-items: center;
}

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

/* Logo Slider */
.logo-slider {
    background-color: white;
  padding: 40px 0;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .logo-slider {
    padding: 30px 0;
  }
}

@media (max-width: 480px) {
  .logo-slider {
    padding: 25px 0;
  }
}

/* Swiper Logo Slider */
.logo-swiper {
  width: 100%;
  overflow: hidden;
}

.logo-swiper .swiper-slide {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo {
  flex-shrink: 0;
  width: 150px;
  height: 80px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: var(--transition);
  overflow: hidden;
}

.client-logo img {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: var(--transition);
}

/* IYC and FGI logo specific sizing - smaller for visual consistency */
.client-logo img[alt="IYC"],
.client-logo img[alt="FGI"] {
  max-width: 50px !important;
  max-height: 25px !important;
}

.client-logo:nth-child(1) img, 
.client-logo:nth-child(9) img {
  /* Slider1.jpg - slightly smaller if needed */
  max-width: 100px;
  max-height: 55px;
}

.client-logo:nth-child(3) img, 
.client-logo:nth-child(11) img {
  /* Slider3.jpg - adjust if needed */
  max-width: 110px;
  max-height: 58px;
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.client-logo:hover img {
  filter: grayscale(0%);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Logo Slider Responsive Adjustments */
@media (max-width: 1200px) {
  .slider-track {
    gap: 3rem;
  }
  
  .client-logo {
    width: 130px;
    height: 70px;
  }
  
  .client-logo img {
    max-width: 100px;
    max-height: 50px;
  }
}

@media (max-width: 768px) {
  .logo-slider {
    padding: 30px 0;
  }
  
  .slider-track {
    gap: 2rem;
  }
  
  .client-logo {
    width: 110px;
    height: 60px;
  }
  
  .client-logo img {
    max-width: 80px;
    max-height: 40px;
  }
}

/* Only limit slider width on mobile phones */
@media (max-width: 480px) {
  .slider-track {
    gap: 1.5rem;
    width: 200%; /* Limit to 2 sets of logos only on phones */
  }
  
  .client-logo {
    width: 90px;
    height: 50px;
  }
  
  .client-logo img {
    max-width: 70px;
    max-height: 35px;
  }
  
  /* Adjust animation for mobile */
  @keyframes slide {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%); /* Move by half the width for seamless loop on mobile */
    }
  }
}

/* Services Layout - Edmiston Style */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.services-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .services-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.services-content h2 {
  font-family: var(--font-header);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--primary-text);
  margin-bottom: 2rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.services-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--primary-text);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.services-images-wrapper {
  display: flex;
  flex-direction: column;
}

.services-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .services-images {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-images {
    gap: 1rem;
  }
}

.service-image-card {
  position: relative;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  height: 400px;
}

.service-image-card img,
.service-image-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.service-image-card:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  border-radius: 4px;
  padding-bottom: calc(2.5rem + 20px);
}

.service-card-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  margin: 0;
  text-align: center;
  letter-spacing: 0.02em;
}

.service-click-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--primary-text);
  opacity: 0.6;
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  width: 100%;
}

@media (max-width: 768px) {
  .service-click-hint {
    font-size: 0.7rem;
    margin-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  .service-click-hint {
    font-size: 0.65rem;
    margin-top: 0.5rem;
  }
}

/* Photo Box CTA */
.photo-cta {
  position: relative;
  height: 80vh;
  border-radius: 8px;
  overflow: hidden;
  margin: 4rem 0;
}

@media (max-width: 768px) {
  .photo-cta {
    margin: 2rem 0;
  }
}

@media (max-width: 480px) {
  .photo-cta {
    margin: 1.5rem 0;
  }
}

.photo-cta img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.photo-cta-card {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  max-width: 400px;
  background: rgba(245, 249, 251, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(45, 58, 72, 0.15);
  z-index: 10;
}

.photo-cta-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--primary-text);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.photo-cta-card .btn {
  margin-top: 0;
}

@media (max-width: 768px) {
  .photo-cta-card {
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: none;
    padding: 1.5rem;
  }
  
  .photo-cta-text {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .photo-cta-card {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1.25rem;
  }
  
  .photo-cta-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .photo-cta-card .btn {
    width: 100%;
    text-align: center;
  }
}

/* Rotating Headline Banner */
.rotating-banner {
    background: var(--highlight-navy);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 4rem 2rem 0rem 2rem;
}

.rotating-banner-content {
  max-width: 1200px;
  width: 100%;
}

.rotating-title {
  font-weight: 600;
  font-size: 4rem;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.title-line {
  margin-bottom: 0rem;
}

.title-line2 {
    margin-top: 0.5rem;
    font-size: 1.5rem;
  }

.title-line-horizontal {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  font-size: 1.8rem;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}

.title-line-horizontal span {
  display: inline-block;
  font-size: 1.8rem;
  line-height: 1;
}

.title-line-horizontal .rotating-word-container {
  margin-left: 0.2rem;
  font-size: 1.8rem;
  flex-shrink: 0;
  height: auto !important;
  padding: 0 !important;
  margin-top: 0 !important;
  min-width: auto !important;
  line-height: 1 !important;
  position: static !important;
  display: inline-block !important;
  overflow: visible !important;
  text-align: left !important;
}

.title-line-horizontal .rotating-word {
  font-size: 1.8rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  position: static !important;
  opacity: 0 !important;
  transition: opacity 1000ms ease-in-out !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.title-line-horizontal .rotating-word.active {
  opacity: 1 !important;
}

.rotating-word-container {
  position: relative;
  display: inline-block;
  height: 3rem;
  overflow: hidden;
  margin-top: 1rem;
  min-width: 450px;
  text-align: center;
}

.rotating-word {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-weight: 700;
  font-size: 3rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
  white-space: nowrap;
  text-align: center;
  color: white;
}

.rotating-word.active {
  opacity: 1;
}

.rotating-tagline {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2rem;
  font-style: normal;
}

/* Values Section */
.values-section {
  background: var(--highlight-navy);
  color: white;
  padding: 6rem 0 9rem 0;
  position: relative;
}

.values-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 42, 63, 0.95), rgba(73, 123, 174, 0.1));
  z-index: 0;
}

.values-section .container {
  position: relative;
  z-index: 1;
}

.values-header {
  text-align: center;
  margin-bottom: 5rem;
}

@media (max-width: 768px) {
  .values-header {
    margin-bottom: 2rem;
  }
}

.values-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-family: var(--font-header);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.values-header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.6s ease;
}

.value-card:hover::before {
  left: 100%;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.value-number {
  font-size: 4rem;
  font-family: var(--font-header);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.value-card:hover .value-number {
  color: rgba(255, 255, 255, 0.5);
}

.value-content h3 {
  font-size: 1.8rem;
  font-family: var(--font-header);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.value-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Portfolio Services Section */
.portfolio-services-section {
  padding: 6rem 0 0rem 0;
  background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(245, 249, 251, 0.5) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 5rem;
}

.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0rem 2rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
  pointer-events: none;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.service-number {
  font-size: 4rem;
  font-family: var(--font-header);
  font-weight: 300;
  color: rgba(45, 58, 72, 0.3);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.service-card:hover .service-number {
  color: rgba(45, 58, 72, 0.5);
}

.service-content h3 {
  font-size: 1.8rem;
  font-family: var(--font-header);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--primary-text);
}

.service-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--primary-text);
  opacity: 0.8;
  margin-bottom: 0rem;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Service buttons - custom styling like the original */
.service-card .btn {
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  letter-spacing: 0.02em;
  align-items: center;
}

/* Portfolio Featured Grid */
.portfolio-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .portfolio-featured-grid {
    gap: 2rem;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .portfolio-featured-grid {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
}

/* Portfolio Cards - Same as Yacht Shows Style */
.portfolio-card {
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-card:hover {
  opacity: 0.9;
}

.portfolio-card-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 5s ease;
  border-radius: 8px;
  overflow: hidden;
}

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

.portfolio-card-info {
  padding: 0.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-card-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  color: #000000;
  margin: 0;
}

.portfolio-card-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: #000000;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .portfolio-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .project-details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Additional mobile fixes for text overflow */
@media (max-width: 768px) {
  /* Ensure all headings wrap */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Ensure buttons don't overflow */
  .btn {
    word-wrap: break-word;
    white-space: normal;
    padding: 14px 24px;
  }
  
  /* Portfolio card text */
  .portfolio-card-title,
  .portfolio-card-subtitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 768px) {
  .portfolio-services-section {
    padding: 2.5rem 0;
  }
  
  @media (max-width: 480px) {
    .portfolio-services-section {
      padding: 2rem 0;
    }
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2rem;
  }
  
  /* Reorder service cards on mobile: group each number with its button */
  .services-grid .service-card:nth-child(1) {
    order: 1;
    margin-bottom: 0;
  }
  
  .services-grid .service-card:nth-child(2) {
    order: 3;
    margin-bottom: 0;
  }
  
  .services-grid .service-card:nth-child(3) {
    order: 5;
    margin-bottom: 0;
  }
  
  .services-grid .service-card:nth-child(4) {
    order: 2;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
  }
  
  .services-grid .service-card:nth-child(5) {
    order: 4;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
  }
  
  .services-grid .service-card:nth-child(6) {
    order: 6;
    margin-top: -2rem;
  }
  
  @media (max-width: 480px) {
    .services-grid {
      gap: 0;
      margin-top: 1.5rem;
    }
    
    .services-grid .service-card:nth-child(4) {
      margin-top: -2.5rem;
    }
    
    .services-grid .service-card:nth-child(5) {
      margin-top: -2.5rem;
    }
    
    .services-grid .service-card:nth-child(6) {
      margin-top: -2.5rem;
    }
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    overflow: visible;
  }
  
  /* Button-only cards need bottom padding to prevent cutoff */
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5),
  .services-grid .service-card:nth-child(6) {
    padding-bottom: 2.5rem;
    overflow: visible;
  }
  
  .service-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }
  
  .service-card h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .portfolio-featured-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .portfolio-card-image {
    height: 300px;
  }
}

/* Testimonials Section */
.testimonials-section {
  background: var(--primary-bg);
  padding: 6rem 0;
  border-top: 1px solid var(--accent-sky);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-family: var(--font-header);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--primary-text);
}

.testimonials-header p {
  font-size: 1.2rem;
  color: var(--primary-text);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.testimonials-container {
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 300px;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 32px rgba(45, 58, 72, 0.08);
  border: 1px solid var(--accent-sky);
  position: relative;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.testimonial-card.active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(45, 58, 72, 0.12);
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--primary-text);
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-ocean);
  position: absolute;
  top: -1rem;
  left: -1rem;
  font-family: var(--font-header);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-text);
  font-family: var(--font-body);
}

.author-title {
  font-size: 0.9rem;
  color: var(--accent-ocean);
  font-weight: 400;
}

.author-company {
  font-size: 0.85rem;
  color: var(--primary-text);
  opacity: 0.7;
}

.testimonial-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--primary-text);
  opacity: 0.7;
  font-style: italic;
}

.testimonials-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-nav-btn {
  background: var(--accent-ocean);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(73, 123, 174, 0.3);
}

.testimonial-nav-btn:hover {
  background: var(--highlight-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(73, 123, 174, 0.4);
}

.testimonial-nav-btn:disabled {
  background: var(--accent-sky);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.testimonials-dots {
  display: flex;
  gap: 0.75rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-sky);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: var(--accent-ocean);
  transform: scale(1.2);
}

.testimonials-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(245, 249, 251, 0.5);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-cta h3 {
  font-size: 1.8rem;
  font-family: var(--font-header);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--primary-text);
}

/* Project Templates */
.project-template {
  background: var(--primary-bg);
  min-height: 100vh;
}

/* Combined Video and Details Section */
.project-video-details-section {
  padding: 4rem 0 6rem;
  background: rgba(245, 249, 251, 0.5);
}

.project-video-details-grid {
  display: grid;
  grid-template-columns: 400px 1fr 1fr;
  gap: 4rem;
  width: 100%;
  align-items: start;
}

.project-video-column {
  display: flex;
  justify-content: center;
}

.project-video-column .project-video-vertical {
  max-width: 400px;
  width: 100%;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(45, 58, 72, 0.15);
}

.project-details-column,
.project-description-column {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(45, 58, 72, 0.08);
  border: 1px solid var(--accent-sky);
  height: 600px;
  display: flex;
  flex-direction: column;
}

.project-details-column h3,
.project-description-column h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-text);
  margin-bottom: 1.5rem;
}

.project-description-column p {
  color: var(--primary-text);
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
  flex-grow: 1;
}

.project-hero {
  background: var(--primary-bg) !important;
  background-color: var(--primary-bg) !important;
  color: var(--primary-text);
  padding: 8rem 0 4rem;
}

.project-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-header);
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  color: var(--primary-text);
}

.project-hero .breadcrumb {
  color: var(--primary-text);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.project-hero .breadcrumb a {
  color: var(--accent-ocean);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-hero .breadcrumb span {
  margin: 0 10px;
  color: var(--primary-text);
  opacity: 0.6;
}

.project-hero .breadcrumb a:hover {
  color: var(--highlight-navy);
}

.project-video-section {
  padding: 4rem 0;
  background: white;
}

.project-video-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.project-video-vertical {
  max-width: 400px;
  width: 100%;
  height: 600px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(45, 58, 72, 0.15);
}

.project-video-horizontal {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(45, 58, 72, 0.15);
}

.project-video-vertical video,
.project-video-horizontal video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-details {
  padding: 4rem 0;
  background: rgba(245, 249, 251, 0.5);
}

.project-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-detail-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(45, 58, 72, 0.08);
  border: 1px solid var(--accent-sky);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-detail-card h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

.project-detail-card p {
  color: var(--primary-text);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.project-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.project-detail-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(164, 193, 216, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-detail-list li:last-child {
  border-bottom: none;
}

.project-detail-list .label {
  font-weight: 500;
  color: var(--accent-ocean);
  white-space: nowrap;
  flex-shrink: 0;
}

.project-detail-list .value {
  color: var(--primary-text);
  text-align: right;
  flex: 1;
}

/* Tabbed Photo Gallery */
.photo-gallery-section {
  padding: 4rem 0;
  background: white;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--accent-sky);
}

.gallery-tab {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--primary-text);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin: 0 0.5rem;
}

.gallery-tab:hover {
  color: var(--accent-ocean);
  background: rgba(164, 193, 216, 0.1);
}

.gallery-tab.active {
  color: var(--accent-ocean);
  border-bottom-color: var(--accent-ocean);
  background: rgba(164, 193, 216, 0.1);
}

.gallery-content {
  min-height: 400px;
}

.gallery-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  animation: fadeIn 0.5s ease;
}

.gallery-grid.active {
  display: grid;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 8px 32px rgba(45, 58, 72, 0.1); */
  transition: all 0.4s ease;
  cursor: pointer;
}


.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
  transition: transform 0.4s ease;
}


.gallery-placeholder {
  background: var(--accent-sky);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-text);
  font-style: italic;
}

/* Video Gallery */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .video-gallery {
    margin-top: 2rem;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .video-gallery {
    margin-top: 1.5rem;
    gap: 1.25rem;
  }
}

.video-hover-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--primary-text);
  opacity: 0.6;
  margin-top: 1rem;
  margin-bottom: 0;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .video-hover-hint {
    font-size: 0.7rem;
    margin-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  .video-hover-hint {
    font-size: 0.65rem;
    margin-top: 0.5rem;
  }
}

.video-item {
  height: 500px;
  background: var(--accent-sky);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.video-item:hover {
  transform: scale(1.02);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.video-placeholder:hover .video-poster {
  opacity: 0;
}

.video-placeholder:hover video {
  opacity: 1;
}

/* Disable videos behind photos on mobile - show only poster images */
@media (max-width: 768px) {
  .video-placeholder video {
    display: none;
  }
  
  .video-poster {
    opacity: 1 !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    object-fit: cover !important;
  }
  
  .video-placeholder {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  .video-item .placeholder-img {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  .video-item .placeholder-img.video-placeholder {
    display: block !important;
  }
}

/* Footer */
.footer {
  background: var(--highlight-navy);
  color: white;
  padding: 4rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Footer Watermark */
.footer-watermark {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  font-size: clamp(8rem, 20vw, 15rem);
  color: rgba(255, 255, 255, 0.02);
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: -0.05em;
  z-index: 0;
  line-height: 1;
  pointer-events: none;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: geometricPrecision;
  text-shadow: none;
  -webkit-text-stroke: 0;
  outline: none;
  filter: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-column {
  align-self: start;
}

/* Footer Headings - Header Size */
.footer-heading {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

/* Footer Links - Text Size */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 1rem;
  line-height: 1.5;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

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

.footer-link-underlined {
  text-decoration: underline;
}

/* Footer ul/li structure styling */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer ul li {
  margin: 0;
}

.footer ul li a,
.footer a {
  color: white !important;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--transition);
  font-family: var(--font-body);
}

.footer ul li a:hover,
.footer a:hover {
  text-decoration: underline;
}

/* Ensure h4 in footer are white - Header Size */
.footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

/* Yacht Shows Timeline Section */
.footer-subtext {
  font-size: 1rem;
  font-weight: 400;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-family: var(--font-body);
}

.yacht-shows-timeline {
  margin-top: 1rem;
}

.timeline-loading {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-style: italic;
  font-family: var(--font-body);
}

.show-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  transition: var(--transition);
}

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

.show-item:hover {
  background: rgba(255, 255, 255, 0.05);
  margin: 0 -0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: 4px;
}

.show-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: white;
  margin: 0 0 0.25rem 0;
  line-height: 1.5;
}

.show-details {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}

.show-location {
  opacity: 0.8;
}

.show-date {
  font-family: var(--font-body);
  font-weight: 400;
  white-space: nowrap;
  font-size: 0.75rem;
}

.show-month {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  white-space: nowrap;
}

.timeline-note {
  font-family: var(--font-body);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 3rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-bottom-left p,
.footer-socials a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  line-height: 1.5;
  margin: 0;
}

.footer-bottom-right {
  text-align: right;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

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

.footer-socials a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-container {
    padding: 15px 20px;
  }
  
  .nav-menu {
    position: fixed;
    top: 71px;
    left: 0;
    width: 100%;
    background: rgba(245, 249, 251, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(45, 58, 72, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    height: 60vh;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .video-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  @media (max-width: 480px) {
    .video-gallery {
      gap: 1.25rem;
    }
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .yacht-shows-timeline {
    margin-top: 0.75rem;
  }
  
  .show-item {
    padding: 0.5rem 0;
  }
  
  .show-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-bottom-right {
    text-align: center;
  }
  
  .footer-socials {
    justify-content: center;
    display: none;
  }
  
  .photo-cta {
    height: 60vh;
  }
  
  
  /* Rotating Banner Mobile - Keep same structure as desktop, just scale down */
  .rotating-banner {
    padding: 6rem 1rem 2rem 1rem;
    min-height: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .rotating-banner-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .rotating-title {
    font-size: clamp(1.8rem, 5vw, 4rem);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .title-line {
    font-size: clamp(1.8rem, 5vw, 4rem);
  }
  
  .title-line2 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
  }
  
  .rotating-word-container {
    height: clamp(2rem, 5vw, 3rem);
    min-width: clamp(200px, 50vw, 450px);
    max-width: 100%;
    overflow: hidden;
    margin-top: 0.5rem;
  }
  
  .rotating-word {
    font-size: clamp(1.5rem, 4vw, 3rem);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    white-space: nowrap;
  }
  
  .rotating-tagline {
    font-size: clamp(0.85rem, 2vw, 1rem);
  }
  
  @media (max-width: 480px) {
    .rotating-banner {
      padding: 5.5rem 0.75rem 1.5rem 0.75rem;
    }
    
    .rotating-word-container {
      min-width: clamp(180px, 45vw, 300px);
    }
  }
  
  /* Values Section Mobile */
  .values-section {
    padding: 3rem 0 4rem 0;
  }
  
  .values-header {
    margin-bottom: 3rem;
  }
  
  .values-header h2 {
    font-size: 2.5rem;
  }
  
  .values-header p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  @media (max-width: 480px) {
    .values-grid {
      gap: 1.25rem;
    }
  }
  
  .value-card {
    padding: 2rem 1.5rem;
  }
  
  .value-number {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .value-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .value-content p {
    font-size: 0.95rem;
  }
  
  /* Testimonials Section Mobile */
  .testimonials-section {
    padding: 4rem 0;
  }
  
  .testimonials-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  @media (max-width: 480px) {
    .testimonials-header {
      margin-bottom: 1.5rem;
    }
  }
  
  .testimonials-header h2 {
    font-size: 2.5rem;
  }
  
  .testimonials-header p {
    font-size: 1.1rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  @media (max-width: 480px) {
    .testimonials-grid {
      gap: 1.25rem;
    }
  }
  
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-quote {
    font-size: 1rem;
  }
  
  .testimonial-quote::before {
    font-size: 3rem;
    top: -0.5rem;
    left: -0.5rem;
  }
  
  .testimonials-navigation {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .testimonial-nav-btn {
    width: 44px;
    height: 44px;
  }
  
  .testimonials-cta {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .testimonials-cta h3 {
    font-size: 1.5rem;
  }
  
  /* Project Templates Mobile */
  .project-hero {
    padding: 7rem 0 2rem;
  }
  
  .project-hero .container {
    padding: 0 1rem;
    box-sizing: border-box;
  }
  
  @media (max-width: 480px) {
    .project-hero {
      padding: 6rem 0 1.5rem;
    }
    
    .project-hero .container {
      padding: 0 0.75rem;
    }
  }
  
  .project-hero h1 {
    font-size: 2.5rem;
    padding: 0 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .project-hero .breadcrumb {
    padding: 0 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  @media (max-width: 480px) {
    .project-hero h1 {
      padding: 0 0.75rem;
      font-size: 2rem;
    }
    
    .project-hero .breadcrumb {
      padding: 0 0.75rem;
      font-size: 0.85rem;
    }
  }
  
  .project-video-section {
    padding: 3rem 0;
  }
  
  .project-video-container {
    padding: 0 1rem;
  }
  
  .project-video-vertical {
    height: 500px;
    max-width: 300px;
  }
  
  .project-video-horizontal {
    aspect-ratio: 16/9;
  }
  
  .project-details {
    padding: 2rem 0;
  }
  
  .project-details-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  @media (max-width: 480px) {
    .project-details {
      padding: 1.5rem 0;
    }
    
    .project-details-grid {
      gap: 1.25rem;
      padding: 0 0.75rem;
    }
  }
  
  .project-detail-card {
    padding: 1.5rem 1.25rem;
    min-height: auto !important;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .project-detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .project-detail-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .project-detail-list {
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .project-detail-list .label,
  .project-detail-list .value {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .project-detail-list li {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  @media (max-width: 480px) {
    .project-detail-card {
      padding: 1.25rem 1rem;
    }
    
    .project-detail-card h3 {
      font-size: 1.2rem;
    }
    
    .project-detail-card p {
      font-size: 0.95rem;
      line-height: 1.6;
    }
  }
  
  /* Combined Video and Details Section Mobile */
  .project-video-details-section {
    padding: 3rem 0;
  }
  
  .project-video-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  @media (max-width: 480px) {
    .project-video-details-grid {
      padding: 0 0.75rem;
      gap: 1.5rem;
    }
  }
  
  .project-video-column .project-video-vertical {
    height: 400px;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .project-details-column,
  .project-description-column {
    padding: 1.5rem 1.25rem;
    min-height: auto !important;
    height: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .project-details-column h3,
  .project-description-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .project-description-column p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow: hidden;
  }
  
  .project-details-column ul,
  .project-description-column ul {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  @media (max-width: 480px) {
    .project-details-column,
    .project-description-column {
      padding: 1.25rem 1rem;
    }
    
    .project-details-column h3,
    .project-description-column h3 {
      font-size: 1.2rem;
    }
    
    .project-description-column p {
      font-size: 0.9rem;
      line-height: 1.6;
    }
  }
  
  .photo-gallery-section {
    padding: 3rem 0;
  }
  
  .gallery-tabs {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  
  .gallery-tab {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    margin: 0.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .gallery-item img {
    height: 200px;
    object-fit: cover;
    object-position: center center;
    border-radius: 12px;
  }
  
  .gallery-placeholder {
    height: 200px;
  }
  
  /* Breadcrumb mobile fix */
  .portfolio-breadcrumb {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Project hero mobile */
  .project-hero h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .slider-track {
    animation: none;
  }
  
  .rotating-word {
    transition: none;
  }
  
  .rotating-word:not(.active) {
    display: none;
  }
  
  .value-card {
    transition: none;
  }
  
  .value-card::before {
    transition: none;
  }
  
  .value-card:hover {
    transform: none;
  }
  
  .value-number {
    transition: none;
  }
  
  .testimonial-card {
    transition: none;
  }
  
  .testimonial-card:hover {
    transform: none;
  }
  
  .testimonial-nav-btn {
    transition: none;
  }
  
  .testimonial-nav-btn:hover {
    transform: none;
  }
  
  .testimonial-dot {
    transition: none;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
.btn:focus {
  outline: none;
}

/* Portfolio Card Layout */
.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
}

.portfolio-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--primary-text);
}

.portfolio-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.portfolio-breadcrumb a {
  color: var(--accent-ocean);
  text-decoration: none;
  transition: var(--transition);
}

.portfolio-breadcrumb a:hover {
  color: var(--primary-text);
}

.portfolio-breadcrumb span {
  color: var(--primary-text);
  margin: 0 10px;
}

.portfolio-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

/* Portfolio grid mobile optimization */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
}

.portfolio-card {
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-card:hover {
  opacity: 0.9;
}

.portfolio-card-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 5s ease;
  border-radius: 8px;
  overflow: hidden;
}

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

.portfolio-card-info {
  padding: 0.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-card-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  color: #000000;
  margin: 0;
  margin-left: 3%;
}

.portfolio-card-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #000000;
  font-weight: 400;
  margin: 0;
  margin-right: 3%;
}

/* Responsive adjustments for portfolio cards */
@media (max-width: 1000px) {
  .portfolio-grid {  
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .portfolio-card-image {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .portfolio-header {
    margin-bottom: 1.5rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  
  .portfolio-card-image {
    height: 300px;
    border-radius: 6px;
  }
  
  .portfolio-card-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .portfolio-card-title {
    font-size: 1.1rem;
    margin-left: 0 !important;
  }
  
  .portfolio-card-subtitle {
    font-size: 0.8rem;
    margin-right: 0 !important;
  }
  
  .services-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .services-content {
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 1rem;
    text-align: center;
  }
  
  .services-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .services-images {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-image-card {
    height: 300px;
  }
  
  .service-image-card img,
  .service-image-card video {
    height: 100%;
  }
  
  .service-card-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 1000px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-content {
    padding-right: 0;
  }
  
  .services-images {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .service-card-title,
  .service-card-subtitle {
    margin-left: 0;
    margin-right: 0;
  }
  
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .video-item {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }
  
  .video-item {
    height: 200px;
  }
  
  .services-images {
    grid-template-columns: 1fr;
  }
  
  .service-image-card img,
  .service-image-card video {
    height: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-watermark {
    font-size: clamp(6rem, 15vw, 10rem);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-light { color: rgba(255, 255, 255, 0.9); }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-3 { margin-top: 3rem; }
.hidden { display: none; }

/* Mobile utility class adjustments */
@media (max-width: 768px) {
  .mb-3 {
    margin-bottom: 2rem;
  }
  
  .mt-3 {
    margin-top: 2rem;
  }
  
  .mb-2 {
    margin-bottom: 1.5rem;
  }
  
  .text-center.mb-3 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .mb-3 {
    margin-bottom: 1.5rem;
  }
  
  .mt-3 {
    margin-top: 1.5rem;
  }
  
  .mb-2 {
    margin-bottom: 1rem;
  }
  
  .service-card-title {
    font-size: 1rem;
  }
  
  .text-center.mb-3 {
    margin-bottom: 1.5rem;
  }
}

/* Image Placeholders */
.placeholder-img {
  background: linear-gradient(135deg, var(--accent-sky), var(--link-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-text);
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--border-radius);
}