body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, #2e0267, #1d0146);
    color: #f0f0f0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-buttons button {
    background: #ffdd59;
    color: #2e0267;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-demo-btn, .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 5px;
    min-width: 180px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.book-demo-btn {
    background: linear-gradient(135deg, #8A2BE2, #6A0DAD);
    color: #fff;
}

.book-demo-btn:hover {
    background: linear-gradient(135deg, #6A0DAD, #4B0082);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(106, 13, 173, 0.7);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(18, 140, 126, 0.7);
}

.whatsapp-btn img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.header-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 221, 89, 0.5);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #fff;
    color: #333;
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.popup-header {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #9333ea, #6a5acd);
    color: white;
}

.popup-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.popup-subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.contact-items {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 16px;
    background: #f8f9ff;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(147, 51, 234, 0.1);
    background: #f0f2ff;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 16px;
    color: white;
    transition: all 0.3s ease;
}

.contact-icon.student {
    background: linear-gradient(135deg, #9333ea, #6a5acd);
}

.contact-icon.parent {
    background: linear-gradient(135deg, #9333ea, #6a5acd);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-icon i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    transform: scale(1.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2e0267;
    margin-bottom: 4px;
}

.contact-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #555;
}

.close-popup-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 14px;
    background: #f0f0f4;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup-btn:hover {
    background: #e4e4ea;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
    .popup {
        width: 90%;
    }
    
    .popup-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 14px;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
    }
    
    .contact-number {
        font-size: 1rem;
    }
}

.demo-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #fff;
    color: #333;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 500px;
    max-width: 90%;
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.demo-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.demo-popup h3 {
    margin: 0;
    padding: 20px;
    font-size: 1.5rem;
    color: #4b0082;
    text-align: center;
    background-color: rgba(246, 246, 250, 0.8);
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.popup-form-container {
    padding: 20px 30px 30px;
}

.demo-popup input,
.demo-popup select {
    width: calc(100% - 30px);
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.demo-popup input:focus,
.demo-popup select:focus {
    border-color: #6a5acd;
    box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.2);
    outline: none;
}

.demo-popup input::placeholder,
.demo-popup select::placeholder {
    color: #999;
}

.demo-popup input.error,
.demo-popup select.error {
    border-color: #ff3b30;
    background-color: rgba(255, 59, 48, 0.05);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.demo-popup button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #6a5acd;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.demo-popup button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.demo-popup button[type="submit"]:hover {
    background: #5849bf;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
}

.demo-popup button[type="submit"]:hover::before {
    left: 100%;
}

.demo-popup button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(106, 90, 205, 0.3);
}

.demo-popup button[type="submit"]:disabled {
    background: #a9a9a9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.demo-popup .close-btn {
    width: 100%;
    padding: 12px;
    background: #f0f0f4;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-popup .close-btn:hover {
    background: #e4e4ea;
}

.demo-popup .success-message,
#popup-success-message {
    display: none;
    padding: 15px;
    margin-bottom: 20px;
    background-color: rgba(52, 199, 89, 0.1);
    border-left: 4px solid #34c759;
    color: #34c759;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
    text-align: center;
    font-weight: 500;
}

#demo-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .demo-popup {
        width: 90%;
    }
    
    .demo-popup h3 {
        font-size: 1.3rem;
        padding: 15px;
    }
    
    .popup-form-container {
        padding: 15px 20px 25px;
    }
    
    .demo-popup input,
    .demo-popup select {
        padding: 10px;
        font-size: 15px;
    }
}

.popup p {
    font-size: 1.1em;
    font-weight: bold;
    margin: 5px 0;
    color: #6a5acd;
}

