/* ===== SLIM TOP HEADER STYLES ===== */
/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f8fafc; /* Light background to see edges clearly */
}
/* CSS Variables */
:root {
    --header-bg: #0f172a;
    --header-text: #ffffff;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --gray-light: #e2e8f0;
    --gray-dark: #94a3b8;
    --transition: all 0.2s ease;
}

/* Top Header - Slim */
.top-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 8px 0;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOGO STYLING ENHANCEMENTS ===== */

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 6px;
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logo-img {
    width: 40px; /* Slightly larger for better visibility */
    height: 40px;
    object-fit: contain;
    background: transparent; /* Remove white background if logo has its own */
    padding: 2px;
    border-radius: 4px;
    /* If logo has white background, add border */
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: brightness(1.1); /* Make logo slightly brighter */
}

/* If logo is dark, invert colors for dark header */
.logo-img[src*="Nirsun-Logo"] {
    /* Adjust based on your logo color */
    filter: brightness(1.2) contrast(1.1);
}

/* Logo text alignment */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    justify-content: center;
}

.company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.company-tag {
    font-size: 0.7rem;
    color: var(--gray-dark);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .logo-container {
        gap: 8px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .company-tag {
        font-size: 0.65rem;
    }
    
    .logo-container {
        gap: 6px;
    }
}

.company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.company-tag {
    font-size: 0.7rem;
    color: var(--gray-dark);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Updates Section - Slim */
.updates-section {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.updates-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
}

.updates-label i {
    color: var(--accent-yellow);
    font-size: 0.8rem;
}

.updates-label span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-yellow);
}

.marquee-container {
    display: inline-block;
    overflow: hidden;
    width: calc(100% - 80px);
    vertical-align: middle;
    height: 18px;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.update-item {
    font-size: 0.8rem;
    color: var(--gray-light);
    font-weight: 400;
    transition: var(--transition);
}

.update-item:hover {
    color: var(--accent-blue);
    cursor: pointer;
}

.update-separator {
    color: var(--accent-green);
    font-size: 0.7rem;
}

/* Call Button - Compact */
.cta-section {
    flex: 0 0 auto;
}

.call-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.call-button:hover {
    background: linear-gradient(135deg, #2563eb, var(--accent-blue));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.call-button i {
    font-size: 0.9rem;
}

.call-text {
    font-weight: 600;
    font-size: 0.75rem;
}

.call-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .top-header .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .updates-section {
        order: 3;
        flex: 1 0 100%;
        max-width: 100%;
        margin-top: 5px;
    }
    
    .marquee-container {
        width: calc(100% - 70px);
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 6px 0;
    }
    
    .top-header .container {
        padding: 0 15px;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .company-tag {
        font-size: 0.65rem;
    }
    
    .call-button {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .call-number {
        display: none;
    }
}

@media (max-width: 480px) {
    .updates-label span {
        display: none;
    }
    
    .updates-label i {
        margin-right: 0;
    }
    
    .marquee-container {
        width: calc(100% - 30px);
    }
    
    .update-item {
        font-size: 0.75rem;
    }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

