/* Card Components */

/* Base Card */
.card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(250, 204, 21, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Card Header */
.card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-gray-400);
    font-size: 0.875rem;
}

/* Card Body */
.card-body {
    color: var(--text-gray-300);
    line-height: 1.6;
}

/* Card Footer */
.card-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(250, 204, 21, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Service Card */
.service-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(59, 130, 246, 0.1));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover {
    border-color: rgba(250, 204, 21, 0.5);
    transform: translateY(-1rem) rotate(1deg);
    box-shadow: 0 20px 40px rgba(250, 204, 21, 0.2);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:nth-child(even):hover {
    transform: translateY(-1rem) rotate(-1deg);
}

/* Portfolio Card */
.portfolio-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.9), rgba(250, 204, 21, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    padding: 1rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.portfolio-tech {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Feature Card */
.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(45deg, var(--primary-yellow), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-blue);
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--primary-yellow);
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-gray-300);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-yellow);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-gray-400);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

/* Card Hover Effects */
.card-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.card-glow:hover {
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.3);
}

/* Card Responsive */
@media (max-width: 768px) {
    .card {
        padding: 1rem;
    }
    
    .service-card:hover,
    .service-card:nth-child(even):hover {
        transform: translateY(-0.5rem) rotate(0deg);
    }
}
