        :root {
            --bg-primary: #0f1118;
            --bg-secondary: #161b22;
            --bg-tertiary: #21262d;
            --bg-quaternary: #30363d;
            --text-primary: #c9d1d9;
            --text-secondary: #8b949e;
            --accent-primary: #3b82f6;
            --accent-secondary: #10b981;
            --accent-tertiary: #f97316;
            --terminal-green: #39ff14;
            --terminal-yellow: #ffde59;
            --terminal-pink: #ff2d95;
            --terminal-blue: #00b8ff;
            --terminal-red: #ff3860;
            --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
            --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-xxl: 2rem;
        }

        @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
              font-size: var(--font-md);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-primary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--terminal-blue);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--terminal-green);
        }

        /* Terminal-like Cursor */
        .cursor {
            display: inline-block;
            width: 10px;
            height: 20px;
            background-color: var(--terminal-green);
            animation: blink 1s infinite;
            margin-left: 4px;
            vertical-align: middle;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* Code Editor Layout */
        .editor-container {
            display: grid;
            grid-template-columns: 250px 1fr;
            height: 100vh;
            width: 100%;
        }

        /* Sidebar */
        .sidebar {
            background-color: var(--bg-secondary);
            border-right: 1px solid #30363d;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
            z-index: 10;
        }

        .logo {
            font-family: var(--font-mono);
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--terminal-green);
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .logo i {
            margin-right: 10px;
            color: var(--terminal-blue);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        
/* Base styles */
.navbar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background-color: var(--bg-primary);
    padding: 1rem;
    transition: all 0.3s ease;
}

.nav-items {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Hover Effects */
.nav-item:hover,
.nav-item.active {
    background-color: var(--bg-tertiary);
    color: var(--terminal-green);
    transform: translateX(5px);
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.1), transparent);
    transition: all 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Footer */
.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    font-family: var(--font-mono);
}

