/* COMPONENTS.CSS - Component-specific styles */

/* Imports for custom fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&display=swap');

/* Additional component styling */

/* Smooth scroll animation for sections */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: slideInUp 0.6s ease-out;
}

/* Glowing effect on hover for cards */
.part-card::before,
.feature-card::before,
.feature-block::before,
.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(214, 168, 79, 0.05) 0%, transparent 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.part-card:hover::before,
.feature-card:hover::before,
.feature-block:hover::before,
.repo-card:hover::before {
    opacity: 1;
}

/* Make cards position: relative for pseudo-element */
.part-card,
.feature-card,
.feature-block,
.repo-card,
.roadmap-card,
.screenshot-item {
    position: relative;
}

/* Subtle animation on load */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nav-links li {
    animation: fadeIn 0.5s ease-out backwards;
}

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

/* Smooth hover effects on chips */
.chip {
    cursor: default;
    transition: all 0.3s ease;
}

.chip:hover {
    background-color: rgba(214, 168, 79, 0.2);
    border-color: rgba(214, 168, 79, 0.6);
    transform: scale(1.05);
}

/* Text gradient effect */
.hero-title {
    animation: slideInUp 0.8s ease-out;
}

/* Pulsing animation for hero mascot */
.hero-mascot {
    animation: float 3s ease-in-out infinite;
}

/* Icon glow effect */
.logo-icon,
.part-icon img,
.security-icon,
.repo-card img {
    transition: filter 0.3s ease;
}

.nav-logo:hover .logo-icon,
.part-card:hover .part-icon img,
.repo-card:hover img {
    filter: drop-shadow(0 0 20px rgba(214, 168, 79, 0.5));
}

/* Smooth transitions for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-light);
}
