/* ============================================================================================================================= */
/* ======================================================= HEADER STYLES ======================================================= */
/* ============================================================================================================================= */

/* Styling for the header and its elements */
header {
    position: fixed;
    /* Fixed position at the top */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    /* Evenly distribute items */
    padding: 20px;
    /* Padding around header */
    z-index: 1000;
    /* Ensure it's above other content */
    background-color: transparent;
    /* Initially transparent */
    transition: background-color 0.3s ease, padding 0.3s ease;
    /* Smooth transition effects */
}

/* Styling for the header when it shrinks */
header.shrink {
    padding: 10px 20px;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #020035;
    /* Background color when header shrinks */
}

/* Navigation and language buttons container in shrink mode */
header.shrink nav {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Adjusting logo position and size when header shrinks */
header.shrink .site-logo {
    margin-left: 90px;
    /* Büyük sol margin */
    pointer-events: none;
    /* Tıklanabilir alanı kaldır */
}

header.shrink .site-logo img {
    height: 36px;
    width: auto;
    pointer-events: auto;
    /* Sadece logoyu tıklanabilir yap */
}

/* Hiding login button when header shrinks, but keeping language switcher */
header.shrink .header-buttons .login-link {
    display: none;
}

/* Language switcher in shrink mode - smaller and aligned with nav */
header.shrink .header-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 100px;
    height: 100%;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

header.shrink .lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}

header.shrink .lang-btn {
    padding: 4px 10px;
    font-size: 14px;
    min-width: 40px;
    border-radius: 6px;
    line-height: 1.5;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    text-align: center;
    height: auto;
}

/* Logo size */
.site-logo img {
    margin-left: 9px;
    height: 45px;
    /* Height of the logo */
    width: auto;
    /* Auto width for responsiveness */
}

/* ============================================================================================================================= */
/* ===================================================== NAVIGATION STYLES ===================================================== */
/* ============================================================================================================================= */

/* Styling for navigation menu and links */
nav ul li a.active {
    border: 2px solid #00aeef;
    /* İstediğin renk */
    padding: 5px;
    border-radius: 5px;
}

/* Highlighted link - only visible in shrink mode */
.highlighted-link {
    border: none;
    /* No border in normal state */
    border-radius: 10px;
    color: #fff;
    /* Normal text color */
    padding: 0;
    /* No padding in normal state */
    pointer-events: auto;
    /* Enable pointer events */
    text-decoration: none;
    /* Remove underline */
}

/* Highlighted link in shrink mode */
header.shrink .highlighted-link {
    border: 2px solid #00aeef;
    /* Border color */
    border-radius: 10px;
    /* Rounded corners */
    color: #00aeef;
    /* Active link color */
    padding: 6px 12px;
    /* Padding for border */
}

.highlighted-link::after {
    display: none;
    /* Completely remove the underline effect */
}

/* Navigation menu styling */
header ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    justify-content: left;
    /* Left-aligned navigation */
    margin-left: 9px;
    /* Adjusted margin for alignment */
}

/* Adjusted margin for navigation when header shrinks */
header.shrink nav {
    margin-left: 0;
    display: flex;
    align-items: center;
    margin-right: auto;
}

