/* Section Transitions */
.sections-container {
    position: relative;
    top: -100px;
}

.section-transition-overlay {
    position: absolute;
    width: 100%;
    height: 200px;
    top: -100px;
    left: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, 
        transparent 0%,
        black 30%,
        black 70%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%,
        black 30%,
        black 70%,
        transparent 100%
    );
}

/* Geometric Section */
.geometric-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #cbcbcb;
    margin-top: -2px;
}

.geometric-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(45deg, #cbcbcb, #dedede);
}

.geometric-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.geometric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(203, 203, 203, 0.3),
        rgba(203, 203, 203, 0.6)
    );
    pointer-events: none;
}

.geometric-content {
    position: relative;
    z-index: 5;
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.geometric-content-inner {
    width: 100%;
    position: relative;
    z-index: 6;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.geometric-content-inner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.geometric-small-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: rgba(0, 0, 0, 0.9);
}

.geometric-line-animation {
    display: inline-block;
    position: relative;
}

.geometric-main-title {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #000;
}

.geometric-title-line {
    display: block;
    overflow: hidden;
}

.geometric-gradient-title {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    background-clip: text;
}

.geometric-description {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2rem;
    color: rgba(0, 0, 0, 0.85);
}

.geometric-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.geometric-tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    font-size: 0.9rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #000;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 7;
}

.geometric-tag:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Animation States */
.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive Design */
@media (max-width: 767px) { /* Tablet breakpoint */
    .geometric-content {
        padding: 80px 20px;
    }

    .geometric-main-title {
        font-size: 3rem;
    }

    .geometric-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 479px) { /* Mobile breakpoint */
    .geometric-main-title {
        font-size: 2.5rem;
    }

    .geometric-small-title {
        font-size: 1rem;
    }

    .geometric-description {
        font-size: 1rem;
    }

    .geometric-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Add responsive styles for the geometric section */
@media screen and (max-width: 999.99px) { /* Tablet breakpoint */
  .geometric-section {
    min-height: 100vh;
  }

  .sections-container {
    top: 0;
  }

  .geometric-content {
    padding: 20px;
  }
  
  .geometric-content-inner {
    padding: 30px 20px;
    max-width: 100%;
  }
  
  .geometric-small-title {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .geometric-main-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .geometric-title-line {
    margin-bottom: 5px;
  }
  
  .geometric-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
  }
  
  .geometric-tags {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .geometric-tag {
    font-size: 12px;
    padding: 8px 15px;
  }
  
  .geometric-particles-container {
    opacity: 0.5; /* Reduce particle density on mobile */
  }
}

@media screen and (max-width: 479px) { /* Mobile breakpoint */
  .geometric-section {
    min-height: 90vh;
  }
  
  .geometric-content-inner {
    padding: 25px 15px;
  }
  
  .geometric-main-title {
    font-size: 28px;
  }
  
  .geometric-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .geometric-tags {
    gap: 8px;
  }
  
  .geometric-tag {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 4px;
  }
}

/* For landscape orientation on mobile */
@media screen and (max-width: 767px) and (orientation: landscape) { /* Tablet landscape */
  .geometric-section {
    min-height: 120vh; /* Increase height in landscape mode */
  }
  
  .geometric-content-inner {
    padding: 20px 15px;
  }
  
  .geometric-main-title {
    font-size: 24px;
  }
  
  .sections-container {
    overflow: hidden;
  }
}
