/* Psychedelic & Web3 Effects */

:root {
    --neon-pink: #ff0080;
    --neon-cyan: #00ffff;
    --neon-green: #39ff14;
    --neon-orange: #ff6600;
    --neon-yellow: #ffff00;
    --electric-blue: #0066ff;
    --cosmic-purple: #8a2be2;
    --plasma-gradient: linear-gradient(45deg, #ff0080, #00ffff, #39ff14, #ff6600);
    --aurora-gradient: linear-gradient(135deg, #8a2be2, #ff0080, #00ffff, #39ff14);
    --rainbow-gradient: linear-gradient(90deg, #ff0080, #ff6600, #ffff00, #39ff14, #00ffff, #0066ff, #8a2be2);
}

/* Navigation Enhancements */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-profile {
    position: relative;
}

.nav-profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-profile .ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 55px;
    height: 55px;
    z-index: 1;
    animation: rotate-hue 8s linear infinite;
}

.nav-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-social .social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1003;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--neon-pink);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    /* Desktop nav is now handled by navigation.css with grid layout */
    .hamburger { display: flex !important; }
    .nav-social { display: flex !important; }
}

/* Hero Content Padding */
.hero-content {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px var(--neon-cyan);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-top: 5px;
}

/* Button Fixes */
.cta-button, .spark-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    opacity: 0 !important;
}

.cta-button:hover::after {
    opacity: 0 !important;
}

/* Footer Button Sizes */
.donate-btn, .lost-btn {
    padding: 12px 20px;
    font-size: 14px;
    min-width: 120px;
}

.footer-section .social-link {
    width: 45px;
    height: 45px;
    font-size: 20px;
}

/* Timeline Fixes */
.experience-timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        var(--neon-pink),
        var(--neon-cyan),
        var(--neon-green));
    box-shadow: 0 0 10px var(--neon-pink);
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-cyan);
    animation: markerPulse 2s ease-in-out infinite;
}

.experience-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Expandable Cards */
.expandable-card .card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.expandable-card.expanded .card-content {
    max-height: none;
    overflow: visible;
    padding: 15px 25px 25px;
}

.card-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.expand-icon {
    transition: transform 0.3s ease;
    color: var(--neon-cyan);
}

.expandable-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.external-link {
    color: var(--neon-cyan);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.external-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

/* Animations */
@keyframes breathe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 128, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 128, 0.8), 0 0 60px rgba(0, 255, 255, 0.4); }
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes rotate-hue {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 15px var(--neon-cyan); }
    50% { box-shadow: 0 0 25px var(--neon-cyan), 0 0 35px var(--neon-pink); }
}

@keyframes codeFloatDown {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes codeFloatRandom {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { 
        transform: translate(var(--end-x), var(--end-y)) rotate(720deg); 
        opacity: 0; 
    }
}

/* Breathing Cards */
.card, .experience-card, .achievement-item, .skill-card {
    animation: breathe 4s ease-in-out infinite;
}

.card:nth-child(2) { animation-delay: 0.5s; }
.card:nth-child(3) { animation-delay: 1s; }
.card:nth-child(4) { animation-delay: 1.5s; }

/* Floating Elements */
.card-icon, .floating-icon {
    animation: float 3s ease-in-out infinite;
}

.profile-container, .floating-profile {
    animation: float 4s ease-in-out infinite;
}

/* Psychedelic Skill Icons */
.skill-card .fab {
    animation: rotate-hue 8s linear infinite;
}

.skill-card:hover {
    box-shadow: 
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan),
        0 0 60px var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
}

/* Enhanced Text Effects */
.rainbow-text {
    background: var(--rainbow-gradient);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 3s ease-in-out infinite;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 
        0 0 2px var(--neon-cyan),
        0 0 4px var(--neon-cyan),
        0 0 8px var(--neon-cyan);
    animation: pulse-glow 3s ease-in-out infinite;
}

