/* Main colours */
:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #eaeaea;
    --accent-color: #0066cc;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    /* Grid paper style */
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 25px 25px;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 60px 20px;
}

.container {
    max-width: 650px;
    margin: 0 auto;
}

hr {
    border: 0;
    height: 0;
    margin: 40px 0;
    background: transparent;
}

/* Headers */
header h1 {
    font-size: 2.2rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

.links a {
    margin-right: 18px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

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

.site-footer {
    margin-top: 80px;  /* Pushes it down below your final card block */
    margin-bottom: 20px;
    text-align: center;
}

.site-footer a {
    font-size: 0.85rem;
    color: var(--text-secondary); /* Clean grey text */
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.15s ease;
    display: inline-block;
    padding: 8px 16px;
    border: 1px dashed transparent; /* Sets up a smooth hover transition */
}

.site-footer a:hover {
    color: var(--text-primary); /* Darkens slightly on focus */
    text-decoration: none;      /* Keeps it clean without an underline */
    border: 1px dashed var(--border-color); /* Subtle blueprint box appears on hover */
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Proj/Exp sections */
.section-group {
    margin-bottom: 40px;
}

.section-group h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
}

.interactive-card {
    padding: 16px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 12px; 
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    transition: background-color 0.1s ease;
}

.interactive-card:hover {
    background-color: rgba(245, 245, 245, 0.95);
}

.card-header {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.card-title-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.interactive-card h3 {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
}

.sub-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.date {
    margin-left: auto;
    white-space: nowrap;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px; 
    border: 1px solid var(--border-color);
    background-color: #ffffff; 
    object-fit: contain; 
    padding: 4px; 
    flex-shrink: 0; 
}

.card-thumbnail {
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Technical skills */
.skills-grid p {
    margin: 8px 0;
    font-size: 0.95rem;
}

/* Proj/Exp cards */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    padding: 25px 30px;
    border-radius: 12px;
    max-width: 650px;
    width: 92%;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    opacity: 1;
    transition: opacity 0.15s ease-in-out;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.15s ease;
    z-index: 1010;
}

.close-btn:hover {
    color: #111;
}

.modal-header-row {
    display: flex;
    align-items: center; 
    gap: 16px;
    margin-bottom: 12px; 
    width: 100%;
}

.modal-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-header-text h2 {
    font-size: 1.6rem;
    margin: 0 0 2px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.modal-company-logo {
    width: 48px; 
    height: 48px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    object-fit: contain;
    padding: 4px;
    flex-shrink: 0;    
    margin-top: 0; 
    transform: translateY(8px);
}

#modal-body > div {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0;
}

#modal-body p {
    margin-top: 0;
    margin-bottom: 12px;
}

#modal-body img {
    max-width: 100%;
    border-radius: 6px;
    margin: 0 0 15px 0;
    border: 1px solid var(--border-color);
}

#modal-body h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

#modal-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

#modal-body li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Proj/Exp scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 12px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 20px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}