/* Cyberpunk Interests Section Styling */
/* Modern, futuristic design with neon effects and interactive elements */

.interests {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(var(--dark-rgb), 0.95) 0%, 
        rgba(var(--primary-rgb), 0.05) 50%, 
        rgba(var(--dark-rgb), 0.95) 100%);
    overflow: hidden;
}

.interests::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--accent-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.interests .container {
    position: relative;
    z-index: 2;
}

/* Section Header Styling */
.interests .cyber-section-header {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 
        0 0 10px rgba(var(--primary-rgb), 0.5),
        0 0 20px rgba(var(--primary-rgb), 0.3),
        0 0 30px rgba(var(--primary-rgb), 0.1);
}

.interests .cyber-section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Circuit Lines */
.interests .circuit-line {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    opacity: 0.6;
    animation: circuit-pulse 2s ease-in-out infinite alternate;
}

.interests .circuit-line-1 {
    top: -2px;
    left: 10%;
    width: 80%;
    height: 1px;
    animation-delay: 0s;
}

.interests .circuit-line-2 {
    bottom: -2px;
    left: 15%;
    width: 70%;
    height: 1px;
    animation-delay: 0.5s;
}

.interests .circuit-line-3 {
    top: 50%;
    left: -2px;
    width: 1px;
    height: 40%;
    animation-delay: 1s;
}

@keyframes circuit-pulse {
    0% { opacity: 0.3; box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.3); }
    100% { opacity: 0.8; box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.6); }
}

/* Interests Grid */
.interests-content {
    max-width: 1200px;
    margin: 0 auto;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Interest Cards - Enhanced specificity */
.interests .interest-card {
    background: linear-gradient(145deg, 
        rgba(var(--primary-rgb), 0.1) 0%, 
        rgba(var(--dark-rgb), 0.8) 50%, 
        rgba(var(--primary-rgb), 0.05) 100%) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.3) !important;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.interests .interest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(var(--primary-rgb), 0.1) 50%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.interest-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--accent-color), 
        var(--primary-color));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Interest Icon - Enhanced specificity */
.interests .interest-icon {
    font-size: 3rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease !important;
    text-shadow: 
        0 0 10px rgba(var(--primary-rgb), 0.6),
        0 0 20px rgba(var(--primary-rgb), 0.4) !important;
}

/* Interest Title - Enhanced specificity */
.interests .interest-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease !important;
}

/* Interest Description */
.interest-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Interest Glow Effect */
.interest-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
    z-index: 0;
}

/* Hover Effects - Enhanced specificity to override other styles */
.interests .interest-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 
        0 20px 40px rgba(var(--primary-rgb), 0.2),
        0 0 30px rgba(var(--primary-rgb), 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.interests .interest-card:hover::before {
    opacity: 1;
}

.interests .interest-card:hover::after {
    opacity: 0.5;
    animation: border-glow 2s linear infinite;
}

.interests .interest-card:hover .interest-icon {
    transform: scale(1.1) rotateY(10deg) !important;
    color: var(--accent-color) !important;
    text-shadow: 
        0 0 15px rgba(var(--primary-rgb), 0.8),
        0 0 30px rgba(var(--primary-rgb), 0.6),
        0 0 45px rgba(var(--primary-rgb), 0.4) !important;
    filter: brightness(1.3) saturate(1.4) !important;
}

.interests .interest-card:hover .interest-title {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5) !important;
}

.interests .interest-card:hover .interest-description {
    color: var(--text-color);
}

.interests .interest-card:hover .interest-glow {
    width: 300px;
    height: 300px;
}

@keyframes border-glow {
    0%, 100% { 
        background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    }
    25% { 
        background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--accent-color));
    }
    50% { 
        background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    }
    75% { 
        background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--accent-color));
    }
}

/* Active/Click Effect */
.interest-card:active {
    transform: translateY(-8px) scale(1.01);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .interest-card {
    background: linear-gradient(145deg, 
        rgba(83, 109, 254, 0.15) 0%, 
        rgba(30, 35, 55, 0.9) 50%, 
        rgba(83, 109, 254, 0.1) 100%);
    border-color: rgba(83, 109, 254, 0.4);
}

[data-theme="dark"] .interest-card:hover {
    border-color: #536dfe;
    box-shadow: 
        0 20px 40px rgba(83, 109, 254, 0.25),
        0 0 30px rgba(83, 109, 254, 0.35);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .interest-card {
        padding: 1.5rem;
        min-height: 200px;
    }
    
    .interests .cyber-section-header {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        padding: 10px;
        max-width: 600px;
    }
    
    .interest-card {
        padding: 1.2rem;
        min-height: 180px;
        margin: 0;
    }
    
    .interests .cyber-section-header {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .interest-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .interest-title {
        font-size: 1.3rem;
    }
    
    .interest-description {
        font-size: 0.9rem;
    }
    
    /* Reduce hover effects on mobile for better performance */
    .interest-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .interest-card {
        padding: 1.2rem;
        min-height: 160px;
        margin: 0 5px;
    }
    
    .interests .cyber-section-header {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .interest-icon {
        font-size: 2rem;
    }
    
    .interest-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .interest-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* High contrast mode accessibility */
@media (prefers-contrast: high) {
    .interest-card {
        border: 2px solid var(--primary-color);
        background: var(--background-color);
    }
    
    .interest-title {
        color: var(--primary-color);
    }
    
    .interest-description {
        color: var(--text-color);
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .interest-card,
    .interest-icon,
    .interest-title,
    .interest-description,
    .interest-glow {
        transition: none;
        animation: none;
    }
    
    .interests .cyber-section-header::before {
        animation: none;
    }
    
    .interests .circuit-line {
        animation: none;
        opacity: 0.5;
    }
}
