/* Promo Connect CSS-Only Logo */

:root {
    --promo-blue: #39A9E8;
    --promo-dark: #4a4a4a;
    --promo-light: #f0f8ff;
}

/* CSS-Only Logo Container */
.css-logo {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(57, 169, 232, 0.1);
}

.css-logo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 40px rgba(57, 169, 232, 0.3),
        0 0 60px rgba(57, 169, 232, 0.2),
        0 0 80px rgba(57, 169, 232, 0.15),
        0 0 100px rgba(57, 169, 232, 0.1),
        inset 0 0 30px rgba(57, 169, 232, 0.08);
    text-decoration: none;
    background: rgba(57, 169, 232, 0.02);
    backdrop-filter: blur(15px);
}

.css-logo:hover .logo-text-promo {
    color: #00d4ff;
    text-shadow: 
        0 0 8px rgba(0, 212, 255, 0.6),
        0 0 16px rgba(0, 212, 255, 0.4),
        0 0 24px rgba(0, 212, 255, 0.2);
    animation: blueGlow 1.5s ease-in-out infinite alternate;
}

.css-logo:hover .logo-text-connect {
    color: #2196F3;
    text-shadow: 
        0 0 8px rgba(33, 150, 243, 0.5),
        0 0 16px rgba(33, 150, 243, 0.3),
        0 0 24px rgba(33, 150, 243, 0.2);
}

.css-logo:hover .logo-text-connect .highlight {
    color: #00BFFF;
    text-shadow: 
        0 0 10px rgba(0, 191, 255, 0.7),
        0 0 20px rgba(0, 191, 255, 0.5),
        0 0 30px rgba(0, 191, 255, 0.3);
    animation: highlightBlue 1.2s ease-in-out infinite alternate;
}

@keyframes blueGlow {
    0% {
        text-shadow: 
            0 0 8px rgba(0, 212, 255, 0.6),
            0 0 16px rgba(0, 212, 255, 0.4),
            0 0 24px rgba(0, 212, 255, 0.2);
    }
    100% {
        text-shadow: 
            0 0 12px rgba(0, 212, 255, 0.7),
            0 0 20px rgba(0, 212, 255, 0.5),
            0 0 28px rgba(0, 212, 255, 0.3);
    }
}

@keyframes highlightBlue {
    0% {
        text-shadow: 
            0 0 10px rgba(0, 191, 255, 0.7),
            0 0 20px rgba(0, 191, 255, 0.5),
            0 0 30px rgba(0, 191, 255, 0.3);
    }
    100% {
        text-shadow: 
            0 0 14px rgba(0, 191, 255, 0.8),
            0 0 24px rgba(0, 191, 255, 0.6),
            0 0 34px rgba(0, 191, 255, 0.4);
    }
}

/* Logo Text Styling */
.logo-text-promo {
    color: var(--promo-blue);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    margin-right: 4px;
}

