/* ===== EXACT 3D ANIMATED CUBE LOGO FROM EXISTING SITE ===== */

.logo-animated {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    width: 100%;
}

.logo-animated .row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    width: 100%;
    flex-wrap: nowrap;
}

.logo-animated .row > div {
    display: flex;
    align-items: center;
}

.logo-animated .row > div:last-child {
    flex: 1;
}

.codepen {
    position: relative;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    animation: linear 20s rotate infinite;
    background-color: #01b0f1;
    user-select: none;
    margin: 0;
    flex-shrink: 0;
    z-index: 999;
}

.codepen:hover {
    animation: none;
    transform: rotateX(-30deg) rotateY(45deg);
}

.codepen > div {
    width: 50px;
    height: 50px;
    box-shadow:
        0 0 0.5px 0.5px #000,
        0 0 0 0.5px #000 inset;
    position: absolute;
    background-color: #01b0f1;
    user-select: none;
}

div.top, div.bottom {
    height: 50px;
}

.front {
    transform: translateZ(25px);
}

.front img {
    width: 37px;
}

.back {
    transform: translateZ(-25px);
}

.back img {
    transform: scaleX(-1);
    height: 50px;
    width: 50px;
    object-fit: cover;
}

.lefts {
    transform: rotateY(90deg) translateZ(25px);
}

.lefts img {
    width: 50px;
    height: 50px;
}

/* Animated glow for years badge */
.cube-years {
    width: 50px;
    height: 50px;
    object-fit: cover;
    animation: cubeGlow 1.8s ease-in-out infinite;
}

@keyframes cubeGlow {
    0%,100% { filter: drop-shadow(0 0 0px rgba(255,255,255,0.0)) brightness(1); }
    50% { filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)) brightness(1.15); }
}

.rights {
    transform: rotateY(90deg) translateZ(-25px);
}

.rights img {
    transform: scaleX(-1);
    width: 37px;
}

.top {
    transform: rotateX(90deg) translateZ(25px);
}

.bottom {
    transform: rotateX(90deg) translateZ(25px);
}

.bottom img {
    padding-top: 12px;
    width: 42px;
}

@keyframes rotate {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

.no-select {
    user-select: none;
}

/* Navbar styling - white background, dark text */
.navbar {
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
}

.navbar.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Logo text styling */
.navbar-brand {
    display: flex !important;
    align-items: center;
    text-decoration: none;
    color: #2C3E50 !important;
    margin: 0;
    padding: 0;
}

.navbar-brand h1 {
    margin: 0 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    color: #2C3E50 !important;
    line-height: 1.2 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-brand img {
    max-height: 35px !important;
    width: auto !important;
    filter: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Nav links - dark on white */
.nav-link {
    color: #2C3E50 !important;
}

.nav-link:hover,
.nav-link.active {
    color: #1B98E0 !important;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .codepen {
        margin-left: 10px;
        width: 50px;
        margin-top: 0;
        margin-bottom: 50px;
    }
    
    .logo-animated {
        width: 80%;
        height: 100px;
    }
    
    .navbar-brand h1 {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        max-height: 30px;
    }
}

@media (max-width: 480px) {
    .logo-animated {
        gap: 0.5rem;
    }
    
    .codepen {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
    
    .codepen > div {
        width: 40px;
        height: 40px;
    }
    
    .front img {
        width: 30px;
    }
    
    .lefts img {
        width: 40px;
        height: 40px;
    }
    
    .rights img {
        width: 30px;
    }
    
    .bottom img {
        padding-top: 10px;
        width: 34px;
    }
    
    .front {
        transform: translateZ(20px);
    }
    
    .back {
        transform: translateZ(-20px);
    }
    
    .lefts {
        transform: rotateY(90deg) translateZ(20px);
    }
    
    .rights {
        transform: rotateY(90deg) translateZ(-20px);
    }
    
    .top {
        transform: rotateX(90deg) translateZ(20px);
    }
    
    .bottom {
        transform: rotateX(90deg) translateZ(20px);
    }
    
    .navbar-brand h1 {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        max-height: 25px;
    }
}