﻿
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300;400;500;700&display=swap');

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

:root {
    --primary-green: #00ff41;
    --secondary-green: #008f11;
    --dark-bg: #0d1117;
    --darker-bg: #010409;
    --terminal-bg: #161b22;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-blue: #58a6ff;
    --danger-red: #f85149;
    --warning-yellow: #ffd60a;
}

body {
    font-family: 'Source Code Pro', monospace;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem; /* Amplified base font size */
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.05;
    pointer-events: none;
}

.linux-commands-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.command-line {
    position: absolute;
    font-family: 'Source Code Pro', monospace;
    color: var(--primary-green);
    font-size: 1.2rem;
    opacity: 0.3;
    white-space: nowrap;
    pointer-events: none;
}

.command-cursor {
    background: var(--primary-green);
    width: 8px;
    height: 1.2rem;
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem; /* Amplified padding */
    padding-bottom: 200px; /* Space for CLI */
}

.page {
    display: none;
    max-width: 1400px; /* Wider content area */
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CLI Terminal */
.cli-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(22, 27, 34, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--primary-green);
    z-index: 1000;
    height: 30vh;
    display: flex;
    flex-direction: column;
}

.cli-header {
    background: var(--darker-bg);
    padding: 1rem 1.2rem; /* Increased vertical padding for easier dragging */
    min-height: 70px; /* Minimum height for larger drag area */
    border-bottom: 1px solid var(--secondary-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cli-title {
    color: var(--primary-green);
    font-size: 1.5rem; /* Amplified font size */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cli-buttons {
    display: flex;
    gap: 0.5rem;
}

.cli-button {
    width: 14px; /* Amplified size */
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
}

.cli-button.minimize { background: var(--warning-yellow); }
.cli-button.maximize { background: var(--primary-green); }
.cli-button.close { background: var(--danger-red); }

/* Floating window mode */
.cli-container.floating {
    bottom: auto;
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    min-width: 300px;
    min-height: 200px;
    max-width: 90vw;
    max-height: 80vh;
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    resize: both;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.3);
}

.cli-container.floating .cli-header {
    cursor: move;
}

.cli-container.floating .cli-header:hover {
    background: rgba(0, 255, 65, 0.1);
}

.cli-container.dragging {
    user-select: none;
    transition: none;
}

.cli-output {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem; /* Amplified padding */
    font-size: 1.4rem; /* Amplified font size */
    margin-top: 0;
}

.cli-line {
    margin-bottom: 0.3rem; /* Amplified spacing */
    white-space: pre-wrap;
    word-break: break-all;
}

.cli-prompt {
    color: var(--primary-green);
}

.cli-command {
    color: var(--text-primary);
}

.cli-error {
    color: var(--danger-red);
}

.cli-success {
    color: var(--primary-green);
}

.cli-info {
    color: var(--accent-blue);
}

.cli-input-line {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.2rem; /* Amplified padding */
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.cli-input-prompt {
    color: var(--primary-green);
    margin-right: 0.5rem;
    font-size: 1.4rem; /* Amplified font size */
    white-space: nowrap;
}

.cli-input-wrapper {
    flex: 1;
    position: relative;
}

.cli-input {
    width: 100%;
    background: transparent;
    border: none;
    color: transparent;
    font-family: inherit;
    font-size: 1.4rem;
    outline: none;
    caret-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
}

.cli-input-mirror {
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.4rem;
    white-space: pre;
    visibility: visible;
}

.typing-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--primary-green);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

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

/* Page Styles - All Amplified */
.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid var(--secondary-green);
    border-radius: 8px;
    margin-bottom: 2.5rem; /* Amplified margin */
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.terminal-header {
    background: var(--darker-bg);
    padding: 0.7rem 1.2rem; /* Amplified padding */
    border-bottom: 1px solid var(--secondary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-button {
    width: 14px; /* Amplified size */
    height: 14px;
    border-radius: 50%;
}

.close { background: var(--danger-red); }
.minimize { background: #ffd60a; }
.maximize { background: var(--primary-green); }

.terminal-title {
    color: var(--text-secondary);
    font-size: 1.1rem; /* Amplified font size */
    margin-left: 1rem;
}

.terminal-content {
    padding: 2rem; /* Amplified padding */
    font-size: 1.2rem; /* Amplified font size */
}

.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem; /* Amplified from 3rem */
    color: var(--primary-green);
    margin-bottom: 1.5rem; /* Amplified margin */
    text-shadow: 0 0 10px var(--primary-green);
}

.hero-content .subtitle {
    font-size: 2rem; /* Amplified from 1.5rem */
    color: var(--accent-blue);
    margin-bottom: 2.5rem; /* Amplified margin */
}

.hero-content .description {
    font-size: 1.3rem; /* Amplified from 1.1rem */
    color: var(--text-secondary);
    max-width: 700px; /* Amplified width */
    margin: 0 auto;
    line-height: 1.8; /* Better readability */
}

.section-title {
    font-size: 2.5rem; /* Amplified from 2rem */
    color: var(--primary-green);
    margin-bottom: 2.5rem; /* Amplified margin */
    text-align: center;
}

.section-title::before {
    content: "# ";
    color: var(--accent-blue);
}

.grid {
    display: grid;
    gap: 2.5rem; /* Amplified gap */
    margin-bottom: 2.5rem; /* Amplified margin */
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); } /* Amplified min width */
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } /* Amplified min width */

.card {
    background: var(--terminal-bg);
    border: 1px solid var(--secondary-green);
    border-radius: 8px;
    padding: 2rem; /* Amplified padding */
    transition: all 0.3s ease;
    font-size: 1.1rem; /* Amplified base font size */
}

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

.card h3 {
    color: var(--primary-green);
    margin-bottom: 1.2rem; /* Amplified margin */
    font-size: 1.4rem; /* Amplified font size */
}

.card h3::before {
    content: "$ ";
    color: var(--accent-blue);
}

.card p {
    font-size: 1.1rem; /* Amplified paragraph font size */
    margin-bottom: 1rem;
}

.skill-bar {
    background: var(--darker-bg);
    height: 10px; /* Amplified height */
    border-radius: 5px; /* Amplified radius */
    margin: 0.7rem 0; /* Amplified margin */
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-green), var(--primary-green));
    border-radius: 5px;
    transition: width 0.3s ease;
}

