@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    -webkit-user-drag: none;
    user-drag: none;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.main-site-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.main-site-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

body {
    cursor: none;
    font-family: 'Inter', sans-serif;
    background: #0f0f23;
    color: #e2e8f0;
    height: 100vh;
    overflow: hidden;
}

.custom-cursor {
    position: fixed;
    opacity: 0.68;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4a5ba6, #3a4b96);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    opacity: 0.68;
    top: -50%;
    left: -200%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 70%
    );
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s ease;
}

.custom-cursor.shine::before {
    transform: translateX(300%) skewX(-15deg);
    opacity: 0.68;
}

.custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.7);
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(102, 126, 234, 0.6);
    opacity: 0.68;
}

button:hover ~ .custom-cursor {
    transform: translate(-50%, -50%) scale(1.5);
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(102, 126, 234, 0.8);
    opacity: 0.68;
}

/* Hide default cursor on all interactive elements */
button, 
a, 
.project-link, 
.tech-item:hover, 
.status-item:hover,
.profile-pic:hover,
.modal-close,
[onclick] {
    cursor: none !important;
}

.container {
    display: flex;
    height: 100vh;
}

.profile-sidebar {
    width: 350px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-right: 1px solid #2d3748;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.profile-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    z-index: 1;
}

.profile-content {
    padding: 2rem;
    z-index: 2;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #667eea;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 0.5rem;
}

.profile-bio {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.bio-title {
    font-size: 0.9rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.bio-text {
    line-height: 1.6;
    color: #e2e8f0;
}

.status-section {
    margin-bottom: 2rem;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(45, 55, 72, 0.5);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.discord-icon {
    background: rgba(88, 101, 242, 0.2);
    color: #5865f2;
}

.spotify-icon {
    background: rgba(29, 185, 84, 0.2);
    color: #1db954;
}

.status-content {
    flex: 1;
}

.status-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.status-text {
    font-size: 0.8rem;
    color: #a0aec0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tech-stack {
    margin-top: auto;
}

.section-title {
    font-size: 0.9rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.tech-item {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Right Projects Section */
.projects-main {
    flex: 1;
    background: #0f0f23;
    overflow-y: auto;
}

.projects-header {
    position: sticky;
    top: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2d3748;
    padding: 2rem;
    z-index: 10;
}

.projects-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 0.5rem;
}

.projects-subtitle {
    color: #a0aec0;
    font-size: 1rem;
}

.projects-content {
    padding: 2rem;
}

.project-card {
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
    border: 1px solid #4a5568;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #667eea;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.projects-header > div:first-child {
    flex: 1;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #a0aec0;
}

.project-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-language {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.javascript { background: #f7df1e; }
.python { background: #3776ab; }
.typescript { background: #3178c6; }
.csharp { background: #239120; }
.react { background: #61dafb; }

.project-description {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.topic-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: rgba(102, 126, 234, 0.2);
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.project-link.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.project-link.secondary:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* Scrollbar Styling */
.projects-main::-webkit-scrollbar {
    width: 8px;
}

.projects-main::-webkit-scrollbar-track {
    background: #1a202c;
}

.projects-main::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.projects-main::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-sidebar {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .projects-main {
        height: 60vh;
    }
    
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.profile-handle {
    color: #667eea;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    top: -2.25px;
}

.profile-handle:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
}

#spotifyTrack a:hover,
#spotifyArtist a:hover {
    text-decoration: underline !important;
}

.project-card.featured {
    border: 2px solid #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    position: relative;
}

.project-card.featured:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    z-index: -1;
}

.project-card.featured::after {
    content: 'FEATURED';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1;
}

.project-card.featured:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
    margin: 2% auto;
    padding: 0;
    border: 1px solid #4a5568;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.7) translateY(-50px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.readme-content {
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
}

.readme-content h1,
.readme-content h2,
.readme-content h3,
.readme-content h4,
.readme-content h5,
.readme-content h6 {
    color: #f7fafc;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.readme-content h1 { font-size: 2rem; border-bottom: 2px solid #4a5568; padding-bottom: 0.5rem; }
.readme-content h2 { font-size: 1.5rem; border-bottom: 1px solid #4a5568; padding-bottom: 0.3rem; }
.readme-content h3 { font-size: 1.25rem; }

.readme-content p {
    margin-bottom: 1rem;
}

.readme-content code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.readme-content pre {
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.readme-content pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
}

.readme-content ul,
.readme-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.readme-content li {
    margin-bottom: 0.5rem;
}

.readme-content blockquote {
    border-left: 4px solid #667eea;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #a0aec0;
    font-style: italic;
}

.readme-content a {
    color: #667eea;
    text-decoration: underline;
}

.readme-content a:hover {
    color: #764ba2;
}

.readme-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.readme-content th,
.readme-content td {
    border: 1px solid #4a5568;
    padding: 0.5rem 1rem;
    text-align: left;
}

.readme-content th {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
}

/* Scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

.visit-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #a0aec0;
    margin-top: 5px;
    position: absolute;
    top: 4.5rem;
    right: 2rem;
}

.counter-label {
    font-weight: 500;
    margin-left: auto;
}

.counter-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-left: auto;            
}
