* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: #ffffff;
    min-height: 100%;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    color: #000000;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: #ffffff;
    line-height: 1.4;
}

/* Header Styles */
.header {
    background: #ffffff;
    border-bottom: 1px solid #000000;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 16px;
    color: #000000;
}

.prompt {
    color: #000000;
    font-weight: bold;
}

.command {
    color: #666666;
    margin-left: 8px;
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #ffffff;
    width: 40px;
    height: 40px;
}

.nav-link:hover {
    background: #000000;
    color: #ffffff;
}

/* Custom Tooltips */
.nav-link {
    position: relative;
}

.nav-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    white-space: nowrap;
    z-index: 1001;
    opacity: 0;
    animation: tooltip-fade-in 0.2s ease-in-out 0.5s forwards;
}

.nav-link:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #000000;
    z-index: 1001;
    opacity: 0;
    animation: tooltip-fade-in 0.2s ease-in-out 0.5s forwards;
}

@keyframes tooltip-fade-in {
    to {
        opacity: 1;
    }
}


.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        width: 36px;
        height: 36px;
        padding: 8px;
    }
    
    .nav-icon {
        width: 18px;
        height: 18px;
    }
}

.page-section {
    margin-bottom: 40px;
    position: relative;
    padding: 20px;
}


/* Terminal Container */
.terminal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.terminal-container.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
}

.terminal-container.minimized {
    transform: translate(-50%, 100vh) scale(0.1);
    opacity: 0.3;
    pointer-events: none;
}

.terminal-container.fullscreen {
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    transform: none;
}

.terminal {
    width: 100%;
    height: auto;
    min-height: 300px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #000000;
}

.terminal-header {
    background: #f0f0f0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000000;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

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

.btn.red {
    background: #ff5f57;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn.red:hover {
    background: #ff3b30;
}

.btn.yellow {
    background: #ffbd2e;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn.yellow:hover {
    background: #f5a623;
}

.btn.green {
    background: #28ca42;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn.green:hover {
    background: #22a83a;
}

/* Project Blocks */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10vh;
    position: relative;
    z-index: 100;
    justify-content: center;
    align-items: flex-start;
}

.project-block {
    display: flex;
    flex-direction: column;
    border: 1px solid #000000;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}


.project-block:hover {
    border-color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-video {
    width: 100%;
    height: 200px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    border-bottom: 2px solid #333;
    font-family: 'Courier New', monospace;
}

.project-content {
    padding: 20px;
    background: #fff;
}

.project-header {
    margin-bottom: 15px;
}

.project-header h3 {
    color: #000;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
    font-family: 'Courier New', monospace;
}

.project-status {
    background: #000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    display: inline-block;
}

.project-status.active {
    background: #28a745;
}

.project-status.completed {
    background: #007bff;
}

.project-status.demo {
    background: #ffc107;
    color: #000;
}

.project-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.tech {
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 1px solid #dee2e6;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.project-date {
    color: #999;
    font-size: 11px;
    font-family: 'Courier New', monospace;
}

.project-link {
    color: #000;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #666;
}

.terminal-title {
    color: #ccc;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: normal;
}

.terminal-body {
    padding: 16px;
    min-height: 250px;
    background: #ffffff;
    position: relative;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    cursor: text;
}

#terminal-output {
    color: #000000;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Make prompts bold in terminal output */
#terminal-output {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

.cursor {
    color: #000000;
    font-size: 14px;
    animation: blink 1s infinite;
    display: inline-block;
}

/* Interactive Terminal Input */
.terminal-input-line {
    display: none; /* Hidden initially */
    align-items: baseline;
    margin-top: 0;
    line-height: 1.6;
}

.terminal-prompt {
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 0;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #000000;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 14px;
    flex: 1;
    margin-left: 0;
    padding: 0;
    caret-color: #000000;
    line-height: 1.6;
}

.terminal-cursor {
    color: #000000;
    font-size: 14px;
    animation: blink 1s infinite;
    margin-left: 2px;
    line-height: 1.6;
}

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

/* Projects Section */
.projects-section {
    padding: 80px 40px;
    min-height: 100vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-block {
    background: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-block.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.project-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #000;
}

/* Project Block Sizes */
.project-block.large {
    grid-column: span 2;
    min-height: 300px;
}

.project-block.medium {
    grid-column: span 1;
    min-height: 250px;
}

.project-block.small {
    grid-column: span 1;
    min-height: 200px;
}

/* Project Block Content */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-header h3 {
    color: #000;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.project-status {
    background: #000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.project-status:contains("Active") {
    background: #28a745;
}

.project-content {
    margin-bottom: 20px;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 14px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 1px solid #dee2e6;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.project-date {
    color: #999;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.project-link {
    color: #000;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #666;
}

/* Scroll Animation Styles */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .project-block.large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .terminal-container {
        width: 90%;
        height: 60vh;
    }
    
    #terminal-output {
        font-size: 12px;
    }
    
    .cursor {
        font-size: 12px;
    }
    
    .projects-section {
        padding: 60px 20px;
        margin-top: 90vh;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-block.large,
    .project-block.medium,
    .project-block.small {
        grid-column: span 1;
        min-height: auto;
    }
    
    .project-header h3 {
        font-size: 18px;
    }
}