/* ============================================
   DIGITAL EXCELLENCE ANIMATED SECTION
   Ultra-Modern animations with gradients and elements
   ============================================ */

/* Ensure row and columns are properly aligned */
.about-company-section .block {
    /* Remove flex constraints that cause collapse */
}

.about-company-section .block .container {
    /* Remove flex constraints that cause collapse */
}

/* Use Bootstrap's flexbox system properly */
@media (min-width: 992px) {
    .about-company-section .row.align-items-center {
        display: flex !important;
        align-items: stretch !important; /* Stretch to match heights */
        margin-left: -15px !important;
        margin-right: -15px !important;
    }
    
    .about-company-section .col-md-6 {
        display: flex !important;
        flex-direction: column !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .about-company-section .col-md-6:first-child {
        /* Let content determine height */
    }
    
    .about-company-section .col-md-6:last-child {
        min-height: 600px !important;
    }
}

@media (max-width: 991px) {
    .about-company-section .row.align-items-center {
        display: flex !important;
        flex-direction: column !important;
    }
}

.about-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Vertically center content */
    width: 100% !important;
    /* Let content determine height naturally */
}

.about-image-wrapper {
    position: relative !important;
    padding: 0 !important;
    min-height: 600px !important; /* Standard portrait banner minimum height - will be overridden by JS if left content is taller */
    display: flex !important;
    align-items: stretch !important; /* Stretch to match left side */
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important; /* Will be set by JS to match left content */
}

/* Override conflicting styles from other CSS files */
.about-company-section .about-image-wrapper {
    padding: 0 !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: stretch !important;
}

.digital-excellence-animated {
    position: relative !important;
    width: 100% !important;
    height: 100% !important; /* Will be set by JS to match left content */
    min-height: 600px !important; /* Standard portrait banner minimum height - will be overridden by JS if left content is taller */
    border-radius: 32px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
    background: 
        linear-gradient(135deg, rgba(1, 192, 87, 0.12) 0%, rgba(1, 192, 87, 0.25) 50%, rgba(1, 192, 87, 0.15) 100%),
        radial-gradient(circle at 20% 30%, rgba(1, 192, 87, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(1, 192, 87, 0.15) 0%, transparent 50%);
    border: 1px solid rgba(1, 192, 87, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 
        0 20px 60px rgba(1, 192, 87, 0.2),
        0 0 0 1px rgba(1, 192, 87, 0.1) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(1, 192, 87, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated Background Gradient - Enhanced with Modern Effects */
.animated-bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(1, 192, 87, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(1, 192, 87, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(1, 192, 87, 0.2) 0%, transparent 70%),
        radial-gradient(circle at 40% 60%, rgba(1, 192, 87, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, rgba(1, 192, 87, 0.15) 0%, rgba(1, 192, 87, 0.08) 30%, rgba(1, 192, 87, 0.2) 60%, rgba(1, 192, 87, 0.12) 100%),
        linear-gradient(45deg, rgba(1, 192, 87, 0.1) 0%, transparent 50%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%;
    animation: gradientShift 12s ease infinite, gradientRotate 20s linear infinite;
    opacity: 0.9;
    z-index: 1;
    filter: blur(40px);
    -webkit-filter: blur(40px);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%, 100% 50%, 50% 50%, 0% 50%;
    }
    50% {
        background-position: 100% 50%, 0% 50%, 50% 50%, 100% 50%;
    }
}

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Animated Orbs with Modern Blur Effects */
.animated-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    -webkit-filter: blur(60px);
    opacity: 0.6;
    animation: floatOrb 8s ease-in-out infinite;
    z-index: 2;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(1, 192, 87, 0.7) 0%, rgba(1, 192, 87, 0.3) 40%, rgba(1, 192, 87, 0.1) 70%, transparent 100%);
    top: 5%;
    left: 5%;
    animation-delay: 0s;
    box-shadow: 0 0 80px rgba(1, 192, 87, 0.4);
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(1, 192, 87, 0.6) 0%, rgba(1, 192, 87, 0.25) 40%, rgba(1, 192, 87, 0.1) 70%, transparent 100%);
    bottom: 10%;
    right: 10%;
    animation-delay: 2.5s;
    box-shadow: 0 0 60px rgba(1, 192, 87, 0.3);
}

.orb-3 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(1, 192, 87, 0.65) 0%, rgba(1, 192, 87, 0.3) 40%, rgba(1, 192, 87, 0.1) 70%, transparent 100%);
    top: 45%;
    right: 5%;
    animation-delay: 5s;
    box-shadow: 0 0 70px rgba(1, 192, 87, 0.35);
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(30px, -40px) scale(1.15);
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.6;
    }
    75% {
        transform: translate(25px, 20px) scale(1.1);
        opacity: 0.65;
    }
}

