/* Navigation & Layout Styles */

/* Top-left action buttons - below navbar like web3 indicator */
.top-left-actions {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 0, 128, 0.5);
    background: rgba(20, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
    min-width: 60px;
    text-align: center;
}

.action-btn i {
    font-size: 18px;
}

.action-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.6), 0 0 15px rgba(0, 255, 255, 0.4);
    border-color: rgba(0, 255, 255, 0.7);
}

.donate-btn-top {
    border-color: rgba(255, 0, 128, 0.6);
}

.donate-btn-top i {
    color: #ff0080;
}

.donate-btn-top::after {
    content: 'Donate';
    font-weight: 500;
    color: #ff0080;
}

.lost-btn-top {
    border-color: rgba(138, 43, 226, 0.6);
}

.lost-btn-top i {
    color: #8a2be2;
}

.lost-btn-top::after {
    content: 'Lost?';
    font-weight: 500;
    color: #8a2be2;
}

.lost-btn-top:hover {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.lost-btn-top:hover i {
    color: #00ffff;
}

.lost-btn-top:hover::after {
    color: #00ffff;
}

/* Top-right connect button - matching style of top-left buttons */
.top-right-actions {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.connect-btn-top {
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid;
    border-image: linear-gradient(135deg, #00ffff, #ff0080, #8a2be2) 1;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 128, 0.1), rgba(138, 43, 226, 0.1));
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 10px rgba(255, 0, 128, 0.2);
    min-width: 60px;
    text-align: center;
    animation: walletPulse 2s ease-in-out infinite, subtleHeartbeat 2.5s ease-in-out infinite;
}

.connect-btn-top i {
    font-size: 18px;
    color: #00ffff;
}

.connect-btn-top::after {
    content: 'Connect';
    font-weight: 500;
    background: linear-gradient(135deg, #00ffff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connect-btn-top:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 20px rgba(255, 0, 128, 0.5);
}

.connect-btn-top.connected {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.connect-btn-top.connected i {
    color: #00ff88;
}

.connect-btn-top.connected::after {
    content: attr(data-chain);
    background: linear-gradient(135deg, #00ff88, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes walletPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), 0 0 8px rgba(255, 0, 128, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), 0 0 15px rgba(255, 0, 128, 0.4);
    }
}

@keyframes sparkle {
    0%, 100% {
        box-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px #00ff88, 0 0 25px #00ffff;
        transform: scale(1.3);
    }
}

/* Tooltip for connect button */
.connect-btn-top {
    position: relative;
}

.connect-btn-top::before {
    content: 'Connect your Web3 wallet for a fun and interactive experience :-)';
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 11px;
    color: #00ffff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    max-width: 250px;
    white-space: normal;
    text-align: center;
}

.connect-btn-top:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Ensure entire button is clickable */
.connect-btn-top,
.connect-btn-top * {
    cursor: pointer;
}

.connect-btn-top {
    pointer-events: auto;
}

.connect-btn-top i,
.connect-btn-top::after {
    pointer-events: none;
}

@media (max-width: 768px) {
    .top-right-actions {
        display: none;
    }
}

/* Unified button styling */
.cta-button, .spark-button, .grow-button, .submit-btn, .subscribe-btn, .read-more {
    background: var(--gradient-primary);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover, .spark-button:hover, .grow-button:hover, .submit-btn:hover, .subscribe-btn:hover, .read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.4);
}

/* Card pulse with hue rotation */
.card, .project-card, .contact-card, .path-card, .bento-item {
    animation: cardPulse 4s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    }
    50% { 
        filter: hue-rotate(15deg) brightness(1.1);
        box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    }
}

/* Larger footer social icons */
.footer .social-links {
    display: flex;
    gap: 20px;
}

.footer .social-link {
    font-size: 32px !important;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .social-link:hover {
    transform: scale(1.15);
}

/* Donate Modal Styling */
.donate-modal {
    padding: 20px;
}

.donate-modal h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #ff0080;
}

.donate-modal h4 {
    color: #00ffff;
    margin: 20px 0 10px;
}

.payment-section {
    margin: 25px 0;
}

.payment-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.paypal-btn {
    background: linear-gradient(135deg, #0070ba, #1546a0);
}

.venmo-btn {
    background: linear-gradient(135deg, #3d95ce, #008cff);
}

.payment-btn:hover {
    transform: translateY(-3px);
}

/* Specific payment button hover shadows - don't override with pink */
.payment-btn.paypal-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
}

.payment-btn.venmo-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 140, 255, 0.4);
}

.payment-btn.cashapp-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 214, 50, 0.4);
}

