/* about.css — About Section Styles */

/* ─── About Hero ─── */
.about-hero {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0 3rem;
    text-align: center;
}

.about-hero .profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    margin-bottom: 1.25rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.about-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.about-hero .tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.about-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    background: var(--bg-card);
    margin: 0.2rem;
}

.about-nav-btn:hover,
.about-nav-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ─── Sub-page header ─── */
.about-page-header {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.about-page-header .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
}

.about-page-header .breadcrumb-item a {
    color: var(--primary);
    font-size: 0.85rem;
}

.about-page-header .breadcrumb-item.active {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.about-page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-dim);
}

/* ─── Bio section ─── */
.about-bio {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.bio-item {
    max-width: 700px;
    margin: 0 auto;
    padding: 0.85rem 0;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.bio-item:last-child {
    border-bottom: none;
}

/* ─── Portfolio ─── */
.portfolio-section {
    background: var(--bg-base);
    padding: 4rem 0;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.portfolio-card-image {
    position: relative;
    overflow: hidden;
}

.portfolio-card-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.06);
}

.portfolio-card-featured .portfolio-card-image img {
    height: 260px;
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 165, 233, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-overlay i {
    color: #fff;
    font-size: 1.5rem;
}

.portfolio-card-title {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* ─── Portfolio Modals (Bootstrap 5) ─── */
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--text);
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
    padding: 1.1rem 1.5rem !important;
}

.modal-title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}

.btn-close {
    filter: invert(1);
    opacity: 0.6;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem !important;
}

.modal-body img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: var(--bg-elevated);
    display: block;
}

.modal-body p,
.modal-body li {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.modal-body ul {
    padding-left: 1.1rem;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.modal-meta-item strong {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.modal-meta-item span {
    font-size: 0.83rem;
    color: var(--text-muted);
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
    padding: 1rem 1.5rem !important;
}

/* ─── Contact ─── */
.contact-section {
    background: var(--bg-base);
    padding: 4rem 0;
}

.contact-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.contact-wrap .form-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.contact-wrap .form-control {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text);
    border-radius: 5px;
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-wrap .form-control:focus {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
    outline: none;
}

.contact-wrap .form-control::placeholder {
    color: var(--text-dim);
}

/* Bootstrap 5 validation states — dark theme overrides */
.contact-wrap .form-control.is-invalid,
.contact-wrap .was-validated .form-control:invalid {
    border-color: #EF4444;
    background-image: none;
}

.contact-wrap .form-control.is-valid,
.contact-wrap .was-validated .form-control:valid {
    border-color: var(--accent-green);
    background-image: none;
}

.contact-wrap .invalid-feedback {
    color: #EF4444;
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

/* Alert styling (Bootstrap 5 compatible) */
#formAlert.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
    border-radius: 6px;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
}

#formAlert.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    border-radius: 6px;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
}

#formAlert .btn-close {
    filter: invert(1);
    opacity: 0.5;
    padding: 0.5rem;
}

#formAlert a { color: inherit; text-decoration: underline; }

.fs-field-error {
    display: block;
    color: #EF4444;
    font-size: 0.78rem;
    margin-top: 0.25rem;
    min-height: 0;
}

/* ─── Timeline ─── */
.timeline-section {
    background: var(--bg-base);
    padding: 3rem 0 4rem;
}

.timeline-entry {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 1.5rem;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    z-index: 1;
}

.timeline-entry::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1.25rem;
    bottom: -1.5rem;
    width: 2px;
    background: var(--border);
}

.timeline-entry:last-child::after {
    display: none;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
}

.timeline-dates {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
}

.timeline-role {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.timeline-org {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-location {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.timeline-body {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.timeline-body ul {
    padding-left: 1.1rem;
    margin: 0;
}

.timeline-body ul li {
    color: var(--text-muted);
    font-size: 0.855rem;
    margin-bottom: 0.35rem;
    line-height: 1.55;
}

.timeline-body ul ul {
    margin-top: 0.3rem;
}

/* ─── Education ─── */
.education-section {
    background: var(--bg-base);
    padding: 3rem 0 4rem;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.edu-logo {
    flex-shrink: 0;
    width: 72px;
}

.edu-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 0.4rem;
}

.edu-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.edu-institution {
    color: var(--primary);
    font-size: 0.87rem;
    margin-bottom: 0.15rem;
}

.edu-location {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ─── Publications ─── */
.publications-section {
    background: var(--bg-base);
    padding: 3rem 0 4rem;
}

.pub-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.65rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.pub-item:hover {
    border-color: var(--border-light);
}

.pub-year {
    flex-shrink: 0;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: 42px;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.pub-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ─── Software ─── */
.software-section {
    background: var(--bg-base);
    padding: 3rem 0 4rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.skill-category-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.skill-tag {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--text);
}

/* ─── Simulation ─── */
.simulation-section {
    background: var(--bg-base);
    padding: 3rem 0 4rem;
}

.sim-platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 6px;
    padding: 1.4rem 1.25rem;
    text-align: center;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sim-platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

.sim-platform-card .platform-icon {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    display: block;
}

.sim-platform-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.sim-platform-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.sim-project-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--secondary);
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 0.65rem;
}

.sim-project-item h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.sim-project-item p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin: 0;
}

/* ─── Shared footer bar ─── */
.about-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}
