/* Premium Additional Styles for NioSpark */

/* Page Header Premium Styles */
.page-header {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    padding: 80px 0 !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 3rem;
}

/* Section Backgrounds with Patterns */
.bg-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
}

section {
    position: relative;
    overflow: hidden;
}

/* Floating Shapes Background */
section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    z-index: 0;
    animation: float 15s ease-in-out infinite reverse;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Premium Blog Cards */
.blog-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hover-lift:hover .blog-image {
    transform: scale(1.1);
}

.card-img-top {
    transition: transform 0.6s ease;
}

.hover-lift:hover .card-img-top {
    transform: scale(1.08);
}

/* Event Cards Premium */
.event-card {
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.event-image {
    height: 250px;
    object-fit: cover;
    position: relative;
}

.event-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.event-badge .badge {
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Counselling Cards Premium */
.counselling-card {
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(26, 188, 156, 0.1);
    position: relative;
}

.counselling-icon {
    background: var(--ocean-gradient);
    width: 90px;
    height: 90px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.counselling-icon i {
    color: white !important;
}

/* Testimonial Cards Premium */
.testimonial-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: var(--box-shadow-lg);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 150px;
    font-family: 'Playfair Display', serif;
    color: rgba(102, 126, 234, 0.05);
    z-index: 0;
}

.testimonial-card .card-body {
    position: relative;
    z-index: 1;
}

/* Stats Cards Premium */
.stat-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--box-shadow-lg);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.stat-icon {
    font-size: 4rem;
    opacity: 0.2;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Dashboard Cards Premium */
.dashboard-card {
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

/* Profile Header Premium */
.profile-header {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.profile-avatar {
    border: 6px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

/* Auth Cards Premium */
.auth-card {
    border-radius: 30px;
    box-shadow: var(--box-shadow-xl);
    border: 1px solid rgba(102, 126, 234, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

/* Form Controls Premium */
.form-control,
.form-select {
    border-radius: 15px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* Badges Premium */
.badge {
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge.bg-warning {
    background: var(--gold-gradient) !important;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
}

.badge.bg-danger {
    background: var(--secondary-gradient) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%) !important;
}

.badge.bg-info {
    background: var(--ocean-gradient) !important;
}

/* Alert Boxes Premium */
.alert {
    border-radius: 20px;
    border: none;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(132, 250, 176, 0.2) 0%, rgba(143, 211, 244, 0.2) 100%);
    border-left: 4px solid #84fab0;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2) 0%, rgba(245, 87, 108, 0.2) 100%);
    border-left: 4px solid #f5576c;
}

.alert-info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    border-left: 4px solid #4facfe;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(246, 211, 101, 0.2) 0%, rgba(253, 160, 133, 0.2) 100%);
    border-left: 4px solid #f6d365;
}

/* Premium Badge Icons */
.premium-badge {
    background: var(--gold-gradient);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(246, 211, 101, 0.4);
    animation: shine 3s ease infinite;
}

@keyframes shine {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(246, 211, 101, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(246, 211, 101, 0.6);
    }
}

/* Footer Premium */
footer {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Scroll to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    color: white !important;
    font-size: 18px;
    line-height: 50px;
    text-align: center;
    /* Hidden by default, jQuery will fadeIn */
}

#back-to-top i {
    color: white;
    vertical-align: middle;
}

#back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    color: white !important;
}

#back-to-top:active {
    transform: translateY(-1px) scale(1.02);
}

#back-to-top:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
}

/* Responsive positioning - avoid overlap with mobile nav/elements */
@media (max-width: 992px) {
    #back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
        line-height: 45px;
    }
}

@media (max-width: 576px) {
    #back-to-top {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
        line-height: 40px;
    }
}

/* Loading States */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(102, 126, 234, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Section Titles Premium */
section h2, section h3 {
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Premium Hover Effects for Images */
img {
    transition: all 0.4s ease;
}

.hover-lift img {
    filter: brightness(0.95);
}

.hover-lift:hover img {
    filter: brightness(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Premium Pricing Cards */
.pricing-card {
    transition: all 0.5s ease;
}

.pricing-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.4);
    z-index: 10;
}

/* Ripple Effect for Buttons */
button, .btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Glowing Effect on Focus */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3) !important;
}

/* Premium Underline Animation */
.premium-underline {
    position: relative;
    display: inline-block;
}

.premium-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.premium-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Particle Background Animation */
@keyframes particles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(360deg);
        opacity: 0;
    }
}

/* Premium Tooltip */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

.tooltip-inner {
    background: var(--primary-gradient);
    border-radius: 15px;
    padding: 10px 15px;
    font-weight: 500;
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    margin: 0 3px;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Premium Divider */
.premium-divider {
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin: 40px auto;
    max-width: 100px;
}

/* Glow Effect on Hover */
.glow-on-hover {
    transition: all 0.4s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Text Gradient Animation */
@keyframes gradient-text-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-text-animation 4s ease infinite;
}

/* Premium Box with Border Gradient */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 25px;
    padding: 30px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 3px;
    background: var(--primary-gradient);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.4s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .carousel-content h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    section::before,
    section::after {
        width: 300px;
        height: 300px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
}

