/* ===============================================
   EFG-Vision Portfolio Page Styles - INSTAGRAM DESKTOP CENTERED
   Brand Colors from Official Guidelines:
   - Green Castleton: #055440
   - Cadmium Orange: #E88824  
   - White: #FFFFFF
   - Liver: #643919
   =============================================== */

/* CSS Variables for Brand Colors */
:root {
  /* Brand Colors */
  --primary-green: #055440;
  --primary-orange: #E88824;
  --primary-white: #FFFFFF;
  --primary-liver: #643919;
  
  /* Additional Colors */
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --border-light: #e5e5e5;
  --shadow: rgba(5, 84, 64, 0.1);
  --shadow-dark: rgba(5, 84, 64, 0.2);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Bebas Neue', cursive;
  
  /* Spacing */
  --header-height: 80px;
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --border-radius: 12px;
  --border-radius-small: 8px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Prevent zoom on touch */
  touch-action: manipulation;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--primary-white);
  overflow-x: hidden;
  /* Prevent zoom on double tap */
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for readable content */
p, h1, h2, h3, h4, h5, h6, span, li, td, th {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  /* Prevent zoom on tap */
  touch-action: manipulation;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.desktop-only {
  display: block;
}

/* Section Headers */
.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__title {
  font-family: var(--font-secondary);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--primary-green);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section__subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-small);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  gap: 8px;
  /* Prevent zoom on tap */
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-green) 100%);
  color: var(--primary-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: var(--primary-white);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--primary-white);
  box-shadow: 0 2px 20px var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo {
  height: 60px;
  width: auto;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__list {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-orange);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-green) 100%);
}

/* FIXED: Mobile Language Selector - Match Homepage Styling Exactly */
.nav__item--mobile-lang {
  display: none;
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.nav__item--mobile-lang .gtranslate_wrapper {
  width: 100%;
}

/* FIXED: Desktop and Mobile GTranslate Styles - Match Homepage */
.gtranslate_wrapper {
  position: relative;
}

.gt_switcher_wrapper {
  position: relative;
}

.gt_current_language {
  position: relative;
}

/* FIXED: Unified styling for both desktop and mobile switchers */
.gt_float_switcher,
#desktop-lang-switcher,
#mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-small);
  background: var(--primary-white);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.gt_float_switcher:hover,
#desktop-lang-switcher:hover,
#mobile-lang-switcher:hover {
  border-color: var(--primary-orange);
  background: var(--bg-light);
}

.gt_float_switcher.gt_selected,
#desktop-lang-switcher.gt_selected,
#mobile-lang-switcher.gt_selected {
  border-color: var(--primary-orange);
}

/* Mobile language selector specific styling */
.nav__item--mobile-lang .gt_float_switcher,
.nav__item--mobile-lang #mobile-lang-switcher {
  width: 100%;
  justify-content: space-between;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-small);
  background: var(--primary-white);
  font-weight: 500;
}

.gt_flag {
  width: 24px;
  height: 24px;
  border-radius: 2px;
}

.gt_language_text {
  font-size: 14px;
}

.gt_arrow {
  font-size: 12px;
  transition: var(--transition);
}

/* FIXED: Dropdown Positioning - Match Homepage */
.gt_dropdown,
#desktop-lang-dropdown,
#mobile-lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--primary-white);
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-small);
  box-shadow: 0 10px 30px var(--shadow);
  z-index: 1001;
  min-width: 160px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  /* Fixed positioning to prevent moving */
  transform: none !important;
  left: auto !important;
}

/* Mobile dropdown positioning */
.nav__item--mobile-lang .gt_dropdown,
.nav__item--mobile-lang #mobile-lang-dropdown {
  position: static;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  right: auto !important;
  left: 0 !important;
}

.gt_dropdown.show,
#desktop-lang-dropdown.show,
#mobile-lang-dropdown.show {
  display: block !important;
}

.gt_option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-dark);
  font-size: 14px;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.gt_option:last-child {
  border-bottom: none;
}