/* Modern Floating Elements with Enhanced Animations and Blur */
.floating-element {
    position: absolute;
    color: rgba(1, 192, 87, 0.8);
    animation: floatElement 5s ease-in-out infinite;
    z-index: 3;
    filter: drop-shadow(0 0 12px rgba(1, 192, 87, 0.6)) blur(0.5px);
    -webkit-filter: drop-shadow(0 0 12px rgba(1, 192, 87, 0.6)) blur(0.5px);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.element-1 {
    top: 12%;
    left: 15%;
    animation-delay: 0s;
    color: rgba(1, 192, 87, 0.6);
}

.element-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1.2s;
    color: rgba(1, 192, 87, 0.5);
}

.element-3 {
    bottom: 25%;
    left: 12%;
    animation-delay: 2.4s;
    color: rgba(1, 192, 87, 0.6);
}

.element-4 {
    bottom: 15%;
    right: 15%;
    animation-delay: 3.6s;
    color: rgba(1, 192, 87, 0.5);
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-25px) rotate(5deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-15px) rotate(-3deg) scale(0.95);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(4deg) scale(1.05);
        opacity: 0.85;
    }
}

/* Main Content - Enhanced with Vertical Centering */
.digital-excellence-content {
    position: relative !important;
    z-index: 10;
    text-align: center;
    padding: 60px 40px;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; /* Vertically center content */
    flex: 1 1 auto !important;
}

.excellence-icon-wrapper {
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.excellence-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: 
        radial-gradient(circle, rgba(1, 192, 87, 0.4) 0%, rgba(1, 192, 87, 0.2) 40%, transparent 70%),
        radial-gradient(circle, rgba(1, 192, 87, 0.3) 0%, transparent 60%);
    animation: iconGlow 3s ease-in-out infinite;
    z-index: -1;
    filter: blur(20px);
    -webkit-filter: blur(20px);
    box-shadow: 0 0 60px rgba(1, 192, 87, 0.5);
}

@keyframes iconGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.excellence-icon-wrapper i {
    font-size: 100px;
    color: #01c057;
    display: inline-block;
    animation: iconPulse 3s ease-in-out infinite;
    text-shadow: 
        0 0 30px rgba(1, 192, 87, 0.8),
        0 0 60px rgba(1, 192, 87, 0.6),
        0 0 90px rgba(1, 192, 87, 0.4),
        0 0 120px rgba(1, 192, 87, 0.2);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(1, 192, 87, 0.7));
    -webkit-filter: drop-shadow(0 0 20px rgba(1, 192, 87, 0.7));
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.08) rotate(2deg);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.15) rotate(0deg);
        opacity: 0.9;
    }
    75% {
        transform: scale(1.08) rotate(-2deg);
        opacity: 0.95;
    }
}

.excellence-text {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: 
        linear-gradient(135deg, #ffffff 0%, rgba(1, 192, 87, 0.95) 30%, #ffffff 60%, rgba(1, 192, 87, 0.9) 100%),
        linear-gradient(45deg, rgba(1, 192, 87, 0.8) 0%, #ffffff 50%, rgba(1, 192, 87, 0.8) 100%);
    background-size: 200% 200%, 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 4s ease-in-out infinite, textGradient 6s ease infinite;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(1, 192, 87, 0.6)) drop-shadow(0 0 40px rgba(1, 192, 87, 0.4));
    -webkit-filter: drop-shadow(0 0 20px rgba(1, 192, 87, 0.6)) drop-shadow(0 0 40px rgba(1, 192, 87, 0.4));
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(1, 192, 87, 0.6)) drop-shadow(0 0 30px rgba(1, 192, 87, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(1, 192, 87, 0.9)) drop-shadow(0 0 50px rgba(1, 192, 87, 0.6));
    }
}

