/* ===================================
   Logo Header Styling - Tech Professional
   =================================== */

/* Import Tech Font - Orbitron */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* Logo Container */
.header-left .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 20px !important;
    padding-right: 15px !important;
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
}

/* Logo Link - Simple Layout (Logo only, no text) */
.logo-link,
.logo a,
.header-left .logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    width: auto !important;
    height: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}

/* Logo Icon - Bigger size since no text - SVG Color Styling */
.logo-icon,
.logo img:not(.footer-logo),
.header-left .logo img,
.rn-header .logo img {
    width: 220px !important;
    height: auto !important;
    max-height: 70px !important;
    max-width: 220px !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
    display: block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* SVG Logo - Natural gradient colors from SVG file */
.logo-icon[src$=".svg"],
.logo img[src$=".svg"]:not(.footer-logo),
.header-left .logo img[src$=".svg"],
.rn-header .logo img[src$=".svg"] {
    filter: none !important;
    /* Logo uses built-in gradient: dark blue (#1e40af) → tech blue (#2563eb) → light blue (#60a5fa) */
}

/* SVG Logo Hover - Slight brightness increase */
.logo-link:hover .logo-icon[src$=".svg"],
.logo a:hover img[src$=".svg"]:not(.footer-logo),
.header-left .logo a:hover img[src$=".svg"] {
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(37, 99, 235, 0.5)) !important;
    transform: scale(1.05) !important;
}

/* Logo Hover Effects - For non-SVG images */
.logo-link:hover .logo-icon:not([src$=".svg"]),
.logo a:hover img:not([src$=".svg"]) {
    transform: scale(1.05) !important;
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(37, 99, 235, 0.4)) !important;
}

.logo-link:hover .logo-icon,
.logo a:hover img,
.logo a:hover .logo-icon {
    transform: scale(1.08) !important;
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(45, 55, 72, 0.4)) !important;
}

/* Logo on Sticky Header - Slightly smaller */
.sticky .header-wrapper .logo-icon,
.sticky .header-wrapper .logo img,
.sticky .rn-header .logo img {
    width: 190px !important;
    height: auto !important;
    max-height: 60px !important;
    max-width: 190px !important;
}

/* SVG Logo on Sticky Header - Maintain color */
.sticky .header-wrapper .logo-icon[src$=".svg"],
.sticky .header-wrapper .logo img[src$=".svg"] {
    filter: none !important;
    /* Shows natural gradient from SVG */
}

.sticky .header-wrapper .logo-text,
.sticky .header-wrapper .logo a span {
    font-size: 15px !important;
}

/* Mobile Logo Adjustments */
@media (max-width: 991px) {
    .header-left {
        padding-left: 15px !important;
        padding-right: 5px !important;
    }
    
    .logo-icon,
    .logo img,
    .header-left .logo img {
        width: 180px !important;
        height: auto !important;
        max-height: 60px !important;
    }
    
    .sticky .header-wrapper .logo-icon,
    .sticky .header-wrapper .logo img {
        width: 160px !important;
        height: auto !important;
        max-height: 55px !important;
    }
}

@media (max-width: 767px) {
    .header-left {
        padding-left: 10px !important;
        padding-right: 5px !important;
    }
    
    .logo-icon,
    .logo img,
    .header-left .logo img {
        width: 150px !important;
        height: auto !important;
        max-height: 55px !important;
    }
}

@media (max-width: 575px) {
    .header-left {
        padding-left: 8px !important;
        padding-right: 3px !important;
    }
    
    .logo-icon,
    .logo img,
    .header-left .logo img {
        width: 130px !important;
        height: auto !important;
        max-height: 50px !important;
    }
    
    .sticky .header-wrapper .logo-icon,
    .sticky .header-wrapper .logo img {
        width: 120px !important;
        height: auto !important;
        max-height: 45px !important;
    }
}

/* Header Alignment Fix - Proper spacing */
.header-wrapper {
    padding: 15px 0 !important;
    align-items: center !important;
    min-height: 80px !important;
    display: flex !important;
}

.sticky .header-wrapper {
    padding: 10px 0 !important;
    min-height: 70px !important;
}

/* Ensure proper vertical alignment */
.header-wrapper.row {
    margin: 0 !important;
    align-items: center !important;
}

