/* 
 * Property of First ESCO India Private Limited.
 * All rights reserved.
 * 
 * Modern, Highly Aesthetic Styles for Industrial Waste Valorisation
 * Focus: Glassmorphism, Animated Dynamic Background, Premium UI
 */

body {
    background-color: #f8fafc; /* Crisp, premium light background */
    color: #223150; /* Base dark text inherited from site theme */
}

/* --------------------------------------
   Dynamic Animated Background Orbs
---------------------------------------*/
#dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #f8fafc;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25; /* Lower opacity for light mode so they act as a soft tint */
    animation: drift 20s infinite alternate ease-in-out;
    mix-blend-mode: multiply; /* Better blending for bright backgrounds */
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: #dd5e07; /* First ESCO Orange */
    animation-duration: 25s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: #0284c7; /* Vibrant Teal/Blue */
    animation-duration: 22s;
    animation-delay: -5s;
}

.orb-3 {
    top: 30%;
    left: 40%;
    width: 50vw;
    height: 50vw;
    background: #dc3545; /* Red Mud accents */
    animation-duration: 28s;
    animation-delay: -10s;
}

/* Base generic orb drift animation */
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, -10vh) scale(1.1); }
    66% { transform: translate(-10vw, 10vh) scale(0.9); }
    100% { transform: translate(5vw, 5vh) scale(1.05); }
}

/* --------------------------------------
   Theme: Heat & Fire (Waste Heat Recovery)
---------------------------------------*/
#dynamic-bg-heat {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: #fdfaf8; /* Slightly warmer white base */
}

/* Optimize blur filters and use hardware acceleration via transform/will-change */
#dynamic-bg-heat .orb, #dynamic-bg-water .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Reduced blur radius for better performance */
    opacity: 0.15; /* Subdued for readability */
    mix-blend-mode: multiply;
    will-change: transform, opacity; /* Hinting for older devices */
}

#dynamic-bg-heat .orb-1 {
    width: 65vw; height: 65vw; top: -15%; left: -10%;
    background: #ff4500; /* Deep Orange/Fire */
    animation: drift-heat 30s infinite alternate ease-in-out;
}

#dynamic-bg-heat .orb-2 {
    width: 55vw; height: 55vw; bottom: -10%; right: -5%;
    background: #ff8c00; /* Dark Orange */
    animation: drift-heat 25s infinite alternate ease-in-out reverse;
}

#dynamic-bg-heat .orb-3 {
    width: 45vw; height: 45vw; top: 40%; left: 30%;
    background: #ffd700; /* Gold/Yellow core */
    animation: drift-heat 35s infinite alternate ease-in-out;
    opacity: 0.1;
}

@keyframes drift-heat {
    0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); opacity: 0.15; }
    50% { transform: translate3d(5vw, -15vh, 0) scale(1.1) rotate(10deg); opacity: 0.2; }
    100% { transform: translate3d(-5vw, -5vh, 0) scale(0.95) rotate(-5deg); opacity: 0.15; }
}

/* --------------------------------------
   Theme: Water & Cooling (Cooling Tower)
---------------------------------------*/
#dynamic-bg-water {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: #f4f9fb; /* Cool iced white base */
}

#dynamic-bg-water .orb-1 {
    width: 60vw; height: 60vw; bottom: -20%; left: 0;
    background: #0088cc; /* Deep Blue */
    animation: drift-water 28s infinite alternate ease-in-out;
}

#dynamic-bg-water .orb-2 {
    width: 45vw; height: 45vw; top: -10%; right: -10%;
    background: #00ced1; /* Aqua / Turquoise */
    animation: drift-water 24s infinite alternate ease-in-out reverse;
}

#dynamic-bg-water .orb-3 {
    width: 50vw; height: 50vw; top: 35%; left: 40%;
    background: #add8e6; /* Light Blue */
    animation: drift-water 32s infinite alternate ease-in-out;
    opacity: 0.2;
}

@keyframes drift-water {
    0% { transform: translate3d(0, 5vh, 0) scale(1); }
    50% { transform: translate3d(-5vw, -10vh, 0) scale(1.05); }
    100% { transform: translate3d(5vw, -5vh, 0) scale(0.95); }
}


