/* EduMall - Custom CSS */

/* Navbar Logo */
.navbar-brand img,
.logo-img {
    transition: all 0.3s ease;
    /* border: none !important; */
    /* background: transparent !important; */
    object-fit: contain;
    /* outline: none; */
    /* box-shadow: none; */
    /* width: 60px; */
    height: 85px;
    display: block;
}

/* .navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(65, 139, 186, 0.3);
} */

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

/* Footer Logo */
/* footer h5 img { */
    /* width: 150px; */
    /* height: 70px;
    object-fit: contain;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    display: block;
}

footer h5 img:hover {
    transform: scale(1.05);
} */

/* Ensure footer logo displays properly */
/* footer .d-flex img {
   
    height: 85px !important;
    object-fit: contain !important;
    border: none !important;
    background: transparent !important;
} */

/* Custom Carousel Controls */
.custom-carousel-control {
    width: 45px !important;
    height: 45px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 10px rgba(65, 139, 186, 0.3) !important;
    transition: all 0.3s ease !important;
    opacity: 0.9 !important;
}

.custom-carousel-control:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(65, 139, 186, 0.4) !important;
    opacity: 1 !important;
}

.carousel-control-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.carousel-control-content i {
    font-size: 1.1rem;
    margin-bottom: 1px;
}

.control-text {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-control-prev {
    left: -30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.carousel-control-next {
    right: -30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Root Variables */
:root {
    /* --primary-color: #0d6efd; */
    --primary-color: #418BBA;
    --primary-dark: #2d6a8a;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --font-family: 'Inter', sans-serif;
    --border-radius: 0.5rem;
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
}

.display-5 {
    font-size: 3rem;
    font-weight: 800;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-shapes {
    position: relative;
    height: 400px;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    margin: 0 auto;
}

/* Demo Cards */
.demo-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.demo-placeholder {
    height: 200px;
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.demo-placeholder::before {
    content: 'Preview';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-weight: 500;
}

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.dashboard-placeholder {
    height: 150px;
    background: linear-gradient(45deg, #f8fafc, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dashboard-placeholder::before {
    content: 'Dashboard Preview';
    color: var(--text-muted);
    font-weight: 500;
}

/* Layout Cards */
.layout-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layout-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.layout-placeholder {
    height: 120px;
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.layout-placeholder::before {
    content: 'Layout Preview';
    color: var(--text-muted);
    font-weight: 500;
}

/* Plugin Cards */
.plugin-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.plugin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.plugin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    margin: 0 auto;
}

/* Core Feature Cards */
.core-feature-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.core-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-light {
    background: #ffffff;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-light {
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Background Colors */
.bg-light {
    background-color: var(--light-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: #000000 !important;
}

/* Shadows */
.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.shadow {
    box-shadow: var(--box-shadow-lg) !important;
}

/* Border Radius */
.rounded-3 {
    border-radius: 1rem !important;
}

/* Spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f0e0e9c;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-shapes {
        height: 250px;
    }
    
    .shape-1 {
        width: 120px;
        height: 120px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 80px;
        height: 80px;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
    transition: all 0.6s ease;
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.bounce-in {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.flip-in {
    opacity: 0;
    transform: perspective(400px) rotateY(90deg);
    transition: all 0.6s ease;
}

.flip-in.visible {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.6s ease;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.6s ease;
}

.slide-down.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Pulse animation for buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

/* Glow effect */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
}

.glow-animation {
    animation: glow 2s ease-in-out infinite;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus States */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Image Loading Styles */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Image hover effects */
.demo-placeholder img,
.dashboard-placeholder img,
.layout-placeholder img,
.course-placeholder img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.demo-placeholder:hover img,
.dashboard-placeholder:hover img,
.layout-placeholder:hover img,
.course-placeholder:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Refresh button styles */
.image-refresh-btn {
    animation: pulse 2s infinite;
}

.image-refresh-btn:hover {
    animation: none;
    transform: scale(1.05);
}

/* Image placeholder styles */
.demo-placeholder,
.dashboard-placeholder,
.layout-placeholder,
.course-placeholder {
    position: relative;
    overflow: hidden;
}

.demo-placeholder::before,
.dashboard-placeholder::before,
.layout-placeholder::before,
.course-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Print Styles */
@media print {
    .header,
    .btn,
    .social-links,
    .image-refresh-btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none !important;
    }
}

/* ========================================
   MAGNIMENTORS FOOTER STYLES - DEPLOYMENT SAFE
   ======================================== */

/* Footer Container - Maximum Specificity */
footer.magnimentors-footer,
.magnimentors-footer {
    background-color: #d9d9d99a !important;
    color: #ffffff !important;
    padding: 3rem 0 !important;
}

/* Footer Logo */
.footer-logo {
    height: 85px;
    object-fit: contain;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    display: block;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Footer Headings - Maximum Specificity */
footer .footer-heading,
.footer-heading {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Footer Links - Maximum Specificity */
footer .footer-link,
.footer-link {
    color: #01060a !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.footer-link:hover {
    color: #0d6efd !important;
    padding-left: 5px;
    text-decoration: none;
}

/* Footer Text - Maximum Specificity */
footer .footer-text,
.footer-text {
    color: #00060a !important;
}

/* Footer Icons - Maximum Specificity */
footer .footer-icon,
.footer-icon {
    color: #05236a !important;
    font-size: 1.1rem !important;
}

/* Footer Divider */
.footer-divider {
    border-color: rgba(108, 117, 125, 0.3) !important;
    margin: 2rem 0;
}

/* Social Icons - Base Styles */
.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 0.75rem;
}

.social-icon:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* WhatsApp Icon */
.social-icon.whatsapp-icon {
    color: #25D366 !important;
    background-color: rgba(37, 211, 102, 0.1);
}

.social-icon.whatsapp-icon:hover {
    background-color: #25D366 !important;
    color: #ffffff !important;
}

/* Email Icon */
.social-icon.email-icon {
    color: #D44638 !important;
    background-color: rgba(212, 70, 56, 0.1);
}

.social-icon.email-icon:hover {
    background-color: #D44638 !important;
    color: #ffffff !important;
}

/* Facebook Icon */
.social-icon.facebook-icon {
    color: #1877f2 !important;
    background-color: rgba(24, 119, 242, 0.1);
}

.social-icon.facebook-icon:hover {
    background-color: #1877f2 !important;
    color: #ffffff !important;
}

/* Instagram Icon */
.social-icon.instagram-icon {
    color: #E1306C !important;
    background-color: rgba(225, 48, 108, 0.1);
}

.social-icon.instagram-icon:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #ffffff !important;
}

/* LinkedIn Icon */
.social-icon.linkedin-icon {
    color: #0077B5 !important;
    background-color: rgba(0, 119, 181, 0.1);
}

.social-icon.linkedin-icon:hover {
    background-color: #0077B5 !important;
    color: #ffffff !important;
}

/* Responsive Footer Styles */
@media (max-width: 768px) {
    .magnimentors-footer {
        padding: 2rem 0;
    }
    
    .footer-logo {
        height: 60px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin-right: 0.5rem;
    }
}