/* About Section Custom Styles */

/* Main Section Styling */
.about-section {
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.9));
}

/* Decorative Elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
    z-index: 0;
}

.decorative-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float-slow 15s ease-in-out infinite alternate;
}

.decorative-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -50px;
    animation: float-slow 12s ease-in-out infinite alternate-reverse;
}

.decorative-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.1;
}

.decorative-shape-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 5%;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotate-slow 20s linear infinite;
}

.decorative-shape-2 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: 10%;
    background: var(--secondary);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: rotate-slow 15s linear infinite reverse;
}

@keyframes float-slow {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
    100% { transform: translate(-20px, -20px); }
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Background Pattern */
.about-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--primary) 1px, transparent 1px), 
        radial-gradient(var(--secondary) 1px, transparent 1px),
        linear-gradient(45deg, transparent 98%, var(--primary) 98%, var(--primary) 100%, transparent 100%),
        linear-gradient(-45deg, transparent 98%, var(--secondary) 98%, var(--secondary) 100%, transparent 100%);
    background-size: 30px 30px, 40px 40px, 40px 40px, 40px 40px;
    background-position: 0 0, 15px 15px, 0 0, 0 0;
    opacity: 0.1;
    z-index: 0;
    animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0, 15px 15px, 0 0, 0 0; }
    100% { background-position: 100px 100px, 115px 115px, 100px 100px, 100px 100px; }
}

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, #5ca6ea 0%, #042d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Pre-title styling */
.pre-title {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #0579c1;
    background-color: rgb(204 232 247);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgb(204 232 247);
}

.pre-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Image Styling */
.about-img-wrapper {
    position: relative;
    perspective: 1200px;
    z-index: 2;
}

.about-img-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--box-shadow);
    border-radius: 20px;
    overflow: hidden;
    border: 8px solid white;
    background: white;
}

.about-img-card::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
    z-index: -1;
    border-radius: 25px;
    transform: translateZ(-10px);
    filter: blur(20px);
    transition: all 0.8s ease;
}

.about-img-card:hover {
    transform: rotateY(8deg) rotateX(8deg) translateZ(20px);
}

.about-img-card:hover::before {
    opacity: 0.2;
    filter: blur(15px);
}

.about-img-card img {
    border-radius: 12px;
    transition: all 0.8s ease;
    transform: translateZ(10px);
}

.about-img-card:hover img {
    transform: translateZ(30px) scale(1.05);
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    top: 20px;
    right: -15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.5);
    animation: float 4s ease-in-out infinite;
    z-index: 3;
    transform: translateZ(30px);
}

.floating-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
}

.floating-badge i {
    margin-right: 8px;
    color: #FFD700;
    animation: spin 5s linear infinite;
    display: inline-block;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: -30px;
    left: 40px;
    background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.5);
    z-index: 3;
    transform: translateZ(20px) rotate(-5deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.experience-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
}

.about-img-wrapper:hover .experience-badge {
    transform: translateZ(40px) rotate(0deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.6);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.experience-badge .text {
    font-size: 1rem;
    opacity: 0.95;
    margin-top: 5px;
}

/* About Content */
/* .about-content {
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(15px);
    border-left: 8px solid var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
} */
/* 
.about-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: pulseGradient 10s ease-in-out infinite;
} */

/* @keyframes pulseGradient {
    0% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(-10%, -10%); opacity: 0.8; }
    100% { transform: translate(0, 0); opacity: 0.5; }
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
} */

/* Stats Styling */
.stats-row {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #e9f3fb;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    z-index: -2;
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    color: white;
}

.stat-item:hover::before {
    height: 100%;
    opacity: 0;
}

.stat-item:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    line-height: 1;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
}

.stat-item:hover .stat-number {
    -webkit-text-fill-color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    position: relative;
}

.stat-item:hover .stat-label {
    color: white;
}

/* Modern Feature Box */
.feature-box-modern {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-box-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transition: all 0.5s ease;
    z-index: -1;
}

.feature-box-modern:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-box-modern:hover::before {
    width: 100%;
    opacity: 0.05;
}

.feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(26, 188, 156, 0.4);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.5s ease;
}

.feature-box-modern:hover .feature-icon {
    transform: rotateY(180deg) scale(1.1);
    border-radius: 50%;
}

.feature-box-modern:hover .feature-icon::after {
    opacity: 1;
}

.feature-icon i {
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.feature-box-modern:hover .feature-icon i {
    transform: rotateY(-180deg);
}

.feature-content h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
}

.feature-content h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: all 0.4s ease;
}

.feature-box-modern:hover .feature-content h4::after {
    width: 100%;
}

.feature-content p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 0;
    line-height: 1.6;
    transition: all 0.4s ease;
}

/* Timeline Styling */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.3);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 2.5rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border: 5px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    top: 1.5rem;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.5);
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(26, 188, 156, 0.7);
    background: var(--primary);
    border-color: white;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -19px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -19px;
}

.timeline-content {
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transition: all 0.4s ease;
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: 0;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: 0;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.timeline-content:hover::before {
    width: 100%;
    opacity: 0.05;
}

.timeline-content h4 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .about-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item .timeline-dot {
        left: 17px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: 0;
        width: 5px;
    }
    
    .about-img-card {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .experience-badge {
        left: 50%;
        transform: translateX(-50%) translateZ(20px) rotate(-5deg);
    }
    
    .about-img-wrapper:hover .experience-badge {
        transform: translateX(-50%) translateZ(40px) rotate(0deg) scale(1.1);
    }
    
    .floating-badge {
        right: 50%;
        transform: translateX(50%) translateZ(30px);
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .about-content {
        padding: 17px;
        margin-top: 0rem;
    }
    .welcome_image .second_images {
        margin-top: 5px;
    }
    .welcome_image {
        padding: 0;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .feature-box-modern {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        margin-right: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.3rem;
    }
    
    .feature-content h4 {
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h4 {
        font-size: 1.5rem;
    }
    
    .timeline-dot {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 575.98px) {
    .section-title h2 {
        font-size: 22px;
    }
    
    .about-img-card {
        max-width: 100%;
    }
    
    .experience-badge {
        padding: 15px 20px;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .experience-badge .text {
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        padding-left: 60px;
        padding-right: 15px;
        margin-bottom: 1.5rem;
    }
    
    .timeline::after {
        left: 26px;
    }
    
    .timeline-item .timeline-dot {
        left: 12px !important;
    }
}