/* --------------------------------------
   Theme: Industrial Waste (Earth & Industry)
---------------------------------------*/
#dynamic-bg-valor {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: #f8fafc; /* Standard crisp light base */
}

#dynamic-bg-valor .orb, #dynamic-bg-carbon .orb, #dynamic-bg-bio .orb, #dynamic-bg-zld .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Optimal performance blur */
    opacity: 0.15;
    mix-blend-mode: multiply;
    will-change: transform, opacity;
}

#dynamic-bg-valor .orb-1 {
    width: 60vw; height: 60vw; top: -10%; left: -10%;
    background: #dd5e07; /* Orange Base */
    animation: drift-valor 25s infinite alternate ease-in-out;
}
#dynamic-bg-valor .orb-2 {
    width: 55vw; height: 55vw; bottom: -10%; right: -10%;
    background: #2b6cb0; /* Deep Blue/Industrial */
    animation: drift-valor 22s infinite alternate ease-in-out reverse;
}
#dynamic-bg-valor .orb-3 {
    width: 50vw; height: 50vw; top: 30%; left: 40%;
    background: #48bb78; /* Green/Eco */
    animation: drift-valor 28s infinite alternate ease-in-out;
    opacity: 0.1;
}

@keyframes drift-valor {
    0% { transform: translate3d(0, 0, 0) scale(1.0); }
    50% { transform: translate3d(8vw, -8vh, 0) scale(1.05); }
    100% { transform: translate3d(-5vw, 5vh, 0) scale(0.95); }
}

/* --------------------------------------
   Theme: Carbon Capture (Air & Atmosphere)
---------------------------------------*/
#dynamic-bg-carbon {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: #f0f8ff; /* AliceBlue base */
}

#dynamic-bg-carbon .orb-1 {
    width: 65vw; height: 65vw; top: -5%; right: -15%;
    background: #87cefa; /* LightSkyBlue */
    animation: drift-carbon 26s infinite alternate ease-in-out;
}
#dynamic-bg-carbon .orb-2 {
    width: 50vw; height: 50vw; bottom: -15%; left: 0%;
    background: #e0ffff; /* LightCyan */
    animation: drift-carbon 30s infinite alternate ease-in-out reverse;
}
#dynamic-bg-carbon .orb-3 {
    width: 60vw; height: 60vw; top: 20%; left: 25%;
    background: #f8f8ff; /* GhostWhite */
    animation: drift-carbon 20s infinite alternate ease-in-out;
    opacity: 0.4; /* Slightly more opaque since color is pale */
}

@keyframes drift-carbon {
    0% { transform: translate3d(0, 10vh, 0) scale(1.0) rotate(0deg); }
    100% { transform: translate3d(0, -10vh, 0) scale(1.1) rotate(5deg); }
}

/* --------------------------------------
   Theme: Bio-Energy (Organic & Eco)
---------------------------------------*/
#dynamic-bg-bio {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: #f9fdfa; /* Very pale mint */
}

#dynamic-bg-bio .orb-1 {
    width: 60vw; height: 60vw; bottom: -5%; right: -5%;
    background: #38a169; /* Rich Green */
    animation: drift-bio 22s infinite alternate ease-in-out;
}
#dynamic-bg-bio .orb-2 {
    width: 55vw; height: 55vw; top: -10%; left: -10%;
    background: #8b4513; /* SaddleBrown / Earthy */
    animation: drift-bio 28s infinite alternate ease-in-out reverse;
    opacity: 0.1; /* Keep brown subtle */
}
#dynamic-bg-bio .orb-3 {
    width: 45vw; height: 45vw; top: 40%; right: 40%;
    background: #d4e157; /* Lime/Yellow-Green */
    animation: drift-bio 24s infinite alternate ease-in-out;
}

@keyframes drift-bio {
    0% { transform: translate3d(-5vw, 0, 0) scale(0.95); }
    50% { transform: translate3d(5vw, 5vh, 0) scale(1.05); }
    100% { transform: translate3d(0, -5vh, 0) scale(1.0); }
}

