/* Transformation Section - Matching Hero Style */
#transformation {
    background: linear-gradient(180deg, #0f2847 0%, #1a4373 25%, #2a5a99 50%, #4A90E2 100%);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements - Same as Hero */
.transformation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Animated Gradient Overlay */
.transformation-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.3) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.transformation-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(74, 144, 226, 0.15) 0%, transparent 50%);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(74, 144, 226, 0.3));
    top: -100px;
    right: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float1 20s infinite ease-in-out;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.3);
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(46, 92, 138, 0.3));
    bottom: -50px;
    left: 10%;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: float2 25s infinite ease-in-out;
    box-shadow: 0 8px 32px rgba(46, 92, 138, 0.3);
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 30px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-40px, 30px) rotate(120deg) scale(1.15);
    }
    66% {
        transform: translate(30px, -40px) rotate(240deg) scale(0.85);
    }
}

.bg-particles span {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.bg-particles span:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bg-particles span:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 40%;
    left: 30%;
    animation-delay: 3s;
}

.bg-particles span:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 60%;
    left: 50%;
    animation-delay: 6s;
}

.bg-particles span:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 30%;
    right: 20%;
    animation-delay: 9s;
}

.bg-particles span:nth-child(5) {
    width: 4px;
    height: 4px;
    top: 70%;
    right: 40%;
    animation-delay: 12s;
}

.bg-particles span:nth-child(6) {
    width: 3px;
    height: 3px;
    top: 50%;
    right: 10%;
    animation-delay: 15s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0);
        opacity: 0;
    }
}

/* Content Grid */
.transformation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Section */
.trans-left {
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.trans-left h2 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 50px;
    color: #ffffff;
    text-align: left;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Enhanced Wave Visualization */
.trans-wave {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.trans-wave svg {
    width: 100%;
    height: 100%;
}

.ribbon {
    width: 100%;
    height: 100%;
}

.ribbon-path {
    fill: none;
    stroke: url(#ribbonGradient);
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 12px rgba(0, 209, 255, 0.35));
    opacity: 0.9;
    stroke-dasharray: 8 12;
    animation: ribbonFlow 3.5s linear infinite;
}

.ribbon-2 {
    opacity: 0.75;
    animation-duration: 4.2s;
    transform: translateY(6px);
    stroke-width: 3.5;
}

.ribbon-3 {
    opacity: 0.6;
    animation-duration: 5s;
    transform: translateY(12px);
    stroke-width: 3;
}

@keyframes ribbonFlow {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -400;
    }
}

.wave-path {
    animation: waveMove 8s ease-in-out infinite;
}

.wave-1 {
    animation-duration: 8s;
}

.wave-2 {
    animation-duration: 12s;
    animation-delay: 2s;
}

@keyframes waveMove {
    0%, 100% {
        d: path("M0,100 C300,150 600,50 900,100 L900,300 L0,300 Z");
    }
    50% {
        d: path("M0,150 C300,80 600,180 900,120 L900,300 L0,300 Z");
    }
}

/* Stats Counter - Matching Hero Style */
.trans-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 1.2s ease-out 0.6s backwards;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Right Section - Glass Card Effect */
.trans-right {
    position: relative;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.trans-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.trans-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.trans-right p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Feature Highlights - Glass Style */
.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: white;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-item span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Button - Matching Hero Style */
.btn-trans {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--dark-blue);
    padding: 14px 35px;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.btn-trans::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-trans:hover::before {
    width: 300px;
    height: 300px;
}

.btn-trans span,
.btn-trans svg {
    position: relative;
    z-index: 1;
}

.btn-trans:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.6);
}

.btn-trans svg {
    transition: transform 0.3s ease;
}

.btn-trans:hover svg {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    #transformation {
        padding: 80px 0;
    }

    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .trans-left h2 {
        font-size: 2.5rem;
    }

    .trans-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .trans-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    #transformation {
        padding: 60px 0;
    }

    .trans-left h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .trans-wave {
        height: 220px;
        margin-bottom: 40px;
    }

    .trans-stats {
        flex-direction: column;
        gap: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .trans-content {
        padding: 30px 20px;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .trans-right p {
        font-size: 1rem;
    }

    .feature-highlights {
        gap: 12px;
    }

    .btn-trans {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .trans-left h2 {
        font-size: 1.75rem;
    }

    .section-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}
