/* =========================================
   1. UTILITIES & GLASSMORPHISM
   ========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem; /* 24px */
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.gradient-text {
    background: linear-gradient(135deg, #be185d 0%, #7e22ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   2. BENTO GRID SYSTEM
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(180px, auto);
    }
}

.bento-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: #fbcfe8;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.bento-tall { grid-row: span 2; }
.bento-wide { grid-column: span 2; }

.bento-icon-lg {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* =========================================
   3. ROADMAP & MENTOR STYLING
   ========================================= */
.roadmap-step {
    border-left: 2px solid #e2e8f0;
    padding-left: 2rem;
    padding-bottom: 3rem;
    position: relative;
}
.roadmap-step:last-child { border-left: none; padding-bottom: 0; }

.step-dot {
    width: 1rem;
    height: 1rem;
    background: #be185d;
    border-radius: 50%;
    position: absolute;
    left: -0.55rem;
    top: 0.25rem;
    outline: 4px solid white;
}

/* 3D Mentor Card */
.mentor-scene { perspective: 1000px; }
.mentor-card-3d {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}
.mentor-card-3d:hover { transform: rotateY(0) rotateX(0); }
.mentor-img { width: 100%; height: 100%; object-fit: cover; }

.float-badge {
    position: absolute;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: bold;
    font-size: 0.75rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.badge-1 { top: 20px; right: 20px; animation: float 3s ease-in-out infinite; }
.badge-2 { bottom: 40px; left: -20px; animation: float 4s ease-in-out infinite 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================
   4. ANIMATIONS (SCROLL & 3D)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Floating Animation for Hero Image */
@keyframes float-3d {
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateY(-5deg); }
    100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
}

.hero-3d-img {
    animation: float-3d 6s ease-in-out infinite;
    perspective: 1000px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.15);
    border-radius: 20px;
}

/* 3D Tilt Card Effect */
.card-3d-wrapper {
    perspective: 1000px;
}
.card-3d {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
}
.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.02);
    box-shadow: -20px 20px 40px rgba(0,0,0,0.1);
}

/* Cosmic Animations */
@keyframes cosmic-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.cosmic-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, #be185d 25%, #9333ea 50%, transparent 80%);
    animation: cosmic-spin 4s linear infinite;
    filter: blur(8px);
    z-index: 0;
}
.cosmic-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: white; /* Matches page bg */
    z-index: 1;
}

/* 3D Hover Lift */
.hover-3d-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.hover-3d-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Floating Icons */
@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-anim { animation: float-icon 3s ease-in-out infinite; }
.float-anim-delay { animation: float-icon 4s ease-in-out infinite 1.5s; }

/* =========================================
   5. NAVIGATION & FOOTER
   ========================================= */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #be185d;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Footer Glow Border */
@keyframes border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.footer-border-anim {
    height: 4px;
    background: linear-gradient(270deg, #be185d, #9333ea, #3b82f6, #be185d);
    background-size: 300% 300%;
    animation: border-flow 8s ease infinite;
}

/* =========================================
   6. COSMIC TEXT LOGO (NEW)
   ========================================= */
.cosmic-text-bg {
    background: linear-gradient(
        135deg,
        #be185d 0%,
        #ff4d9e 25%,
        #9333ea 50%,
        #3b82f6 75%,
        #be185d 100%
    );
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

@keyframes text-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.cosmic-animate {
    animation: text-flow 6s linear infinite;
}

.logo-icon-box {
    width: 38px;
    height: 38px;
    background-color: #be185d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(190, 24, 93, 0.3);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
}

.group:hover .logo-icon-box {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
    background-color: #9d174d;
}

/* =========================================
   7. MOBILE APP DOCK
   ========================================= */
.mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dock-item.active {
    color: #be185d;
}

.dock-item.active .dock-icon-bg {
    background-color: #fdf2f8; /* pink-50 */
    transform: translateY(-2px);
}

.dock-icon-bg {
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body { padding-bottom: 90px; }
    /* Desktop Nav is hidden via Tailwind 'hidden md:block' classes */
}
@media (min-width: 769px) {
    .mobile-dock { display: none; }
}
/* Add to your existing <style> tag */

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.perspective-1000 {
    perspective: 1000px;
}

.hover-rotate-x-2:hover {
    transform: rotateX(5deg) translateY(-10px);
}

.translate-z-10 {
    transform: translateZ(30px);
}

.style-preserve-3d {
    transform-style: preserve-3d;
}
/* --- COSMIC RINGS CSS --- */
.cosmic-ring {
    position: absolute;
    inset: -30px; /* Expands ring 30px outside the image */
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #be185d; /* Pink */
    border-right-color: #9333ea; /* Purple */
    border-bottom-color: rgba(190, 24, 149, 0.3);
    animation: spin-slow 10s linear infinite;
    box-shadow: 0 0 30px rgba(190, 24, 149, 0.4); /* Glow */
    z-index: 0;
    pointer-events: none;
}

.cosmic-ring::before {
    content: '';
    position: absolute;
    inset: 15px; /* Inner ring distance */
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: #be185d;
    border-bottom-color: #9333ea;
    animation: spin-reverse 15s linear infinite;
}

/* Animation Keyframes */
@keyframes spin-slow { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}
@keyframes spin-reverse { 
    from { transform: rotate(360deg); } 
    to { transform: rotate(0deg); } 
}