.gt_option:hover {
  background: var(--bg-light);
  color: var(--primary-orange);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-green);
  transition: var(--transition);
}

/* Portfolio Hero Section */
.portfolio-hero {
  padding-top: calc(var(--header-height) + 40px);
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(232, 136, 36, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E88824" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.portfolio-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 60vh;
}

.hero__text {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 136, 36, 0.1);
  color: var(--primary-orange);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(232, 136, 36, 0.2);
}

.badge__icon {
  font-size: 1.2rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stat__item {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 8px;
  font-weight: 400;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero__cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Creative Camera Visual */
.hero__visual .visual__container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.camera-setup {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-base {
  position: relative;
  z-index: 3;
}

.camera-body {
  width: 120px;
  height: 80px;
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: cameraFloat 6s ease-in-out infinite;
}

@keyframes cameraFloat {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  25% { transform: translateY(-10px) rotateY(5deg); }
  50% { transform: translateY(-5px) rotateY(0deg); }
  75% { transform: translateY(-12px) rotateY(-5deg); }
}

.camera-lens {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #4a4a4a, #2c2c2c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.3);
}

.lens-inner {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--primary-orange), var(--primary-green));
  border-radius: 50%;
  position: relative;
  animation: lensGlow 4s ease-in-out infinite alternate;
}

@keyframes lensGlow {
  from { box-shadow: 0 0 20px rgba(232, 136, 36, 0.5); }
  to { box-shadow: 0 0 30px rgba(232, 136, 36, 0.8), 0 0 40px rgba(5, 84, 64, 0.3); }
}

.lens-reflection {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: reflectionShimmer 3s ease-in-out infinite;
}

@keyframes reflectionShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.camera-details {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.camera-button {
  width: 8px;
  height: 8px;
  background: var(--primary-orange);
  border-radius: 50%;
}

.camera-grip {
  width: 20px;
  height: 4px;
  background: linear-gradient(90deg, #3c3c3c, #2a2a2a);
  border-radius: 2px;
}

.tripod {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, #333, #111);
}

.tripod-leg {
  position: absolute;
  bottom: -40px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #333, #111);
  transform-origin: left center;
}

.tripod-leg-1 {
  transform: rotate(-30deg);
}

.tripod-leg-2 {
  transform: rotate(30deg);
}

.tripod-leg-3 {
  left: -20px;
  transform: rotate(90deg);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  animation-duration: 8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.mic-element {
  top: 15%;
  left: 10%;
  animation-name: floatUpDown;
  animation-delay: 0s;
}

.video-element {
  top: 20%;
  right: 15%;
  animation-name: floatLeftRight;
  animation-delay: 2s;
}

.light-element {
  bottom: 25%;
  left: 5%;
  animation-name: floatRotate;
  animation-delay: 4s;
}

.podcast-element {
  bottom: 20%;
  right: 10%;
  animation-name: floatUpDown;
  animation-delay: 6s;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
  25% { transform: translateY(-20px) scale(1.1); opacity: 1; }
  75% { transform: translateY(-10px) scale(0.95); opacity: 0.8; }
}

@keyframes floatLeftRight {
  0%, 100% { transform: translateX(0px) rotate(0deg); opacity: 0.7; }
  25% { transform: translateX(15px) rotate(5deg); opacity: 1; }
  75% { transform: translateX(-10px) rotate(-3deg); opacity: 0.8; }
}

@keyframes floatRotate {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.6; }
  50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
}

/* Background Elements */
.bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-circle {
  position: absolute;
  border: 2px solid rgba(232, 136, 36, 0.2);
  border-radius: 50%;
  animation: circleRotate 20s linear infinite;
}

.bg-circle-1 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: dashed;
}

.bg-circle-2 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-direction: reverse;
  animation-duration: 25s;
  border-color: rgba(5, 84, 64, 0.15);
}

@keyframes circleRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.bg-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background-image: radial-gradient(circle, rgba(232, 136, 36, 0.1) 2px, transparent 2px);
  background-size: 30px 30px;
  animation: dotsFloat 15s ease-in-out infinite;
}

