:root {
    --main-bg-color: #0a0e14;
    --terminal-bg-color: #0c0c0c;
    --main-text-color: #e0e0e0;
    --neon-green: #00ff41;
    --neon-blue: #00b3ff;
    --neon-purple: #9d00ff;
    --terminal-header: #111111;
    --border-radius: 4px;
    --section-padding: 80px 0;
    --terminal-font: 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-green) var(--main-bg-color);
}

body {
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--main-bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 3px;
}

/* Terminal Button Styles */
.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close-button {
    background-color: #ff5f56;
}

.minimize-button {
    background-color: #ffbd2e;
}

.maximize-button {
    background-color: #27c93f;
}

/* Terminal Container */
.terminal-container {
    background-color: var(--terminal-bg-color);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.terminal-header {
    background-color: var(--terminal-header);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.terminal-title {
    color: var(--main-text-color);
    font-size: 14px;
}

.terminal-content {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Matrix Digital Rain Canvas */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Particle Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    color: var(--neon-green);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo::before {
    content: ">";
    margin-right: 8px;
}

.logo::after {
    content: "_";
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--main-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--neon-green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-green);
}

.nav-link:hover::after {
    width: 100%;
}

/* Header Section */
.header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.header-content {
    position: relative;
    z-index: 1;
}

.greeting {
    color: var(--neon-green);
    font-size: 16px;
    margin-bottom: 10px;
}

.name {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.name-highlight {
    color: var(--neon-green);
    position: relative;
}

.name-highlight::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 255, 65, 0.1);
    z-index: -1;
}

.role {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--main-text-color);
}

.header-description {
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.cta-button {
    background-color: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

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

.cta-button:hover {
    background-color: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.cta-primary {
    background-color: var(--neon-green);
    color: var(--main-bg-color);
}

.cta-primary:hover {
    background-color: var(--neon-green);
}

/* Section Styling */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: "//";
    color: var(--neon-green);
    margin-right: 10px;
    font-size: 24px;
}

.section-title::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 150px;
    background-color: var(--neon-green);
    bottom: -15px;
    left: 0;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.about-image::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(235deg, var(--neon-green), transparent, var(--neon-blue));
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    animation: borderAnimation 3s linear infinite;
}

@keyframes borderAnimation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    background-color: rgba(10, 14, 20, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.1);
}

.skill-category-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--neon-green);
    position: relative;
    padding-bottom: 10px;
}

.skill-category-title::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--neon-green);
    bottom: 0;
    left: 0;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background-color: rgba(0, 255, 65, 0.1);
    color: var(--main-text-color);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background-color: rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
}

/* Tech Stack Visualization */
.tech-stack-visualization {
    margin-top: 50px;
    position: relative;
    height: 400px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Project Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--terminal-bg-color);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 65, 0.3);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.2);
    border-color: var(--neon-green);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(10, 14, 20, 0.9)
    );
}

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--neon-green);
}

.project-description {
    margin-bottom: 15px;
    font-size: 14px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tech-item {
    font-size: 12px;
    padding: 4px 8px;
    background-color: rgba(0, 255, 65, 0.1);
    border-radius: 4px;
    color: var(--neon-green);
}

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

.project-link {
    color: var(--main-text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    color: var(--neon-green);
}

/* Code Demonstration Section */
.code-demo-section {
    padding: 100px 0;
}

.code-demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.code-demo-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.code-tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: var(--main-text-color);
    transition: all 0.3s ease;
    position: relative;
}

.code-tab.active {
    color: var(--neon-green);
}

.code-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--neon-green);
}

.code-preview {
    background-color: var(--terminal-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 65, 0.3);
    position: relative;
}

.code-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
}

.code-result {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

/* Career Timeline */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-center-line {
    position: absolute;
    width: 4px;
    background-color: rgba(0, 255, 65, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-content {
    background-color: var(--terminal-bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--terminal-bg-color);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: "";
    position: absolute;
    left: -15px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--terminal-bg-color);
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--neon-green);
    border-radius: 50%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--main-bg-color), 0 0 0 8px rgba(0, 255, 65, 0.3);
}

.timeline-date {
    font-size: 14px;
    color: var(--neon-green);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-location {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    color: var(--neon-green);
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 65, 0.1);
    border-radius: 50%;
}

.contact-form {
    background-color: var(--terminal-bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-green);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(10, 14, 20, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: var(--border-radius);
    color: var(--main-text-color);
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.2);
}

.form-textarea {
    min-height: 150px;
}

.form-submit {
    background-color: var(--neon-green);
    color: var(--main-bg-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.form-submit:hover {
    background-color: #00cc33;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    padding: 30px 0;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--neon-green);
    font-size: 24px;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--main-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--neon-green);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 65, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--main-text-color);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--neon-green);
    color: var(--main-bg-color);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .code-demo-container {
        grid-template-columns: 1fr;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0 0 0 70px;
    }
    
    .timeline-center-line {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        position: relative;
    }
    
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .name {
        font-size: 36px;
    }
    
    .role {
        font-size: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* Responsive styles for mobile devices */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .project-card {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .skill-category {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .terminal-container {
        width: 100%;
        font-size: 0.8rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 20px;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        margin: 0 auto;
        max-width: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 20px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Typing cursor */
.typed-cursor {
    color: var(--neon-green);
}