header.shrink ul {
    margin-left: 0;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

header.shrink ul li {
    display: inline-block;
    margin: 0 18px;
    vertical-align: middle;
    line-height: 1.5;
}

header.shrink ul li a {
    display: inline-block;
    line-height: 1.5;
    vertical-align: middle;
    padding: 0;
}

/* Shrink durumunda highlighted-link için padding ekle */
header.shrink ul li a.highlighted-link {
    padding: 6px 12px;
    /* Yazı ile border arasında boşluk */
}

/* Styling for list items within navigation */
header ul li {
    margin: 0 18px;
    display: inline-block;
    vertical-align: middle;
}

/* Styling for links within navigation */
header ul li a {
    font-family: "Ubuntu";
    font-size: 18px;
    /* Font size */
    text-decoration: none;
    /* No underline */
    color: #fff;
    /* Text color */
    font-weight: 500;
    /* Font weight */
    position: relative;
    /* Relative position */
    transition: color 0.3s ease;
    /* Smooth color transition */
    display: inline-block;
    line-height: 1.5;
    vertical-align: middle;
}

/* Styling for hover effect on links within navigation */
header ul li a::after {
    content: '';
    /* No content */
    display: block;
    width: 0;
    height: 2px;
    background-color: #00aeef;
    /* Background color for hover effect */
    position: absolute;
    bottom: -9px;
    /* Adjust this value for more space */
    left: 0;
    transition: width 0.9s ease;
    /* Smooth width transition */
}

/* Hover effect on links within navigation */
header ul li a:hover {
    color: #00aeef;
    /* Hover color */
}

header ul li a:hover::after,
header ul li a.active-scroll-down::after {
    width: 100%;
}

header ul li a.active-scroll-up::after {
    width: 0;
}

/* =========================================================================================================================== */
/* ===================================================== DROPDOWN MENU STYLES =============================================== */
/* =========================================================================================================================== */

/* Dropdown container */
header ul li.has-dropdown {
    position: relative;
}

/* Dropdown icon */
header ul li.has-dropdown > a {
    display: inline-flex;
    align-items: center;
}

header ul li.has-dropdown > a i {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

header ul li.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown menu */
header ul li .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(2, 0, 53, 0.98);
    backdrop-filter: blur(15px);
    min-width: 130px;
    padding: 6px 0;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 174, 239, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 174, 239, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    display: flex;
    flex-direction: column;
}

header ul li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown menu items */
header ul li .dropdown-menu li {
    margin: 0;
    display: block;
    padding: 0;
}

header ul li .dropdown-menu li a {
    display: block;
    padding: 6px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: transparent;
    margin: 2px 4px;
    border-radius: 6px;
}

header ul li .dropdown-menu li a:hover {
    background: rgba(0, 174, 239, 0.2);
    color: #00aeef;
    border-left-color: #00aeef;
    padding: 6px 14px;
    transform: translateX(2px);
}

header ul li .dropdown-menu li a::after {
    display: none;
}

/* Active link in dropdown */
header ul li .dropdown-menu li a.highlighted-link {
    background: rgba(0, 174, 239, 0.25);
    color: #00aeef;
    border-left-color: #00aeef;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.2);
}

/* Shrink mode dropdown adjustments */
header.shrink ul li.has-dropdown .dropdown-menu {
    margin-top: 5px;
    left: 50% !important;
    right: auto !important;
}

header.shrink ul li.has-dropdown > a i {
    font-size: 0.6em;
}

/* =========================================================================================================================== */
/* ===================================================== HEADER BUTTONS STYLES =============================================== */
/* =========================================================================================================================== */

/* Header buttons styling */
.header-buttons {
    display: flex;
    /* Flex display */
    margin: 0 0 10px 150px;
    /* Margin adjustments */
    margin-top: -40px;
    /* Adjusted top margin */
    justify-content: right;
    /* Right-aligned buttons */
    align-items: center;
    /* Center-aligned items */
    gap: 15px;
}

/* Client Portal Button */
.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00aeef, #0095cc);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
    background: linear-gradient(135deg, #0095cc, #007bb3);
}

.portal-btn i {
    font-size: 16px;
}

header.shrink .portal-btn {
    padding: 6px 14px;
    font-size: 12px;
}

header.shrink .portal-btn i {
    font-size: 14px;
}

/* =========================================================================================================================== */
/* ===================================================== USER DROPDOWN MENU ================================================= */
/* =========================================================================================================================== */

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #00aeef, #0095cc);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
    font-family: inherit;
}

.user-dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
    background: linear-gradient(135deg, #0095cc, #007bb3);
}

.user-dropdown-btn i:first-child {
    font-size: 18px;
}

.user-dropdown-btn .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-btn .user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(2, 0, 53, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 174, 239, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 174, 239, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    padding: 8px 0;
    overflow: hidden;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: #00aeef;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(0, 174, 239, 0.15);
    color: #00aeef;
    padding-left: 24px;
}

.dropdown-item:hover i {
    color: #fff;
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: rgba(0, 174, 239, 0.2);
    margin: 8px 15px;
}

/* Logout Item */
.dropdown-item.logout-item {
    color: #ff6b6b;
}

.dropdown-item.logout-item i {
    color: #ff6b6b;
}

.dropdown-item.logout-item:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.dropdown-item.logout-item:hover i {
    color: #ff6b6b;
}

/* Shrink mode adjustments */
header.shrink .user-dropdown-btn {
    padding: 6px 12px;
    font-size: 12px;
}

header.shrink .user-dropdown-btn i:first-child {
    font-size: 14px;
}

header.shrink .user-dropdown-btn .user-name {
    max-width: 80px;
}