/* HAMBURGER BUTTON STYLES */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2000;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-secondary);
  border-radius: 3px;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background-color: var(--bg-secondary);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1500;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .content {
    margin-left: 0 !important; /* Optional if you have margin on content */
  }
}


        .social-links {
            margin-top: auto;
            display: flex;
            justify-content: center;
            gap: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #30363d;
        }

        .social-links a {
            color: var(--text-secondary);
            font-size: 1.2rem;
            transition: all 0.3s ease;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--bg-tertiary);
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            color: var(--terminal-green);
            transform: translateY(-3px);
            background-color: var(--bg-quaternary);
            box-shadow: 0 5px 15px rgba(57, 255, 20, 0.2);
        }

        /* Main Content Area */
        .main-content {
            padding: 2rem;
            overflow-y: auto;
            background-color: var(--bg-primary);
            position: relative;
        }

        .section {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .section.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .section-title {
            font-family: var(--font-mono);
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--terminal-green);
            border-bottom: 2px solid var(--terminal-green);
            padding-bottom: 0.5rem;
            display: inline-block;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 60%;
            height: 4px;
            background: linear-gradient(90deg, var(--terminal-green), transparent);
        }

        /* Terminal-like Sections */
        .terminal-section {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border: 1px solid #30363d;
            position: relative;
            overflow: hidden;
        }

        .terminal-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--terminal-green), var(--terminal-blue), var(--terminal-pink));
            z-index: 1;
        }

        .terminal-header {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #30363d;
            position: relative;
            z-index: 2;
        }

        .terminal-button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }

        .terminal-button.red { background-color: #ff5f56; }
        .terminal-button.yellow { background-color: #ffbd2e; }
        .terminal-button.green { background-color: #27c93f; }

        .terminal-title {
            font-family: var(--font-mono);
            font-size: 1rem;
            color: var(--text-secondary);
        }

        .terminal-content {
            font-family: var(--font-mono);
            color: var(--text-primary);
            font-size: 0.95rem;
            position: relative;
            z-index: 2;
        }

        /* Terminal Command Input */
        .terminal-input-container {
            display: flex;
            align-items: center;
            margin-top: 1rem;
        }

        .terminal-prompt {
            color: var(--terminal-green);
            margin-right: 0.5rem;
            font-family: var(--font-mono);
        }

        .terminal-input {
            background-color: transparent;
            border: none;
            color: var(--text-primary);
            font-family: var(--font-mono);
            font-size: 0.9rem;
            flex-grow: 1;
            outline: none;
            border-bottom: 1px solid #30363d;
            padding: 0.3rem 0;
            width: 100%;
            caret-color: var(--terminal-green);
        }

        .terminal-input:focus {
            border-bottom-color: var(--terminal-blue);
        }

        /* About Section */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 1.5rem;
        }

        .about-text {
            line-height: 1.8;
        }

        .about-text p {
            margin-bottom: 1rem;
            color: var(--text-secondary);
        }

        .about-text strong {
            color: var(--terminal-yellow);
        }

        .code-snippet {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1.5rem;
            border: 1px solid #30363d;
            font-family: var(--font-mono);
            font-size: 0.9rem;
            overflow-x: auto;
            position: relative;
        }

        .code-snippet::before {
            content: 'Code';
            position: absolute;
            top: -10px;
            left: 10px;
            background-color: var(--bg-primary);
            padding: 0 0.5rem;
            font-size: 0.8rem;
            color: var(--terminal-green);
        }

        /* Skills Section */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .skill-card {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1rem;
            border: 1px solid #30363d;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.05), transparent);
            transition: all 0.5s ease;
        }

        .skill-card:hover {
            border-color: var(--terminal-green);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .skill-card:hover::before {
            left: 100%;
        }

        .skill-name {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            color: var(--terminal-yellow);
            margin-bottom: 0.5rem;
        }

        .skill-bar {
            height: 8px;
            background-color: #30363d;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .skill-progress {
            height: 100%;
            background: linear-gradient(90deg, var(--terminal-blue), var(--terminal-green));
            border-radius: 4px;
            transition: width 1.5s ease;
        }

        /* Projects Section */
       .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 🔴🟡🟢 Dots Section */
.project-dots {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 1rem 0 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 184, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--terminal-blue);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--terminal-blue);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--terminal-blue);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.project-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-links a:hover {
    color: var(--terminal-green);
    transform: translateY(-2px);
}

        /* Contact Section */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 1.5rem;
        }

        .contact-info {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid #30363d;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            transform: translateX(5px);
        }

        .contact-icon {
            width: 40px;
            height: 40px;
            background-color: rgba(59, 130, 246, 0.1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: var(--terminal-blue);
            transition: all 0.3s ease;
        }

        .contact-item:hover .contact-icon {
            background-color: rgba(57, 255, 20, 0.1);
            color: var(--terminal-green);
            transform: rotate(10deg);
        }

        .contact-text {
            font-family: var(--font-mono);
            font-size: 0.9rem;
        }

        .contact-form {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid #30363d;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-family: var(--font-mono);
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .form-input {
            width: 100%;
            padding: 0.8rem;
            background-color: var(--bg-tertiary);
            border: 1px solid #30363d;
            border-radius: 4px;
            color: var(--text-primary);
            font-family: var(--font-mono);
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--terminal-blue);
            background-color: rgba(33, 38, 45, 0.8);
        }

        textarea.form-input {
            min-height: 120px;
            resize: vertical;
        }

        .submit-btn {
            background-color: var(--terminal-green);
            color: var(--bg-primary);
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 4px;
            font-family: var(--font-mono);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        .submit-btn:hover {
            background-color: var(--terminal-yellow);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 222, 89, 0.3);
        }

    

        /* Live Terminal */
        .live-terminal {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid #30363d;
            margin-top: 1.5rem;
            height: 200px;
            overflow-y: auto;
            position: relative;
        }

        .terminal-input-line {
            display: flex;
            align-items: center;
            margin-top: 0.5rem;
        }

        .prompt {
            color: var(--terminal-green);
            margin-right: 0.5rem;
            font-family: var(--font-mono);
        }

        .terminal-input {
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-family: var(--font-mono);
            font-size: 0.9rem;
            flex-grow: 1;
            outline: none;
            border-bottom: 1px solid #30363d;
            padding: 0.3rem 0;
            width: 100%;
            caret-color: var(--terminal-green);
        }

        .terminal-input:focus {
            border-bottom-color: var(--terminal-blue);
        }

        .terminal-output {
            margin-top: 0.5rem;
            color: var(--text-secondary);
            font-family: var(--font-mono);
            font-size: 0.9rem;
        }

        .terminal-output.success {
            color: var(--terminal-green);
        }

        .terminal-output.error {
            color: var(--terminal-red);
        }

        .terminal-output.info {
            color: var(--terminal-blue);
        }

        /* Animated Code Lines */
        .animated-code {
            position: relative;
            margin-top: 1.5rem;
        }

        .code-line {
            display: flex;
            align-items: center;
            margin-bottom: 0.5rem;
            opacity: 0;
            transform: translateX(-20px);
            animation: slideIn 0.5s forwards;
        }

        .line-number {
            color: var(--terminal-yellow);
            margin-right: 1rem;
            font-size: 0.8rem;
            opacity: 0.7;
            width: 20px;
            text-align: right;
        }

        .code-text {
            color: var(--text-primary);
        }

        .code-comment {
            color: var(--terminal-green);
        }

        .code-keyword {
            color: var(--terminal-pink);
        }

        .code-string {
            color: var(--terminal-yellow);
        }

        .code-function {
            color: var(--terminal-blue);
        }

        @keyframes slideIn {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Skills Radar Chart */
        .skills-radar {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid #30363d;
            margin-top: 1.5rem;
            height: 300px;
        }

        .radar-title {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            color: var(--terminal-blue);
            margin-bottom: 1rem;
            text-align: center;
        }

        /* GitHub Contributions Calendar */
        .github-calendar {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid #30363d;
            margin-top: 1.5rem;
        }

        .calendar-title {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            color: var(--terminal-blue);
            margin-bottom: 1rem;
            text-align: center;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(52, 1fr);
            gap: 3px;
            justify-content: center;
        }

        .calendar-day {
            width: 12px;
            height: 12px;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .calendar-day:hover {
            transform: scale(1.5);
            border-radius: 3px;
            box-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
        }

        .level-0 { background-color: rgba(59, 130, 246, 0.1); }
        .level-1 { background-color: rgba(59, 130, 246, 0.3); }
        .level-2 { background-color: rgba(59, 130, 246, 0.5); }
        .level-3 { background-color: rgba(59, 130, 246, 0.7); }
        .level-4 { background-color: rgba(59, 130, 246, 0.9); }

        /* Responsive Design */
        @media (max-width: 768px) {
            .editor-container {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                height: auto;
                padding: 1rem;
                border-right: none;
                border-bottom: 1px solid #30363d;
            }
            
            .social-links {
                margin-top: 1rem;
                margin-bottom: 1rem;
            }
            
            .contact-container, .about-content {
                grid-template-columns: 1fr;
            }
            
            .skills-container {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .projects-grid {
                grid-template-columns: 1fr;
            }
            
            .calendar-grid {
                grid-template-columns: repeat(26, 1fr);
            }
        }

        /* Badge System */
        .badge {
            display: inline-block;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            font-family: var(--font-mono);
            margin-left: 0.5rem;
            transition: all 0.3s ease;
        }

        .badge-new {
            background-color: rgba(16, 185, 129, 0.2);
            color: var(--terminal-green);
        }

        .badge-trending {
            background-color: rgba(249, 115, 22, 0.2);
            color: var(--terminal-yellow);
        }

        .badge-upcoming {
            background-color: rgba(59, 130, 246, 0.2);
            color: var(--terminal-blue);
        }

        /* Tooltip */
        .tooltip {
            position: relative;
            display: inline-block;
        }

        .tooltip .tooltiptext {
            visibility: hidden;
            width: 120px;
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -60px;
            opacity: 0;
            transition: opacity 0.3s;
            font-family: var(--font-mono);
            font-size: 0.8rem;
            border: 1px solid #30363d;
        }

        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        /* Animated Background */
        .animated-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.05;
            pointer-events: none;
        }

        /* Custom Button with Hover Effect */
        .custom-btn {
            display: inline-block;
            padding: 0.8rem 1.5rem;
            background: linear-gradient(90deg, var(--terminal-green), var(--terminal-blue));
            color: var(--bg-primary);
            text-decoration: none;
            border-radius: 4px;
            font-family: var(--font-mono);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border: none;
        }

        .custom-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: all 0.5s ease;
        }

        .custom-btn:hover::before {
            left: 100%;
        }

        .custom-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(57, 255, 20, 0.3);
        }

        /* Stats Counter */
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .stat-card {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1rem;
            border: 1px solid #30363d;
            text-align: center;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            border-color: var(--terminal-green);
        }

        .stat-value {
            font-family: var(--font-mono);
            font-size: 2rem;
            font-weight: 700;
            color: var(--terminal-blue);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        /* Timeline */
        .timeline {
            position: relative;
            margin-top: 1.5rem;
            padding-left: 2rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 2px;
            height: 100%;
            background: linear-gradient(to bottom, var(--terminal-green), var(--terminal-blue));
        }

        .timeline-item {
            position: relative;
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateX(-20px);
            animation: fadeInRight 0.5s forwards;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -2rem;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--terminal-green);
            border: 2px solid var(--bg-primary);
        }

        .timeline-date {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: var(--terminal-yellow);
            margin-bottom: 0.5rem;
        }

        .timeline-title {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            color: var(--terminal-blue);
            margin-bottom: 0.5rem;
        }

        .timeline-description {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        @keyframes fadeInRight {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Gamification Element */
        .gamification {
            position: relative;
            margin-top: 1.5rem;
            padding: 1rem;
            background-color: var(--bg-secondary);
            border-radius: 8px;
            border: 1px solid #30363d;
        }

        .gamification-title {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            color: var(--terminal-blue);
            margin-bottom: 1rem;
            text-align: center;
        }

        .gamification-level {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .level-label {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .level-progress {
            flex-grow: 1;
            height: 8px;
            background-color: #30363d;
            border-radius: 4px;
            margin: 0 1rem;
            position: relative;
            overflow: hidden;
        }

        .level-bar {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: linear-gradient(90deg, var(--terminal-blue), var(--terminal-green));
            border-radius: 4px;
            width: 0;
            transition: width 1.5s ease;
        }

        .level-value {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: var(--terminal-green);
            min-width: 40px;
            text-align: right;
        }

        /* Badge System */
        .badge-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .skill-badge {
            background-color: var(--bg-tertiary);
            color: var(--terminal-blue);
            padding: 0.3rem 0.6rem;
            border-radius: 4px;
            font-family: var(--font-mono);
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            transition: all 0.3s ease;
        }

        .skill-badge:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .skill-badge i {
            font-size: 0.9rem;
        }

        /* 3D Code Visualization */
        .code-3d {
            position: relative;
            height: 200px;
            margin-top: 1.5rem;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #30363d;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .editor-container {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                height: auto;
                padding: 1rem;
                border-right: none;
                border-bottom: 1px solid #30363d;
            }
            
            .social-links {
                margin-top: 1rem;
                margin-bottom: 1rem;
            }
            
            .contact-container, .about-content {
                grid-template-columns: 1fr;
            }
            
            .skills-container {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .projects-grid {
                grid-template-columns: 1fr;
            }
            
            .calendar-grid {
                grid-template-columns: repeat(26, 1fr);
            }
            
            .timeline {
                padding-left: 1rem;
            }
            
            .timeline::before {
                left: 0;
            }
            
            .timeline-item::before {
                left: -0.5rem;
            }
        }

        /* Animated Background with Particles */
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }

        /* Code Challenge Section */
        .code-challenge {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid #30363d;
            margin-top: 1.5rem;
            position: relative;
            overflow: hidden;
        }

        .challenge-title {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            color: var(--terminal-blue);
            margin-bottom: 1rem;
            text-align: center;
        }

        .challenge-description {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        .challenge-code {
            background-color: var(--bg-tertiary);
            border-radius: 4px;
            padding: 1rem;
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
            border: 1px solid #30363d;
        }

        .challenge-input {
            width: 100%;
            padding: 0.8rem;
            background-color: var(--bg-tertiary);
            border: 1px solid #30363d;
            border-radius: 4px;
            color: var(--text-primary);
            font-family: var(--font-mono);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .challenge-input:focus {
            outline: none;
            border-color: var(--terminal-blue);
        }

        .challenge-result {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: var(--terminal-green);
            min-height: 2rem;
        }

        .challenge-btn {
            background-color: var(--terminal-blue);
            color: var(--bg-primary);
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 4px;
            font-family: var(--font-mono);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 0.5rem;
        }

        .challenge-btn:hover {
            background-color: var(--terminal-green);
            transform: translateY(-2px);
        }

        /* Animated Progress Bars */
        .animated-progress .skill-progress {
            animation: progressAnimation 1.5s ease-out forwards;
            width: 0;
        }

        @keyframes progressAnimation {
            to {
                width: var(--progress-width);
            }
        }

        /* 5. Responsive font sizes */
h1 {
    font-size: var(--font-xxl);
}

h2 {
    font-size: var(--font-xl);
}

h3 {
    font-size: var(--font-lg);
}

/* 6. Enhanced mobile navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 1rem;
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 101;
    }
    
    .sidebar {
        height: auto;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid #30363d;
    }
    
    .social-links {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* 7. Responsive grid layouts */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 8. Responsive projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* 9. Responsive GitHub calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
    gap: 3px;
}

/* 10. Touch-friendly elements */
.nav-item,
.skill-card,
.project-card,
.contact-item {
    transition: transform 0.3s ease;
}

/* 11. Mobile-friendly form elements */
.form-input {
    width: 100%;
    padding: 0.8rem;
    font-size: var(--font-md);
}

/* 12. Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* 13. Responsive code snippets */
.code-snippet {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 14. Responsive timeline */
.timeline {
    padding-left: 1rem;
}

@media (min-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }
}

/* 15. Responsive stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* 16. Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 17. Mobile navigation animation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
}

/* 18. Responsive buttons */
.custom-btn {
    font-size: var(--font-md);
    padding: 0.8rem 1.5rem;
}

        :root {
            --bg-color: #0d1117;
            --text-color: #e6edf3;
            --accent: #58a6ff;
            --secondary: #8b949e;
            --success: #3fb950;
            --warning: #f0883e;
            --error: #f85149;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: 'Courier New', monospace;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            overflow: hidden;
        }

        .terminal {
            width: 80%;
            max-width: 800px;
            background: rgba(13, 17, 23, 0.9);
            border-radius: 8px;
            box-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        .terminal-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            border-bottom: 1px solid #30363d;
            padding-bottom: 10px;
        }

        .terminal-controls {
            display: flex;
            gap: 8px;
        }

        .control {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .close { background-color: var(--error); }
        .minimize { background-color: var(--warning); }
        .maximize { background-color: var(--success); }

        .terminal-title {
            margin-left: 15px;
            font-size: 14px;
            color: var(--secondary);
        }

        .terminal-content {
            height: 300px;
            overflow-y: auto;
            font-size: 14px;
            line-height: 1.5;
        }

        .terminal-content::-webkit-scrollbar {
            width: 8px;
        }

        .terminal-content::-webkit-scrollbar-track {
            background: #161b22;
        }

        .terminal-content::-webkit-scrollbar-thumb {
            background: #444c56;
            border-radius: 4px;
        }

        .line {
            margin: 5px 0;
            opacity: 0;
            animation: fadeIn 0.5s forwards;
        }

        @keyframes fadeIn {
            to { opacity: 1; }
        }

        .keyword { color: var(--accent); }
        .string { color: var(--success); }
        .comment { color: var(--secondary); }
        .function { color: #d2a8ff; }
        .variable { color: #ffab70; }
        .error { color: var(--error); }
        .success { color: var(--success); }

        .cursor {
            display: inline-block;
            width: 10px;
            height: 18px;
            background-color: var(--accent);
            animation: blink 1s step-end infinite;
            vertical-align: middle;
        }

        @keyframes blink {
            50% { opacity: 0; }
        }

        .progress-container {
            margin-top: 20px;
            height: 8px;
            background: #161b22;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #58a6ff, #3fb950);
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        .status {
            text-align: right;
            font-size: 12px;
            color: var(--secondary);
            margin-top: 5px;
        }

        #loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d1117; /* match your theme */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
