/* Credits Page Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.credits-main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.credits-header {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    color: white;
}

.back-navigation {
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.header-content {
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title i {
    color: #ff6b6b;
    margin-right: 1rem;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Main Content */
.credits-main {
    padding: 3rem 0;
}

/* Section Styling */
.credits-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header h2 i {
    color: #667eea;
    font-size: 2rem;
}

.section-header p {
    color: #718096;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Credits Grid */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.credit-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.credit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.credit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.credit-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-icon {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.font-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.font-sample {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tech-preview {
    background: linear-gradient(135deg, #4fd1c7 0%, #81e6d9 100%);
}

.tech-preview i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.credit-info h3 {
    font-size: 1.4rem;
    color: #c4c4c4;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.credit-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.credit-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credit-author,
.credit-license {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.credit-author i,
.credit-license i {
    color: #667eea;
    width: 16px;
}

.credit-source {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.credit-source:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Credits List (for inspiration section) */
.credits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inspiration-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}

.inspiration-info h3 {
    color: #c4c4c4;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.inspiration-description {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.inspiration-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.inspiration-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* Footer */
.credits-footer {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    margin-top: auto;
    color: white;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-text i {
    color: #ff6b6b;
}

.footer-trademark {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* AI Contributions Specific Styling */
.ai-contributions {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.ai-contributions h4 {
    color: #4c51bf;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-contributions ul {
    list-style: none;
    padding: 0;
}

.ai-contributions li {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: transparent;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.ai-contributions li:hover {

    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.ai-contributions li strong {
    color: #4c51bf;
    font-weight: 600;
}

/* Robot icon animation for AI section */
.fa-robot {
    animation: robotPulse 2s infinite;
}

@keyframes robotPulse {
    0%, 100% { 
        transform: scale(1);
        color: #667eea;
    }
    50% { 
        transform: scale(1.1);
        color: #764ba2;
    }
}

/* Brain icon styling */
.fa-brain {
    color: #8b5cf6;
    animation: brainGlow 3s infinite alternate;
}

@keyframes brainGlow {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .credits-grid {
        grid-template-columns: 1fr;
    }
    
    .credit-item {
        padding: 1.5rem;
    }
    
    .credits-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .credit-details {
        gap: 0.5rem;
    }
    
    .credits-main {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .back-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .credit-preview {
        height: 60px;
    }
    
    .preview-icon {
        max-width: 40px;
        max-height: 40px;
    }
    
    .tech-preview i {
        font-size: 2rem;
    }
    
    .font-sample {
        font-size: 1.4rem;
    }
}

/* Animation for page load */
.credits-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for sections */
.credits-section:nth-child(1) { animation-delay: 0.1s; }
.credits-section:nth-child(2) { animation-delay: 0.2s; }
.credits-section:nth-child(3) { animation-delay: 0.3s; }
.credits-section:nth-child(4) { animation-delay: 0.4s; }

@media (prefers-color-scheme: dark){
    body{
        background: radial-gradient( ellipse at top, rgb(44, 12, 70) 50%, rgb(20, 20, 20) 100%);
    }

    .credits-header {
    background: transparent;
    border-bottom: 0px;
}

    .credits-section {
    background: linear-gradient(135deg, #7c3aed1a, #a855f71a);
}

.section-header h2 {
    color: #ffffffaf;
}

.credit-item, .inspiration-item{
    background: #7c3aed1a;
    border: 0px;
}

.credit-info, .inspiration-info h3 {
    color: #ffffffaf;
}

.credit-description, .inspiration-description {
    color: #ffffffc4;
}
}