/* ================================
   3D Premium Effects - threed.css
   ================================ */

/* ===== 3D Cube Hero ===== */
.hero-3d-wrapper {
    width: 250px;
    height: 250px;
    perspective: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-cube {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotate 8s infinite linear;
}

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

.cube-face {
    position: absolute;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid rgba(108, 99, 255, 0.4);
    background: rgba(30, 30, 58, 0.7);
    backdrop-filter: blur(10px);
    color: #6c63ff;
}

.cube-face.front  { transform: translateZ(75px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(75px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(75px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(75px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(75px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }

/* ===== Hero Stats Strip ===== */
.hero-stats-strip {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 12px 20px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    width: fit-content;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

.hero-stat-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-sep {
    color: rgba(108, 99, 255, 0.3);
    font-size: 1.2rem;
}

/* ===== 3D Cards ===== */
.project-card,
.service-card,
.platform-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease !important;
}

/* ===== Platforms Section ===== */
.platforms {
    padding: 80px 0;
    background: var(--dark);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.platform-card:hover::before { transform: scaleX(1); }

.platform-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.25);
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.platform-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.platform-card p {
    color: var(--text-light);
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.platform-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-active {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.status-review {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-pending {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--border);
}

/* ===== Websites Section inside Platforms ===== */
.websites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.website-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.website-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.2);
}

.website-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.website-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.website-info p {
    color: var(--text-light);
    font-size: 0.78rem;
}

/* ===== Section Subtitle ===== */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.platforms-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--primary);
}

/* ===== Neon glow on hover ===== */
.project-card:hover .project-icon i,
.service-card:hover i {
    text-shadow: 0 0 20px rgba(108, 99, 255, 0.8),
                 0 0 40px rgba(108, 99, 255, 0.5);
}

/* ===== Floating Animation for stat cards ===== */
.stat-card {
    animation: float-card 3s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 1s; }
.stat-card:nth-child(4) { animation-delay: 1.5s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .platforms-grid { grid-template-columns: repeat(3, 1fr); }
    .websites-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-3d-wrapper { width: 180px; height: 180px; }
    .hero-3d-cube { width: 110px; height: 110px; }
    .cube-face { width: 110px; height: 110px; font-size: 2rem; }
    .cube-face.front  { transform: translateZ(55px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(55px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(55px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(55px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(55px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(55px); }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .websites-grid { grid-template-columns: 1fr; }
    .hero-stats-strip { flex-wrap: wrap; justify-content: center; }
}
