/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', monospace;
    background-color: #0d1117;
    color: #00ff41;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Terminal Container */
.terminal {
    max-width: 900px;
    margin: 0 auto;
    background-color: #161b22;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    overflow: hidden;
    border: 1px solid #30363d;
}

/* Terminal Header */
.terminal-header {
    background-color: #21262d;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #30363d;
}

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

.terminal-header .btn.red { background-color: #ff5f56; }
.terminal-header .btn.yellow { background-color: #ffbd2e; }
.terminal-header .btn.green { background-color: #27c93f; }

.terminal-header .title {
    margin-left: 15px;
    color: #8b949e;
    font-size: 13px;
}

/* Terminal Body */
.terminal-body {
    padding: 25px;
}

/* Prompt Styling */
.prompt {
    margin-bottom: 10px;
    font-size: 14px;
}

.prompt .user { color: #58a6ff; }
.prompt .at { color: #8b949e; }
.prompt .host { color: #7ee787; }
.prompt .path { color: #8b949e; }
.prompt .command {
    color: #00ff41;
    margin-left: 10px;
}

/* Cursor Animation */
.cursor {
    animation: blink 1s infinite;
    color: #00ff41;
    margin-left: 5px;
}

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

/* Output Sections */
.output {
    margin: 20px 0 40px 0;
    padding-left: 20px;
    border-left: 2px solid #238636;
}

.output h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #00ff41;
}

.output h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #58a6ff;
}

.output p {
    color: #c9d1d9;
    margin-bottom: 10px;
}

.tagline {
    font-size: 18px;
}

.highlight {
    color: #ff7b72;
    font-weight: 600;
}

/* Intro Container */
.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex-shrink: 0;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.skill-category {
    background-color: #21262d;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #30363d;
}

.skill-category h3 {
    color: #7ee787;
    margin-bottom: 15px;
    font-size: 15px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: #c9d1d9;
    padding: 5px 0;
    font-size: 13px;
}

.skill-category li::before {
    content: "→ ";
    color: #00ff41;
}

/* Experience */
.experience-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #21262d;
    border-radius: 8px;
    border-left: 3px solid #238636;
}

.experience-item h3 {
    color: #ff7b72;
    font-size: 18px;
    margin-bottom: 5px;
}

.experience-item .company {
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 15px;
}

.experience-item .date {
    color: #58a6ff;
}

.experience-item ul {
    list-style: none;
    padding-left: 15px;
}

.experience-item li {
    color: #c9d1d9;
    padding: 5px 0;
    font-size: 13px;
}

.experience-item li::before {
    content: "• ";
    color: #00ff41;
}

.experience-item .subsection {
    color: #7ee787;
    font-size: 14px;
    font-weight: 500;
    margin: 15px 0 10px 0;
    padding-top: 10px;
    border-top: 1px solid #30363d;
}

.experience-item .subsection:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Projects Section */
.project-card {
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #238636;
    transform: translateX(5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.project-header h3 {
    color: #58a6ff;
    font-size: 16px;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-links a {
    color: #7ee787;
    text-decoration: none;
    font-size: 13px;
}

.project-links a:hover {
    text-decoration: underline;
}

.project-tag {
    background-color: #388bfd26;
    color: #58a6ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.project-card p {
    color: #8b949e;
    font-size: 13px;
    margin-bottom: 12px;
}

.project-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #6e7681;
}

/* Contact Section */
.contact-json {
    background-color: #0d1117;
    padding: 20px;
    border-radius: 8px;
    color: #7ee787;
    font-size: 13px;
    overflow-x: auto;
    border: 1px solid #30363d;
}

.cta {
    margin-top: 25px;
    text-align: center;
}

.btn-contact {
    display: inline-block;
    background-color: #238636;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-contact:hover {
    background-color: #2ea043;
    box-shadow: 0 0 15px rgba(46, 160, 67, 0.4);
    transform: translateY(-2px);
}

/* Final Prompt */
.final {
    margin-top: 30px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #8b949e;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .terminal-body {
        padding: 15px;
    }

    .output h1 {
        font-size: 22px;
    }

    .output h2 {
        font-size: 18px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .prompt {
        font-size: 12px;
    }

    .intro-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}