/*
* Khushi Chaudhary - Portfolio Stylesheet
*/

/* ===== GLOBAL STYLES & VARIABLES ===== */
:root {
    --bg-color: #111827;
    --card-color: #1F2937;
    --primary-accent: #38BDF8;
    --terminal-green: #34D399;
    --terminal-red: #F87171;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: #374151;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; color: var(--text-primary); font-weight: 600; }
a { color: var(--primary-accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #7dd3fc; }
.hidden { display: none !important; }

/* ===== MODE TOGGLE BUTTON ===== */
#mode-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--card-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}
#mode-toggle:hover { background-color: var(--primary-accent); color: var(--bg-color); }


/* ===== GUI MODE STYLES ===== */
.container { display: flex; max-width: 1200px; margin: 0 auto; padding: 2rem; }
.menu { position: fixed; top: 50%; transform: translateY(-50%); right: 2rem; display: flex; flex-direction: column; gap: 1rem; background: rgba(31, 41, 55, 0.8); padding: 1rem 0.5rem; border-radius: 50px; backdrop-filter: blur(10px); z-index: 100; }
.menu-icon { font-size: 1.2rem; color: var(--text-secondary); transition: all 0.3s ease; }
.menu-icon:hover { color: var(--primary-accent); transform: scale(1.2); }

.portfolio { display: flex; width: 100%; gap: 2rem; }
.header { flex: 0 0 300px; text-align: center; padding: 2rem; position: sticky; top: 2rem; align-self: flex-start; }
.content { flex: 1 1 600px; }

.header-img { width: 150px; height: 150px; border-radius: 50%; border: 4px solid var(--primary-accent); object-fit: cover; margin-bottom: 1rem; }
.header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.header h2 { font-size: 1.2rem; color: var(--text-secondary); font-weight: 400; min-height: 56px; }
.typed-cursor { color: var(--primary-accent); }
.socials { margin: 1.5rem 0; }
.socials a { font-size: 1.5rem; margin: 0 0.75rem; color: var(--text-secondary); transition: all 0.3s ease; }
.socials a:hover { color: var(--primary-accent); transform: translateY(-3px); }
.cta { display: inline-block; background-color: var(--primary-accent); color: var(--bg-color); padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 700; transition: all 0.3s ease; }
.cta:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); }

.content-card { background-color: var(--card-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 2.5rem; margin-bottom: 2rem; }
.content-card h1 { font-size: 2.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--primary-accent); padding-bottom: 0.5rem; display: inline-block; }

.about-me-text { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }
.skills h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.skills h4 { font-size: 1.1rem; color: var(--primary-accent); margin: 1rem 0 0.5rem; }
.skill { display: inline-block; background-color: var(--border-color); color: var(--text-primary); padding: 0.4rem 0.8rem; margin: 0.2rem; border-radius: 5px; font-size: 0.9rem; transition: all 0.3s ease; }
.skill:hover { background-color: var(--primary-accent); color: var(--bg-color); transform: translateY(-2px); }

.project-tile-detailed { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; margin-bottom: 4rem; padding: 1.5rem; border-radius: 8px; background-color: var(--bg-color); }
.project-tile-detailed:last-child { margin-bottom: 0; }
.project-tile-detailed:nth-child(even) { flex-direction: row-reverse; }
.project-image { flex: 1 1 300px; }
.project-image img { width: 100%; border-radius: 8px; transition: transform 0.3s ease; }
.project-image:hover img { transform: scale(1.03); }
.project-info { flex: 2 1 300px; }
.project-info h3 { color: var(--primary-accent); font-size: 1.5rem; margin-bottom: 0.5rem; }
.project-info p { color: var(--text-secondary); }
.tech-stack { margin: 1rem 0; }
.tech-stack span { display: inline-block; background-color: var(--border-color); padding: 0.3rem 0.6rem; margin: 0.2rem; border-radius: 5px; font-size: 0.8rem; }
.project-links a { display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 5px; margin-right: 1rem; font-weight: 700; }
.project-links a:hover { background-color: var(--primary-accent); color: var(--bg-color); border-color: var(--primary-accent); }
.project-links a i { margin-left: 0.5rem; }

.timeline { position: relative; padding: 1rem 0; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background-color: var(--border-color); }
.timeline-item { position: relative; padding-left: 3rem; margin-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: 4px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background-color: var(--primary-accent); border: 2px solid var(--bg-color); }
.timeline-date { color: var(--text-secondary); font-weight: 700; }
.timeline-content h3 { font-size: 1.3rem; margin: 0.2rem 0; }
.timeline-content p { color: var(--text-secondary); }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.paper { background-color: #fefabc; color: #333; padding: 1rem; border-radius: 3px; box-shadow: 2px 2px 5px rgba(0,0,0,0.2); position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
.paper:hover { transform: rotate(2deg) scale(1.05); z-index: 10; box-shadow: 5px 5px 15px rgba(0,0,0,0.3); }
.paper h3 { font-size: 1rem; color: #333; }
.paper .hover-text { position: absolute; top: 100%; left: 0; background-color: var(--bg-color); color: var(--text-primary); padding: 1rem; border-radius: 5px; border: 1px solid var(--border-color); opacity: 0; visibility: hidden; transition: opacity 0.3s ease; width: 250px; z-index: 20; }
.paper:hover .hover-text { opacity: 1; visibility: visible; }

/* ===== TERMINAL MODE STYLES ===== */
#terminal-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0c0c;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    padding: 1rem;
}
#terminal { height: 100%; overflow-y: auto; }
#terminal-output { white-space: pre-wrap; }
#terminal-output .command-output { color: var(--text-primary); }
#terminal-output .system-message { color: var(--primary-accent); }
#terminal-output .error-message { color: var(--terminal-red); }
#terminal-output .success-message { color: var(--terminal-green); }
#terminal-output a { text-decoration: underline; }

.prompt-line { display: flex; align-items: center; }
.prompt { color: var(--terminal-green); font-weight: 700; }
#terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    padding-left: 0.5rem;
}
#terminal-input:focus { outline: none; }


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .portfolio { flex-direction: column; }
    .header { position: static; flex: auto; }
    .menu { display: none; } /* Hide side menu on mobile for cleaner look */
}

@media (max-width: 768px) {
    .container { padding: 1rem; }
    .content-card { padding: 1.5rem; }
    .project-tile-detailed, .project-tile-detailed:nth-child(even) { flex-direction: column; }
    #mode-toggle { top: 1rem; right: 1rem; }
}

.socials .leetcode-icon svg {
    vertical-align: middle;
    width: 24px;
    height: 24px;
    color: #007bff; /* Match other icons' color */
    transition: color 0.2s;
    margin: 0 10px;
}

.socials .leetcode-icon:hover svg {
    color: #FFA116; /* LeetCode orange hover color */
}