.popup button,
.demo-popup button {
    background: #6a5acd;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.popup button:hover,
.demo-popup button:hover {
    background: #5848c2;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.form-section {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px;
    background-color: #1d0146;
    overflow: hidden;
    min-height: 500px;
    will-change: transform; /* Performance optimization */
}

.form-left {
    max-width: 50%;
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-left h2 {
    font-size: 3.5em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.form-left p {
    font-size: 1.8em;
    margin: 10px 0 30px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.dynamic-text {
    font-weight: 800;
    color: #ffdd59;
    transition: all 0.4s ease;
    display: inline-block;
    min-width: 120px;
    text-align: left;
    position: relative;
    padding: 0 5px;
}

.dynamic-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffdd59;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.dynamic-text.active::after {
    transform: scaleX(1);
}

.form-container {
    max-width: 40%;
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
                inset 0 2px 10px rgba(255, 255, 255, 0.5),
                0 5px 15px rgba(106, 90, 205, 0.3);
    margin: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    animation: slideInRight 1s ease;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
}

.form-container h3 {
    font-size: 2em;
    color: #2e0267;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, #2e0267, #6a5acd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 15px;
}

.form-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    transition: width 0.3s ease;
}

.form-container:hover h3::after {
    width: 100px;
}

.form-container label {
    display: block;
    color: #2e0267;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-container input,
.form-container select {
    width: 100%;
    margin: 8px 0 20px;
    padding: 15px;
    border: 2px solid rgba(106, 90, 205, 0.1);
    border-radius: 15px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #2e0267;
}

.form-container input:focus,
.form-container select:focus {
    border-color: #6a5acd;
    box-shadow: 0 0 0 4px rgba(106, 90, 205, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-container input::placeholder,
.form-container select::placeholder {
    color: #a0a0a0;
}

.form-container button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.form-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(106, 90, 205, 0.4);
    background: linear-gradient(135deg, #836fff, #6a5acd);
}

.form-container button:hover::before {
    left: 100%;
}

.form-container button:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(106, 90, 205, 0.3);
}

.form-container .success-message {
    background: rgba(40, 199, 111, 0.1);
    color: #28c76f;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: fadeInUp 0.5s ease;
}

.enrolled-count {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    color: #2e0267;
    font-weight: 600;
    opacity: 0.9;
    position: relative;
    padding: 15px;
    background: rgba(106, 90, 205, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.enrolled-count:hover {
    background: rgba(106, 90, 205, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px;
        margin: 20px 0;
    }

    .form-container h3 {
        font-size: 1.8em;
    }

    .form-container button {
        padding: 15px;
        font-size: 1.1em;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .form-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }
    
    .form-left,
    .form-container {
        width: 100%;
        padding: 20px;
        margin-top: 0;
    }
    
    .form-left h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .form-left p {
        font-size: 1.5rem;
    }
    
    .feature-list {
        margin-top: 20px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .book-demo-btn, 
    .whatsapp-btn {
        width: 100%;
        margin: 5px 0;
    }
}

.section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(147, 51, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
}

.section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.section .quote {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 40px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.section .quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #9333ea;
    opacity: 0.2;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.4s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.8s; }

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1);
}

.benefit-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.benefit-text p {
    color: #6b7280;
    line-height: 1.6;
}

.section-image {
    position: relative;
    z-index: 2;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: floatAnimation 0.6s ease forwards;
    animation-delay: var(--delay);
}

.float-element i {
    color: #9333ea;
    font-size: 1.2rem;
}

.float-element span {
    color: #1f2937;
    font-weight: 500;
}

.float-element:nth-child(1) { top: 20%; left: -20px; }
.float-element:nth-child(2) { top: 50%; right: -20px; }
.float-element:nth-child(3) { bottom: 20%; left: 20%; }

.cta-container {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1s;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta i {
    font-size: 1.4rem;
}

@keyframes floatAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 968px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-image {
        order: -1;
    }

    .section h2 {
        font-size: 2.4rem;
    }

    .float-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section .quote {
        font-size: 1.1rem;
    }

    .benefit-item {
        padding: 20px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .whatsapp-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

.card {
    background: #30214d;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin: 20px;
    display: inline-block;
    width: calc(30% - 40px);
    vertical-align: top;
    color: #d6d6f0;
}

.card h3 {
    font-size: 1.5em;
    color: #a0c0ff;
}

.how-it-works {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f5ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Adding a new after pseudo-element for additional design elements */
.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 70px;
    position: relative;
}

/* Adding a progress line behind the steps */
.steps-container::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 90px;
    right: 90px;
    height: 4px;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 2px;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: progressLine 1.5s ease-in-out forwards 0.5s;
}

@keyframes progressLine {
    to {
        transform: scaleX(1);
    }
}

.step {
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(5) { animation-delay: 0.9s; }

.step-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover .step-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(147, 51, 234, 0.2);
}

.step:hover .step-content::before {
    transform: scaleX(1);
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2),
                inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover .step-icon::after {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

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

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3),
                inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #9333ea;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffffff;
    z-index: 2;
    line-height: 1;
    padding-bottom: 1px; /* Slight optical adjustment for better vertical centering */
}

.step-number.pulse-effect {
    animation: numberPulse 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
}

.step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.step:hover h3 {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    flex-grow: 1;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-features span {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.95rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-features span i {
    color: #9333ea;
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step:hover .step-features span {
    transform: translateX(5px);
}

.step:hover .step-features span i {
    transform: scale(1.2);
    color: #4f46e5;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    position: relative;
    z-index: 1;
}

.connector-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    position: relative;
    transform: scaleX(0);
    animation: connectLineAnim 0.6s ease forwards 1s;
}

@keyframes connectLineAnim {
    to {
        transform: scaleX(1);
    }
}

.connector-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseDot 2s infinite, appearDot 0.5s ease forwards 1.4s;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
    z-index: 1;
}

.step-connector:hover .connector-dot {
    animation-duration: 1.5s;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.3);
}

@keyframes appearDot {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.how-it-works-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 1.2s;
    padding-top: 20px;
}

.how-it-works-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

/* Glass effect for the CTA button */
.how-it-works-cta .cta-button {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.how-it-works-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0.6;
    transition: all 0.6s ease;
}

.how-it-works-cta .cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.how-it-works-cta .cta-button:hover::before {
    left: 100%;
}

.how-it-works-cta .cta-button span {
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button:hover i {
    transform: translateX(5px);
}

.how-it-works.animate .step,
.how-it-works.animate .section-header,
.how-it-works.animate .how-it-works-cta {
    animation-play-state: running;
}

@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        max-width: 100%;
        width: 100%;
    }
    
    .step-connector {
        width: 100%;
        height: 60px;
        margin: 10px 0;
    }
    
    .connector-line {
        width: 3px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        top: -8px;
        right: -8px;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .how-it-works-cta {
        margin-top: 40px;
        padding-top: 10px;
    }
    
    .step-connector {
        height: 40px;
        margin: 5px 0;
    }
}

footer {
    background: #1d0146;
    color: #a0a0a0;
    padding: 20px;
    text-align: center;
}

.success-message {
    color: green;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    display: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-buttons {
        margin-top: 10px;
    }

    .form-section {
        flex-direction: column;
        text-align: center;
    }

    .form-left,
    .form-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        max-width: 100%;
    }

    .form-container button {
        font-size: 1em;
    }

    .card {
        width: calc(90% - 40px);
    }
}

.academic-programs {
    background: linear-gradient(135deg, #f8f9ff, #f0f5ff);
    padding: 80px 20px;
    text-align: center;
}

.academic-programs h2 {
    font-size: 2.5em;
    color: #2e0267;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.academic-programs h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    border-radius: 2px;
}

.programs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.1);
    padding: 30px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 90, 205, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Adding animation delays for staggered appearance */
.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }
.program-card:nth-child(7) { animation-delay: 0.7s; }
.program-card:nth-child(8) { animation-delay: 0.8s; }
.program-card:nth-child(9) { animation-delay: 0.9s; }
.program-card:nth-child(10) { animation-delay: 1.0s; }

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.2);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon img {
    transform: scale(1.1);
}

.program-card h3 {
    font-size: 1.5em;
    color: #2e0267;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.program-features {
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(106, 90, 205, 0.1);
    flex-grow: 1;
}

.program-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    color: #555;
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.program-features li::before {
    content: '✓';
    color: #6a5acd;
    margin-right: 10px;
    font-weight: bold;
}

.program-card:hover .program-features li {
    color: #2e0267;
}

.program-card:hover .program-features li::before {
    color: #836fff;
}

.explore-more-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.explore-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
    background: linear-gradient(135deg, #836fff, #6a5acd);
}

@media (max-width: 768px) {
    .program-card {
        width: 100%;
        max-width: 350px;
    }
    
    .program-card h3 {
        font-size: 1.3em;
        min-height: 60px;
    }
    
    .programs-container {
        padding: 20px;
    }
}

.benefits-section {
    position: relative;
    padding: 100px 40px;
    background: #f9f9fb;
    color: #333;
    overflow: hidden;
    will-change: transform; /* Performance optimization */
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.4s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.8s; }

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1);
}

.benefit-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.benefit-text p {
    color: #6b7280;
    line-height: 1.6;
}

.section-image {
    position: relative;
    z-index: 2;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: floatAnimation 0.6s ease forwards;
    animation-delay: var(--delay);
}

.float-element i {
    color: #9333ea;
    font-size: 1.2rem;
}

.float-element span {
    color: #1f2937;
    font-weight: 500;
}

.float-element:nth-child(1) { top: 20%; left: -20px; }
.float-element:nth-child(2) { top: 50%; right: -20px; }
.float-element:nth-child(3) { bottom: 20%; left: 20%; }

.cta-container {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1s;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta i {
    font-size: 1.4rem;
}

@keyframes floatAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 968px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-image {
        order: -1;
    }

    .section h2 {
        font-size: 2.4rem;
    }

    .float-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section .quote {
        font-size: 1.1rem;
    }

    .benefit-item {
        padding: 20px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .whatsapp-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

.card {
    background: #30214d;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin: 20px;
    display: inline-block;
    width: calc(30% - 40px);
    vertical-align: top;
    color: #d6d6f0;
}

.card h3 {
    font-size: 1.5em;
    color: #a0c0ff;
}

.how-it-works {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f5ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Adding a new after pseudo-element for additional design elements */
.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 70px;
    position: relative;
}

/* Adding a progress line behind the steps */
.steps-container::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 90px;
    right: 90px;
    height: 4px;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 2px;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: progressLine 1.5s ease-in-out forwards 0.5s;
}

@keyframes progressLine {
    to {
        transform: scaleX(1);
    }
}

.step {
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(5) { animation-delay: 0.9s; }

.step-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover .step-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(147, 51, 234, 0.2);
}

.step:hover .step-content::before {
    transform: scaleX(1);
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2),
                inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover .step-icon::after {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

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

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3),
                inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #9333ea;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffffff;
    z-index: 2;
    line-height: 1;
    padding-bottom: 1px; /* Slight optical adjustment for better vertical centering */
}

.step-number.pulse-effect {
    animation: numberPulse 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
}

.step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.step:hover h3 {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    flex-grow: 1;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-features span {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.95rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-features span i {
    color: #9333ea;
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step:hover .step-features span {
    transform: translateX(5px);
}

.step:hover .step-features span i {
    transform: scale(1.2);
    color: #4f46e5;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    position: relative;
    z-index: 1;
}

.connector-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    position: relative;
    transform: scaleX(0);
    animation: connectLineAnim 0.6s ease forwards 1s;
}

@keyframes connectLineAnim {
    to {
        transform: scaleX(1);
    }
}

.connector-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseDot 2s infinite, appearDot 0.5s ease forwards 1.4s;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
    z-index: 1;
}

.step-connector:hover .connector-dot {
    animation-duration: 1.5s;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.3);
}

@keyframes appearDot {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.how-it-works-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 1.2s;
    padding-top: 20px;
}

.how-it-works-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

/* Glass effect for the CTA button */
.how-it-works-cta .cta-button {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.how-it-works-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0.6;
    transition: all 0.6s ease;
}

.how-it-works-cta .cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.how-it-works-cta .cta-button:hover::before {
    left: 100%;
}

.how-it-works-cta .cta-button span {
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button:hover i {
    transform: translateX(5px);
}

.how-it-works.animate .step,
.how-it-works.animate .section-header,
.how-it-works.animate .how-it-works-cta {
    animation-play-state: running;
}

@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        max-width: 100%;
        width: 100%;
    }
    
    .step-connector {
        width: 100%;
        height: 60px;
        margin: 10px 0;
    }
    
    .connector-line {
        width: 3px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        top: -8px;
        right: -8px;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .how-it-works-cta {
        margin-top: 40px;
        padding-top: 10px;
    }
    
    .step-connector {
        height: 40px;
        margin: 5px 0;
    }
}

footer {
    background: #1d0146;
    color: #a0a0a0;
    padding: 20px;
    text-align: center;
}

.success-message {
    color: green;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    display: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-buttons {
        margin-top: 10px;
    }

    .form-section {
        flex-direction: column;
        text-align: center;
    }

    .form-left,
    .form-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        max-width: 100%;
    }

    .form-container button {
        font-size: 1em;
    }

    .card {
        width: calc(90% - 40px);
    }
}

.academic-programs {
    background: linear-gradient(135deg, #f8f9ff, #f0f5ff);
    padding: 80px 20px;
    text-align: center;
}

.academic-programs h2 {
    font-size: 2.5em;
    color: #2e0267;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.academic-programs h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    border-radius: 2px;
}

.programs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.1);
    padding: 30px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 90, 205, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Adding animation delays for staggered appearance */
.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }
.program-card:nth-child(7) { animation-delay: 0.7s; }
.program-card:nth-child(8) { animation-delay: 0.8s; }
.program-card:nth-child(9) { animation-delay: 0.9s; }
.program-card:nth-child(10) { animation-delay: 1.0s; }

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.2);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon img {
    transform: scale(1.1);
}

.program-card h3 {
    font-size: 1.5em;
    color: #2e0267;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.program-features {
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(106, 90, 205, 0.1);
    flex-grow: 1;
}

.program-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    color: #555;
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.program-features li::before {
    content: '✓';
    color: #6a5acd;
    margin-right: 10px;
    font-weight: bold;
}

.program-card:hover .program-features li {
    color: #2e0267;
}

