/* Global Styles */
html {
    scroll-behavior: smooth;
}

:root {
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;
    --font-sans: 'Inter', sans-serif;
}

/* Section Styles */
.imapct-section {
    background-image: url('https://res.cloudinary.com/dv0ekhhm3/image/upload/v1739702757/impact_r2eqd7.png');
    background-size: cover;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(50px);
    opacity: 30%;
    z-index: -1; /* Ensure it stays behind other elements */
}

/* Background Color Overrides */
.bg-blue-700, .bg-blue-600 {
    background-color: #05F283 !important;
}

.bg-blue-700 {
    background-color: #05F283 !important; /* color1 */
}

.bg-blue-800 {
    background-color: #ffc107 !important; /* color2 */
}

/* Text Color Overrides */
.text-blue-700, .md\:hover\:text-blue-700:hover {
    color: #05F283 !important; /* color1 */
}

.text-blue-800 {
    color: #ffc107 !important; /* color2 */
}

/* Responsive Background Color Overrides */
.md\:bg-blue-700 {
    background-color: #05F283 !important; /* color1 */
}

.md\:bg-blue-800 {
    background-color: #ffc107 !important; /* color2 */
}

/* Responsive Text Color Overrides */
.md\:text-blue-700 {
    color: #05F283 !important; /* color1 */
}

.md\:text-blue-800 {
    color: #ffc107 !important; /* color2 */
}

/* Decoration Color Override */
.decoration-blue-400 {
    text-decoration-color: #05F283 !important; /* color1 */
}

/* Button Styles */
.btnapply {
    color: #002B56 !important;
    font-weight: bold !important;
}

.btnapply:hover {
    background-color: #ffc107 !important; /* color2 */
}

/* Transition Styles */
* {
    transition: all 0.4s ease !important;
}

#scrollToTopBtn {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Loader Styles */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #05F283;
    width: 60px;
    height: 60px;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

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

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Optional: Add a slight upward movement */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the animation to sections */
.fade-in {
    opacity: 0; /* Start with the section invisible */
}

/* Class to trigger the animation */
.fade-in.visible {
    animation: fadeIn 1s ease-out forwards;
}