:root {
    --primary: #0a192f;
    --secondary: #64ffda;
    --text-main: #ccd6f6;
    --text-dim: #8892b0;
    --bg-card: #112240;
    --accent: #233554;
    --white: #ffffff;
    --shadow: rgba(2, 12, 27, 0.7);
}

[data-theme="light"] {
    --primary: #f4f7f6;
    --secondary: #007bff;
    --text-main: #2d3436;
    --text-dim: #636e72;
    --bg-card: #ffffff;
    --accent: #dfe6e9;
    --white: #2d3436;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 10px var(--shadow);
    transition: 0.3s;
}

.theme-toggle:hover {
    background: var(--secondary);
    color: var(--primary);
}

header {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 35px;
    margin-bottom: 45px;
}

h1 {
    color: var(--secondary);
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-top: 8px;
    font-weight: 500;
}

.contact-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.contact-links a:hover {
    color: var(--secondary);
}

.btn-download {
    background: var(--secondary) !important;
    color: var(--primary) !important;
    font-weight: bold;
    padding: 10px 20px !important;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(100, 255, 218, 0.2);
}

.btn-download:hover {
    background: var(--white) !important;
    transform: translateY(-2px);
}

h2 {
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
    font-size: 1.5rem;
    margin-top: 60px;
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px -15px var(--shadow);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-7px);
    border-color: var(--secondary);
}

.badge {
    font-size: 0.65rem;
    background: var(--accent);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 10px;
}

.card h3 {
    margin: 5px 0 10px 0;
    font-size: 1.2rem;
    color: var(--white);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    flex-grow: 1;
}

.btn-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Experience Timeline */
.experience-container {
    position: relative;
    margin-top: 30px;
    padding-left: 10px;
}

.experience-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 35px;
    border-left: 2px solid var(--accent);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    z-index: 2;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.exp-title {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
}

.exp-company {
    color: var(--secondary);
    font-weight: bold;
    display: block;
    margin: 5px 0 15px 0;
}

.exp-date {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: bold;
}

.pill-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    font-size: 0.7rem;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--secondary);
    border-radius: 20px;
    font-weight: 600;
}

.metric {
    color: var(--white);
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--accent);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.timestamp {
    background: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--secondary);
    font-weight: bold;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.9rem;
    }

    .container {
        padding: 40px 15px;
    }

    .exp-header {
        flex-direction: column;
    }
}

.subtitle-bar {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 15px;
    /* Adjust spacing here */
    font-family: 'Inter', sans-serif;
    /* Or your preferred font */
    font-weight: 500;
    color: var(--secondary);
    /* Professional slate/grey */
}

.divider {
    color: var(--accent);
    /* Use an accent colour for the dots to make them pop */
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .subtitle-bar {
        gap: 5px;
    }
}
