: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;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.hero-section {
    background: linear-gradient(135deg, pink, #224abe);
    color: black;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.language-switcher .btn {
    border-radius: 20px;
    margin: 0 5px;
    transition: all 0.3s;
}

.language-switcher .btn.active {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

[data-bs-theme="dark"] .navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.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); }
}

.newsletter-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem 0;
    border-radius: 10px;
}

[data-bs-theme="dark"] .newsletter-section {
    background: linear-gradient(135deg, #343a40, #212529);
}

@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;
    }
}

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;
}

@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;
    }
}

.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);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#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 textGlow {
    0% {
        text-shadow: 0 0 5px rgba(255,138,0,0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(229,46,113,0.5);
    }
}

@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;
}

#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);
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 0.3em;
    transition: transform 0.3s ease;
}

.dropdown-toggle.expanded::after {
    content: none;
}

#main-content {
    min-height: 70vh;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.content-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .content-section {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.03);
}

.footer-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--bg-color));
    padding: 3rem 0;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
}

* Add to the existing CSS */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex: 1;
}

.footer-section {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #ffde7d;
    text-decoration: underline;
}

/* Dark mode footer */
[data-bs-theme="dark"] .footer-section {
    background: linear-gradient(135deg, #343a40, #212529);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Add these styles to your existing CSS */

/* Ensure the html and body take full height */
html, body {
    height: 100%;
}

/* Create a flex container for the entire page */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Use viewport height as minimum */
}

/* Wrapper for main content that will grow to push footer down */
.page-wrapper {
    flex: 1 0 auto; /* This makes the content area grow */
    padding-bottom: 2rem; /* Add some space before footer */
}

/* Footer styles */
.footer-section {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    color: white;
    padding: 2rem 0;
    margin-top: auto; /* Pushes footer to bottom */
    width: 100%;
}

/* Dark mode footer */
[data-bs-theme="dark"] .footer-section {
    background: linear-gradient(135deg, #343a40, #212529);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer content styling */
.footer-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}



/* LEFTBAR CSS */