.skill-item {
    font-size: 1.1rem; /* Amplified font size */
}

.timeline {
    position: relative;
    padding-left: 2.5rem; /* Amplified padding */
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px; /* Amplified width */
    background: var(--primary-green);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem; /* Amplified margin */
    padding: 1.5rem; /* Amplified padding */
    background: var(--terminal-bg);
    border: 1px solid var(--secondary-green);
    border-radius: 8px;
    margin-left: 1.5rem; /* Amplified margin */
    font-size: 1.1rem; /* Amplified font size */
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem; /* Adjusted for amplified spacing */
    top: 1.5rem;
    width: 14px; /* Amplified size */
    height: 14px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-green);
}

.timeline-date {
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 1.2rem; /* Amplified font size */
}

.timeline-item h3 {
    font-size: 1.3rem; /* Amplified font size */
    margin: 0.5rem 0;
}

.project-links {
    margin-top: 1.5rem; /* Amplified margin */
    display: flex;
    gap: 1.2rem; /* Amplified gap */
}

.btn {
    background: transparent;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.7rem 1.3rem; /* Amplified padding */
    border-radius: 4px;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem; /* Amplified font size */
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
    box-shadow: 0 0 10px var(--primary-green);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Amplified min width */
    gap: 1.5rem; /* Amplified gap */
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1.5rem; /* Amplified padding */
    background: var(--terminal-bg);
    border: 1px solid var(--secondary-green);
    border-radius: 8px;
    font-size: 1.1rem; /* Amplified font size */
}

.contact-item:hover {
    border-color: var(--primary-green);
}

.cli-help-table {
    color: var(--text-secondary);
    margin: 0.7rem 0; /* Amplified margin */
    font-size: 1.2rem; /* Amplified font size */
}

.cli-help-table span {
    display: inline-block;
    min-width: 180px; /* Amplified width */
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem; /* Amplified mobile size */
    }
    
    .hero-content .subtitle {
        font-size: 1.5rem; /* Amplified mobile size */
    }
    
    .main-content {
        padding: 1.5rem; /* Amplified mobile padding */
        padding-bottom: 250px;
    }
    
    .cli-container {
        max-height: 250px;
    }
    
    .section-title {
        font-size: 2rem; /* Amplified mobile size */
    }
}

.glitch {
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.ascii-art {
    color: var(--primary-green);
    font-size: 0.8rem; /* Slightly amplified */
    line-height: 1;
    white-space: pre;
    margin: 1.5rem 0; /* Amplified margin */
}

/* Linux Command Animation Keyframes */
@keyframes typeCommand {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeInCommand {
    0% { opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { opacity: 0; }
}
    
