/* Organic Shapes and Immersive Elements - Extension for Rooted in Rising
   Adding flowing, natural elements and enhanced immersion */

/* Organic Shape Containers */
.organic-container {
  border-radius: 30px 70px 20px 60px / 60px 30px 70px 40px;
  overflow: hidden;
  transition: all 0.5s ease;
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

.organic-container:hover {
  border-radius: 70px 30px 60px 20px / 40px 70px 30px 60px;
}

/* Root-Style Section Dividers */
.root-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.root-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 90px; /* Increased height for more pronounced roots */
  filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.05)); /* Subtle shadow for depth */
}

.root-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 1;
}

.root-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 90px; /* Increased height for more pronounced roots */
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.05)); /* Subtle shadow for depth */
}

/* Keep the old dividers for backward compatibility */
.curve-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.curve-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.curve-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 1;
}

.curve-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

/* Blob Shapes */
.blob-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.2;
  filter: blur(5px);
  transition: all 5s ease-in-out;
}

.blob-shape-1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background-color: var(--gentle-blush);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob-morph-1 15s ease-in-out infinite alternate;
  opacity: 0.3; /* Slightly increased opacity for lavender */
}

.blob-shape-2 {
  bottom: 10%;
  right: 5%;
  width: 250px;
  height: 250px;
  background-color: var(--gentle-blush);
  border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
  animation: blob-morph-2 15s ease-in-out infinite alternate;
  opacity: 0.25; /* Slightly increased opacity for lavender */
}

.blob-shape-3 {
  top: 40%;
  right: 15%;
  width: 200px;
  height: 200px;
  background-color: var(--brushed-gold);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blob-morph-3 15s ease-in-out infinite alternate;
}

@keyframes blob-morph-1 {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    transform: translate(20px, 20px) rotate(5deg) scale(1.05);
  }
}

@keyframes blob-morph-2 {
  0% {
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%;
    transform: translate(-20px, -10px) rotate(-5deg) scale(1.05);
  }
}

@keyframes blob-morph-3 {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    border-radius: 50% 50% 70% 30% / 30% 60% 40% 70%;
    transform: translate(10px, -20px) rotate(5deg) scale(1.05);
  }
}

/* Organic Cards */
.organic-card {
  border-radius: 20px 60px 40px 80px / 80px 40px 60px 20px;
  overflow: hidden;
  transition: all 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background-color: white;
  padding: 2rem;
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

.organic-card:hover {
  border-radius: 60px 20px 80px 40px / 40px 80px 20px 60px;
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Organic Images */
.organic-image {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  transition: all 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

.organic-image:hover {
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}

.organic-image img, .organic-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Parallax Effect */
.parallax-section {
  position: relative;
  overflow: hidden;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: translateZ(-1px) scale(2);
}

.parallax-content {
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
  max-width: 800px;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 30px 70px 20px 60px / 60px 30px 70px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Diagonal Sections */
.diagonal-section {
  position: relative;
  padding: 8rem 0;
  margin-top: -70px;
  margin-bottom: -70px;
  transform: skewY(-3deg);
  z-index: 1;
}

.diagonal-section > * {
  transform: skewY(3deg);
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

/* Floating Elements */
.float-element {
  animation: floating 6s ease-in-out infinite;
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Philosophy Grid Layout */
.asymmetrical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

/* These classes are kept for backward compatibility but no longer define specific grid positions */
.asymmetrical-item-1,
.asymmetrical-item-2,
.asymmetrical-item-3,
.asymmetrical-item-4 {
  /* No specific grid positioning */
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

/* Enhanced Video Background */
.enhanced-video-background {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  filter: brightness(1.1) contrast(1.1);
  transition: all 1s ease;
}

.enhanced-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(247, 241, 227, 0.8) 0%, rgba(247, 241, 227, 0.6) 50%, rgba(247, 241, 227, 0.4) 100%);
  z-index: 0;
}

/* Curved Text - Disabled as per user preference */
/* 
.curved-text {
  position: relative;
  font-family: var(--script);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text-medium);
  text-align: center;
  margin: 2rem 0;
}

.curved-text span {
  display: inline-block;
  transform-origin: 50% 100%;
}
*/

/* Leaf-shaped Buttons */
.leaf-button {
  position: relative;
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--gentle-blush);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: 30px 5px 30px 5px;
  overflow: hidden;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

.leaf-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brushed-gold);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
  border-radius: 30px 5px 30px 5px;
}

.leaf-button:hover {
  color: white;
  border-radius: 5px 30px 5px 30px;
}

.leaf-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Immersive Hover Effects */
.immersive-hover {
  transition: all 0.5s ease;
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

.immersive-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(230, 230, 250, 0.4) 0%, rgba(230, 230, 250, 0) 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.immersive-hover:hover::after {
  opacity: 1;
}

/* Scroll-triggered Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  z-index: 5; /* Increased z-index to ensure content appears above dividers */
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.2s;
}

.fade-in-delay-2 {
  transition-delay: 0.4s;
}

.fade-in-delay-3 {
  transition-delay: 0.6s;
}

/* Root Animation */
@keyframes root-grow {
  0% {
    transform: scaleY(0.95);
  }
  50% {
    transform: scaleY(1.02);
  }
  100% {
    transform: scaleY(0.95);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .asymmetrical-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .diagonal-section {
    transform: skewY(-2deg);
  }
  
  .diagonal-section > * {
    transform: skewY(2deg);
  }
  
  .root-divider svg,
  .root-divider-top svg {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .curve-divider svg,
  .curve-divider-top svg,
  .root-divider svg,
  .root-divider-top svg {
    height: 40px;
  }
  
  .blob-shape {
    transform: scale(0.7);
  }
  
  .diagonal-section {
    transform: skewY(-1deg);
    padding: 6rem 0;
  }
  
  .diagonal-section > * {
    transform: skewY(1deg);
  }
}

@media (max-width: 576px) {
  .asymmetrical-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .curve-divider svg,
  .curve-divider-top svg,
  .root-divider svg,
  .root-divider-top svg {
    height: 30px;
  }
  
  .diagonal-section {
    transform: none;
    padding: 4rem 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .diagonal-section > * {
    transform: none;
  }
}
