/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #c9d1d9;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Sidebar Navigation */
.sidebar {
    width: 200px;
    background: #0d1117;
    border-right: 1px solid #30363d;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #8b949e;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    color: #c9d1d9;
    background: #21262d;
}

.nav-item.active {
    color: #00ff41;
    background: #0d1117;
    border-left-color: #00ff41;
}

.nav-icon {
    margin-right: 10px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: translateX(3px);
}

.nav-text {
    flex: 1;
}


/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 20px;
    background: #0a0a0a;
    min-height: 100vh;
}

/* Sections */
.section {
    margin-bottom: 40px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.hidden {
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.section-title {
    font-size: 20px;
    color: #00ff41;
    margin-bottom: 20px;
    font-weight: bold;
    animation: slideInFromLeft 0.6s ease-out;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Profile Card Styles */
.profile-card {
    background: transparent;
    border: none;
    padding: 20px 0;
    margin-bottom: 30px;
    text-align: left;
}

.username {
    font-size: 24px;
    font-weight: bold;
    color: #00ff41;
    margin-bottom: 8px;
    animation: typewriter 2s steps(20) 0.5s both;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #00ff41;
}

.tagline {
    font-size: 16px;
    color: #c9d1d9;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.bio {
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 20px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 1.5s both;
}

@keyframes typewriter {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 2s both;
}

.link {
    color: #58a6ff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.link:hover {
    color: #00ff41;
    transform: translateX(10px);
}

.link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #00ff41;
    transition: width 0.3s ease;
}

.link:hover::before {
    width: 10px;
}

.status {
    font-size: 12px;
    color: #8b949e;
    animation: fadeInUp 0.8s ease-out 2.5s both;
}

/* Terminal Styles */
.terminal {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #21262d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: #ff5f56; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #27ca3f; }

.terminal-title {
    color: #8b949e;
    font-size: 14px;
}

.terminal-body {
    padding: 20px;
    min-height: 400px;
    font-size: 14px;
}

.terminal-line {
    margin-bottom: 10px;
}

.prompt {
    color: #00ff41;
    font-weight: bold;
}

.command-line {
    margin: 15px 0;
}

.command {
    color: #c9d1d9;
}

.command-output {
    margin: 10px 0 20px 0;
    padding-left: 20px;
}

.output-line {
    color: #8b949e;
    margin: 2px 0;
}

.scroll-indicator {
    color: #8b949e;
    font-style: italic;
    margin: 10px 0;
}

.cursor {
    display: inline-block;
    background: #00ff41;
    width: 8px;
    height: 16px;
    animation: blink 1s infinite, pulse 2s infinite;
    box-shadow: 0 0 10px #00ff41;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px #00ff41;
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px #00ff41, 0 0 30px rgba(0, 255, 65, 0.5);
    }
}

/* Typing animation */
.typing {
    overflow: hidden;
    border-right: 2px solid #00ff41;
    white-space: nowrap;
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff41; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .profile-card {
        padding: 15px 0;
    }
    
    .username {
        font-size: 20px;
    }
    
    .tagline {
        font-size: 14px;
    }
    
    .bio {
        font-size: 13px;
    }
    
    .terminal-body {
        padding: 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .username {
        font-size: 18px;
    }
    
    .tagline {
        font-size: 13px;
    }
    
    .bio {
        font-size: 12px;
    }
    
    .link {
        font-size: 13px;
    }
}

/* Projects Section */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-item {
    padding: 15px;
    border: 1px solid #30363d;
    border-radius: 4px;
    background: #0d1117;
    transition: all 0.3s ease;
    animation: slideInFromRight 0.6s ease-out;
    animation-fill-mode: both;
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }

.project-item:hover {
    border-color: #00ff41;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.1);
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-name {
    color: #00ff41;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.project-desc {
    color: #c9d1d9;
    font-size: 14px;
    margin-bottom: 8px;
}

.project-tech {
    color: #8b949e;
    font-size: 12px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    padding: 15px;
    border: 1px solid #30363d;
    border-radius: 4px;
    background: #0d1117;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s ease;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 255, 65, 0.15);
    border-color: #00ff41;
}

.category-title {
    color: #00ff41;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill {
    color: #c9d1d9;
    font-size: 12px;
    padding: 4px 8px;
    background: #21262d;
    border-radius: 3px;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    animation: scaleIn 0.4s ease-out;
    animation-fill-mode: both;
}

.skill:nth-child(1) { animation-delay: 0.1s; }
.skill:nth-child(2) { animation-delay: 0.2s; }
.skill:nth-child(3) { animation-delay: 0.3s; }
.skill:nth-child(4) { animation-delay: 0.4s; }

.skill:hover {
    background: #00ff41;
    color: #000;
    transform: scale(1.05);
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Music Section */
.music-library {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.music-player {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    animation: fadeInUp 0.6s ease-out;
}

.player-info {
    text-align: center;
    margin-bottom: 20px;
}

.current-track {
    color: #00ff41;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    transition: opacity 0.3s ease;
}

.current-artist {
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 10px;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.track-time {
    color: #8b949e;
    font-size: 14px;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.control-btn:hover {
    background: #00ff41;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.play-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.progress-container {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #30363d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #00ff41;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.volume-container i {
    color: #8b949e;
    font-size: 12px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: #30363d;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #00ff41;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #00ff41;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Playlist */
.playlist {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.playlist-header {
    background: #21262d;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.playlist-title {
    color: #00ff41;
    font-size: 16px;
    font-weight: bold;
}

.track-count {
    color: #8b949e;
    font-size: 12px;
}

.quick-play-btn {
    background: #00ff41;
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-play-btn:hover {
    background: #00cc33;
    transform: scale(1.05);
}

.track-list {
    display: flex;
    flex-direction: column;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #30363d;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInFromRight 0.4s ease-out;
    animation-fill-mode: both;
}

.track-item:nth-child(1) { animation-delay: 0.1s; }
.track-item:nth-child(2) { animation-delay: 0.2s; }
.track-item:nth-child(3) { animation-delay: 0.3s; }
.track-item:nth-child(4) { animation-delay: 0.4s; }

.track-item:hover {
    background: #21262d;
    transform: translateX(5px);
}

.track-item.active {
    background: rgba(0, 255, 65, 0.1);
    border-left: 3px solid #00ff41;
}

.track-number {
    color: #8b949e;
    font-size: 12px;
    width: 30px;
    text-align: center;
}

.track-info {
    flex: 1;
    margin: 0 15px;
}

.track-name {
    color: #c9d1d9;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.track-artist {
    color: #8b949e;
    font-size: 12px;
}

.track-duration {
    color: #8b949e;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInFromLeft 0.6s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(0, 255, 65, 0.05);
    padding-left: 10px;
    border-radius: 4px;
}

.contact-label {
    color: #8b949e;
    font-size: 14px;
    min-width: 80px;
}

.contact-value {
    color: #58a6ff;
    font-size: 14px;
    text-decoration: none;
}

.contact-value:hover {
    color: #00ff41;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 20px 0;
    }
    
    .nav-item {
        padding: 15px 10px;
        justify-content: center;
        flex-direction: column;
    }
    
    .nav-text {
        font-size: 10px;
        margin-top: 5px;
        text-align: center;
    }
    
    .nav-icon {
        margin-right: 0;
        font-size: 16px;
    }
    
    .main-content {
        margin-left: 60px;
        padding: 15px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 50px;
    }
    
    .main-content {
        margin-left: 50px;
        padding: 10px;
    }
    
    .nav-text {
        font-size: 8px;
    }
    
}
