/* topmenubar.css */
:root {
    --primary-color: #4e73df;
    --secondary-color: #f8f9fa;
    --text-color: #212529;
    --bg-color: #ffffff;
}

[data-bs-theme="dark"] {
    --primary-color: #6610f2;
    --secondary-color: #343a40;
    --text-color: #f8f9fa;
    --bg-color: #212529;
}

/* Navigation Bar Styles */
nav.navbar {
    background: linear-gradient(135deg, #4e73df, #224abe);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] nav.navbar {
    background: linear-gradient(135deg, #343a40, #212529);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar-brand:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 700;
    padding: 0.8rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    color: yellow;
}

.nav-link:hover {
    background: violet;
    color: yellow;
    transform: translateY(-2px);
}

.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
    left: 0;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    animation: fadeIn 0.3s ease-in-out;
    background: linear-gradient(135deg, #ffe259, #ffa751);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.75rem 0;
    color: #222;
}

.dropdown-item {
    color: #222;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, #4e73df, #224abe);
    color: white !important;
    transform: translateX(5px);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #4e73df;
    color: white;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: orange;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: linear-gradient(90deg, #29c9ff, #005377);
    color: white !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Brand Logo Styles */
#brandLogo {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    will-change: transform;
}

#brandLogo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

#brandLogo:hover::before {
    left: 100%;
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transform-origin: center;
    transition: all 0.3s ease;
    display: inline-block;
}

.logo-text {
    display: inline-block;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, #7B2CBF 0%, #FF00FF 50%, #3C096C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    text-shadow: 
        0 0 8px rgba(123, 44, 191, 0.5),
        0 0 15px rgba(255, 0, 255, 0.3);
    animation: 
        flashAnimation 4s infinite alternate,
        gradientFlow 6s linear infinite;
    filter: brightness(1.2);
}

@keyframes flashAnimation {
    0%, 100% {
        opacity: 0.9;
        text-shadow: 
            0 0 8px rgba(123, 44, 191, 0.5),
            0 0 15px rgba(255, 0, 255, 0.3);
    }
    25% {
        opacity: 1;
        text-shadow: 
            0 0 15px rgba(255, 0, 255, 0.8),
            0 0 30px rgba(255, 0, 255, 0.6);
    }
    50% {
        opacity: 0.8;
        text-shadow: 
            0 0 5px rgba(123, 44, 191, 0.3),
            0 0 10px rgba(255, 0, 255, 0.2);
    }
    75% {
        opacity: 1;
        text-shadow: 
            0 0 20px rgba(255, 0, 255, 1),
            0 0 40px rgba(255, 0, 255, 0.8);
    }
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

[data-bs-theme="dark"] .logo-main {
    filter: brightness(1.4);
    animation: 
        flashAnimation 1.2s infinite alternate,
        gradientFlow 5s linear infinite;
    background: linear-gradient(
        135deg,
        #ff9a00 0%,
        #ff6b6b 50%,
        #ff2d7a 100%
    );
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        0 0 8px rgba(255,154,0,0.5);
}

.logo-sub {
    font-size: 1.2rem;
    color: #a6e3ff;
    font-weight: 600;
    display: block;
    letter-spacing: 1px;
    animation: subTextFloat 3s infinite ease-in-out;
}

@keyframes subTextFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

#brandLogo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    color: #ffde7d;
    text-shadow: 0 0 15px rgba(255,222,125,0.7);
}

[data-bs-theme="dark"] .logo-sub {
    color: #ffde7d;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: orange;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#scrollToTopBtn.visible {
    opacity: 1;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background: #3a56b4;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        margin-top: 0;
        border: none;
        box-shadow: none;
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
        display: block !important;
        width: calc(100% - 2rem);
        margin-left: 1rem;
        padding: 0;
        background-color: transparent;
    }
    
    .dropdown-menu.show {
        max-height: 500px;
        padding: 0.5rem 0;
        background-color: rgba(0,0,0,0.05);
    }
    
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    .dropdown-item {
        padding: 0.75rem 2rem !important;
        margin: 0.25rem 0;
        border-radius: 4px;
        transition: all 0.2s;
    }
    
    .dropdown-item:hover {
        background-color: rgba(0,0,0,0.1);
    }
    
    .nav-link {
        margin: 0.2rem 0;
    }
    
    .navbar-collapse {
        padding-bottom: 1rem;
    }
    
    .tech-dropdown, .gk-dropdown {
        background: var(--bg-color);
    }
    
    .gk-dropdown .dropdown-item {
        color: var(--text-color) !important;
    }
}

/* Desktop Hover Effects */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    .navbar-nav .nav-item {
        position: relative;
    }
    
    .dropdown-menu {
        margin-top: 0;
        border: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .dropdown-menu li {
        position: relative;
    }
    
    .dropdown-menu .dropdown-submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: 0;
    }
    
    .dropdown-menu .dropdown-submenu-left {
        right: 100%;
        left: auto;
    }
    
    .dropdown-menu > li:hover > .dropdown-submenu {
        display: block;
    }
}

/* Language Switcher */
.lang-switcher {
    transition: all 0.3s;
    border-radius: 20px;
    padding: 0.3rem 1rem;
}

.lang-switcher:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* ============ FOOTER STYLES ============== */
.footer-section {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #ffde7d;
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .footer-section {
    background: linear-gradient(135deg, #343a40, #212529);
    color: #ffde7d;
}

.footer-content {
    padding: 0 1rem;
}

.footer-main-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-sub-text {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.footer-heart {
    color: #ff6b6b;
    animation: heartbeat 2s infinite;
    margin: 0 0.25rem;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

/* Ensure body has proper layout for footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-section {
        padding: 1rem 0;
    }
    
    .footer-main-text {
        font-size: 1rem;
    }
    
    .footer-sub-text {
        font-size: 0.8rem;
    }
}


/* ============ NAVIGATION BUTTONS STYLES ============== */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

[data-bs-theme="dark"] .navigation-buttons {
    border-color: #495057;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-btn-prev {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.nav-btn-next {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: white;
    margin-left: auto;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.nav-btn-prev:hover {
    background: linear-gradient(135deg, #5a6268, #3d4348);
    border-color: #495057;
}

.nav-btn-next:hover {
    background: linear-gradient(135deg, #3a56b4, #1c3c8c);
    border-color: #224abe;
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn-prev:hover i {
    transform: translateX(-3px);
}

.nav-btn-next:hover i {
    transform: translateX(3px);
}

.nav-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d !important;
}

.nav-btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive navigation buttons */
@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-btn-next {
        margin-left: 0;
    }
}

/* Top navigation buttons (below breadcrumb) */
.navigation-top {
    margin-bottom: 2rem;
}

/* Bottom navigation buttons (above footer) */
.navigation-bottom {
    margin-top: 3rem;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}