.crypto-addresses {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crypto-item {
    background: rgba(255, 0, 128, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid rgba(0, 255, 255, 0.5);
}

.crypto-item strong {
    display: block;
    margin-bottom: 8px;
    color: #00ffff;
}

.address-container {
    display: flex;
    gap: 10px;
}

.address-container input {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 6px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.copy-btn {
    padding: 10px 15px;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 6px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.wallet-connect-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.2), rgba(0, 255, 255, 0.2));
    border: 2px solid rgba(255, 0, 128, 0.5);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

/* Ensure pseudo-elements and children don't block clicks */
.wallet-connect-btn::before,
.wallet-connect-btn::after,
.wallet-connect-btn > * {
    pointer-events: none;
}

.wallet-connect-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3));
    transform: translateY(-2px);
}

.demo-note {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.insights-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: rgba(0, 255, 255, 0.8);
    margin-top: -10px;
    margin-bottom: 20px;
}

.insight-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.insight-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.4);
}

.expandable-card .card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.expandable-card.expanded .card-content {
    max-height: none;
    overflow: visible;
}

.expand-icon {
    transition: transform 0.3s ease;
}

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

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

.card-header:hover {
    background: rgba(255, 0, 128, 0.05);
}

@keyframes breathing {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}

.breathing-glow {
    animation: breathing 3s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.05); }
    20% { transform: scale(1); }
    30% { transform: scale(1.08); }
    40% { transform: scale(1); }
}

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

.heartbeat {
    animation: heartbeat 2s ease-in-out infinite;
}

.nav-social .social-link {
    animation: breathing 3s ease-in-out infinite, heartbeat 2s ease-in-out infinite;
}

.nav-link i {
    display: inline-block;
    animation: heartbeat 2s ease-in-out infinite;
}

.nav-menu .nav-link {
    animation: breathing 6s ease-in-out infinite;
}

