/* ==========================================================================
   Component Styles
   ========================================================================== */

/* ==========================================================================
   Flip Card
   ========================================================================== */

.flip-card {
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* ==========================================================================
   Tech Tags
   ========================================================================== */

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.tech-tag-brutal {
    border: 2px solid currentColor;
}

/* ==========================================================================
   Certification Cards
   ========================================================================== */

.cert-wrapper {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.cert-wrapper:nth-child(1) { animation-delay: 0.1s; }
.cert-wrapper:nth-child(2) { animation-delay: 0.2s; }
.cert-wrapper:nth-child(3) { animation-delay: 0.3s; }
.cert-wrapper:nth-child(4) { animation-delay: 0.4s; }
.cert-wrapper:nth-child(5) { animation-delay: 0.5s; }
.cert-wrapper:nth-child(6) { animation-delay: 0.6s; }

.cert-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.cert-card:hover {
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) !important;
    animation-play-state: paused;
}

.icon-float {
    transition: all 0.4s ease;
}

.cert-card:hover .icon-float {
    transform: scale(1.1);
}

/* ==========================================================================
   Project Cards
   ========================================================================== */

.project-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   Stats
   ========================================================================== */

.stat-number {
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Background Patterns
   ========================================================================== */

.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pulse-soft 4s ease-in-out infinite;
}

/* ==========================================================================
   View Button
   ========================================================================== */

.view-btn {
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: translateX(5px);
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    border-radius: 0.25rem;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