header.shrink .user-dropdown-menu {
    top: calc(100% + 5px);
}

/* Styling for login link within header buttons */
.header-buttons .login-link {
    color: white;
    /* Text color */
    font-size: 18px;
    /* Font size */
    margin-right: 15px;
    /* Margin from the right */
    margin-top: 3px;
    /* Margin from the top */
    transition: color 0.3s ease;
    /* Smooth color transition */
    text-decoration: none;
    /* No underline */
    font-weight: 630;
    /* Font weight */
}

/* Hover effect for login link within header buttons */
.header-buttons .login-link:hover {
    color: #00aeef;
    /* Hover color */
}

/* Styling for language dropdown */
/* Language Switcher - Modern Button Style */
.lang-switcher {
    display: flex;
    gap: 8px;
    background-color: transparent;
    border-radius: 8px;
}

.lang-btn {
    background-color: #020035;
    color: #ffffff;
    border: 1px solid #00aeef;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    min-width: 50px;
    text-align: center;
    border-radius: 8px;
}

.lang-btn.active {
    background: linear-gradient(135deg, #00aeef 0%, #1c16d2 100%);
    color: #ffffff;
    border-color: #00aeef;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
    z-index: 1;
    position: relative;
}

.lang-btn:hover:not(.active) {
    background-color: rgba(0, 174, 239, 0.2);
    color: #00aeef;
    border-color: #00aeef;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
}

.lang-btn:active {
    transform: scale(0.98);
}

/* Modal login styling */
.modal-login {
    display: none;
    /* Initially hidden */
    position: fixed;
    /* Fixed position */
    z-index: 1000;
    /* Z-index */
    left: 0;
    /* Left position */
    top: 0;
    /* Top position */
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    background-color: #020035;
    /* Background color */
    background-image: url('../../images/background.svg');
    /* Background image */
    background-size: cover;
    /* Cover background size */
    background-position: center;
    /* Centered background position */
    overflow: auto;
    /* Auto overflow */
    justify-content: end;
    /* End-justified content */
    align-items: center;
    /* Center-aligned items */
}

/* Modal login content styling */
.modal-contentlogin {
    background-color: rgba(255, 255, 255, 0.6);
    /* Semi-transparent background */
    padding: 20px;
    /* Padding */
    border-radius: 10px;
    /* Border radius */
    width: 18%;
    /* Width */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Box shadow */
    animation: fadeIn 0.5s;
    /* Fade-in animation */
    margin-right: 18%;
    /* Right margin */
    text-align: center;
    /* Center-aligned text */
}

/* Styling for footer links */
.login-footer a {
    color: #020035;
    /* Text color */
    text-decoration: none;
    /* No underline */
    font-size: 14px;
    /* Font size */
}

/* Hover effect for footer links */
.login-footer a:hover {
    color: #0b7eea;
    /* Hover color */
}

/* Separator styling */
.separator {
    border: none;
    /* No border */
    border-top: 1px solid #ccc;
    /* Top border */
    margin: 20px 0;
    /* Margin */
}

/* Create account button styling */
#create-account-btn {
    width: 63%;
    /* Button width */
    padding: 9px;
    /* Padding */
    font-size: 16px;
    /* Font size */
    background-color: #034d31;
    /* Background color */
    color: white;
    /* Text color */
    border: none;
    /* No border */
    border-radius: 18px;
    /* Border radius */
    cursor: pointer;
    /* Pointer cursor */
    margin-top: 0px;
    /* Margin from the top */
}

/* Hover effect for create account button */
#create-account-btn:hover {
    background-color: #078a33;
    /* Hover background color */
}

/* Close button styling */
.close {
    position: absolute;
    /* Absolute position */
    top: 10px;
    /* Top position */
    right: 10px;
    /* Right position */
    font-size: 20px;
    /* Font size */
    cursor: pointer;
    /* Pointer cursor */
    color: #020035;
    /* Text color */
    text-decoration: none;
    /* No underline */
}

/* Hover effect for close button */
.close:hover,
.close:focus {
    color: #00aeef;
    /* Hover color */
}

/* Responsive dropdown menu */
@media (max-width: 768px) {
    header ul li.has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }
    
    header ul li.has-dropdown > a {
    display: inline-flex;
    align-items: center;
}

header ul li.has-dropdown > a i {
        display: none;
    }
}

/* Keyframe animation for fading in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