/* Desktop navbar - psychedelic color-coded icons and text with fluctuating colors */
@keyframes psychedelicCyan {
    0%, 100% { color: #00ffff; text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    33% { color: #00ccff; text-shadow: 0 0 15px rgba(0, 204, 255, 0.6); }
    66% { color: #00ffcc; text-shadow: 0 0 12px rgba(0, 255, 204, 0.5); }
}

@keyframes psychedelicPink {
    0%, 100% { color: #ff0080; text-shadow: 0 0 10px rgba(255, 0, 128, 0.5); }
    33% { color: #ff00aa; text-shadow: 0 0 15px rgba(255, 0, 170, 0.6); }
    66% { color: #ff3399; text-shadow: 0 0 12px rgba(255, 51, 153, 0.5); }
}

@keyframes psychedelicGreen {
    0%, 100% { color: #00ff88; text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
    33% { color: #00ffaa; text-shadow: 0 0 15px rgba(0, 255, 170, 0.6); }
    66% { color: #33ff99; text-shadow: 0 0 12px rgba(51, 255, 153, 0.5); }
}

@keyframes psychedelicOrange {
    0%, 100% { color: #ff6600; text-shadow: 0 0 10px rgba(255, 102, 0, 0.5); }
    33% { color: #ff8800; text-shadow: 0 0 15px rgba(255, 136, 0, 0.6); }
    66% { color: #ff9933; text-shadow: 0 0 12px rgba(255, 153, 51, 0.5); }
}

@keyframes psychedelicPurple {
    0%, 100% { color: #8a2be2; text-shadow: 0 0 10px rgba(138, 43, 226, 0.5); }
    33% { color: #9933ff; text-shadow: 0 0 15px rgba(153, 51, 255, 0.6); }
    66% { color: #aa44ff; text-shadow: 0 0 12px rgba(170, 68, 255, 0.5); }
}

@keyframes psychedelicBlue {
    0%, 100% { color: #00bfff; text-shadow: 0 0 10px rgba(0, 191, 255, 0.5); }
    33% { color: #0099ff; text-shadow: 0 0 15px rgba(0, 153, 255, 0.6); }
    66% { color: #33ccff; text-shadow: 0 0 12px rgba(51, 204, 255, 0.5); }
}

/* Desktop nav link colors - matching hamburger scheme */
/* 1=Home (cyan), 2=About (pink), 3=Portfolio (green), 4=Blog (gold), 5=Resources (orange), 6=Contact (blue), 7=Donate (pink) */
.desktop-nav li:nth-child(1) .nav-link { color: #00ffff !important; animation: psychedelicCyan 4s ease-in-out infinite, breathing 6s ease-in-out infinite; }
.desktop-nav li:nth-child(2) .nav-link { color: #ff0080 !important; animation: psychedelicPink 4s ease-in-out infinite, breathing 6s ease-in-out infinite; }
.desktop-nav li:nth-child(3) .nav-link { color: #00ff88 !important; animation: psychedelicGreen 4s ease-in-out infinite, breathing 6s ease-in-out infinite; }
.desktop-nav li:nth-child(4) .nav-link { color: #ffd700 !important; animation: psychedelicGold 4.5s ease-in-out infinite, breathing 6s ease-in-out infinite; }
.desktop-nav li:nth-child(5) .nav-link { color: #ff6600 !important; animation: psychedelicOrange 4s ease-in-out infinite, breathing 6s ease-in-out infinite; }
.desktop-nav li:nth-child(6) .nav-link { color: #00bfff !important; animation: psychedelicBlue 4.5s ease-in-out infinite, breathing 6s ease-in-out infinite; }
.desktop-nav li:nth-child(7) .nav-link { color: #ff0080 !important; animation: psychedelicPink 4s ease-in-out infinite, breathing 6s ease-in-out infinite; }

/* Goldish-yellow animation for Blog */
@keyframes psychedelicGold {
    0%, 100% { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    25% { color: #ffcc00; text-shadow: 0 0 15px rgba(255, 204, 0, 0.6); }
    50% { color: #ffaa00; text-shadow: 0 0 20px rgba(255, 170, 0, 0.7); }
    75% { color: #ffdd33; text-shadow: 0 0 15px rgba(255, 221, 51, 0.6); }
}

/* Desktop nav icons inherit parent color */
.desktop-nav .nav-link i {
    color: inherit;
}

/* Hamburger breathing effect */
.hamburger span {
    animation: breathing 4s ease-in-out infinite;
}

.hamburger span:nth-child(1) {
    animation-delay: 0s;
}

.hamburger span:nth-child(2) {
    animation-delay: 0.3s;
}

.hamburger span:nth-child(3) {
    animation-delay: 0.6s;
}

.nav-profile .ring {
    animation: subtleBounce 3s ease-in-out infinite;
}

.action-btn {
    animation: subtleHeartbeat 2.5s ease-in-out infinite;
}

.nav-profile-img {
    animation: subtleBounce 3s ease-in-out infinite;
}

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

.footer .social-link, .footer .donate-btn, .footer .lost-btn {
    animation: breathing 3s ease-in-out infinite;
}

.rainbow-spore {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px currentColor;
}

@keyframes sporeExplode {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--offset-x), calc(var(--offset-y) + 400px)) scale(0.2) rotate(720deg);
        opacity: 0;
    }
}

.glossary-entry {
    padding: 20px;
}

.glossary-entry h3 {
    color: #00ffff;
    margin-bottom: 15px;
}

.glossary-entry p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.glossary-actions {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 0, 128, 0.3);
}

.glossary-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.2), rgba(0, 255, 255, 0.2));
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.glossary-link:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.skill-item, .tag.soft-tag {
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-item:hover, .tag.soft-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 128, 0.4);
}

.glossary-hero {
    text-align: center;
    padding: 100px 20px 50px;
}

.glossary-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.glossary-term {
    background: rgba(255, 0, 128, 0.05);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.glossary-term:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.4);
    border-color: rgba(0, 255, 255, 0.5);
}

.glossary-term h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.glossary-term p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer .donate-btn, .footer .lost-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid rgba(255, 0, 128, 0.5);
    background: rgba(6, 0, 3, 0.9);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer .donate-btn {
    border-color: rgba(255, 0, 128, 0.5);
    color: #ff0080;
}

.footer .lost-btn {
    border-color: rgba(138, 43, 226, 0.5);
    color: #8a2be2;
}

.footer .donate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.6);
    border-color: rgba(0, 255, 255, 0.6);
    color: #00ffff;
}

.footer .lost-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    border-color: rgba(0, 255, 255, 0.6);
    color: #00ffff;
}

/* Fix modal transition */
.modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal[style*="display: block"] {
    opacity: 1;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal[style*="display: block"] .modal-content {
    transform: scale(1);
}

/* Hamburger Menu - hidden by default on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1003;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Centered Timeline */
.experience-timeline, .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 47%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-purple);
    border: 3px solid var(--primary-bg);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -8px;
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), transparent);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        padding-left: 40px !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-marker {
        left: 12px !important;
        right: auto !important;
    }
    
    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
        transform: none !important;
    }
}

/* Responsive */
/* About page social circles arc */
.profile-wrapper {
    position: relative;
    width: 340px;
    height: 380px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.profile-wrapper .profile-container {
    position: relative;
    z-index: 2;
    margin-top: 50px;
}

.social-circles-arc {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.social-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 128, 0.1);
    border: 2px solid rgba(255, 0, 128, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: all;
}

.social-circle:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3));
    border-color: rgba(0, 255, 255, 0.8);
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.social-circle i {
    font-size: 28px;
    color: #fff;
}

/* Position social circles around the profile photo */
.sc-1 { top: 15px; right: 80px; }      /* Top right - LinkedIn */
.sc-2 { top: -5px; left: 50%; transform: translateX(-50%); }       /* Top center - Gravatar */
.sc-3 { top: 15px; left: 80px; }    /* Top left - GitHub */
.sc-4 { top: 15px; left: 15px; }   /* Far left - ? button */

/* Mobile only helper class */
.mobile-only {
    display: none !important;
}

/* Hide mobile-hamburger items on desktop */
.mobile-hamburger-only {
    display: none !important;
}

/* Desktop only items */
.desktop-only {
    display: list-item;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }

    /* Show hamburger items in mobile menu */
    .mobile-hamburger-only {
        display: list-item !important;
    }

    /* Hide home from hamburger - it's in navbar */
    .desktop-only {
        display: none !important;
    }

    .hamburger,
    .hamburger.mobile-nav {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        z-index: 1003;
        padding: 10px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 255, 0.3);
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: linear-gradient(90deg, #00ffff, #ff0080);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-menu,
    .nav-menu.desktop-nav {
        position: fixed;
        left: -100%;
        top: 70px;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 20px;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        /* Grid layout for hamburger menu - 2 items per row */
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .nav-menu.active,
    .nav-menu.desktop-nav.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        list-style: none;
        display: flex;
    }

    .nav-menu li .nav-link,
    .nav-menu li button.nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        transition: all 0.3s ease;
        min-height: 70px;
        width: 100%;
        text-decoration: none;
        cursor: pointer;
        font-size: 0.85rem;
    }

    .nav-menu li .nav-link i,
    .nav-menu li button.nav-link i {
        font-size: 1.3rem;
        margin-bottom: 5px;
        margin-right: 0 !important;
    }

    .nav-menu li .nav-link:hover,
    .nav-menu li button.nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.03);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    }

    /* Individual nav item colors - hamburger menu grid
       1=Home(hidden), 2=About(pink), 3=Portfolio(green), 4=Blog(gold), 5=Resources(orange), 6=Contact(blue), 7=Donate(pink), 8=Lost(purple), 9=Wallet(cyan) */
    .nav-menu li:nth-child(1) .nav-link,
    .nav-menu li:nth-child(1) button.nav-link { color: #00ffff; border-color: rgba(0, 255, 255, 0.4) !important; }
    .nav-menu li:nth-child(2) .nav-link,
    .nav-menu li:nth-child(2) button.nav-link { color: #ff0080; border-color: rgba(255, 0, 128, 0.4) !important; }
    .nav-menu li:nth-child(3) .nav-link,
    .nav-menu li:nth-child(3) button.nav-link { color: #00ff88; border-color: rgba(0, 255, 136, 0.4) !important; }
    .nav-menu li:nth-child(4) .nav-link,
    .nav-menu li:nth-child(4) button.nav-link { color: #ffd700; border-color: rgba(255, 215, 0, 0.4) !important; }
    .nav-menu li:nth-child(5) .nav-link,
    .nav-menu li:nth-child(5) button.nav-link { color: #ff6600; border-color: rgba(255, 102, 0, 0.4) !important; }
    .nav-menu li:nth-child(6) .nav-link,
    .nav-menu li:nth-child(6) button.nav-link { color: #00bfff; border-color: rgba(0, 191, 255, 0.4) !important; }
    .nav-menu li:nth-child(7) .nav-link,
    .nav-menu li:nth-child(7) button.nav-link { color: #ff0080; border-color: rgba(255, 0, 128, 0.4) !important; }
    .nav-menu li:nth-child(8) .nav-link,
    .nav-menu li:nth-child(8) button.nav-link { color: #8a2be2; border-color: rgba(138, 43, 226, 0.4) !important; }
    .nav-menu li:nth-child(9) .nav-link,
    .nav-menu li:nth-child(9) button.nav-link { color: #00ffff; border-color: rgba(0, 255, 255, 0.4) !important; }

    /* Wallet connect button in hamburger - CTA style with status */
    .nav-menu .wallet-menu-item button,
    .nav-menu .wallet-status-badge {
        border-radius: 12px !important;
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(255, 0, 128, 0.15), rgba(138, 43, 226, 0.1)) !important;
        border: 2px solid rgba(0, 255, 255, 0.5) !important;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), 0 0 8px rgba(255, 0, 128, 0.2) !important;
        animation: walletPulse 2s ease-in-out infinite !important;
        min-height: 80px !important;
    }

    .nav-menu .wallet-menu-item button:hover,
    .nav-menu .wallet-status-badge:hover {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), 0 0 15px rgba(255, 0, 128, 0.4) !important;
        transform: scale(1.05) !important;
    }

    .nav-menu .wallet-status-badge.connected {
        border-color: rgba(0, 255, 136, 0.6) !important;
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.15)) !important;
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), 0 0 10px rgba(0, 255, 255, 0.3) !important;
        animation: sparkle 1.5s ease-in-out infinite !important;
    }

    .nav-menu .wallet-status-badge.connected .wallet-status-text {
        color: #00ff88 !important;
    }

    .glossary-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 1001 !important;
    }

    .nav-container {
        padding: 10px 15px;
    }

    /* Hide Home in hamburger menu - it's already in navbar */
    .desktop-only {
        display: none !important;
    }

    /* Show donate/lost only in hamburger menu on mobile */
    .mobile-hamburger-only {
        display: list-item !important;
    }

    /* Ensure main content doesn't get cut off by navbar */
    body {
        padding-top: 70px;
    }

    main, .hero-section, section:first-of-type {
        margin-top: 0;
    }
    

    
    .top-left-actions {
        display: none;
    }
    
    .nav-social {
        display: flex !important;
        gap: 10px;
        margin-left: auto;
    }
    
    .nav-social .social-link {
        font-size: 18px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(42, 42, 42, 0.9);
        border-radius: 50%;
        border: 1px solid rgba(255, 0, 128, 0.5);
    }
    
    .footer .social-link {
        font-size: 24px !important;
        width: 50px;
        height: 50px;
    }
    
    .payment-links {
        flex-direction: column;
    }
    
    .address-container {
        flex-direction: column;
    }
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
}

.nav-social .social-link i {
    animation: heartbeat 2s ease-in-out infinite;
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}

.resume-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    width: 100%;
    position: relative;
}

.resume-btn {
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3));
    border: 2px solid rgba(0, 255, 255, 0.5);
    color: #00ffff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    animation: breathing 6s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.resume-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.5), rgba(0, 255, 255, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
}

.social-circle {
    animation: breathing 6s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
}

/* Updated: 2025-01-15 - Social buttons rainbow arc, profile photo positioning, resume modal */
