/* Enhanced Visual Styling for Map Mysteries Website */

/* Targeted transitions only — avoid global * selector for performance */
a, button, .button, .button_1, .button_2,
.nav-link, .blog_pg1l1, .spec_1i, .testim_1i1,
.form-control, .accordion-button, img {
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Enhanced Gradient Backgrounds */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(18, 88, 117, 0.9) 0%, rgba(255, 115, 80, 0.9) 100%);
}

/* Improved Card Hover Effects */
.blog_pg1l1:hover,
.course_h2im:hover,
.spec_1i:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog_pg1l1,
.course_h2im,
.spec_1i {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced Image Overlays */
.grid figure img {
    filter: brightness(0.95);
    transition: all 0.5s ease;
}

.grid figure:hover img {
    filter: brightness(1.1);
    transform: scale(1.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #125875 0%, #ff7350 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Buttons with Glow Effect */
.button,
.button_1,
.button_2 {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 115, 80, 0.3);
    transition: all 0.3s ease;
}

.button:hover,
.button_1:hover,
.button_2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 115, 80, 0.5);
}

.button::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;
}

.button:hover::before {
    left: 100%;
}

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff7350;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Animated Icons */
.fa {
    transition: transform 0.3s ease;
}

.button:hover .fa,
.spec_1i:hover .fa {
    transform: translateX(5px);
}

/* Icon pulse removed for cleaner professional look */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Enhanced Carousel */
.carousel-item img {
    filter: brightness(0.8);
    transition: filter 0.5s ease;
}

.carousel-item.active img {
    filter: brightness(0.9);
}

/* Carousel caption styling handled by professional-ui.css */

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Blog Cards */
.blog_pg1l1i {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
}

.blog_pg1l1i h3 {
    transition: color 0.3s ease;
}

.blog_pg1l1:hover h3 a {
    color: #ff7350;
}

/* Improved Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

/* Heading shadows handled per-context in professional-ui.css */

/* Enhanced Section Backgrounds */
#about_h {
    background: linear-gradient(135deg, #eff7ff 0%, #ffffff 100%);
}

/* Parallax Effect for Images */
.parallax-img {
    transition: transform 0.3s ease;
}

.parallax-img:hover {
    transform: scale(1.05);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced Footer Social Icons */
.social-network li a {
    transition: all 0.3s ease;
}

.social-network li a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 115, 80, 0.4);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Borders */
.border_1 {
    border: 1px solid rgba(245, 226, 222, 0.5);
    transition: border-color 0.3s ease;
}

.border_1:hover {
    border-color: #ff7350;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .font_50 {
        font-size: 2.5rem;
    }
    
    .font_60 {
        font-size: 3rem;
    }
}

/* Enhanced PDF Viewer Buttons */
.btn-primary.bg_oran {
    background: linear-gradient(135deg, #ff7350 0%, #ff9376 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 115, 80, 0.3);
}

.btn-primary.bg_oran:hover {
    background: linear-gradient(135deg, #ff9376 0%, #ff7350 100%);
    box-shadow: 0 6px 20px rgba(255, 115, 80, 0.5);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid #ff7350;
    color: #ff7350;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #ff7350;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 115, 80, 0.3);
}

/* Enhanced Sticky Navbar */
.sticky {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Beautiful Pagination */
.pages ul li a {
    transition: all 0.3s ease;
    border-radius: 50%;
}

.pages ul li a:hover,
.pages ul li a.act {
    background: linear-gradient(135deg, #ff7350 0%, #ff9376 100%);
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 115, 80, 0.4);
}

/* Enhanced Search Box */
.input-group:focus-within {
    box-shadow: 0 4px 15px rgba(18, 88, 117, 0.2);
}

/* Continent Blog Entry Enhancement */
.blog_pg1l1 {
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.blog_pg1l1 figure {
    overflow: hidden;
}

/* Beautiful Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #125875 0%, #ff7350 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff7350 0%, #125875 100%);
}

/* Enhanced Footer Styling */
.footer-modern {
    position: relative;
}

.footer-links li a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #ff7350 !important;
    transform: translateX(5px);
}

.footer-links li a:hover .fa-angle-right,
.footer-links li a:hover .fa-globe {
    transform: rotate(360deg);
    display: inline-block;
}

.footer-links li a .fa-angle-right,
.footer-links li a .fa-globe {
    transition: transform 0.5s ease;
}

/* Footer Social Icons Enhanced */
.footer_1i .social-network li {
    margin: 0;
}

.footer_1i .social-network li a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer_1i .social-network li a:hover {
    background: #ff7350;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 115, 80, 0.5);
}

.footer_1i .social-network li a i {
    color: white;
    font-size: 16px;
}

/* Footer Contact Icons Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Footer Bottom Enhanced */
#footer_b a:hover {
    border-bottom-color: transparent !important;
    opacity: 0.8;
}

/* Back to Top Button Enhancement */
#footer_b .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
    background: white !important;
}

#footer_b .btn-light:hover .fa-arrow-up {
    animation: bounce 0.6s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Heart Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Footer Responsive Improvements */
@media (max-width: 768px) {
    .footer_1i h3 {
        font-size: 18px !important;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        display: inline-block;
        margin: 0 5px;
    }
    
    .footer_1riri {
        justify-content: center;
    }
}

/* Footer Heading Underline Effect */
.footer_1i h3 {
    position: relative;
    padding-bottom: 10px;
}

.footer_1i h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff7350;
    transition: width 0.5s ease;
}

.footer_1i:hover h3::after {
    width: 60px;
}

/* Map Mysteries Logo Enhancement */
.footer_1i .fa-graduation-cap {
    animation: pulse 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 115, 80, 0.4));
}

