/* CloudAura Logo Component */
.cloudaura-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    outline: none;
    height: 100%;
}

.cloudaura-logo:focus {
    outline: none;
    box-shadow: none;
}

.cloudaura-logo:active {
    outline: none;
    box-shadow: none;
}

.cloudaura-logo-icon {
    width: 92px;
    height: 56px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The actual CLOUD shape */
.cloudaura-cloud-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 0 0 16px 16px;
    z-index: 3;
}

.cloudaura-cloud-shape::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
}

.cloudaura-cloud-shape::after {
    content: '';
    position: absolute;
    top: -16px;
    left: 16px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 12px 4px 0 -4px var(--primary-color);
}

/* The AURA rings around the cloud */
.cloudaura-aura-ring {
    position: absolute;
    border: 1px solid;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: cloudauraGlow 2.5s ease-in-out infinite;
}

.cloudaura-aura-ring-1 {
    width: 32px;
    height: 32px;
    border-color: rgba(82, 191, 64, 0.5);
    border-width: 2px;
    animation-delay: 0s;
}

.cloudaura-aura-ring-2 {
    width: 40px;
    height: 40px;
    border-color: rgba(82, 191, 64, 0.3);
    border-width: 1.5px;
    animation-delay: 1s;
}

/* Subtle glow effect */
.cloudaura-inner-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(82, 191, 64, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.cloudaura-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cloudaura-company-name {
    font-family: var(--font-display);
    font-size: calc(var(--text-2xl) * 1.15);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    margin: 0;
}

.cloudaura-tagline {
    display: none;
}

.cloudaura-cloud-text {
    color: var(--text-primary);
}

.cloudaura-aura-text {
    color: var(--primary-color); /* Now used to style the ".io" part in green */
}

.cloudaura-logo img {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

.cloudaura-domain-text {
    font-family: 'Glacial Indifference', 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-left: -2px;
    /* Debug: Add distinctive styling to verify font loading */
    text-transform: lowercase;
}

.cloudaura-domain-text .cloudaura-aura-text {
    color: var(--primary-color);
}

.cloudaura-dot {
    color: #ffffff;
}

@keyframes cloudauraGlow {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Header specific styling */
.header .cloudaura-logo {
    gap: 12px;
}

.header .cloudaura-company-name {
    color: var(--text-primary);
}

.header .cloudaura-tagline {
    color: var(--primary-color);
}

/* Footer specific styling */
.footer .cloudaura-logo {
    gap: 8px;
}

.footer .cloudaura-logo-icon {
    width: 84px;
    height: 52px;
}

.footer .cloudaura-cloud-shape {
    width: 52px;
    height: 16px;
    border-radius: 0 0 16px 16px;
}

.footer .cloudaura-cloud-shape::before {
    width: 20px;
    height: 20px;
    top: -12px;
    left: 4px;
}

.footer .cloudaura-cloud-shape::after {
    width: 26px;
    height: 26px;
    top: -16px;
    left: 16px;
    box-shadow: 12px 4px 0 -4px var(--primary-color);
}

.footer .cloudaura-aura-ring-1 {
    width: 26px;
    height: 26px;
}

.footer .cloudaura-aura-ring-2 {
    width: 32px;
    height: 32px;
}

.footer .cloudaura-inner-glow {
    width: 24px;
    height: 24px;
}

.footer .cloudaura-company-name {
    font-size: var(--text-xl);
    color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header .cloudaura-logo {
        gap: 8px;
    }
    
    .header .cloudaura-company-name {
        font-size: var(--text-xl);
    }
    
    .header .cloudaura-tagline {
        font-size: 10px;
        letter-spacing: 0.05em;
    }
    
    .footer .cloudaura-company-name {
        font-size: var(--text-lg);
    }
    
    .cloudaura-domain-text {
        font-size: 1.6rem;
        margin-left: -1px;
    }
    
    .header .cloudaura-logo img {
        height: 80px !important;
    }
    
    .footer .cloudaura-logo img {
        height: 64px !important;
    }
}

@media (max-width: 480px) {
    .cloudaura-brand-text {
        gap: 2px;
    }
    
    .header .cloudaura-tagline {
        font-size: 9px;
    }
    
    .cloudaura-domain-text {
        font-size: 1.2rem;
        margin-left: -1px;
    }
    
    .header .cloudaura-logo img {
        height: 64px !important;
    }
    
    .footer .cloudaura-logo img {
        height: 48px !important;
    }
    
    /* Center social icons on mobile */
    .footer-social {
        justify-content: center;
    }
    
    /* Hide footer logo on mobile */
    .footer .footer-brand {
        display: none;
    }
}

/* Static version for footer (optional) */
.cloudaura-logo.static .cloudaura-aura-ring {
    animation: none;
}

/* Footer specific layout */
.footer-brand {
    flex-direction: column;
    align-items: flex-start !important;
}

.footer-brand .cloudaura-logo {
    flex-direction: row;
    align-items: center;
    text-align: left;
    margin-bottom: var(--space-3);
    gap: 10px;
}

.footer-social {
    margin-top: var(--space-4);
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--background-card);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.social-link:hover,
.social-link:focus,
.social-link:active {
    border-color: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    outline: none;
}

/* Frameless social links */
.social-link-frameless {
    width: auto;
    height: auto;
    padding: var(--space-2);
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.1s ease;
}

.social-link-frameless:hover,
.social-link-frameless:focus,
.social-link-frameless:active {
    border: none !important;
    color: var(--primary-color, #52bf40) !important;
    transform: scale(1.1);
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    transition: color 0.2s ease, transform 0.1s ease;
}

/* Override any global link focus styles */
.footer-social .social-link-frameless:focus,
.footer-social .social-link-frameless:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Topbar slide down animation */
.header {
    transform: translateY(-100%);
    animation: slideDownFromTop 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.header.no-animation {
    transform: translateY(0);
    animation: none;
}

@keyframes slideDownFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}