/* --------------------------------------
   Theme: ZLD (Pure Water & Filtration)
---------------------------------------*/
#dynamic-bg-zld {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: #ffffff; /* Pure white base for "clean" feel */
}

#dynamic-bg-zld .orb-1 {
    width: 55vw; height: 55vw; top: 10%; right: -10%;
    background: #00ffff; /* Cyan */
    animation: drift-zld 18s infinite alternate ease-in-out;
}
#dynamic-bg-zld .orb-2 {
    width: 65vw; height: 65vw; bottom: -10%; left: -15%;
    background: #40e0d0; /* Turquoise */
    animation: drift-zld 25s infinite alternate ease-in-out reverse;
}
#dynamic-bg-zld .orb-3 {
    width: 40vw; height: 40vw; top: 40%; left: 45%;
    background: #e6e6fa; /* Lavender */
    animation: drift-zld 22s infinite alternate ease-in-out;
    opacity: 0.2;
}

@keyframes drift-zld {
    0% { transform: translate3d(0, 0, 0) scale(1.0) rotate(0deg); }
    100% { transform: translate3d(-10vw, 10vh, 0) scale(1.1) rotate(-10deg); }
}


/* --------------------------------------
   Glassmorphism Utilities
---------------------------------------*/
.glass-panel {
    background: rgba(255, 255, 255, 0.65); /* High opacity white for readability */
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    padding: 3rem;
    color: #4a5568;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(221, 94, 7, 0.1);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 1);
}


/* --------------------------------------
   Typography & Specific Sections
---------------------------------------*/
/* We want the gradient text to stand out against light */
.gradient-text {
    background: linear-gradient(135deg, #1a202c 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
}

.gradient-text-orange {
    background: linear-gradient(135deg, #dd5e07 0%, #e52e71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Call to action buttons override */
.btn-glass {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(221, 94, 7, 0.3);
    color: #dd5e07;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #dd5e07;
    color: #c95204;
    box-shadow: 0 5px 15px rgba(221, 94, 7, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-glass-primary {
    background: linear-gradient(135deg, #dd5e07 0%, #f48030 100%);
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(221, 94, 7, 0.3);
}

.btn-glass-primary:hover {
    background: linear-gradient(135deg, #f48030 0%, #dd5e07 100%);
    box-shadow: 0 8px 25px rgba(221, 94, 7, 0.4);
    color: #fff;
}

.btn-glass-outline {
    background: transparent;
    border: 1px solid #4a5568;
    color: #4a5568;
}
.btn-glass-outline:hover {
    background: rgba(255,255,255,0.8);
    border-color: #2d3748;
    color: #2d3748;
}

/* Custom spacing and overrides for this page specifically */
.valorisation-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    position: relative;
    z-index: 10;
}

/* Readability overrides inside the glass panels */
.glass-panel p, .glass-card p {
    color: #4a5568;
    font-weight: 400;
    line-height: 1.8;
}

.glass-panel h2, .glass-card h4, .glass-panel h3 {
    color: #1a202c;
    font-weight: 600;
}

/* Cards Icons */
.glass-card .icon-wrapper .fa-stack-2x {
    color: rgba(0, 0, 0, 0.03) !important;
}

.glass-card .icon-wrapper .fa-circle.fa-stack-2x {
    color: rgba(221, 94, 7, 0.1) !important;
}

.glass-card:nth-child(2) .icon-wrapper .fa-circle.fa-stack-2x {
    color: rgba(220, 53, 69, 0.1) !important;
}

/* --------------------------------------
   Floating Section Navigation
---------------------------------------*/
.floating-nav {
    position: fixed;
    right: 20px;
    bottom: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    padding: 6px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.floating-nav-btn i {
    font-size: 1.2rem;
}

.floating-nav-btn:hover {
    background: #dd5e07;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(221, 94, 7, 0.3);
}

.floating-nav-btn:active {
    transform: scale(0.95);
}

@media (min-width: 992px) {
    .floating-nav {
        right: 40px;
        bottom: 50%;
        transform: translateY(50%);
    }
    .floating-nav.visible {
        transform: translateY(50%);
    }
}
