/* Fluid Modern Design Enhancements - 2025+ Standards */

/* ===== Advanced Grid Layouts ===== */
.fluid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.fluid-grid.asymmetric {
  grid-template-columns: repeat(12, 1fr);
}

.fluid-grid.asymmetric .grid-item-large {
  grid-column: span 8;
}

.fluid-grid.asymmetric .grid-item-medium {
  grid-column: span 6;
}

.fluid-grid.asymmetric .grid-item-small {
  grid-column: span 4;
}

@media (max-width: 992px) {
  .fluid-grid.asymmetric .grid-item-large,
  .fluid-grid.asymmetric .grid-item-medium,
  .fluid-grid.asymmetric .grid-item-small {
    grid-column: span 12;
  }
}

/* ===== Enhanced Glassmorphism ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .glass-card {
  background: rgba(26, 32, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

/* ===== Advanced Color Transitions ===== */
.gradient-text {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.gradient-border {
  position: relative;
  border-radius: var(--radius-md);
  padding: 4px;
}

.gradient-border {
  position: relative;
  border-radius: var(--radius-md);
  padding: 4px;
  background: linear-gradient(45deg, var(--primary-teal), var(--accent-purple));
}

.gradient-border::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: white;
  border-radius: calc(var(--radius-md) - 2px);
  z-index: 0;
}

[data-theme="dark"] .gradient-border::after {
  background: var(--neutral-white);
}

.gradient-border > * {
  position: relative;
  z-index: 1;
}

/* ===== Advanced Hover Effects ===== */
.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 15px var(--primary-teal);
}

.hover-reveal {
  position: relative;
  overflow: hidden;
}

.hover-reveal .reveal-content {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-reveal:hover .reveal-content {
  bottom: 0;
}

/* ===== Fluid Typography ===== */
.display-fluid {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.heading-fluid {
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subheading-fluid {
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ===== Scroll-Driven Animations ===== */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scroll-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.scroll-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Modern Navigation Enhancements ===== */
.navbar-fluid {
  transition: all 0.4s ease;
  padding: 1.5rem 0;
}

.navbar-fluid.scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-link-fluid {
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.nav-link-fluid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-teal);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-fluid:hover::after {
  width: 80%;
}

/* ===== Asymmetrical Section Layouts ===== */
.section-asymmetric {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.section-asymmetric .content-wrapper {
  position: relative;
  z-index: 2;
}

.section-asymmetric .bg-shape {
  position: absolute;
  z-index: 1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(45deg, rgba(51, 191, 166, 0.1), rgba(123, 97, 255, 0.1));
  width: 50%;
  height: 80%;
  filter: blur(40px);
  animation: shape-morph 15s ease-in-out infinite alternate;
}

.section-asymmetric .bg-shape.top-right {
  top: -20%;
  right: -10%;
}

.section-asymmetric .bg-shape.bottom-left {
  bottom: -20%;
  left: -10%;
}

@keyframes shape-morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

/* ===== Modern Button Styles ===== */
.btn-modern {
  position: relative;
  overflow: hidden;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary-teal);
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  z-index: 1;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-teal), var(--accent-purple));
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-modern:hover::before {
  opacity: 1;
}

/* ===== Responsive Improvements ===== */
@media (max-width: 768px) {
  .mobile-fluid-stack {
    display: flex;
    flex-direction: column;
  }

  .mobile-fluid-stack > * {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .mobile-fluid-stack > *:last-child {
    margin-bottom: 0;
  }

  .mobile-center-text {
    text-align: center;
  }
}

/* ===== Enhanced Card Layouts ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.card-overlap {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

/* ===== Smooth Scrolling ===== */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