@keyframes dotsFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* FIXED: Mobile vs Desktop video display */
.mobile-video-thumbnail {
  display: block;
}

.desktop-video-iframe {
  display: none;
}

/* Desktop: Hide thumbnail, show iframe */
@media (min-width: 969px) {
  .mobile-video-thumbnail {
    display: none !important;
  }
  
  .desktop-video-iframe {
    display: block !important;
  }
}

/* Mobile: Show thumbnail, hide iframe */
@media (max-width: 968px) {
  .mobile-video-thumbnail {
    display: block !important;
  }
  
  .desktop-video-iframe {
    display: none !important;
  }
}

.portfolio__category {
  margin-bottom: 60px; /* FIXED: Reduced spacing between sections */
}

.category__title {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.category__title::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-orange);
  border-radius: 2px;
}

/* FIXED: Carousel Container - Properly constrain overflow */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden; /* Only horizontal overflow hidden */
  padding: 10px 0; /* Add some vertical padding for content */
}

/* Video Grid - Desktop */
.video__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.video__item {
  background: var(--primary-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
  position: relative;
}

.video__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-green) 100%);
  transform: scaleX(0);
  transition: var(--transition);
  z-index: 2;
}

.video__item:hover::before {
  transform: scaleX(1);
}

.video__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.video__wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.video__wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video__thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.video__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-orange);
}

.video__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 84, 64, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.video__thumbnail:hover .video__overlay {
  opacity: 1;
}

.play-button,
.play-icon {
  color: var(--primary-white);
  font-size: 3rem;
}

.video-unavailable {
  color: var(--primary-white);
  font-size: 1rem;
  font-weight: 600;
}

.video__content {
  padding: 20px;
}

.video__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.video__description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.video__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.meta__item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.meta__icon {
  font-size: 1rem;
}

.platform__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform__link {
  padding: 6px 12px;
  border-radius: var(--border-radius-small);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.platform__link.youtube {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border: 1px solid rgba(255, 0, 0, 0.2);
}

.platform__link.youtube:hover {
  background: #ff0000;
  color: white;
}

.platform__link.spotify {
  background: rgba(30, 215, 96, 0.1);
  color: #1ed760;
  border: 1px solid rgba(30, 215, 96, 0.2);
}

.platform__link.spotify:hover {
  background: #1ed760;
  color: white;
}

.platform__link.apple {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.platform__link.apple:hover {
  background: #000000;
  color: white;
}

/* FIXED: Instagram Container - Centered with reasonable size for desktop */
.instagram__container {
  width: 100%;
  max-width: 750px; /* UPDATED: Increased from 600px to 750px for better fit */
  margin: 0 auto; /* FIXED: Centered container */
  padding: 0;
  display: block;
  position: relative;
}

.instagram__container iframe {
  width: 100% !important;
  min-height: 600px;
  border: none !important;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px var(--shadow);
  margin: 0 auto;
  display: block;
}

/* Highlights Grid - Desktop */
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.highlight__card {
  background: var(--primary-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
  position: relative;
}

.highlight__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-green) 100%);
  transform: scaleX(0);
  transition: var(--transition);
  z-index: 2;
}

.highlight__card:hover::before {
  transform: scaleX(1);
}

.highlight__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-dark);
}

.highlight__image {
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.highlight__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 136, 36, 0.1) 0%, rgba(5, 84, 64, 0.1) 100%);
  z-index: 1;
}

.highlight__placeholder {
  font-size: 4rem;
  color: var(--primary-orange);
  position: relative;
  z-index: 2;
}

.highlight__content {
  padding: 30px;
}

.highlight__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 12px;
}