.logo-text-connect {
    color: var(--promo-dark);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.logo-text-connect .highlight {
    color: var(--promo-blue);
}

/* Size Variations */
.css-logo.logo-xs {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.css-logo.logo-xs .logo-text-promo,
.css-logo.logo-xs .logo-text-connect {
    font-size: 1rem;
}

.css-logo.logo-sm {
    font-size: 1rem;
    padding: 6px 12px;
}

.css-logo.logo-sm .logo-text-promo,
.css-logo.logo-sm .logo-text-connect {
    font-size: 1.4rem;
}

.css-logo.logo-md {
    font-size: 1.2rem;
    padding: 8px 16px;
}

.css-logo.logo-md .logo-text-promo,
.css-logo.logo-md .logo-text-connect {
    font-size: 1.8rem;
}

.css-logo.logo-lg {
    font-size: 1.5rem;
    padding: 10px 20px;
}

.css-logo.logo-lg .logo-text-promo,
.css-logo.logo-lg .logo-text-connect {
    font-size: 2.2rem;
}

.css-logo.logo-xl {
    font-size: 1.8rem;
    padding: 12px 24px;
}

.css-logo.logo-xl .logo-text-promo,
.css-logo.logo-xl .logo-text-connect {
    font-size: 2.6rem;
}

/* Navbar Specific Styling */
.navbar .css-logo {
    padding: 4px 8px;
    box-shadow: none;
    transition: all 0.4s ease;
}

.navbar .css-logo:hover {
    background: rgba(57, 169, 232, 0.05);
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(57, 169, 232, 0.2),
        0 0 40px rgba(57, 169, 232, 0.15),
        0 0 60px rgba(57, 169, 232, 0.1);
    backdrop-filter: blur(15px);
}

.navbar .css-logo .logo-text-promo,
.navbar .css-logo .logo-text-connect {
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.navbar .css-logo:hover .logo-text-promo {
    color: #00d4ff;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

.navbar .css-logo:hover .logo-text-connect {
    color: #2196F3;
    text-shadow: 0 0 6px rgba(33, 150, 243, 0.3);
}

.navbar .css-logo:hover .logo-text-connect .highlight {
    color: #00BFFF;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}

/* Hero Section Styling */
.hero-logo.css-logo {
    padding: 16px 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    border: 2px solid transparent;
}

.hero-logo.css-logo:hover {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(57, 169, 232, 0.2);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 20px 50px rgba(57, 169, 232, 0.25),
        0 0 80px rgba(57, 169, 232, 0.2),
        0 0 120px rgba(57, 169, 232, 0.15),
        0 0 160px rgba(57, 169, 232, 0.1),
        inset 0 0 40px rgba(57, 169, 232, 0.08);
}

.hero-logo.css-logo .logo-text-promo,
.hero-logo.css-logo .logo-text-connect {
    font-size: 3rem;
    transition: all 0.4s ease;
}

.hero-logo.css-logo:hover .logo-text-promo {
    color: #00d4ff;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.5),
        0 0 18px rgba(0, 212, 255, 0.3),
        0 0 26px rgba(0, 212, 255, 0.2);
    animation: heroBlueGlow 2s ease-in-out infinite alternate;
}

.hero-logo.css-logo:hover .logo-text-connect {
    color: #2196F3;
    text-shadow: 
        0 0 10px rgba(33, 150, 243, 0.4),
        0 0 18px rgba(33, 150, 243, 0.2);
}

.hero-logo.css-logo:hover .logo-text-connect .highlight {
    color: #00BFFF;
    text-shadow: 
        0 0 12px rgba(0, 191, 255, 0.6),
        0 0 22px rgba(0, 191, 255, 0.4),
        0 0 32px rgba(0, 191, 255, 0.2);
    animation: heroHighlightBlue 1.8s ease-in-out infinite alternate;
}

@keyframes heroBlueGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(0, 212, 255, 0.5),
            0 0 18px rgba(0, 212, 255, 0.3),
            0 0 26px rgba(0, 212, 255, 0.2);
    }
    100% {
        text-shadow: 
            0 0 14px rgba(0, 212, 255, 0.6),
            0 0 22px rgba(0, 212, 255, 0.4),
            0 0 30px rgba(0, 212, 255, 0.3);
    }
}

@keyframes heroHighlightBlue {
    0% {
        text-shadow: 
            0 0 12px rgba(0, 191, 255, 0.6),
            0 0 22px rgba(0, 191, 255, 0.4),
            0 0 32px rgba(0, 191, 255, 0.2);
    }
    100% {
        text-shadow: 
            0 0 16px rgba(0, 191, 255, 0.7),
            0 0 26px rgba(0, 191, 255, 0.5),
            0 0 36px rgba(0, 191, 255, 0.3);
    }
}

/* Special Effects */
.css-logo.logo-glow {
    box-shadow: 
        0 0 40px rgba(57, 169, 232, 0.7),
        0 0 60px rgba(57, 169, 232, 0.5),
        0 0 80px rgba(57, 169, 232, 0.3),
        0 0 100px rgba(57, 169, 232, 0.2);
    animation: blueGlowPulse 3s ease-in-out infinite alternate;
    background: rgba(57, 169, 232, 0.08);
    backdrop-filter: blur(20px);
}

.css-logo.logo-glow .logo-text-promo {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.css-logo.logo-glow .logo-text-connect {
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.7);
}

.css-logo.logo-glow .logo-text-connect .highlight {
    text-shadow: 0 0 25px rgba(0, 191, 255, 0.9);
}

@keyframes blueGlowPulse {
    0% {
        box-shadow: 
            0 0 40px rgba(57, 169, 232, 0.7),
            0 0 60px rgba(57, 169, 232, 0.5),
            0 0 80px rgba(57, 169, 232, 0.3),
            0 0 100px rgba(57, 169, 232, 0.2);
        background: rgba(57, 169, 232, 0.08);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(0, 191, 255, 0.8),
            0 0 70px rgba(0, 191, 255, 0.6),
            0 0 90px rgba(0, 191, 255, 0.4),
            0 0 110px rgba(0, 191, 255, 0.2);
        background: rgba(0, 191, 255, 0.12);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(57, 169, 232, 0.7),
            0 0 60px rgba(57, 169, 232, 0.5),
            0 0 80px rgba(57, 169, 232, 0.3),
            0 0 100px rgba(57, 169, 232, 0.2);
        background: rgba(57, 169, 232, 0.08);
    }
}

.css-logo.logo-pulse {
    animation: colorfulPulse 2s infinite;
}

@keyframes colorfulPulse {
    0% {
        transform: scale(1);
        box-shadow: 
            0 2px 10px rgba(57, 169, 232, 0.2),
            0 0 20px rgba(57, 169, 232, 0.1);
    }
    25% {
        transform: scale(1.01);
        box-shadow: 
            0 4px 20px rgba(78, 205, 196, 0.4),
            0 0 30px rgba(78, 205, 196, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 6px 25px rgba(255, 107, 107, 0.5),
            0 0 40px rgba(255, 107, 107, 0.3);
    }
    75% {
        transform: scale(1.01);
        box-shadow: 
            0 4px 20px rgba(255, 193, 7, 0.4),
            0 0 30px rgba(255, 193, 7, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 2px 10px rgba(57, 169, 232, 0.2),
            0 0 20px rgba(57, 169, 232, 0.1);
    }
}

.css-logo.logo-animated {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-5px);
    }
}

/* Dark Theme */
.dark-theme .css-logo .logo-text-connect {
    color: #ffffff;
}

.dark-theme .css-logo {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Footer Logo */
.footer .css-logo {
    opacity: 0.9;
}

.footer .css-logo .logo-text-connect {
    color: #ffffff;
}

.footer .css-logo:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .css-logo .logo-text-promo,
    .navbar .css-logo .logo-text-connect {
        font-size: 1.4rem;
    }
    
    .hero-logo.css-logo .logo-text-promo,
    .hero-logo.css-logo .logo-text-connect {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .navbar .css-logo .logo-text-promo,
    .navbar .css-logo .logo-text-connect {
        font-size: 1.2rem;
    }
    
    .hero-logo.css-logo .logo-text-promo,
    .hero-logo.css-logo .logo-text-connect {
        font-size: 1.8rem;
    }
}

/* Additional mobile tuning for hero logo container and overlay */
@media (max-width: 768px) {
    .hero-logo.css-logo {
        padding: 10px 16px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(6px);
        box-shadow: 0 10px 28px rgba(57, 169, 232, 0.18);
    }

    .hero-logo.css-logo:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 16px 36px rgba(57, 169, 232, 0.2);
        border-color: rgba(57, 169, 232, 0.15);
    }

    .logo-overlay::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        opacity: 0.35;
    }
}

@media (max-width: 480px) {
    .hero-logo.css-logo {
        padding: 8px 12px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(5px);
        box-shadow: 0 8px 24px rgba(57, 169, 232, 0.16);
    }

    .hero-logo.css-logo:hover {
        transform: translateY(-2px) scale(1.005);
        box-shadow: 0 12px 28px rgba(57, 169, 232, 0.18);
    }

    .logo-overlay::before {
        opacity: 0.25;
    }
}

/* Logo Container Styling */
.logo-container {
    display: inline-block;
    position: relative;
}

/* Main Logo Styling */
.promo-logo {
    background: transparent !important;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

/* Remove any white/background artifacts */
.promo-logo img {
    background: transparent !important;
    border: none;
    outline: none;
    box-shadow: none;
    mix-blend-mode: multiply; /* Helps remove white background */
}

/* Hover Effects */
.promo-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(57, 169, 232, 0.3));
}

/* Responsive Logo Sizes */
.logo-xs {
    width: 80px;
    height: auto;
}

.logo-sm {
    width: 120px;
    height: auto;
}

.logo-md {
    width: 180px;
    height: auto;
}

.logo-lg {
    width: 240px;
    height: auto;
}

.logo-xl {
    width: 300px;
    height: auto;
}

/* Navbar Specific Logo Styling */
.navbar .promo-logo {
    height: 50px;
    width: auto;
    background: transparent;
    filter: brightness(1) contrast(1.1);
}

/* Dark Theme Logo Adjustments */
.dark-theme .promo-logo {
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

/* Logo with Gradient Background (if needed) */
.logo-with-gradient {
    background: linear-gradient(135deg, 
        rgba(57, 169, 232, 0.1) 0%, 
        rgba(213, 231, 240, 0.1) 50%, 
        rgba(57, 169, 232, 0.05) 100%);
    border-radius: 15px;
    padding: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(57, 169, 232, 0.1);
}

/* PNG Logo with Transparency Support - Aggressive White Background Removal */
.transparent-logo {
    background: transparent !important;
    background-color: transparent !important;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    mix-blend-mode: darken;
    filter: contrast(1.2) brightness(1.1);
}

/* Alternative approach for stubborn white backgrounds */
.no-white-bg {
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 0 transparent);
}

/* CSS mask approach to remove white */
.mask-white {
    background: transparent !important;
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 1%, black 99%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 1%, black 99%, transparent 100%);
    mask-image: 
        linear-gradient(to right, transparent 0%, black 1%, black 99%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 1%, black 99%, transparent 100%);
    -webkit-mask-composite: intersect;
    mask-composite: intersect;
}

