/* ==========================================
   Header Inline Styles - Optimized & Fixed
   ========================================== */
header.home-header .profile-dropdown,
header.home-header .profile-dropdown * {
    color: #1f2937 !important;
}

header.home-header .profile-dropdown .bg-white,
header.home-header .profile-dropdown [style*="background: #ffffff"] {
    background: #fff !important;
}

header.home-header .profile-dropdown .bg-gray-50,
header.home-header .profile-dropdown [style*="background: #f9fafb"] {
    background: #f9fafb !important;
}

header.home-header .profile-dropdown a,
header.home-header .profile-dropdown button,
header.home-header .profile-dropdown span,
header.home-header .profile-dropdown p {
    color: #111827 !important;
}

header.home-header .profile-dropdown [style*="color: #111827"] { color: #111827 !important; }
header.home-header .profile-dropdown [style*="color: #4b5563"] { color: #4b5563 !important; }
header.home-header .profile-dropdown [style*="color: #dc2626"] { color: #dc2626 !important; }
header.home-header .profile-dropdown [style*="color: #16a34a"] { color: #16a34a !important; }

@media (max-width:1023px) {
    header.home-header .profile-dropdown {
        position: fixed !important;
        top: 60px !important;
        right: 1rem !important;
        left: auto !important;
        width: calc(100vw - 2rem) !important;
        max-width: 320px !important;
        margin-top: .5rem !important;
        z-index: 9999 !important;
    }
}

[x-cloak] { display: none !important; }

header.home-header .profile-dropdown > div {
    background: #fff !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1),
                0 10px 10px -5px rgba(0,0,0,.04) !important;
    border: 1px solid #e5e7eb !important;
}

@media (max-width:640px) {
    header.home-header .profile-dropdown {
        width: calc(100vw - 1rem) !important;
        max-width: none !important;
        right: .5rem !important;
    }
    header.home-header .profile-dropdown .px-6 { padding-left: 1rem !important; padding-right: 1rem !important; }
    header.home-header .profile-dropdown .px-4 { padding-left: .875rem !important; padding-right: .875rem !important; }
    .header-dropdown-menu { max-width: 90vw; }
    @media (max-width:1024px){.header-dropdown-menu{right:0;left:auto;min-width:200px}}
    @media (max-width:768px){.header-dropdown-menu{position:fixed;top:auto;right:1rem;left:1rem;width:calc(100% - 2rem);max-width:300px}}
}

#mobileNavToggleFloat { z-index: 10000 !important; position: fixed !important; }

/* ==========================================
   Header Logo & Text - Compact Left Alignment
   ========================================== */
.header-logo-img {
    width: auto !important;        /* scale naturally */
    height: 40px !important;       /* reduced height */
    min-height: 40px !important;   /* ensure visible */
    max-height: 40px !important;   /* prevent overflow */
    object-fit: contain !important; /* logo fit without stretching */
    display: block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* Logo for bigger screens */
@media (min-width:640px) {
    .header-logo-img { 
        height: 45px !important; 
        min-height: 45px !important; 
        max-height: 45px !important;
    }
}
@media (min-width:1024px) {
    .header-logo-img { 
        height: 50px !important; 
        min-height: 50px !important;
        max-height: 50px !important;
    }
}

/* Header Row - Compact height */
header.home-header .header-main-row {
    height: auto !important;           
    min-height: 50px !important;       /* reduced height */
    max-height: none !important;
    padding: 4px 0 !important;         /* minimal padding */
    align-items: center !important;
}

/* Logo container - fixed width */
header.home-header a[href*="home"] {
    max-width: fit-content !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

/* Ensure link container doesn't restrict logo size */
header.home-header a[href*="home"],
header.home-header a[href*="home"] img {
    height: auto !important;
    max-height: none !important;
}

/* ==========================================
   Typing Animation - Compact & Left Aligned
   ========================================== */
.typing-animation { 
    display: inline-block; 
    white-space: nowrap; 
    max-width: 200px !important;        /* limit width */
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    font-weight: 900 !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2) !important;
    font-size: 0.875rem !important;     /* smaller font */
    line-height: 1.1 !important;
}

.typing-text {
    font-weight: 900 !important;
    font-size: inherit !important;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: colorCycle 3s ease-in-out infinite;
}

.typing-cursor {
    display: inline-block;
    animation: blinkCursor 1s infinite;
    margin-left: 1px !important;
    font-weight: 900 !important;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 4px rgba(255, 165, 0, 0.3) !important;
    font-size: inherit !important;
}

@keyframes blinkCursor { 
    0%,50%{opacity:1} 
    51%,100%{opacity:0} 
}

/* Dynamic color cycling animations */
@keyframes colorCycle {
    0% { 
        background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    25% { 
        background: linear-gradient(90deg, #45B7D1, #96CEB4);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    50% { 
        background: linear-gradient(90deg, #FFEAA7, #DDA0DD);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    75% { 
        background: linear-gradient(90deg, #98D8C8, #F7DC6F);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    100% { 
        background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .typing-animation {
        font-size: 0.75rem !important; /* 12px on mobile */
        max-width: 150px !important;
    }
}

@media (max-width: 640px) {
    .typing-animation {
        font-size: 0.7rem !important; /* 11px on small mobile */
        max-width: 120px !important;
    }
}

/* Global overflow fix */
body {
    overflow-x: hidden;
}
