/* Component styles */

/* Parallax Cards Effect */
.parallax-main {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 60px 20px;
}

.parallax-card-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.parallax-card {
  width: 100%;
  max-width: 900px;
  height: 500px;
  border-radius: 25px;
  display: flex;
  align-items: flex-end;
  padding: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.parallax-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.parallax-card h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  z-index: 2;
  position: relative;
  line-height: 1.2;
}

.parallax-card-body {
  z-index: 2;
  position: relative;
  width: 100%;
}

.parallax-card-description {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.parallax-card-description p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  max-width: 400px;
}

.parallax-card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.parallax-card-link:hover {
  transform: translateX(5px);
}

.parallax-card-link svg {
  width: 22px;
  height: 12px;
  fill: white;
}

.parallax-image-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.parallax-image-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.parallax-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Card hover effects */
.parallax-card:hover .parallax-image-inner {
  transform: scale(1.05);
}

/* Card Colors */
.parallax-card--color-1 { background-color: #fff; }
.parallax-card--color-2 { background-color: #fff; }
.parallax-card--color-3 { background-color: #fff; }
.parallax-card--color-4 { background-color: #fff; }
.parallax-card--color-5 { background-color: #fff; }
.parallax-card--color-6 { background-color: #fff; }
.parallax-card--color-7 { background-color: #fff; }

/* Responsive Design */
@media (max-width: 768px) {
  .parallax-main {
    padding: 40px 15px;
  }
  
  .parallax-card-container {
    height: auto;
    min-height: 60vh;
    margin-bottom: 30px;
    position: relative; /* Remove sticky on mobile */
  }
  
  .parallax-card {
    height: 400px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative; /* Ensure relative positioning on mobile */
  }
  
  .parallax-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .parallax-card-description {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .parallax-card-description p {
    font-size: 0.9rem;
    max-width: 100%;
  }
  
  .parallax-card-link {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .parallax-main {
    padding: 30px 10px;
  }
  
  .parallax-card-container {
    margin-bottom: 20px;
    min-height: 50vh;
  }
  
  .parallax-card {
    height: 350px;
    padding: 25px 20px;
  }
  
  .parallax-card h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }
  
  .parallax-card-description p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .parallax-card-link {
    font-size: 0.9rem;
  }
  
  .parallax-card-link svg {
    width: 18px;
    height: 10px;
  }
}

/* Enhanced Animation Performance */
.parallax-card,
.parallax-image-inner {
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Smooth transitions */
.parallax-card {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.parallax-image-inner {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Disable parallax on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .parallax-card,
  .parallax-image-inner {
    transform: none !important;
    transition: none !important;
  }
  
  .parallax-card-container {
    position: relative !important;
  }
}

/* Partners section glassmorphism */
.partners-section {
  padding: 60px 0 40px 0;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  position: relative;
  z-index: 2;
}


.gallery-container {
  width: 100%;
  height: 70vh;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;

  overflow-x: auto;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  height: 65vh;

  scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
  height: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {

  border-radius: 10px;
}

.scroll-container img {
  height: 60vh;
  object-fit: cover;
  margin-right: 16px;
  /* increased for visibility */
  border-radius: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.partners-title {
  text-align: center;
  margin-bottom: 40px;
  color: #222;
  letter-spacing: 0.01em;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  justify-items: center;
  align-items: center;
}

.partner-card {
  background: rgba(255,255,255,0.25);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.partner-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.18);
}

.partner-logo {
  max-width: 100px;
  max-height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

/* Client grid styles */
.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.client-grid .big-brand-card {
  width: 18%;
  margin: 1%;
}

/* Partner images scroll animation */
.clients-image-container {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative;
  background: transparent;
}

.clients-image-scroll {
  display: flex;
  animation: scroll 30s linear infinite;
  will-change: transform;
}

.clients-image {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  padding-right: 0;
  max-width: 100%;
  height: auto;
  width: 900px;
}

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

/* Form styles */
.select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.94531L10 12.9453L15 7.94531' stroke='black' stroke-width='1.5' stroke-linecap='square' /%3E%3C/svg%3E");
  background-size: 20px 21px;
  background-repeat: no-repeat;
  background-position: center right 13px;
}

.search-field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M10 24H38M38 24L24 10M38 24L24 38' stroke='white' stroke-opacity='0.75' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  background-size: 32px;
  background-repeat: no-repeat;
  background-position: center right;
}

/* Contact modal */
@media screen and (max-width: 767px) {
  .contact-content {
    display: contents;
  }
}

@media screen and (min-width: 768px) {
  .contact-form,
  .contact-content {
    height: calc(100vh - 180px);
  }
}

textarea {
  resize: none !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .partners-section { 
    padding: 40px 0 20px 0; 
  }
  .partners-title { 
    font-size: 2rem; 
  }
  .partners-grid { 
    gap: 18px; 
  }
  .partner-card { 
    padding: 14px 8px; 
  }
  .partner-logo { 
    max-width: 70px; 
    max-height: 40px; 
  }
}

@media (max-width: 767px) {
  .client-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    padding: 0 20px;
    max-width: 100%;
  }
  
  .client-grid .big-brand-card {
    width: 100%;
    margin: 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .client-grid .brand-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .client-grid {
    gap: 8px;
    padding: 0 16px;
  }
}

/* Mobile responsive styles for gallery */
@media (max-width: 768px) {
  .gallery-container {
    height: 50vh;
  }
  
  .scroll-container {
    height: 45vh;
    padding: 10px;
  }
  
  .scroll-container img {
    height: 40vh;
    margin-right: 12px;
    min-width: 70vw;
    max-width: 80vw;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    height: 40vh;
  }
  
  .scroll-container {
    height: 35vh;
    padding: 8px;
  }
  
  .scroll-container img {
    height: 30vh;
    margin-right: 8px;
    min-width: 75vw;
    max-width: 85vw;
    object-fit: contain;
  }
}

@media (max-width: 360px) {
  .gallery-container {
    height: 35vh;
  }
  
  .scroll-container {
    height: 30vh;
    padding: 5px;
  }
  
  .scroll-container img {
    height: 25vh;
    margin-right: 6px;
    min-width: 80vw;
    max-width: 90vw;
    object-fit: contain;
  }
} 