/* Component-specific styles for NAV YUG */

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon.small {
    width: 32px;
    height: 32px;
}

.rising-sun {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-circle {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    animation: sunGlow 3s ease-in-out infinite alternate;
}

.logo-icon.small .sun-circle {
    width: 20px;
    height: 20px;
}

.sun-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.sun-rays::before,
.sun-rays::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #fbbf24 10deg,
        transparent 20deg,
        transparent 40deg,
        #f59e0b 50deg,
        transparent 60deg,
        transparent 80deg,
        #fbbf24 90deg,
        transparent 100deg,
        transparent 120deg,
        #d97706 130deg,
        transparent 140deg,
        transparent 160deg,
        #fbbf24 170deg,
        transparent 180deg,
        transparent 200deg,
        #f59e0b 210deg,
        transparent 220deg,
        transparent 240deg,
        #fbbf24 250deg,
        transparent 260deg,
        transparent 280deg,
        #d97706 290deg,
        transparent 300deg,
        transparent 320deg,
        #fbbf24 330deg,
        transparent 340deg,
        transparent 360deg
    );
    border-radius: 50%;
    animation: rotateRays 20s linear infinite;
}

.sun-rays::after {
    animation: rotateRays 15s linear infinite reverse;
    opacity: 0.7;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.footer-logo {
    display: flex;
    align-items: center;
}

@keyframes sunGlow {
    0% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.9);
        transform: scale(1.05);
    }
}

@keyframes rotateRays {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Navbar brand hover effect */
.navbar-brand:hover .sun-circle {
    animation-duration: 1s;
}

.navbar-brand:hover .sun-rays::before,
.navbar-brand:hover .sun-rays::after {
    animation-duration: 5s;
}

/* Enhanced button styles */
.btn-primary {
    background: var(--gradient-rainbow);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    background: var(--gradient-cosmic);
    box-shadow: var(--shadow-large);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline-primary {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--gradient-rainbow) border-box;
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.btn-outline-primary:hover {
    background: var(--gradient-rainbow);
    color: white;
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 12px 32px;
    font-size: 1.1rem;
}

/* Card hover effects */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 20px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.05;
}

/* Enhanced form controls */
.form-control {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, var(--border-color), rgba(99, 102, 241, 0.2)) border-box;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: linear-gradient(white, white) padding-box, var(--gradient-primary) border-box;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    background: white;
    transform: translateY(-1px);
}

/* Loading animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Pulse animation for impact numbers */
.impact-number {
    position: relative;
}

.impact-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.4);
    }
}

/* Enhanced carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-color);
}

.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

/* Floating elements */
.floating-element {
    animation: float 3s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation-delay: -1s;
}

.floating-element:nth-child(3) {
    animation-delay: -2s;
}

/* Gradient text animations */
.animated-gradient {
    background: linear-gradient(-45deg, #6366f1, #8b5cf6, #ec4899, #06b6d4, #10b981, #f59e0b);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced tooltips */
[data-bs-toggle="tooltip"] {
    position: relative;
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Badge styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 20px;
    padding: 8px 16px;
    position: relative;
    overflow: hidden;
}

.badge-primary {
    background: var(--gradient-rainbow);
    color: white;
}

.badge-secondary {
    background: var(--gradient-secondary);
    color: white;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.alert-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.1));
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dropdown styles */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
}

/* Tab styles */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    background: none;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
}

/* Accordion styles */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
}

.accordion-button {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid transparent;
    background-clip: padding-box;
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

/* Table styles */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.table thead th {
    background: var(--background-color);
    border: none;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem;
}

.table tbody td {
    border: none;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

/* Spinner styles */
.spinner-border {
    color: var(--gradient-primary);
}

.spinner-grow {
    color: var(--gradient-primary);
}

/* New React-style components */
.gradient-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.gradient-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.rainbow-text {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.cosmic-text {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-gradient {
    position: relative;
    overflow: hidden;
}

.floating-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #6366f1, #8b5cf6, #ec4899, #06b6d4, #10b981, #f59e0b, #6366f1);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

.floating-gradient::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--surface-color);
    border-radius: inherit;
    z-index: -1;
}

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

/* Mission Section Styles */
.mission-category {
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mission-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.mission-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    transition: all 0.3s ease;
}

.mission-image {
    width: 90%;
    height: 90%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.mission-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mission-image-container:hover .mission-overlay {
    transform: translateY(0);
    opacity: 1;
}

.mission-image-container:hover .mission-image {
    transform: scale(1.1);
}

.mission-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.education-icon {
    background: var(--gradient-primary);
}

.health-icon {
    background: var(--gradient-success);
}

.wealth-icon {
    background: var(--gradient-warning);
}

.community-icon {
    background: var(--gradient-pink);
}

.environment-icon {
    background: var(--gradient-secondary);
}

.mission-title {
    font-size: 1.5rem;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.mission-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mission-subcategories {
    space-y: 1.5rem;
}

.subcategory-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.subcategory-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.subcategory-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.subcategory-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.course-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.course-tag:nth-child(2n) {
    background: var(--gradient-secondary);
}

.course-tag:nth-child(3n) {
    background: var(--gradient-success);
}

.course-tag:nth-child(4n) {
    background: var(--gradient-warning);
}

.course-tag:nth-child(5n) {
    background: var(--gradient-pink);
}

/* Additional Programs */
.additional-programs {
    margin-top: 2rem;
}

.program-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.program-item .mission-image-container {
    height: 200px;
    margin-bottom: 1rem;
}

.program-item .mission-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1rem;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    opacity: 1;
}

.program-item .mission-overlay h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

/* Enhanced overlay for better text visibility */
.program-item .mission-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    pointer-events: none;
    z-index: 1;
}

.program-item .mission-overlay {
    z-index: 2;
    background: none;
    padding: 1.5rem 1rem;
}

/* Ensure text is always visible */
.additional-programs .mission-overlay h5 {
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.program-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.program-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.program-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Mission category hover effects */
.mission-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 20px;
}

.mission-category:nth-child(1)::before {
    background: var(--gradient-primary);
}

.mission-category:nth-child(2)::before {
    background: var(--gradient-success);
}

.mission-category:nth-child(3)::before {
    background: var(--gradient-warning);
}

.mission-category:nth-child(4)::before {
    background: var(--gradient-pink);
}

.mission-category:hover::before {
    opacity: 0.05;
}

.mission-category > * {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments for mission section */
@media (max-width: 767.98px) {
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
    }
    
    .mission-category {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .mission-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .course-tags {
        justify-content: center;
    }
    
    .program-item {
        margin-bottom: 1rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon.small {
        width: 28px;
        height: 28px;
    }
}

/* Medium screen adjustments */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .service-card {
        padding: 1.6rem;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}