.highlight__description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.highlight__stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.highlight__stats .stat {
  background: var(--bg-light);
  color: var(--primary-green);
  padding: 8px 16px;
  border-radius: var(--border-radius-small);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.highlight__stats .stat:hover {
  background: var(--primary-orange);
  color: var(--primary-white);
  transform: translateY(-2px);
}

/* FIXED: Mobile Carousel Navigation - Properly visible and functional */
.mobile-carousel-nav {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 20px 0;
}

.carousel__btn {
  background: var(--primary-white);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(5, 84, 64, 0.2);
  /* Prevent zoom on tap */
  touch-action: manipulation;
}

.carousel__btn:hover:not(:disabled) {
  background: var(--primary-green);
  color: var(--primary-white);
  transform: scale(1.1);
}

.carousel__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel__dots {
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(5, 84, 64, 0.3);
  cursor: pointer;
  transition: var(--transition);
  /* Prevent zoom on tap */
  touch-action: manipulation;
}

.carousel__dot.active {
  background: var(--primary-green);
  transform: scale(1.2);
}

.carousel__dot:hover {
  background: var(--primary-orange);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-liver) 100%);
  color: var(--primary-white);
  text-align: center;
}

.cta__title {
  font-family: var(--font-secondary);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta__description {
  font-size: 1.2rem;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: var(--primary-green);
  color: var(--primary-white);
  padding: 60px 0 20px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-green) 100%);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer__description {
  opacity: 0.8;
  line-height: 1.7;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer__title {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  opacity: 0.8;
  transition: var(--transition);
  position: relative;
}

.footer__link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: var(--transition);
}

.footer__link:hover {
  opacity: 1;
  color: var(--primary-orange);
  transform: translateX(5px);
}

.footer__link:hover::before {
  width: 100%;
}

.footer__text {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
}

.footer__copyright {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.developer-credit a {
  color: var(--primary-orange);
  font-weight: 500;
}

/* FIXED: Mobile Responsive Styles - Critical fixes for carousel visibility and Instagram centering */
@media (max-width: 968px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 16px;
  }

  .desktop-only {
    display: none !important;
  }

  .portfolio-hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Hide Navigation and Services sections in footer on mobile */
  .footer__group--navigation,
  .footer__group--services {
    display: none;
  }

  /* FIXED: Portfolio categories spacing on mobile */
  .portfolio__category {
    margin-bottom: 40px; /* Reduced mobile spacing */
  }

  /* CRITICAL: Mobile Carousels - All items must be visible */
  .mobile-carousel-nav {
    display: flex !important;
  }

  /* REWRITTEN: Simple and bulletproof mobile carousel */
  .carousel-wrapper {
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
    padding: 10px 20px !important;
    margin: 0 !important;
  }

  /* Video and highlights grids use same approach */
  .video__grid,
  .highlights__grid {
    /* Styles will be applied via JavaScript for guaranteed compatibility */
    display: flex !important;
    transition: transform 0.4s ease-out !important;
  }

  .video__item,
  .highlight__card {
    /* Styles will be applied via JavaScript for guaranteed compatibility */
    flex-shrink: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* Ensure video thumbnails display properly on mobile */
  .video__wrapper {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    background: var(--bg-light) !important;
  }

  .video__wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
  }

  .video__thumbnail {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    overflow: hidden !important;
    background: var(--bg-light) !important;
  }

  .video__thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .thumbnail__placeholder {
    width: 100% !important;
    height: 100% !important;
    background: var(--bg-light) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    color: var(--primary-orange) !important;
  }

  /* CRITICAL FIX: Instagram container - Perfectly centered with adequate space for icon */
  .instagram__container {
    width: calc(100vw - 30px) !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
    /* Perfect centering */
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Ensure no overflow */
    box-sizing: border-box !important;
  }

  .instagram__container iframe {
    width: 100% !important;
    min-height: 420px !important;
    max-height: 520px !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 5px 20px var(--shadow) !important;
    border: none !important;
    /* Slight scale to ensure icon visibility without affecting centering */
    box-sizing: border-box !important;
    transform: scale(0.96) !important;
    transform-origin: center center !important;
  }

  /* Ensure Instagram section has proper constraints */
  #instagram {
    padding: 0 15px !important;
    overflow-x: hidden !important;
    /* Ensure section doesn't create horizontal scroll */
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  #instagram .carousel-wrapper {
    padding: 0 !important;
    overflow-x: hidden !important;
    margin: 0 auto !important;
    /* Reset positioning for proper centering */
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
  }

  #instagram .category__title {
    text-align: center !important;
    padding: 0 20px !important;
    margin-bottom: 30px !important;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--primary-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 20px;
    transition: var(--transition);
    box-shadow: 0 5px 20px var(--shadow);
    z-index: 999;
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    text-align: center;
  }

  .nav__link {
    font-size: 1.2rem;
    padding: 15px 0;
    width: 100%;
    display: block;
  }

  /* Show mobile language selector */
  .nav__item--mobile-lang {
    display: block !important;
    width: 100%;
  }

  /* Hide desktop language selector on mobile */
  .gtranslate_wrapper--desktop {
    display: none !important;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero__cta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .stat__number {
    font-size: 2rem;
  }

  .carousel__btn {
    width: 40px;
    height: 40px;
  }

  /* CRITICAL FIX: Extra small screens - Instagram perfectly centered with icon protection */
  .instagram__container {
    width: calc(100vw - 40px) !important;
    max-width: 360px !important;
    /* Ensure minimum viable size */
    min-width: 300px !important;
    /* Perfect centering */
    left: 50% !important;
  }

  .instagram__container iframe {
    min-height: 380px !important;
    max-height: 480px !important;
    /* Centered scaling for icon protection */
    transform: scale(0.94) !important;
    transform-origin: center center !important;
    /* Remove left margin for proper centering */
    margin-left: 0 !important;
  }

  /* Reset section padding for proper centering */
  #instagram {
    padding: 0 20px !important;
  }

  #instagram .carousel-wrapper {
    /* Reset wrapper positioning */
    left: 0 !important;
  }

  /* Extra small screens - maintain proper item sizing */
  .video__item,
  .highlight__card {
    width: calc(100vw - 32px) !important;
    min-width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  /* Ensure content is always centered */
  .portfolio__category {
    text-align: center;
  }

  .category__title {
    text-align: center;
  }

  /* Center mobile carousel navigation */
  .mobile-carousel-nav {
    justify-content: center !important;
    text-align: center !important;
  }
}