.tech-highlight {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.spiritual-highlight {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.highlight-glow {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.cosmic-text {
    background: linear-gradient(45deg, 
        var(--text-secondary), 
        var(--neon-cyan), 
        var(--text-secondary), 
        var(--neon-pink));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 8s ease-in-out infinite;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: var(--neon-cyan);
    animation: glitch-1 2s infinite;
}

.glitch-text::after {
    color: var(--neon-pink);
    animation: glitch-2 2s infinite;
}

@keyframes glitch-1 {
    0%, 90%, 100% { opacity: 0; }
    95% { 
        opacity: 0.7;
        transform: translate(-2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 85%, 100% { opacity: 0; }
    90% { 
        opacity: 0.7;
        transform: translate(2px, 2px);
    }
}

/* Liquid Background Effects */
.liquid-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 0, 128, 0.1) 0%,
        rgba(0, 255, 255, 0.1) 50%,
        rgba(57, 255, 20, 0.1) 100%);
    animation: liquidFlow 20s ease-in-out infinite;
}

@keyframes liquidFlow {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(-20px) scale(1.05); }
}

.northern-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(57, 255, 20, 0.3) 25%,
        rgba(0, 255, 255, 0.3) 50%,
        rgba(255, 0, 128, 0.3) 75%,
        transparent 100%);
    animation: northernLights 15s linear infinite;
}

@keyframes northernLights {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mycelial-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: mycelialPulse 8s ease-in-out infinite;
}

@keyframes mycelialPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.solidity-code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.solidity-code-rain::before {
    content: 'pragma solidity ^0.8.0; contract EtherealOffering { mapping(address => uint256) public gratitude; }';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    color: rgba(57, 255, 20, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    animation: codeRain 25s linear infinite;
}

@keyframes codeRain {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

/* Soft Tags */
.soft-tag {
    background: rgba(255, 0, 128, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 0, 128, 0.3) !important;
}

.soft-glow {
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5) !important;
}

/* Spark Buttons */
.spark-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spark-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.spark-button:hover::before {
    left: 100%;
}

.grow-button:hover {
    transform: scale(1.05);
}

/* Insights Stream */
/* There's another .insights-stream in resume.css - CSS precedence: psychedelic.css loads after resume.css, so it overrides */
.insights-stream {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(333px, 1fr));
    gap: 22px;
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .insights-stream {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

.insight-flow {
    position: relative;
}

.insight-node {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.insight-node:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.insight-connector {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--neon-pink), var(--neon-cyan));
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--neon-pink);
}

.insight-date {
    color: var(--neon-cyan);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.insight-title {
    color: var(--neon-pink);
    margin-bottom: 10px;
}

.insight-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.insight-tag {
    background: rgba(255, 0, 128, 0.2);
    color: var(--neon-cyan);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-right: 8px;
}

/* Footer Enhancements */
.footer {
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.95) 0%,
        rgba(30, 30, 30, 0.95) 100%);
    border-top: 1px solid rgba(255, 0, 128, 0.3);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h4 {
    color: var(--neon-pink);
    margin-bottom: 15px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0;
}

.contact-info i {
    color: var(--neon-cyan);
    margin-right: 8px;
}

.support-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.support-actions .donate-btn,
.support-actions .lost-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-width: 120px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-actions .donate-btn {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(139, 92, 246, 0.3));
    border: 2px solid rgba(255, 0, 128, 0.5);
    color: #ff0080;
}

.support-actions .donate-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.5), rgba(139, 92, 246, 0.5));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.4);
}

.support-actions .lost-btn {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(0, 255, 255, 0.5);
    color: #00ffff;
}

.support-actions .lost-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.4), rgba(139, 92, 246, 0.4));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}

.mycelial-sigil {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--neon-pink), var(--neon-cyan));
    border-radius: 50%;
    margin-bottom: 10px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 0, 128, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* Rainbow Spore Effects */
.rainbow-spore {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--neon-pink);
    border-radius: 50%;
    pointer-events: none;
    animation: sporefall 2s linear forwards;
    z-index: 1000;
}

@keyframes sporefall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(200px) rotate(360deg);
        opacity: 0;
    }
}

/* Skill Categories */
.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-category {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.category-title {
    color: var(--neon-pink);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-item {
    background: rgba(255, 0, 128, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    border: 1px solid rgba(255, 0, 128, 0.3);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}