.program-card:hover .program-features li::before {
    color: #836fff;
}

.explore-more-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.explore-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
    background: linear-gradient(135deg, #836fff, #6a5acd);
}

@media (max-width: 768px) {
    .program-card {
        width: 100%;
        max-width: 350px;
    }
    
    .program-card h3 {
        font-size: 1.3em;
        min-height: 60px;
    }
    
    .programs-container {
        padding: 20px;
    }
}

.benefits-section {
    position: relative;
    padding: 100px 40px;
    background: #f9f9fb;
    color: #333;
    overflow: hidden;
    will-change: transform; /* Performance optimization */
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.4s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.8s; }

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1);
}

.benefit-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.benefit-text p {
    color: #6b7280;
    line-height: 1.6;
}

.section-image {
    position: relative;
    z-index: 2;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: floatAnimation 0.6s ease forwards;
    animation-delay: var(--delay);
}

.float-element i {
    color: #9333ea;
    font-size: 1.2rem;
}

.float-element span {
    color: #1f2937;
    font-weight: 500;
}

.float-element:nth-child(1) { top: 20%; left: -20px; }
.float-element:nth-child(2) { top: 50%; right: -20px; }
.float-element:nth-child(3) { bottom: 20%; left: 20%; }

.cta-container {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1s;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta i {
    font-size: 1.4rem;
}

@keyframes floatAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 968px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-image {
        order: -1;
    }

    .section h2 {
        font-size: 2.4rem;
    }

    .float-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section .quote {
        font-size: 1.1rem;
    }

    .benefit-item {
        padding: 20px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .whatsapp-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

.card {
    background: #30214d;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin: 20px;
    display: inline-block;
    width: calc(30% - 40px);
    vertical-align: top;
    color: #d6d6f0;
}

.card h3 {
    font-size: 1.5em;
    color: #a0c0ff;
}

.how-it-works {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f5ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Adding a new after pseudo-element for additional design elements */
.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 70px;
    position: relative;
}

/* Adding a progress line behind the steps */
.steps-container::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 90px;
    right: 90px;
    height: 4px;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 2px;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: progressLine 1.5s ease-in-out forwards 0.5s;
}

@keyframes progressLine {
    to {
        transform: scaleX(1);
    }
}

.step {
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(5) { animation-delay: 0.9s; }

.step-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover .step-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(147, 51, 234, 0.2);
}

.step:hover .step-content::before {
    transform: scaleX(1);
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2),
                inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover .step-icon::after {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

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

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3),
                inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #9333ea;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffffff;
    z-index: 2;
    line-height: 1;
    padding-bottom: 1px; /* Slight optical adjustment for better vertical centering */
}

.step-number.pulse-effect {
    animation: numberPulse 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
}

.step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.step:hover h3 {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    flex-grow: 1;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-features span {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.95rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-features span i {
    color: #9333ea;
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step:hover .step-features span {
    transform: translateX(5px);
}

.step:hover .step-features span i {
    transform: scale(1.2);
    color: #4f46e5;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    position: relative;
    z-index: 1;
}

.connector-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    position: relative;
    transform: scaleX(0);
    animation: connectLineAnim 0.6s ease forwards 1s;
}

@keyframes connectLineAnim {
    to {
        transform: scaleX(1);
    }
}

.connector-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseDot 2s infinite, appearDot 0.5s ease forwards 1.4s;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
    z-index: 1;
}

.step-connector:hover .connector-dot {
    animation-duration: 1.5s;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.3);
}

@keyframes appearDot {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.how-it-works-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 1.2s;
    padding-top: 20px;
}

.how-it-works-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

/* Glass effect for the CTA button */
.how-it-works-cta .cta-button {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.how-it-works-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0.6;
    transition: all 0.6s ease;
}

.how-it-works-cta .cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.how-it-works-cta .cta-button:hover::before {
    left: 100%;
}

.how-it-works-cta .cta-button span {
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button:hover i {
    transform: translateX(5px);
}

.how-it-works.animate .step,
.how-it-works.animate .section-header,
.how-it-works.animate .how-it-works-cta {
    animation-play-state: running;
}

@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        max-width: 100%;
        width: 100%;
    }
    
    .step-connector {
        width: 100%;
        height: 60px;
        margin: 10px 0;
    }
    
    .connector-line {
        width: 3px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        top: -8px;
        right: -8px;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .how-it-works-cta {
        margin-top: 40px;
        padding-top: 10px;
    }
    
    .step-connector {
        height: 40px;
        margin: 5px 0;
    }
}

footer {
    background: #1d0146;
    color: #a0a0a0;
    padding: 20px;
    text-align: center;
}

.success-message {
    color: green;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    display: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-buttons {
        margin-top: 10px;
    }

    .form-section {
        flex-direction: column;
        text-align: center;
    }

    .form-left,
    .form-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        max-width: 100%;
    }

    .form-container button {
        font-size: 1em;
    }

    .card {
        width: calc(90% - 40px);
    }
}

.academic-programs {
    background: linear-gradient(135deg, #f8f9ff, #f0f5ff);
    padding: 80px 20px;
    text-align: center;
}

.academic-programs h2 {
    font-size: 2.5em;
    color: #2e0267;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.academic-programs h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    border-radius: 2px;
}

.programs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.1);
    padding: 30px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 90, 205, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Adding animation delays for staggered appearance */
.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }
.program-card:nth-child(7) { animation-delay: 0.7s; }
.program-card:nth-child(8) { animation-delay: 0.8s; }
.program-card:nth-child(9) { animation-delay: 0.9s; }
.program-card:nth-child(10) { animation-delay: 1.0s; }

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.2);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon img {
    transform: scale(1.1);
}

.program-card h3 {
    font-size: 1.5em;
    color: #2e0267;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.program-features {
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(106, 90, 205, 0.1);
    flex-grow: 1;
}

.program-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    color: #555;
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.program-features li::before {
    content: '✓';
    color: #6a5acd;
    margin-right: 10px;
    font-weight: bold;
}

.program-card:hover .program-features li {
    color: #2e0267;
}

.program-card:hover .program-features li::before {
    color: #836fff;
}

.explore-more-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.explore-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
    background: linear-gradient(135deg, #836fff, #6a5acd);
}

@media (max-width: 768px) {
    .program-card {
        width: 100%;
        max-width: 350px;
    }
    
    .program-card h3 {
        font-size: 1.3em;
        min-height: 60px;
    }
    
    .programs-container {
        padding: 20px;
    }
}

.benefits-section {
    position: relative;
    padding: 100px 40px;
    background: #f9f9fb;
    color: #333;
    overflow: hidden;
    will-change: transform; /* Performance optimization */
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.4s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.8s; }

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1);
}

.benefit-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.benefit-text p {
    color: #6b7280;
    line-height: 1.6;
}

.section-image {
    position: relative;
    z-index: 2;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: floatAnimation 0.6s ease forwards;
    animation-delay: var(--delay);
}

.float-element i {
    color: #9333ea;
    font-size: 1.2rem;
}

.float-element span {
    color: #1f2937;
    font-weight: 500;
}

.float-element:nth-child(1) { top: 20%; left: -20px; }
.float-element:nth-child(2) { top: 50%; right: -20px; }
.float-element:nth-child(3) { bottom: 20%; left: 20%; }

.cta-container {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1s;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta i {
    font-size: 1.4rem;
}

@keyframes floatAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 968px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-image {
        order: -1;
    }

    .section h2 {
        font-size: 2.4rem;
    }

    .float-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section .quote {
        font-size: 1.1rem;
    }

    .benefit-item {
        padding: 20px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .whatsapp-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

.card {
    background: #30214d;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin: 20px;
    display: inline-block;
    width: calc(30% - 40px);
    vertical-align: top;
    color: #d6d6f0;
}

.card h3 {
    font-size: 1.5em;
    color: #a0c0ff;
}

.how-it-works {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f5ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Adding a new after pseudo-element for additional design elements */
.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 70px;
    position: relative;
}

/* Adding a progress line behind the steps */
.steps-container::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 90px;
    right: 90px;
    height: 4px;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 2px;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: progressLine 1.5s ease-in-out forwards 0.5s;
}

@keyframes progressLine {
    to {
        transform: scaleX(1);
    }
}

.step {
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(5) { animation-delay: 0.9s; }

.step-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover .step-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(147, 51, 234, 0.2);
}

.step:hover .step-content::before {
    transform: scaleX(1);
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2),
                inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover .step-icon::after {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

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

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3),
                inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #9333ea;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffffff;
    z-index: 2;
    line-height: 1;
    padding-bottom: 1px; /* Slight optical adjustment for better vertical centering */
}

.step-number.pulse-effect {
    animation: numberPulse 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
}