/* CRITICAL FIX: Additional constraints for Instagram on all mobile sizes */
@media (max-width: 968px) {
  /* Ensure body doesn't allow horizontal scroll */
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  /* Additional Instagram safety constraints */
  .instagram__container {
    /* Prevent any possibility of overflow */
    overflow: hidden !important;
  }
  
  .instagram__container iframe {
    /* Ensure iframe respects container boundaries */
    max-width: 100% !important;
    object-fit: contain !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.5);
  }

  .btn-secondary {
    border-width: 3px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .camera-body,
  .lens-inner,
  .lens-reflection,
  .floating-element,
  .bg-circle,
  .bg-dots {
    animation: none;
  }

  /* Disable carousel transitions for reduced motion */
  .video__grid,
  .highlights__grid {
    transition: none !important;
  }
}

/* Print Styles */
@media print {
  .header,
  .nav__toggle,
  .btn,
  .cta,
  .carousel__btn,
  .hero__visual,
  .mobile-carousel-nav {
    display: none;
  }

  .portfolio-hero {
    padding-top: 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .section {
    padding: 20px 0;
  }

  .video__item,
  .highlight__card {
    break-inside: avoid;
  }
}

/* RTL Support for Arabic */
.rtl {
  direction: rtl;
}

.rtl .nav__list {
  flex-direction: row-reverse;
}

.rtl .gt_dropdown {
  right: auto;
  left: 0;
}

.rtl .hero__cta {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .rtl .hero__cta {
    flex-direction: column;
  }
}

/* FIXED: Ensure carousel items maintain proper styling during transforms */
.video__item,
.highlight__card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Loading states */
.loaded .video__item {
  transition: all 0.3s ease;
}

/* Ensure smooth hardware acceleration */
@media (max-width: 968px) {
  .video__grid,
  .highlights__grid {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}