/* Force remove white pixels using CSS filters */
.remove-white {
    background: transparent !important;
    filter: 
        contrast(1.3) 
        brightness(1.1) 
        saturate(1.2)
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    mix-blend-mode: darken;
}

/* Logo Animation */
@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-5px) scale(1.02);
    }
}

.logo-animated {
    animation: logoFloat 3s ease-in-out infinite;
}

/* Logo for Cards/Headers */
.card-logo {
    width: 60px;
    height: auto;
    background: transparent;
    margin-right: 10px;
    vertical-align: middle;
}

/* Hero Section Logo */
.hero-logo {
    width: 200px;
    height: auto;
    background: transparent;
    filter: drop-shadow(0 8px 20px rgba(57, 169, 232, 0.2));
}

/* Footer Logo */
.footer-logo {
    width: 150px;
    height: auto;
    background: transparent;
    opacity: 0.9;
    filter: brightness(1.2);
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .navbar .promo-logo {
        height: 40px;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .footer-logo {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .navbar .promo-logo {
        height: 35px;
    }
    
    .hero-logo {
        width: 120px;
    }
}

/* Logo Loading State */
.logo-loading {
    opacity: 0.6;
    filter: blur(1px);
    transition: all 0.3s ease;
}

.logo-loaded {
    opacity: 1;
    filter: blur(0);
}

/* Print Styles */
@media print {
    .promo-logo {
        filter: none;
        -webkit-filter: none;
        background: transparent !important;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .promo-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Logo Overlay for Hero Sections */
.logo-overlay {
    position: relative;
    z-index: 10;
}

.logo-overlay::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(
        circle at center,
        rgba(57, 169, 232, 0.1) 0%,
        transparent 70%
    );
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-overlay:hover::before {
    opacity: 1;
}

/* Accessibility Features */
.promo-logo:focus {
    outline: 2px solid var(--promo-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Logo with Text Alignment */
.logo-text-combo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text-combo .promo-logo {
    flex-shrink: 0;
}

/* Special Effects */
.logo-glow {
    filter: drop-shadow(0 0 10px rgba(57, 169, 232, 0.5));
}

.logo-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}