/* Skills Page Specific Styles */

/* Skills Section */
#skills {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
}

#skills h2 {
    color: #2c3e50;
    position: relative;
}

#skills .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Course Card Styling (matching courses page) */
.course-card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.course-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.course-card .card-body {
    padding: 2.5rem;
}

.course-icon-large {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.course-icon-large i {
    font-size: 4rem !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.course-card:hover .course-icon-large i {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.course-content {
    padding: 1rem;
}

.course-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    position: relative;
    text-align: center;
}

/* Override text alignment for left/right positioned content */
.text-md-start .course-title {
    text-align: left;
}

.text-md-end .course-title {
    text-align: right;
}

.course-description {
    color: #6c757d;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
    text-align: center;
    padding: 0 1rem 1.5rem;
}

/* Override text alignment for descriptions */
.text-md-start .course-description {
    text-align: left;
}

.text-md-end .course-description {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-card .card-body {
        padding: 1.5rem;
    }
    
    /* Mobile: Icons on top */
    .course-card .row {
        flex-direction: column !important;
    }
    
    .course-card .col-md-3,
    .course-card .col-md-9 {
        order: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Icon always appears first (top) in mobile */
    .course-card .col-md-3 {
        order: 1 !important;
        margin-bottom: 1rem;
    }
    
    /* Content always appears second (bottom) in mobile */
    .course-card .col-md-9 {
        order: 2 !important;
    }
    
    .course-icon-large {
        margin-bottom: 0;
    }
    
    .course-icon-large i {
        font-size: 2.5rem !important;
    }
    
    .course-title {
        font-size: 1.2rem;
        text-align: center !important;
    }
    
    .course-description {
        text-align: center !important;
        font-size: 1rem;
    }
    
    .text-md-end {
        text-align: center !important;
    }
    
    .course-card:hover .course-content {
        transform: none;
    }
}

/* Legacy Skills Card Styling (for backward compatibility) */
.card-container {
    perspective: 1000px;
}

.skills-card,
.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.skills-card:hover,
.card:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon-top {
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.card-icon-top i {
    transition: all 0.3s ease;
}

.skills-card:hover .card-icon-top i,
.card:hover .card-icon-top i {
    transform: scale(1.2) rotate(10deg);
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
    text-align: center;
    padding: 0 1rem 1.5rem;
}

/* Card Body Styling */
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Section Headers */
.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

/* Grid Layout */
.row.g-4 {
    margin-top: 2rem;
}

/* Color Variations for Icons */
.card-icon-top .fa-code {
    color: #007bff;
}

.card-icon-top .fa-music {
    color: #28a745;
}

.card-icon-top .fa-keyboard {
    color: #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-card,
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-icon-top i {
        font-size: 2.5rem !important;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .card-icon-top i {
        font-size: 2rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Spacing */
.mb-5 {
    margin-bottom: 3rem !important;
}

/* Additional Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.skills-card:hover,
.card:hover {
    animation: float 2s ease-in-out infinite;
}