@keyframes textGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Animated Grid Lines with Blur */
.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(1, 192, 87, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(1, 192, 87, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(1, 192, 87, 0.1) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 120px 120px;
    opacity: 0.5;
    animation: gridMove 25s linear infinite;
    z-index: 1;
    filter: blur(0.5px);
    -webkit-filter: blur(0.5px);
    mix-blend-mode: screen;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

/* Additional Modern Glow Effects */
.digital-excellence-animated::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(1, 192, 87, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(1, 192, 87, 0.12) 0%, transparent 50%);
    animation: rotateGlow 15s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.digital-excellence-animated::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: 
        radial-gradient(circle, rgba(1, 192, 87, 0.25) 0%, rgba(1, 192, 87, 0.1) 40%, rgba(1, 192, 87, 0.05) 60%, transparent 80%),
        radial-gradient(circle, rgba(1, 192, 87, 0.15) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    animation: pulseGlow 5s ease-in-out infinite;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    -webkit-filter: blur(60px);
    mix-blend-mode: screen;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.9;
    }
}

/* Particle Effects */
.digital-excellence-animated {
    position: relative;
}

.digital-excellence-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(1, 192, 87, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(1, 192, 87, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(1, 192, 87, 0.7), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(1, 192, 87, 0.5), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(1, 192, 87, 0.6), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(1, 192, 87, 0.5), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 50% 50%, 0% 50%;
    animation: particleMove 20s ease infinite;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
}

@keyframes particleMove {
    0%, 100% {
        background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 50% 50%, 0% 50%;
    }
    50% {
        background-position: 100% 100%, 0% 100%, 100% 0%, 0% 0%, 50% 50%, 100% 50%;
    }
}

/* Hover Effects - Enhanced with More Blur */
.digital-excellence-animated:hover {
    border-color: rgba(1, 192, 87, 0.6);
    box-shadow: 
        0 30px 80px rgba(1, 192, 87, 0.4),
        0 0 0 1px rgba(1, 192, 87, 0.2) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(1, 192, 87, 0.15);
    transform: translateY(-8px) scale(1.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
}

.digital-excellence-animated:hover .animated-orb {
    opacity: 0.8;
    filter: blur(60px);
}

.digital-excellence-animated:hover .floating-element {
    animation-duration: 3s;
    filter: drop-shadow(0 0 12px rgba(1, 192, 87, 0.6));
}

.digital-excellence-animated:hover .excellence-icon-wrapper i {
    animation-duration: 2s;
    text-shadow: 
        0 0 30px rgba(1, 192, 87, 0.8),
        0 0 60px rgba(1, 192, 87, 0.6),
        0 0 90px rgba(1, 192, 87, 0.4);
}

/* Responsive Design - Maintain Vertical Centering */
@media (max-width: 991px) {
    .about-image-wrapper {
        margin-top: 40px;
        align-items: center; /* Maintain vertical centering */
    }
    
    .digital-excellence-animated {
        min-height: auto;
        height: auto;
    }
    
    .excellence-icon-wrapper i {
        font-size: 80px;
    }
    
    .excellence-text {
        font-size: 26px;
        letter-spacing: 3px;
    }
}

@media (max-width: 768px) {
    .about-image-wrapper {
        padding: 0;
        align-items: center; /* Maintain vertical centering */
    }
    
    .digital-excellence-animated {
        min-height: auto;
        height: auto;
        border-radius: 24px;
    }
    
    .excellence-icon-wrapper i {
        font-size: 60px;
    }
    
    .excellence-text {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .floating-element {
        display: none;
    }
    
    .animated-orb {
        filter: blur(40px);
        -webkit-filter: blur(40px);
    }
    
    .digital-excellence-content {
        padding: 40px 20px;
    }
    
    .animated-bg-gradient {
        filter: blur(30px);
        -webkit-filter: blur(30px);
    }
}

/* Additional Modern Effects */
.digital-excellence-animated {
    will-change: transform;
    transform-style: preserve-3d;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.digital-excellence-animated {
    position: relative;
    overflow: hidden;
}

.digital-excellence-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
    z-index: 4;
    pointer-events: none;
}