/* Ensure logo column has proper width - Allow more space for larger logo */
.header-wrapper .col-lg-3 {
    display: flex !important;
    align-items: center !important;
    min-height: 100% !important;
    flex: 0 0 auto !important;
    max-width: none !important;
    overflow: visible !important;
    padding-right: 20px !important;
    min-width: fit-content !important;
}

.header-wrapper .col-lg-3 .header-left {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    min-width: fit-content !important;
}

/* Prevent any parent containers from cutting off logo */
.rn-header,
.header-wrapper,
.header-wrapper .row {
    overflow: visible !important;
}

.header-wrapper .row {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Override Bootstrap column constraints */
.header-wrapper .col-lg-3,
.header-wrapper [class*="col-"] {
    overflow: visible !important;
    max-width: none !important;
}

/* Ensure logo image is never clipped */
.logo-icon,
.logo img {
    clip-path: none !important;
    clip: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any container max-width */
.container,
.container-fluid {
    overflow-x: visible !important;
}

.rn-header .container,
.rn-header .container-fluid {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Header Center Alignment */
.header-center {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Header Right Alignment - Same line as navbar */
.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
}

/* Language Dropdown Alignment - Inline with navbar */
.language-dropdown {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.language-dropdown .dropdown {
    display: inline-flex !important;
    align-items: center !important;
}

/* Language Dropdown - Professional Redesign */
.language-dropdown .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 42px !important;
    line-height: 1.4 !important;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
}

.language-dropdown .btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.language-dropdown .btn:hover::before {
    left: 100% !important;
}

.language-dropdown .btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border: none !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.language-dropdown .btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

.language-dropdown .btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

/* Language Dropdown Menu - Professional Styling */
.language-dropdown .dropdown-menu {
    background: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    padding: 8px !important;
    min-width: 180px !important;
    margin-top: 8px !important;
    overflow: hidden !important;
}

.language-dropdown .dropdown-item {
    padding: 12px 16px !important;
    color: #1a202c !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 6px !important;
    margin: 2px 0 !important;
}

.language-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
    color: #2563eb !important;
    transform: translateX(4px) !important;
}

.language-dropdown .dropdown-item:active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
    color: #1e40af !important;
}

/* Flag styling in dropdown */
.language-dropdown .btn .flag,
.language-dropdown .dropdown-item .flag {
    width: 22px !important;
    height: 16px !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    flex-shrink: 0 !important;
}

.language-dropdown .btn .language-name {
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

/* Dropdown arrow styling */
.language-dropdown .btn::after {
    margin-left: 4px !important;
    border-top-color: #ffffff !important;
    border-width: 5px 5px 0 !important;
    opacity: 0.9 !important;
    transition: transform 0.3s ease !important;
}

.language-dropdown .btn[aria-expanded="true"]::after {
    transform: rotate(180deg) !important;
}

/* Navbar alignment with language switcher */
.mainmenu-nav {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 15px !important;
    margin-bottom: 0 !important;
}

.primary-menu {
    margin-bottom: 0 !important;
    align-items: center !important;
    display: flex !important;
    gap: 0 !important;
}

/* Nav items alignment - Reduce gap between links */
.primary-menu .nav-item {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

.primary-menu .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    margin: 0 !important;
}

/* Override default navbar spacing from style.css */
.mainmenu-nav .primary-menu li {
    margin: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

.mainmenu-nav .primary-menu {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Reduce gap between navbar items specifically */
.mainmenu-nav .primary-menu .nav-item + .nav-item {
    margin-left: 0 !important;
}

.mainmenu-nav .primary-menu .nav-link {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Override style.css navbar spacing */
.mainmenu-nav .primary-menu li {
    margin: 0 5px !important;
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .mainmenu-nav .primary-menu li {
        margin: 0 3px !important;
    }
}

/* Prevent logo overflow */
.logo {
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}

/* Mobile Menu Logo */
.popup-mobile-menu .menu-header .logo-link,
.popup-mobile-menu .menu-header .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.popup-mobile-menu .menu-header .logo-icon,
.popup-mobile-menu .inner .header-top .logo img,
.popup-mobile-menu .menu-header .logo img {
    width: 160px !important;
    height: auto !important;
    max-height: 110px !important;
    object-fit: contain !important;
}

/* Mobile Menu SVG Logo - Tech Blue */
.popup-mobile-menu .menu-header .logo-icon[src$=".svg"],
.popup-mobile-menu .menu-header .logo img[src$=".svg"] {
    filter: none !important;
    /* Shows natural gradient from SVG */
}

/* Footer Logo - Bigger size */
.footer-logo {
    width: 200px !important;
    height: auto !important;
    max-height: 140px !important;
    transition: all 0.3s ease !important;
}

/* Footer SVG Logo - Show natural gradient colors */
.footer-logo[src$=".svg"],
.rn-footer-area .logo-icon[src$=".svg"],
.footer-area .logo-icon[src$=".svg"] {
    filter: none !important;
    /* Shows natural gradient: dark blue → tech blue → light blue */
}

.footer-logo[src$=".svg"]:hover,
.rn-footer-area .logo-link:hover .logo-icon[src$=".svg"] {
    filter: brightness(1.15) drop-shadow(0 0 12px rgba(96, 165, 250, 0.6)) !important;
    /* Brightens gradient on hover */
    transform: scale(1.05) !important;
}

/* Footer non-SVG logo hover */
.footer-logo:not([src$=".svg"]):hover {
    transform: scale(1.05) !important;
    filter: brightness(6) !important;
}

/* Footer Logo Link */
.rn-footer-area .logo-link,
.footer-area .logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.rn-footer-area .logo-icon,
.footer-area .logo-icon {
    width: 200px !important;
    height: auto !important;
    max-height: 140px !important;
    flex-shrink: 0 !important;
}

.rn-footer-area .logo-highlight,
.footer-area .logo-highlight {
    color: #60a5fa !important;
    text-decoration: underline !important;
    text-decoration-color: #60a5fa !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}


/* Logo Loading State */
.logo img[src=""] {
    display: none !important;
}

/* Ensure logo doesn't break layout */
.logo {
    overflow: visible !important;
}

.logo a {
    line-height: 0 !important;
}

/* Dark Mode / White Version Compatibility - SVG Logo */
body.white-version .header-left .logo img[src$=".svg"],
body.white-version .rn-header .logo img[src$=".svg"] {
    filter: none !important;
    /* Shows natural gradient from SVG */
}

body.white-version .header-left .logo a:hover img[src$=".svg"],
body.white-version .rn-header .logo a:hover img[src$=".svg"] {
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(30, 58, 138, 0.5)) !important;
}

/* Footer SVG Logo - Show natural gradient colors */
body.white-version .footer-logo[src$=".svg"],
.rn-footer-area .footer-logo[src$=".svg"],
.footer-area .footer-logo[src$=".svg"] {
    filter: none !important;
    /* Shows natural gradient: dark blue → tech blue → light blue */
}

body.white-version .footer-logo[src$=".svg"]:hover,
.rn-footer-area .footer-logo[src$=".svg"]:hover,
.footer-area .footer-logo[src$=".svg"]:hover {
    filter: brightness(1.15) drop-shadow(0 0 12px rgba(96, 165, 250, 0.6)) !important;
}

/* Non-SVG logos - Keep original filters */
body.white-version .header-left .logo img:not([src$=".svg"]),
body.white-version .rn-header .logo img:not([src$=".svg"]) {
    filter: brightness(0.9) !important;
}

body.white-version .footer-logo:not([src$=".svg"]),
.rn-footer-area .footer-logo:not([src$=".svg"]),
.footer-area .footer-logo:not([src$=".svg"]) {
    filter: brightness(5) !important;
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
}

/* Smooth Transition for Sticky Header */
.rn-header {
    transition: all 0.3s ease !important;
}

.sticky .rn-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Override any conflicting styles */
.header-wrapper .logo img,
.header-left .logo a img {
    max-height: 70px !important;
    height: auto !important;
    width: 220px !important;
    max-width: 220px !important;
}

/* Ensure logo is properly aligned vertically */
.rn-header .header-left,
.rn-header .header-left .logo,
.rn-header .header-left .logo-link {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    width: auto !important;
}

/* Print Styles */
@media print {
    .logo img {
        max-height: 50px !important;
        filter: grayscale(100%) !important;
    }
}
