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

body {
    font-family: 'Courier New', monospace;
    background: #0a0e14;
    color: #b3b1ad;
    overflow-x: hidden;
}

/* Mode Toggle Button */
.mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mode-toggle:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* Terminal Mode Styles */
.terminal-mode {
    display: none;
    min-height: 100vh;
    padding: 40px 20px;
    align-items: center;
    justify-content: center;
}

.terminal-mode.active {
    display: flex;
}

.terminal-container {
    width: 100%;
    max-width: 900px;
    background: #1a1d24;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.terminal-header {
    background: #2d3139;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

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

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

.btn.close {
    background: #ff5f56;
}

.btn.minimize {
    background: #ffbd2e;
}

.btn.maximize {
    background: #27c93f;
}

.terminal-title {
    color: #8b8b8b;
    font-size: 13px;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    max-height: 65vh;
    overflow-y: auto;
    background: #0a0e14;
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}

.prompt {
    color: #00ff00;
    margin-right: 8px;
}

.command {
    color: #00d9ff;
}

.output {
    margin-left: 0;
    margin-bottom: 15px;
    color: #b3b1ad;
    line-height: 1.6;
    white-space: pre-wrap; /* preserve newlines in terminal output */
}

.output.error {
    color: #ff5f56;
}

.output.success {
    color: #27c93f;
}

.output ul {
    margin-left: 20px;
    margin-top: 5px;
}

.output li {
    margin-bottom: 3px;
}

.terminal-input-line {
    padding: 15px 20px;
    background: #0a0e14;
    border-top: 1px solid #2d3139;
    display: flex;
    align-items: center;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #b3b1ad;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #00ff00;
}

/* Confetti party */
.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 16px;
    opacity: 0.9;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(-10%) rotate(0deg); opacity: 1; }
    80% { opacity: 0.9; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Typing cursor animation */
.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00ff00;
    margin-left: 2px;
    animation: blink 1s infinite;
}

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

/* Normal Mode Styles */
.normal-mode {
    display: none;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, #12304f, #0b1426 55%), linear-gradient(135deg, #0b1426 0%, #0f2240 100%);
    padding: 80px 20px 40px;
}

.normal-mode.active {
    display: block;
}

.normal-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #0f172a;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(4, 12, 26, 0.6);
    color: #dce8ff;
}

.normal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #3a7bd5;
}

.normal-header h1 {
    font-size: 48px;
    color: #e8efff;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.normal-tagline {
    font-size: 20px;
    color: #72a8ff;
    font-family: 'Courier New', monospace;
}

.normal-section {
    margin-bottom: 40px;
}

.normal-section h2 {
    font-size: 32px;
    color: #dfe9ff;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    border-left: 5px solid #3a7bd5;
    padding-left: 15px;
}

.content-area {
    color: #c7d6f7;
    font-family: 'Arial', sans-serif;
    line-height: 1.8;
    font-size: 16px;
}

.content-area p {
    margin-bottom: 15px;
}

.content-area ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-area li {
    margin-bottom: 8px;
}

.content-area strong {
    color: #f1f5ff;
}

.content-area a {
    color: #7ab7ff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

.content-area a:hover {
    border-bottom: 2px solid #7ab7ff;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    background: #1d3f70;
    color: #e8efff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.project-item, .experience-item {
    background: #132341;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3a7bd5;
}

.project-item h3, .experience-item h3 {
    color: #e8efff;
    margin-bottom: 10px;
    font-size: 20px;
}

.project-item p, .experience-item p {
    margin-bottom: 10px;
}

/* Scrollbar Styles */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0a0e14;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #2d3139;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #3d4149;
}

/* Responsive Design */
@media (max-width: 768px) {
    .normal-container {
        padding: 28px 18px;
    }

    .normal-header h1 {
        font-size: 32px;
    }

    .normal-tagline {
        font-size: 16px;
    }

    .normal-section {
        margin-bottom: 28px;
    }

    .normal-section h2 {
        font-size: 22px;
    }

    .project-item, .experience-item {
        padding: 16px;
    }

    .mode-toggle {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .terminal-container {
        max-width: 100%;
    }

    .terminal-body {
        max-height: 55vh;
    }

    .terminal-input {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .normal-container {
        padding: 24px 14px;
    }

    .normal-header h1 {
        font-size: 28px;
    }

    .normal-tagline {
        font-size: 14px;
    }

    .normal-section h2 {
        font-size: 20px;
    }

    .content-area {
        font-size: 15px;
        line-height: 1.6;
    }

    .mode-toggle {
        padding: 7px 12px;
    }
}
