
.sec-spacer {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Section Title Styles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    color: #2563eb;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-wrapper:hover .title-badge {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(30, 64, 175, 0.15) 100%);
}

.gradient-text {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-wrapper:hover .gradient-text {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Welcome Section */
.welcome-text {
    color: #475569;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

    .feature-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
        border-color: #2563eb;
    }

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

    .feature-icon:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
        top: -50%;
        left: -50%;
        transform: rotate(45deg);
        transition: all 0.4s ease;
    }

.feature-item:hover .feature-icon:after {
    top: 100%;
    left: 100%;
}

.feature-icon i {
    color: #fff;
    font-size: 1.8rem;
    z-index: 1;
}

.feature-content h4 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.feature-content p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Image Styles */
.image-wrapper {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
}

    .image-container img {
        width: 100%;
        height: auto;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .image-container:hover img {
        transform: scale(1.05);
    }

.image-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.1;
    animation: morphShape 8s linear infinite;
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 30px;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    animation: float 3s ease-in-out infinite;
}

.badge-content {
    position: relative;
    z-index: 1;
}

.experience-badge:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="8" fill="none"/></svg>');
    background-size: contain;
    top: 0;
    left: 0;
    animation: rotate 10s linear infinite;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.experience-badge .text {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Elements */
.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    opacity: 0.1;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: -30px;
    animation: float 4s ease-in-out infinite;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 50%;
    right: -20px;
    animation: float 4s ease-in-out infinite 1s;
}

.shape-3 {
    width: 30px;
    height: 30px;
    bottom: 20%;
    left: 50%;
    animation: float 4s ease-in-out infinite 2s;
}

/* Mission & Vision Cards */
.mission-card, .vision-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .mission-card:hover, .vision-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .mission-card:before, .vision-card:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mission-card:hover:before, .vision-card:hover:before {
        opacity: 1;
    }

    .mission-card .title-wrapper, .vision-card .title-wrapper {
        margin-bottom: 1.5rem;
    }

    .mission-card .gradient-text, .vision-card .gradient-text {
        font-size: 2rem;
        margin-top: 0.5rem;
        background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }

.mission-text, .vision-text {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.image-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

    .image-card img {
        width: 100%;
        height: auto;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .image-card:hover img {
        transform: scale(1.05);
    }

/* Section Patterns */
.section-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%232563eb" opacity="0.1"/></svg>');
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: -1;
}

.section-pattern-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: linear-gradient(45deg, #2563eb 25%, transparent 25%), linear-gradient(-45deg, #2563eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #2563eb 75%), linear-gradient(-45deg, transparent 75%, #2563eb 75%);
    background-size: 20px 20px;
    opacity: 0.05;
    z-index: -1;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .welcome-features {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .experience-badge {
        min-width: 140px;
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .sec-spacer {
        padding: 80px 0;
    }

    .card-inner {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .welcome-features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .experience-badge {
        min-width: 120px;
        padding: 1.25rem;
    }

        .experience-badge .years {
            font-size: 2rem;
        }
}

@media (max-width: 576px) {
    .feature-icon {
        width: 60px;
        height: 60px;
    }

        .feature-icon i {
            font-size: 1.5rem;
        }

    .card-inner {
        padding: 1.5rem;
    }
}

/* Counter Section Styles */
.counter-section {
    background: #f8fafc;
    position: relative;
}

.counter-wrapper {
    position: relative;
    z-index: 1;
}

.counter-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    margin-bottom: 2rem;
}

    .counter-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
        border-color: #2563eb;
    }

.counter-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

    .counter-icon:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
        top: -50%;
        left: -50%;
        transform: rotate(45deg);
    }

    .counter-icon i {
        color: #fff;
        font-size: 2.5rem;
    }

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-text {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Join Section Styles */
.join-section {
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #1e40af 100%);
    position: relative;
    color: #fff;
    overflow: hidden;
}

    .join-section:before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.4) 0%, transparent 50%);
        animation: pulse 4s ease-in-out infinite;
    }

.join-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

    .join-wrapper:before {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        top: -50%;
        left: -50%;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
        animation: rotate 20s linear infinite;
    }

.gradient-text-light {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.join-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 2rem 0;
    opacity: 0.9;
}

.join-buttons {
    text-align: center;
}

.btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border-radius: 50px;
}

.btn-light {
    background: #fff;
    color: #2563eb;
}

    .btn-light:hover {
        background: #e2e8f0;
        transform: translateY(-5px);
    }

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

    .btn-outline-light:hover {
        background: #fff;
        color: #2563eb;
        transform: translateY(-5px);
    }

.section-pattern-3 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(#2563eb 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 0;
}

.section-pattern-4 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="25" y="25" width="50" height="50" fill="white" opacity="0.1" transform="rotate(45 50 50)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 0;
}

/* Update Responsive Styles */
@media (max-width: 1200px) {
    .gradient-text, .gradient-text-light {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .join-wrapper {
        padding: 3rem;
    }

    .join-buttons {
        margin-top: 2rem;
    }

    .gradient-text, .gradient-text-light {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .counter-item {
        margin-bottom: 1.5rem;
    }

    .join-wrapper {
        padding: 2rem;
    }

    .btn {
        padding: 0.8rem 2rem;
    }

    .gradient-text, .gradient-text-light {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .counter-number {
        font-size: 2.5rem;
    }

    .join-buttons .btn {
        display: block;
        margin: 1rem 0;
    }

    .gradient-text, .gradient-text-light {
        font-size: 2rem;
    }
}

/* Add Section Animation Styles */
.section-animate {
    position: relative;
    overflow: hidden;
}

    .section-animate:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
    }

    .section-animate.aos-animate:before {
        transform: scaleX(1);
    }

    .section-animate .container {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    }

    .section-animate.aos-animate .container {
        opacity: 1;
        transform: translateY(0);
    }

/* Enhanced Section Specific Animations */
.welcome-section .welcome-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.welcome-section .welcome-image {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.welcome-section.aos-animate .welcome-content,
.welcome-section.aos-animate .welcome-image {
    opacity: 1;
    transform: translateX(0);
}

.history-section .history-image {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.history-section.aos-animate .history-image {
    opacity: 1;
    transform: scale(1);
}

.mission-vision-section .mission-card,
.mission-vision-section .vision-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-vision-section.aos-animate .mission-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.mission-vision-section.aos-animate .vision-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.counter-section .counter-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.counter-section.aos-animate .counter-item:nth-child(1) {
    transition-delay: 0.2s;
}

.counter-section.aos-animate .counter-item:nth-child(2) {
    transition-delay: 0.4s;
}

.counter-section.aos-animate .counter-item:nth-child(3) {
    transition-delay: 0.6s;
}

.counter-section.aos-animate .counter-item:nth-child(4) {
    transition-delay: 0.8s;
}

.counter-section.aos-animate .counter-item {
    opacity: 1;
    transform: translateY(0);
}

.join-section .join-wrapper {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.join-section.aos-animate .join-wrapper {
    opacity: 1;
    transform: scale(1);
}

/* Update existing animations to work with new structure */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}