.step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.step:hover h3 {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    flex-grow: 1;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-features span {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.95rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-features span i {
    color: #9333ea;
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step:hover .step-features span {
    transform: translateX(5px);
}

.step:hover .step-features span i {
    transform: scale(1.2);
    color: #4f46e5;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    position: relative;
    z-index: 1;
}

.connector-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    position: relative;
    transform: scaleX(0);
    animation: connectLineAnim 0.6s ease forwards 1s;
}

@keyframes connectLineAnim {
    to {
        transform: scaleX(1);
    }
}

.connector-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseDot 2s infinite, appearDot 0.5s ease forwards 1.4s;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
    z-index: 1;
}

.step-connector:hover .connector-dot {
    animation-duration: 1.5s;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.3);
}

@keyframes appearDot {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.how-it-works-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 1.2s;
    padding-top: 20px;
}

.how-it-works-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

/* Glass effect for the CTA button */
.how-it-works-cta .cta-button {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.how-it-works-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0.6;
    transition: all 0.6s ease;
}

.how-it-works-cta .cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.how-it-works-cta .cta-button:hover::before {
    left: 100%;
}

.how-it-works-cta .cta-button span {
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button:hover i {
    transform: translateX(5px);
}

.how-it-works.animate .step,
.how-it-works.animate .section-header,
.how-it-works.animate .how-it-works-cta {
    animation-play-state: running;
}

@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        max-width: 100%;
        width: 100%;
    }
    
    .step-connector {
        width: 100%;
        height: 60px;
        margin: 10px 0;
    }
    
    .connector-line {
        width: 3px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        top: -8px;
        right: -8px;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .how-it-works-cta {
        margin-top: 40px;
        padding-top: 10px;
    }
    
    .step-connector {
        height: 40px;
        margin: 5px 0;
    }
}

footer {
    background: #1d0146;
    color: #a0a0a0;
    padding: 20px;
    text-align: center;
}

.success-message {
    color: green;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    display: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-buttons {
        margin-top: 10px;
    }

    .form-section {
        flex-direction: column;
        text-align: center;
    }

    .form-left,
    .form-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        max-width: 100%;
    }

    .form-container button {
        font-size: 1em;
    }

    .card {
        width: calc(90% - 40px);
    }
}

.academic-programs {
    background: linear-gradient(135deg, #f8f9ff, #f0f5ff);
    padding: 80px 20px;
    text-align: center;
}

.academic-programs h2 {
    font-size: 2.5em;
    color: #2e0267;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.academic-programs h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    border-radius: 2px;
}

.programs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.1);
    padding: 30px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 90, 205, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Adding animation delays for staggered appearance */
.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }
.program-card:nth-child(7) { animation-delay: 0.7s; }
.program-card:nth-child(8) { animation-delay: 0.8s; }
.program-card:nth-child(9) { animation-delay: 0.9s; }
.program-card:nth-child(10) { animation-delay: 1.0s; }

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.2);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon img {
    transform: scale(1.1);
}

.program-card h3 {
    font-size: 1.5em;
    color: #2e0267;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.program-features {
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(106, 90, 205, 0.1);
    flex-grow: 1;
}

.program-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    color: #555;
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.program-features li::before {
    content: '✓';
    color: #6a5acd;
    margin-right: 10px;
    font-weight: bold;
}

.program-card:hover .program-features li {
    color: #2e0267;
}

.program-card:hover .program-features li::before {
    color: #836fff;
}

.explore-more-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.explore-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
    background: linear-gradient(135deg, #836fff, #6a5acd);
}

@media (max-width: 768px) {
    .program-card {
        width: 100%;
        max-width: 350px;
    }
    
    .program-card h3 {
        font-size: 1.3em;
        min-height: 60px;
    }
    
    .programs-container {
        padding: 20px;
    }
}

.benefits-section {
    position: relative;
    padding: 100px 40px;
    background: #f9f9fb;
    color: #333;
    overflow: hidden;
    will-change: transform; /* Performance optimization */
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.4s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.8s; }

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1);
}

.benefit-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.benefit-text p {
    color: #6b7280;
    line-height: 1.6;
}

.section-image {
    position: relative;
    z-index: 2;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: floatAnimation 0.6s ease forwards;
    animation-delay: var(--delay);
}

.float-element i {
    color: #9333ea;
    font-size: 1.2rem;
}

.float-element span {
    color: #1f2937;
    font-weight: 500;
}

.float-element:nth-child(1) { top: 20%; left: -20px; }
.float-element:nth-child(2) { top: 50%; right: -20px; }
.float-element:nth-child(3) { bottom: 20%; left: 20%; }

.cta-container {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1s;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta i {
    font-size: 1.4rem;
}

@keyframes floatAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 968px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-image {
        order: -1;
    }

    .section h2 {
        font-size: 2.4rem;
    }

    .float-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section .quote {
        font-size: 1.1rem;
    }

    .benefit-item {
        padding: 20px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .whatsapp-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

.card {
    background: #30214d;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin: 20px;
    display: inline-block;
    width: calc(30% - 40px);
    vertical-align: top;
    color: #d6d6f0;
}

.card h3 {
    font-size: 1.5em;
    color: #a0c0ff;
}

.how-it-works {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f5ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Adding a new after pseudo-element for additional design elements */
.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 70px;
    position: relative;
}

/* Adding a progress line behind the steps */
.steps-container::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 90px;
    right: 90px;
    height: 4px;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 2px;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: progressLine 1.5s ease-in-out forwards 0.5s;
}

@keyframes progressLine {
    to {
        transform: scaleX(1);
    }
}

.step {
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(5) { animation-delay: 0.9s; }

.step-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover .step-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(147, 51, 234, 0.2);
}

.step:hover .step-content::before {
    transform: scaleX(1);
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2),
                inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover .step-icon::after {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

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

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3),
                inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #9333ea;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffffff;
    z-index: 2;
    line-height: 1;
    padding-bottom: 1px; /* Slight optical adjustment for better vertical centering */
}

.step-number.pulse-effect {
    animation: numberPulse 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
}

.step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.step:hover h3 {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    flex-grow: 1;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-features span {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.95rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-features span i {
    color: #9333ea;
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step:hover .step-features span {
    transform: translateX(5px);
}

.step:hover .step-features span i {
    transform: scale(1.2);
    color: #4f46e5;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    position: relative;
    z-index: 1;
}

.connector-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    position: relative;
    transform: scaleX(0);
    animation: connectLineAnim 0.6s ease forwards 1s;
}

@keyframes connectLineAnim {
    to {
        transform: scaleX(1);
    }
}

.connector-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseDot 2s infinite, appearDot 0.5s ease forwards 1.4s;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
    z-index: 1;
}

.step-connector:hover .connector-dot {
    animation-duration: 1.5s;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.3);
}

@keyframes appearDot {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.how-it-works-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 1.2s;
    padding-top: 20px;
}

.how-it-works-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

/* Glass effect for the CTA button */
.how-it-works-cta .cta-button {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.how-it-works-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0.6;
    transition: all 0.6s ease;
}

.how-it-works-cta .cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.how-it-works-cta .cta-button:hover::before {
    left: 100%;
}

.how-it-works-cta .cta-button span {
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button:hover i {
    transform: translateX(5px);
}

.how-it-works.animate .step,
.how-it-works.animate .section-header,
.how-it-works.animate .how-it-works-cta {
    animation-play-state: running;
}

@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        max-width: 100%;
        width: 100%;
    }
    
    .step-connector {
        width: 100%;
        height: 60px;
        margin: 10px 0;
    }
    
    .connector-line {
        width: 3px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        top: -8px;
        right: -8px;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .how-it-works-cta {
        margin-top: 40px;
        padding-top: 10px;
    }
    
    .step-connector {
        height: 40px;
        margin: 5px 0;
    }
}

footer {
    background: #1d0146;
    color: #a0a0a0;
    padding: 20px;
    text-align: center;
}

.success-message {
    color: green;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    display: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-buttons {
        margin-top: 10px;
    }

    .form-section {
        flex-direction: column;
        text-align: center;
    }

    .form-left,
    .form-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        max-width: 100%;
    }

    .form-container button {
        font-size: 1em;
    }

    .card {
        width: calc(90% - 40px);
    }
}

.academic-programs {
    background: linear-gradient(135deg, #f8f9ff, #f0f5ff);
    padding: 80px 20px;
    text-align: center;
}

.academic-programs h2 {
    font-size: 2.5em;
    color: #2e0267;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.academic-programs h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    border-radius: 2px;
}

.programs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.1);
    padding: 30px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 90, 205, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Adding animation delays for staggered appearance */
.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }
.program-card:nth-child(7) { animation-delay: 0.7s; }
.program-card:nth-child(8) { animation-delay: 0.8s; }
.program-card:nth-child(9) { animation-delay: 0.9s; }
.program-card:nth-child(10) { animation-delay: 1.0s; }

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.2);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon img {
    transform: scale(1.1);
}

.program-card h3 {
    font-size: 1.5em;
    color: #2e0267;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.program-features {
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(106, 90, 205, 0.1);
    flex-grow: 1;
}

.program-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    color: #555;
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.program-features li::before {
    content: '✓';
    color: #6a5acd;
    margin-right: 10px;
    font-weight: bold;
}

.program-card:hover .program-features li {
    color: #2e0267;
}

.program-card:hover .program-features li::before {
    color: #836fff;
}

