:root {
    --bg: #0d1117;
    --text: #c9d1d9;
    --accent: #58a6ff;
    --green: #7ee787;
    --gray: #8b949e;
    --border: #30363d;
    --purple: #d2a8ff;
    --orange: #ffa657;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
    margin: 0;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1100px;
    width: 100%;
}

/* Terminal Window Frame */
.terminal-bar {
    background: #161b22;
    padding: 12px;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.window {
    border: 1px solid var(--border);
    border-top: none;
    padding: 2.5rem;
    background: rgba(13, 17, 23, 0.98);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

h1 {
    color: var(--accent);
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--purple);
    font-weight: 500;
    font-size: 1.2rem;
    margin: 8px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 15px;
}

/* Typography & Components */
.section-title {
    color: var(--green);
    margin: 3rem 0 1.5rem 0;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.section-title::before {
    content: "faisal@dev:~$ ls ./";
    font-size: 0.9rem;
    opacity: 0.5;
    margin-right: 8px;
}

.exp-block {
    margin-bottom: 2.5rem;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.company {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.role {
    color: var(--orange);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.date {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Skills & Project Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #161b22;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 6px;
}

.card h4 {
    color: var(--green);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.card p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text);
}

.tags {
    margin-top: 12px;
}

.tag {
    display: inline-block;
    background: #23863622;
    color: var(--green);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid var(--green);
    margin: 0 5px 5px 0;
}

ul {
    padding-left: 1.2rem;
    margin: 10px 0;
    font-size: 0.9rem;
}

li {
    margin-bottom: 5px;
}

.meta-footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    font-size: 0.8rem;
    color: var(--gray);
}

.highlight {
    color: var(--green);
    font-weight: bold;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--green);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Secure Download Input */
.secure-input-wrap {
    display: flex;
    align-items: center;
    background: #0d1117;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--orange);
    margin-top: 10px;
}

#terminal-input {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Fira Code';
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.tag {
    display: inline-block;
    background: #23863622;
    color: var(--green);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid var(--green);
    margin: 0 5px 5px 0;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--green);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .exp-header {
        flex-direction: column;
    }
}