/* ================================
   COMPONENTS
   ================================
   Individual section components
*/

/* ========== TITLE SECTION ========== */
.title {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 50vh;
}

.title-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.title-text h1 {
  line-height: 1;
  margin: 0;
}

/* ========== IMAGE GRID SECTION ========== */
.image-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: var(--grid-gap);
  grid-row-gap: var(--grid-gap);
  width: 70vw;
  margin: 0 auto;
  padding-top: 50vh;
  padding-left: 10vw;
  padding-right: 5vw;
  z-index: -1;
  margin-left: calc(-1 * var(--content-padding));
  margin-right: calc(-1 * var(--content-padding));
  width: calc(70vw + (2 * var(--content-padding)));
}

.image-grid .image_cont {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.image-grid .image_cont.rounded {
  border-radius: 20px;
}

.image-grid img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
}

.image-grid .image_cont:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.image-grid .image_cont:nth-child(2) {
  grid-column: 3;
  grid-row: 2;
}

.image-grid .image_cont:nth-child(3) {
  grid-column: 2;
  grid-row: 3;
}

/* ========== FLOATING TEXT ========== */
.floating-text {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

.floating-text span {
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.4;
  mix-blend-mode: multiply;
  text-shadow: 0 2px 10px rgba(168, 216, 234, 0.5);
}

/* ========== PARALLAX SLAB ========== */
.parallax-slab {
  position: relative;
  height: 500px;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.parallax-slab img {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 180%;
  object-fit: cover;
}

/* ========== STAGGERED SECTION ========== */
.staggered {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--space-xl);
}

.staggered h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 6vw, 80px);
  letter-spacing: 0.03em;
}

.staggered_text {
  flex: 1 1 300px;
}

.staggered_demo {
  flex: 1 1 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== PARALLAX IMAGES SECTION ========== */
.parallax-images {
  margin-top: 10vh;
  padding: 10rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 1rem;
  grid-row-gap: 20vh;
  align-items: center;
  justify-items: center;
}

.parallax-images .image_cont {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.parallax-images img {
  position: absolute;
  bottom: 0;
  margin: 0 auto;
  height: 140%;
  width: 100%;
  object-fit: cover;
}

.parallax-images .parallax-text {
  grid-column: 2;
  grid-row: 1;
}

.parallax-images .image_cont:nth-child(2) {
  grid-column: 1 / span 1;
  grid-row: 1;
  width: 100%;
}

.parallax-images .image_cont:nth-child(3) {
  grid-column: 2 / span 1;
  grid-row: 2;
}

/* ========== YOUTUBE VIDEO SECTION ========== */
.v-center {
  display: none; /* Hide entire video section temporarily */
}

.youtube-video-container {
  display: none; /* Hide video section temporarily */
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  min-height: 500px;
  margin: 8vh auto 0 auto;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  background: rgba(255, 255, 255, 0.3); /* Match horizontal card border gray */
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.youtube-video-container:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.youtube-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
  transition: all 0.4s ease;
  filter: brightness(0.95) contrast(1.05);
}

.youtube-video-container:hover iframe {
  filter: brightness(1) contrast(1.1);
}


/* ========== CTA BUTTON ========== */
.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: var(--color-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.cta-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
}

/* ========== CONTACT POPUP ========== */

/* ================================
   CONTACT POPUP
   ================================
*/
.contact-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.contact-popup.active {
  opacity: 1;
  visibility: visible;
}

.contact-popup-content {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(30px) scale(0.9);
  transition: all 0.3s ease;
  overflow: hidden;
}

.contact-popup.active .contact-popup-content {
  transform: translateY(0) scale(1);
}

.contact-popup-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #2563eb;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.contact-popup-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-popup-close {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.contact-popup-close:hover {
  background: rgba(37, 99, 235, 0.1);
}

.contact-popup-body {
  padding: 25px;
}

.contact-popup-body p {
  margin: 0 0 20px 0;
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.95rem;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-option {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.contact-option:hover {
  transform: translateY(-2px);
}

.contact-phone {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.contact-option:hover .contact-phone {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.phone-number {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.phone-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .contact-popup-content {
    width: 95%;
    max-width: 350px;
  }
  
  .contact-popup-header {
    padding: 18px 20px;
  }
  
  .contact-popup-header h3 {
    font-size: 1.1rem;
  }
  
  .contact-popup-body {
    padding: 20px;
  }
  
  .phone-number {
    font-size: 1rem;
  }
}