.explore-more-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.explore-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
    background: linear-gradient(135deg, #836fff, #6a5acd);
}

@media (max-width: 768px) {
    .program-card {
        width: 100%;
        max-width: 350px;
    }
    
    .program-card h3 {
        font-size: 1.3em;
        min-height: 60px;
    }
    
    .programs-container {
        padding: 20px;
    }
}

.benefits-section {
    position: relative;
    padding: 100px 40px;
    background: #f9f9fb;
    color: #333;
    overflow: hidden;
    will-change: transform; /* Performance optimization */
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.4s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.8s; }

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1);
}

.benefit-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.benefit-text p {
    color: #6b7280;
    line-height: 1.6;
}

.section-image {
    position: relative;
    z-index: 2;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: floatAnimation 0.6s ease forwards;
    animation-delay: var(--delay);
}

.float-element i {
    color: #9333ea;
    font-size: 1.2rem;
}

.float-element span {
    color: #1f2937;
    font-weight: 500;
}

.float-element:nth-child(1) { top: 20%; left: -20px; }
.float-element:nth-child(2) { top: 50%; right: -20px; }
.float-element:nth-child(3) { bottom: 20%; left: 20%; }

.cta-container {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1s;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta i {
    font-size: 1.4rem;
}

@keyframes floatAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 968px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-image {
        order: -1;
    }

    .section h2 {
        font-size: 2.4rem;
    }

    .float-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section .quote {
        font-size: 1.1rem;
    }

    .benefit-item {
        padding: 20px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .whatsapp-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

.card {
    background: #30214d;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin: 20px;
    display: inline-block;
    width: calc(30% - 40px);
    vertical-align: top;
    color: #d6d6f0;
}

.card h3 {
    font-size: 1.5em;
    color: #a0c0ff;
}

.how-it-works {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f5ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Adding a new after pseudo-element for additional design elements */
.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 70px;
    position: relative;
}

/* Adding a progress line behind the steps */
.steps-container::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 90px;
    right: 90px;
    height: 4px;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 2px;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: progressLine 1.5s ease-in-out forwards 0.5s;
}

@keyframes progressLine {
    to {
        transform: scaleX(1);
    }
}

.step {
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(5) { animation-delay: 0.9s; }

.step-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover .step-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(147, 51, 234, 0.2);
}

.step:hover .step-content::before {
    transform: scaleX(1);
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2),
                inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover .step-icon::after {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

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

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3),
                inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #9333ea;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffffff;
    z-index: 2;
    line-height: 1;
    padding-bottom: 1px; /* Slight optical adjustment for better vertical centering */
}

.step-number.pulse-effect {
    animation: numberPulse 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
}

.step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.step:hover h3 {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    flex-grow: 1;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-features span {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.95rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-features span i {
    color: #9333ea;
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step:hover .step-features span {
    transform: translateX(5px);
}

.step:hover .step-features span i {
    transform: scale(1.2);
    color: #4f46e5;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    position: relative;
    z-index: 1;
}

.connector-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    position: relative;
    transform: scaleX(0);
    animation: connectLineAnim 0.6s ease forwards 1s;
}

@keyframes connectLineAnim {
    to {
        transform: scaleX(1);
    }
}

.connector-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseDot 2s infinite, appearDot 0.5s ease forwards 1.4s;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
    z-index: 1;
}

.step-connector:hover .connector-dot {
    animation-duration: 1.5s;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.3);
}

@keyframes appearDot {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.how-it-works-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 1.2s;
    padding-top: 20px;
}

.how-it-works-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

/* Glass effect for the CTA button */
.how-it-works-cta .cta-button {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.how-it-works-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0.6;
    transition: all 0.6s ease;
}

.how-it-works-cta .cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.how-it-works-cta .cta-button:hover::before {
    left: 100%;
}

.how-it-works-cta .cta-button span {
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button:hover i {
    transform: translateX(5px);
}

.how-it-works.animate .step,
.how-it-works.animate .section-header,
.how-it-works.animate .how-it-works-cta {
    animation-play-state: running;
}

@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        max-width: 100%;
        width: 100%;
    }
    
    .step-connector {
        width: 100%;
        height: 60px;
        margin: 10px 0;
    }
    
    .connector-line {
        width: 3px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        top: -8px;
        right: -8px;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .how-it-works-cta {
        margin-top: 40px;
        padding-top: 10px;
    }
    
    .step-connector {
        height: 40px;
        margin: 5px 0;
    }
}

footer {
    background: #1d0146;
    color: #a0a0a0;
    padding: 20px;
    text-align: center;
}

.success-message {
    color: green;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    display: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-buttons {
        margin-top: 10px;
    }

    .form-section {
        flex-direction: column;
        text-align: center;
    }

    .form-left,
    .form-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        max-width: 100%;
    }

    .form-container button {
        font-size: 1em;
    }

    .card {
        width: calc(90% - 40px);
    }
}

.academic-programs {
    background: linear-gradient(135deg, #f8f9ff, #f0f5ff);
    padding: 80px 20px;
    text-align: center;
}

.academic-programs h2 {
    font-size: 2.5em;
    color: #2e0267;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.academic-programs h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    border-radius: 2px;
}

.programs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.1);
    padding: 30px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 90, 205, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Adding animation delays for staggered appearance */
.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }
.program-card:nth-child(7) { animation-delay: 0.7s; }
.program-card:nth-child(8) { animation-delay: 0.8s; }
.program-card:nth-child(9) { animation-delay: 0.9s; }
.program-card:nth-child(10) { animation-delay: 1.0s; }

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.2);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon img {
    transform: scale(1.1);
}

.program-card h3 {
    font-size: 1.5em;
    color: #2e0267;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, #2e0267, #1d0146);
    color: #f0f0f0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-buttons button {
    background: #ffdd59;
    color: #2e0267;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-demo-btn, .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 5px;
    min-width: 180px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.book-demo-btn {
    background: linear-gradient(135deg, #8A2BE2, #6A0DAD);
    color: #fff;
}

.book-demo-btn:hover {
    background: linear-gradient(135deg, #6A0DAD, #4B0082);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(106, 13, 173, 0.7);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(18, 140, 126, 0.7);
}

.whatsapp-btn img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.header-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 221, 89, 0.5);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #fff;
    color: #333;
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.popup-header {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #9333ea, #6a5acd);
    color: white;
}

.popup-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.popup-subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.contact-items {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 16px;
    background: #f8f9ff;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(147, 51, 234, 0.1);
    background: #f0f2ff;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 16px;
    color: white;
    transition: all 0.3s ease;
}

.contact-icon.student {
    background: linear-gradient(135deg, #9333ea, #6a5acd);
}

.contact-icon.parent {
    background: linear-gradient(135deg, #9333ea, #6a5acd);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-icon i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    transform: scale(1.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2e0267;
    margin-bottom: 4px;
}

.contact-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #555;
}

.close-popup-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 14px;
    background: #f0f0f4;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup-btn:hover {
    background: #e4e4ea;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
    .popup {
        width: 90%;
    }
    
    .popup-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 14px;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
    }
    
    .contact-number {
        font-size: 1rem;
    }
}

.demo-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #fff;
    color: #333;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 500px;
    max-width: 90%;
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.demo-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.demo-popup h3 {
    margin: 0;
    padding: 20px;
    font-size: 1.5rem;
    color: #4b0082;
    text-align: center;
    background-color: rgba(246, 246, 250, 0.8);
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.popup-form-container {
    padding: 20px 30px 30px;
}

.demo-popup input,
.demo-popup select {
    width: calc(100% - 30px);
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.demo-popup input:focus,
.demo-popup select:focus {
    border-color: #6a5acd;
    box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.2);
    outline: none;
}

.demo-popup input::placeholder,
.demo-popup select::placeholder {
    color: #999;
}

.demo-popup input.error,
.demo-popup select.error {
    border-color: #ff3b30;
    background-color: rgba(255, 59, 48, 0.05);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.demo-popup button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #6a5acd;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.demo-popup button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.demo-popup button[type="submit"]:hover {
    background: #5849bf;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
}

.demo-popup button[type="submit"]:hover::before {
    left: 100%;
}

.demo-popup button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(106, 90, 205, 0.3);
}

.demo-popup button[type="submit"]:disabled {
    background: #a9a9a9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.demo-popup .close-btn {
    width: 100%;
    padding: 12px;
    background: #f0f0f4;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-popup .close-btn:hover {
    background: #e4e4ea;
}

.demo-popup .success-message,
#popup-success-message {
    display: none;
    padding: 15px;
    margin-bottom: 20px;
    background-color: rgba(52, 199, 89, 0.1);
    border-left: 4px solid #34c759;
    color: #34c759;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
    text-align: center;
    font-weight: 500;
}

#demo-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .demo-popup {
        width: 90%;
    }
    
    .demo-popup h3 {
        font-size: 1.3rem;
        padding: 15px;
    }
    
    .popup-form-container {
        padding: 15px 20px 25px;
    }
    
    .demo-popup input,
    .demo-popup select {
        padding: 10px;
        font-size: 15px;
    }
}

