/* Modern Design Enhancements - 2025 Standards */

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

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

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Animation delays for cascading effects */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ===== 3D Effects & Depth ===== */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d .card-content {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

.card-3d:hover .card-content {
    transform: translateZ(40px);
}

.depth-shadow {
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05),
        0 15px 35px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.depth-shadow:hover {
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.08),
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.1);
}

/* ===== Asymmetrical Layouts ===== */
.asymmetric-container {
    position: relative;
    padding: 3rem 0;
}

.asymmetric-item {
    position: relative;
    z-index: 1;
}

.asymmetric-item.overlap-top {
    margin-top: -3rem;
}

.asymmetric-item.overlap-bottom {
    margin-bottom: -3rem;
}

.asymmetric-item.overlap-right {
    margin-right: -3rem;
}

.asymmetric-item.overlap-left {
    margin-left: -3rem;
}

/* ===== Modern Shapes & Backgrounds ===== */
.blob-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.1;
    filter: blur(40px);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: linear-gradient(45deg, var(--primary-teal), var(--accent-purple));
    animation: blob-animation 8s ease-in-out infinite alternate;
}

@keyframes blob-animation {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.diagonal-section {
    position: relative;
    padding: 6rem 0;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transform: skewY(-3deg);
    transform-origin: top right;
}

/* ===== Enhanced Micro-interactions ===== */
.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(3deg);
}

/* Button pulse effect */
.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn-pulse:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ===== Parallax Effects ===== */
.parallax-container {
    position: relative;
    overflow: hidden;
}

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

/* ===== Modern Card Designs ===== */
.card-modern {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .card-modern {
    background: rgba(26, 32, 44, 0.8);
}

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

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===== Fluid Typography ===== */
.fluid-text {
    font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    line-height: 1.5;
}

.fluid-heading {
    font-size: clamp(1.5rem, 1rem + 2vw, 3rem);
    line-height: 1.2;
}