.popup p {
    font-size: 1.1em;
    font-weight: bold;
    margin: 5px 0;
    color: #6a5acd;
}

.popup button,
.demo-popup button {
    background: #6a5acd;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.popup button:hover,
.demo-popup button:hover {
    background: #5848c2;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.form-section {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px;
    background-color: #1d0146;
    overflow: hidden;
    min-height: 500px;
    will-change: transform; /* Performance optimization */
}

.form-left {
    max-width: 50%;
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-left h2 {
    font-size: 3.5em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.form-left p {
    font-size: 1.8em;
    margin: 10px 0 30px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.dynamic-text {
    font-weight: 800;
    color: #ffdd59;
    transition: all 0.4s ease;
    display: inline-block;
    min-width: 120px;
    text-align: left;
    position: relative;
    padding: 0 5px;
}

.dynamic-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffdd59;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.dynamic-text.active::after {
    transform: scaleX(1);
}

.form-container {
    max-width: 40%;
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
                inset 0 2px 10px rgba(255, 255, 255, 0.5),
                0 5px 15px rgba(106, 90, 205, 0.3);
    margin: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    animation: slideInRight 1s ease;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
}

.form-container h3 {
    font-size: 2em;
    color: #2e0267;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, #2e0267, #6a5acd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 15px;
}

.form-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    transition: width 0.3s ease;
}

.form-container:hover h3::after {
    width: 100px;
}

.form-container label {
    display: block;
    color: #2e0267;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-container input,
.form-container select {
    width: 100%;
    margin: 8px 0 20px;
    padding: 15px;
    border: 2px solid rgba(106, 90, 205, 0.1);
    border-radius: 15px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #2e0267;
}

.form-container input:focus,
.form-container select:focus {
    border-color: #6a5acd;
    box-shadow: 0 0 0 4px rgba(106, 90, 205, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-container input::placeholder,
.form-container select::placeholder {
    color: #a0a0a0;
}

.form-container button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.form-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(106, 90, 205, 0.4);
    background: linear-gradient(135deg, #836fff, #6a5acd);
}

.form-container button:hover::before {
    left: 100%;
}

.form-container button:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(106, 90, 205, 0.3);
}

.form-container .success-message {
    background: rgba(40, 199, 111, 0.1);
    color: #28c76f;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: fadeInUp 0.5s ease;
}

.enrolled-count {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    color: #2e0267;
    font-weight: 600;
    opacity: 0.9;
    position: relative;
    padding: 15px;
    background: rgba(106, 90, 205, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.enrolled-count:hover {
    background: rgba(106, 90, 205, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px;
        margin: 20px 0;
    }

    .form-container h3 {
        font-size: 1.8em;
    }

    .form-container button {
        padding: 15px;
        font-size: 1.1em;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .form-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }
    
    .form-left,
    .form-container {
        width: 100%;
        padding: 20px;
        margin-top: 0;
    }
    
    .form-left h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .form-left p {
        font-size: 1.5rem;
    }
    
    .feature-list {
        margin-top: 20px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .book-demo-btn, 
    .whatsapp-btn {
        width: 100%;
        margin: 5px 0;
    }
}

.section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(147, 51, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
}

.section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.section .quote {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 40px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.section .quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #9333ea;
    opacity: 0.2;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.4s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.8s; }

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1);
}

.benefit-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.benefit-text p {
    color: #6b7280;
    line-height: 1.6;
}

.section-image {
    position: relative;
    z-index: 2;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: floatAnimation 0.6s ease forwards;
    animation-delay: var(--delay);
}

.float-element i {
    color: #9333ea;
    font-size: 1.2rem;
}

.float-element span {
    color: #1f2937;
    font-weight: 500;
}

.float-element:nth-child(1) { top: 20%; left: -20px; }
.float-element:nth-child(2) { top: 50%; right: -20px; }
.float-element:nth-child(3) { bottom: 20%; left: 20%; }

.cta-container {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1s;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta i {
    font-size: 1.4rem;
}

@keyframes floatAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 968px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-image {
        order: -1;
    }

    .section h2 {
        font-size: 2.4rem;
    }

    .float-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section .quote {
        font-size: 1.1rem;
    }

    .benefit-item {
        padding: 20px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .whatsapp-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

.card {
    background: #30214d;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin: 20px;
    display: inline-block;
    width: calc(30% - 40px);
    vertical-align: top;
    color: #d6d6f0;
}

.card h3 {
    font-size: 1.5em;
    color: #a0c0ff;
}

.how-it-works {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f5ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Adding a new after pseudo-element for additional design elements */
.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 70px;
    position: relative;
}

/* Adding a progress line behind the steps */
.steps-container::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 90px;
    right: 90px;
    height: 4px;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 2px;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: progressLine 1.5s ease-in-out forwards 0.5s;
}

@keyframes progressLine {
    to {
        transform: scaleX(1);
    }
}

.step {
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(5) { animation-delay: 0.9s; }

.step-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover .step-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(147, 51, 234, 0.2);
}

.step:hover .step-content::before {
    transform: scaleX(1);
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2),
                inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover .step-icon::after {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

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

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3),
                inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #9333ea;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffffff;
    z-index: 2;
    line-height: 1;
    padding-bottom: 1px; /* Slight optical adjustment for better vertical centering */
}

.step-number.pulse-effect {
    animation: numberPulse 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
    }
}

.step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.step:hover h3 {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    flex-grow: 1;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-features span {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.95rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-features span i {
    color: #9333ea;
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step:hover .step-features span {
    transform: translateX(5px);
}

.step:hover .step-features span i {
    transform: scale(1.2);
    color: #4f46e5;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    position: relative;
    z-index: 1;
}

.connector-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    position: relative;
    transform: scaleX(0);
    animation: connectLineAnim 0.6s ease forwards 1s;
}

@keyframes connectLineAnim {
    to {
        transform: scaleX(1);
    }
}

.connector-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseDot 2s infinite, appearDot 0.5s ease forwards 1.4s;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
    z-index: 1;
}

.step-connector:hover .connector-dot {
    animation-duration: 1.5s;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.3);
}

@keyframes appearDot {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.how-it-works-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 1.2s;
    padding-top: 20px;
}

.how-it-works-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

/* Glass effect for the CTA button */
.how-it-works-cta .cta-button {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.how-it-works-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0.6;
    transition: all 0.6s ease;
}

.how-it-works-cta .cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.how-it-works-cta .cta-button:hover::before {
    left: 100%;
}

.how-it-works-cta .cta-button span {
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.how-it-works-cta .cta-button:hover i {
    transform: translateX(5px);
}

.how-it-works.animate .step,
.how-it-works.animate .section-header,
.how-it-works.animate .how-it-works-cta {
    animation-play-state: running;
}

@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        max-width: 100%;
        width: 100%;
    }
    
    .step-connector {
        width: 100%;
        height: 60px;
        margin: 10px 0;
    }
    
    .connector-line {
        width: 3px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        top: -8px;
        right: -8px;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .how-it-works-cta {
        margin-top: 40px;
        padding-top: 10px;
    }
    
    .step-connector {
        height: 40px;
        margin: 5px 0;
    }
}

footer {
    background: #1d0146;
    color: #a0a0a0;
    padding: 20px;
    text-align: center;
}

.success-message {
    color: green;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    display: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-buttons {
        margin-top: 10px;
    }

    .form-section {
        flex-direction: column;
        text-align: center;
    }

    .form-left,
    .form-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        max-width: 100%;
    }

    .form-container button {
        font-size: 1em;
    }

    .card {
        width: calc(90% - 40px);
    }
}

.academic-programs {
    background: linear-gradient(135deg, #f8f9ff, #f0f5ff);
    padding: 80px 20px;
    text-align: center;
}

.academic-programs h2 {
    font-size: 2.5em;
    color: #2e0267;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.academic-programs h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    border-radius: 2px;
}

.programs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.1);
    padding: 30px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 90, 205, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Adding animation delays for staggered appearance */
.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }
.program-card:nth-child(7) { animation-delay: 0.7s; }
.program-card:nth-child(8) { animation-delay: 0.8s; }
.program-card:nth-child(9) { animation-delay: 0.9s; }
.program-card:nth-child(10) { animation-delay: 1.0s; }

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a5acd, #836fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.2);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon img {
    transform: scale(1.1);
}

.program-card h3 {
    font-size: 1.5em;
    color: #2e0267;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.program-features {
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(106, 90, 205, 0.1);
    flex-grow: 1;
}

.program-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    color: #555;
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.program-features li::before {
    content: '✓';
    color: #6a5acd;
    margin-right: 10px;
    font-weight: bold;
}

.program-card:hover .program-features li {
    color: #2e0267;
}

.program-card:hover .program-features li::before {
    color: #836fff;
}

.explore-more-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.explore-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
    background: linear-gradient(135deg, #836fff, #6a5acd);
}

@media (max-width: 768px) {
    .program-card {
        width: 100%;
        max-width: 350px;
    }
    
    .program-card h3 {
        font-size: 1.3em;
        min-height: 60px;
    }
    
    .programs-container {
        padding: 20px;
    }
}

.benefits-section {
    position: relative;
    padding: 100px 40px;
    background: #f9f9fb;
    color: #333;
    overflow: hidden;
    will-change: transform; /* Performance optimization */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

/* Media queries for benefit cards */
@media (max-width: 1200px) {
    .benefits-grid {
        gap: 30px;
    }
    
    .benefit-card h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .benefits-section {
        padding: 60px 15px !important;
        overflow-x: hidden;
    }
    
    .benefits-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .benefits-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 40px !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
    
    .benefit-card {
        width: 100% !important;
        min-height: auto !important;
        padding: 20px !important;
        border-radius: 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        gap: 12px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .benefits-header {
        text-align: center;
        margin-bottom: 50px;
    }
    
    .benefits-header h2 {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    .benefits-subtitle {
        font-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .benefit-card {
        padding: 25px;
        gap: 15px;
    }
    
    .benefit-features {
        grid-template-columns: 1fr;
    }
    
    .benefit-card h3 {
        font-size: 1.4rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
    }
    
    .benefit-icon i {
        font-size: 1.6rem;
    }
    
    .benefit-card p {
        font-size: 1rem;
    }
    
    /* Stats responsive layout */
    .benefits-stats {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 40px 0;
    }
    
    .stat-item {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .benefits-cta {
        margin-top: 40px;
    }
    
    .cta-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
    }
}

.benefits-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.benefits-header {
    text-align: left;
    margin-bottom: 80px;
    max-width: 800px;
}

.benefits-header h2 {
    font-size: 3.5em;
    color: #2e0267;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
    position: relative;
}

.benefits-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, #6a5acd, transparent);
    border-radius: 3px;
}

.benefits-subtitle {
    font-size: 1.4em;
    color: #666;
    line-height: 1.6;
    margin-top: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.benefit-card {
    background: #fff;
    border: 2px solid rgba(106, 90, 205, 0.1);
    border-radius: 30px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-card:hover {
    border-color: #6a5acd;
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(106, 90, 205, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(106, 90, 205, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.benefit-card:hover .benefit-icon {
    background: #6a5acd;
    transform: scale(1.1);
}

.benefit-icon i {
    font-size: 2rem;
    color: #6a5acd;
    transition: all 0.5s ease;
}

.benefit-card:hover .benefit-icon i {
    color: #fff;
    transform: rotate(360deg);
}

.benefit-card h3 {
    font-size: 1.8rem;
    color: #2e0267;
    margin: 0;
    font-weight: 700;
}

.benefit-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.1em;
    margin: 0;
}

.benefit-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.benefit-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 1.05em;
    padding: 12px 20px;
    background: rgba(106, 90, 205, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-features li {
    background: rgba(106, 90, 205, 0.1);
}

.benefit-features li i {
    color: #6a5acd;
    font-size: 1.2em;
}

.benefits-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 80px 0;
    position: relative;
}

.stat-item {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: rgba(106, 90, 205, 0.2);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.15);
}

.stat-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
}

.stat-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.5s ease;
}

.stat-item:hover .stat-icon {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
}

.stat-icon i {
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.5s ease;
}

.stat-item:hover .stat-icon i {
    transform: scale(1.1);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: none;
    stroke: rgba(106, 90, 205, 0.1);
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.stat-item:hover .progress-ring-circle {
    stroke: rgba(106, 90, 205, 0.3);
    stroke-dashoffset: 0;
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2e0267, #6a5acd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    position: absolute;
    top: 0;
    right: -20px;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #2e0267;
    opacity: 1;
}

@media (max-width: 1200px) {
    .benefits-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-section {
        padding: 80px 20px;
    }

    .benefits-header {
        text-align: center;
        margin-bottom: 60px;
    }

    .benefits-header h2 {
        font-size: 2.5em;
    }

    .benefits-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .benefits-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits-stats::before {
        display: none;
    }

    .stat-item {
        padding: 30px;
    }

    .benefit-card {
        padding: 30px;
    }

    .cta-button {
        padding: 15px 30px;
        width: 100%;
        justify-content: center;
    }

    .stat-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }

    .stat-number {
        font-size: 3rem;
    }
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.05), rgba(131, 111, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    border: 2px solid rgba(106, 90, 205, 0.2);
    border-radius: 22px;
    animation: pulseRing 2s infinite;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #836fff, #6a5acd);
}

.feature-icon i {
    font-size: 1.8rem;
    color: #ffffff;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-card h4 {
    color: #2e0267;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.feature-tags span {
    background: rgba(106, 90, 205, 0.1);
    color: #6a5acd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.feature-card:hover .feature-tags span {
    opacity: 1;
    transform: translateY(0);
}

.feature-tags span:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-tags span:nth-child(2) {
    transition-delay: 0.2s;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.5;
    }
}

@media (max-width: 968px) {
    .feature-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .icon-ring {
        width: 75px;
        height: 75px;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefits-cta {
    text-align: center;
    margin-top: 80px;
    position: relative;
    padding: 20px;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 45px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px rgba(106, 90, 205, 0.3),
                inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-button span {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.cta-button i {
    position: relative;
    z-index: 2;
    font-size: 1.2em;
    transform: translateX(0);
    transition: all 0.4s ease;
}

/* Hover Effects */
.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #836fff, #6a5acd);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.4),
                inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    opacity: 1;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Active State */
.cta-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 10px 20px rgba(106, 90, 205, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* Focus State */
.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.3),
                0 15px 30px rgba(106, 90, 205, 0.3),
                inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

/* Button Wrapper with Decorative Elements */
.benefits-cta::before,
.benefits-cta::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(106, 90, 205, 0.2),
        transparent
    );
    top: 50%;
    transform: translateY(-50%);
}

.benefits-cta::before {
    left: 0;
}

.benefits-cta::after {
    right: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .benefits-cta {
        margin-top: 60px;
    }

    .cta-button {
        width: 100%;
        padding: 18px 30px;
        font-size: 1.1em;
    }

    .benefits-cta::before,
    .benefits-cta::after {
        width: 100px;
    }
}

/* Add Animation Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.subjects-section {
    background: #fff;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.subjects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.03) 0%, rgba(131, 111, 255, 0.03) 100%);
    z-index: 0;
}

.subjects-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.subjects-header {
    text-align: center;
    margin-bottom: 60px;
}

.subjects-header h2 {
    font-size: 3.2em;
    color: #2e0267;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #2e0267, #6a5acd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.subjects-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, transparent);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out forwards;
}

.subjects-subtitle {
    font-size: 1.3em;
    color: #666;
    margin-top: 30px;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.subject-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(106, 90, 205, 0.1);
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.6s ease backwards;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.1), rgba(131, 111, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.subject-card:hover {
    transform: translateY(-10px);
    border-color: #6a5acd;
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.15);
}

.subject-card:hover::before {
    opacity: 1;
}

.subject-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
}

.subject-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    animation: pulseIcon 2s infinite;
}

.subject-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(106, 90, 205, 0.5);
    filter: blur(20px);
    border-radius: 20px;
    opacity: 0;
    transition: all 0.5s ease;
}

.subject-card:hover .subject-icon {
    transform: scale(1.1) rotate(5deg);
    animation: none;
}

.subject-card:hover .subject-glow {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.2);
}

.subject-icon i {
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.5s ease;
}

.subject-card:hover .subject-icon i {
    transform: scale(1.1) rotate(-5deg);
}

.subject-card h3 {
    font-size: 1.6em;
    color: #2e0267;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.subject-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.subject-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.subject-tags span {
    background: rgba(106, 90, 205, 0.1);
    color: #6a5acd;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.subject-card:hover .subject-tags span {
    opacity: 1;
    transform: translateY(0);
}

.subject-tags span:nth-child(1) {
    transition-delay: 0.1s;
}

.subject-tags span:nth-child(2) {
    transition-delay: 0.2s;
}

.subject-tags span:nth-child(3) {
    transition-delay: 0.3s;
}

.more-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.explore-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.explore-all-btn i {
    transition: transform 0.3s ease;
}

.explore-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 90, 205, 0.2);
}

.explore-all-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .subjects-section {
        padding: 60px 20px;
    }

    .subjects-header h2 {
        font-size: 2.5em;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .subject-card {
        padding: 25px;
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.whatsapp-card {
    background: linear-gradient(145deg, #ffffff, #f0f8ff);
    border: 2px solid rgba(37, 211, 102, 0.1);
}

.whatsapp-card:hover {
    border-color: #25d366;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.15);
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.whatsapp-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
}

.whatsapp-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.whatsapp-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.25);
}

.whatsapp-contact-btn:hover::before {
    left: 100%;
}

.whatsapp-contact-btn i {
    font-size: 1.3rem;
    transition: transform 0.4s ease;
}

.whatsapp-contact-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

.whatsapp-card .subject-tags span {
    background: rgba(37, 211, 102, 0.1);
    color: #128c7e;
}

/* Enhanced Animations */
.subject-card {
    animation: fadeInUp 0.6s ease backwards;
}

.subject-card:nth-child(2) { animation-delay: 0.1s; }
.subject-card:nth-child(3) { animation-delay: 0.2s; }
.subject-card:nth-child(4) { animation-delay: 0.3s; }
.subject-card:nth-child(5) { animation-delay: 0.4s; }
.subject-card:nth-child(6) { animation-delay: 0.5s; }
.subject-card:nth-child(7) { animation-delay: 0.6s; }
.subject-card:nth-child(8) { animation-delay: 0.7s; }
.subject-card:nth-child(9) { animation-delay: 0.8s; }
.subject-card:nth-child(10) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subject-icon {
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.subject-card:hover .subject-icon {
    animation: none;
    transform: scale(1.1) rotate(5deg);
}

.subjects-header h2 {
    position: relative;
    overflow: hidden;
}

.subjects-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, transparent);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .subject-card {
        padding: 30px;
    }

    .whatsapp-contact-btn {
        width: 100%;
        justify-content: center;
    }

    .subjects-header h2 {
        font-size: 2.2em;
    }
}

.testimonials-section {
    background: #fff;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.03) 0%, rgba(131, 111, 255, 0.03) 100%);
    z-index: 0;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-header h2 {
    font-size: 3.2em;
    color: #2e0267;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #2e0267, #6a5acd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.testimonials-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6a5acd, transparent);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out forwards;
}

.testimonials-subtitle {
    font-size: 1.3em;
    color: #666;
    margin-top: 30px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease backwards;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.4s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.15);
}

.testimonial-header {
    background: #f8f9ff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(106, 90, 205, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.testimonial-card:hover .user-avatar {
    transform: scale(1.1) rotate(5deg);
}

.user-details h4 {
    color: #2e0267;
    font-size: 1.2em;
    margin: 0;
}

.timestamp {
    color: #666;
    font-size: 0.9em;
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4em;
    transition: all 0.3s ease;
}

.testimonial-card:hover .whatsapp-icon {
    transform: scale(1.1) rotate(-10deg);
}

.message-bubble {
    background: #f0f2ff;
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.message-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #f0f2ff;
}

.message-bubble p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    margin-bottom: 10px;
}

.message-time {
    display: block;
    color: #666;
    font-size: 0.9em;
    text-align: right;
}

.testimonial-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-top: 1px solid rgba(106, 90, 205, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(106, 90, 205, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover .stat {
    background: rgba(106, 90, 205, 0.1);
}

.stat i {
    color: #6a5acd;
    font-size: 1.4em;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.testimonial-card:hover .stat i {
    transform: scale(1.2);
}

.stat span {
    color: #666;
    font-size: 0.9em;
    text-align: center;
}

.stat strong {
    color: #2e0267;
    font-size: 1.2em;
    font-weight: 700;
}

.testimonials-cta {
    text-align: center;
    margin-top: 60px;
}

.testimonials-cta p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 20px;
    }

    .testimonials-header h2 {
        font-size: 2.5em;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonial-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .message-bubble {
        margin: 15px;
        padding: 15px;
    }

    .testimonial-stats {
        padding: 15px;
    }
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statsPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Modern Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #2e0267, #1d0146);
    color: #fff;
    padding: 80px 40px 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236a5acd' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.footer-section {
    animation: fadeInUp 0.6s ease backwards;
}

.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-logo h3 {
    font-size: 2.2em;
    font-weight: 800;
    margin: 0 0 15px;
    background: linear-gradient(135deg, #fff, #b0a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover i {
    transform: scale(1.2) rotate(10deg);
}

.footer-section h4 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #6a5acd, transparent);
    transition: width 0.3s ease;
}

.footer-section:hover h4::after {
    width: 60px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #6a5acd;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info ul li i {
    width: 30px;
    height: 30px;
    background: rgba(106, 90, 205, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.contact-info ul li:hover i {
    background: #6a5acd;
    transform: scale(1.1) rotate(10deg);
}

.footer-bottom {
    margin-top: 80px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 30px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #fff;
}

.scroll-to-top {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(106, 90, 205, 0.3);
}

.scroll-to-top i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 20px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .legal-links {
        flex-direction: column;
        gap: 15px;
    }

    .scroll-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
    }
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
    max-width: 700px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: #2d3748;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.feature-text p {
    font-size: 0.95rem;
    margin: 0;
    color: #4a5568;
    line-height: 1.5;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem;
        margin: 2rem 0;
    }

    .feature-item {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .feature-text h4 {
        font-size: 1.1rem;
        margin-bottom: 0.35rem;
    }

    .feature-text p {
        font-size: 0.9rem;
    }
}

/* Add CSS variables at the root level if not already present */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --primary-color-rgb: 99, 102, 241;
}

.email-form {
    transition: opacity 0.3s ease;
}

.email-form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

/* Improved header for mobile */
@media (max-width: 768px) {
    header {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.6em;
        margin-bottom: 5px;
    }
    
    .header-buttons {
        margin: 0 auto;
        justify-content: center;
    }
    
    .header-buttons button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* Hero section responsiveness */
@media (max-width: 1024px) {
    .form-section {
        padding: 50px 30px;
        min-height: auto;
    }
    
    .form-left,
    .form-container {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .form-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }
    
    .form-left,
    .form-container {
        width: 100%;
        padding: 20px;
        margin-top: 0;
    }
    
    .form-left h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .form-left p {
        font-size: 1.5rem;
    }
    
    .feature-list {
        margin-top: 20px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .book-demo-btn, 
    .whatsapp-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Critical Performance Fixes */
html {
    scroll-behavior: smooth;
}

.touch-device {
    -webkit-overflow-scrolling: touch;
}

/* Prevent content shifting and FOUT */
.wf-loading h1, 
.wf-loading h2, 
.wf-loading h3, 
.wf-loading p {
    visibility: hidden;
}

/* Optimize hero section background for mobile */
@media (max-width: 768px) {
    .form-section {
        background-attachment: scroll !important;
    }
}

/* Fix for sticky elements on iOS */
@supports (-webkit-overflow-scrolling: touch) {
    header {
        position: -webkit-sticky;
    }
    
    .scroll-to-top {
        bottom: 60px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .benefits-header h2 {
        font-size: 1.8rem;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .benefit-features li {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .header-buttons button {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .form-left h2 {
        font-size: 1.8rem;
    }
    
    .form-left p {
        font-size: 1.3rem;
    }
    
    .feature-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-text h4 {
        font-size: 1rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
    }
}

/* Fix for high-end mobile devices with larger screens */
@media (min-width: 481px) and (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Print styles for accessibility */
@media print {
    .header-buttons, 
    .button-container, 
    .popup, 
    .demo-popup, 
    .overlay, 
    #demo-overlay,
    .scroll-to-top {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .form-section,
    .benefits-section,
    .subjects-section {
        background: #fff !important;
        color: #000 !important;
        padding: 0.5cm !important;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
}

/* Specific fix for "expert guidance" benefit cards on mobile */
@media (max-width: 768px) {
    .benefits-section {
        padding: 60px 15px;
    }
    
    .benefits-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .benefits-header {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .benefits-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .benefits-subtitle {
        font-size: 1rem;
        margin-bottom: 0;
        padding: 0 10px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
        width: 100%;
        padding: 0 10px;
    }
    
    .benefit-card {
        width: 100%;
        min-height: auto;
        padding: 20px;
        border-radius: 20px;
        margin: 0;
        box-sizing: border-box;
        gap: 12px;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 5px;
    }
    
    .benefit-icon i {
        font-size: 1.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1.3rem;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .benefit-card p {
        font-size: 0.95rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .benefit-features {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .benefit-features li {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .benefits-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 10px;
    }
}

@media (max-width: 480px) {
    .benefits-header h2 {
        font-size: 1.6rem;
    }
    
    .benefits-subtitle {
        font-size: 0.9rem;
    }
    
    .benefit-card {
        padding: 18px;
    }
    
    .benefit-icon {
        width: 45px;
        height: 45px;
    }
    
    .benefit-card h3 {
        font-size: 1.2rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
    }
    
    .benefit-features li {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
}

/* Fix for medium-sized mobile devices */
@media (min-width: 481px) and (max-width: 767px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Fix for browsers that don't fully support grid */
@supports not (display: grid) {
    .benefits-grid {
        display: flex;
        flex-direction: column;
    }
    
    .benefit-card {
        margin-bottom: 20px;
    }
}

/* Mobile optimized benefits grid */
.mobile-optimized {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .mobile-optimized {
        width: calc(100% - 10px);
        margin: 0 auto;
        padding: 0 !important;
    }
    
    .mobile-optimized .benefit-card {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .mobile-optimized .benefit-card:active {
        transform: scale(0.98) !important;
    }
    
    /* Optimize images and icons for mobile */
    .mobile-optimized .benefit-icon i {
        will-change: transform;
    }
    
    /* Ensure proper text wrapping */
    .mobile-optimized h3,
    .mobile-optimized p {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix for iOS Safari rendering */
    .mobile-optimized .benefit-features li {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}