/* Custom Properties */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #e3e3e3;
    --text-muted: #a0a0a0;
    --accent-red: #A1221C;
    --accent-red-hover: #c12e27;
    --border-color: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--bg-card);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-header h1 { font-size: 2rem; font-weight: 800; color: #fff; }
.site-header .subtitle { color: var(--text-muted); }

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.2s;
}

.main-nav a:hover { color: var(--accent-red); }

/* About Section */
.about-section {
    padding: 60px 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-red);
    margin-bottom: 20px;
    display: block;
}

.about-text h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 30px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-info h3 { margin-bottom: 15px; color: #fff; }
.contact-info ul { list-style: none; }
.contact-info li { margin-bottom: 10px; }
.contact-info a { color: #ffAAEE; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.about-cv {
    flex: 1;
    min-width: 300px;
}

.about-cv h3 {
    color: #fff;
    margin-bottom: 20px;
}

.about-cv iframe {
    border-radius: 8px;
    background-color: #fff; /* White background prevents transparent PDFs from becoming unreadable */
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}

/* Filters */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px 0;
}

.filter-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Project Cards */
.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--accent-red);
}

/* Image Slider inside Card */
.slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer; /* Suggests the image is clickable */
}

.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.slider button:hover { background: var(--accent-red); }
.slider .prev { left: 0; }
.slider .next { right: 0; }

/* Card Content & Links */
.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--accent-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.badge-alt { background-color: #2b5c8f; }
.badge-edu { background-color: #2e7d32; }

.project-card h2 { font-size: 1.5rem; margin-bottom: 5px; color: #fff; }
.tech { color: #ffAAEE; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }

/* Timeline Text Styling */
.timeline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-family: monospace; /* Gives that "data" look from the original */
}

.description { font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.card-links a {
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.card-links a:hover { background-color: var(--accent-red); }

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    animation: zoom 0.2s ease-in-out;
}

@keyframes zoom {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    z-index: 1001;
}

.close-lightbox:hover { color: var(--accent-red); }

/* Lightbox Slider Buttons */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 2rem;
    transition: background 0.2s;
    z-index: 1002;
    border-radius: 4px;
}

.lightbox-btn:hover {
    background: var(--accent-red);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Make buttons a bit smaller on mobile */
@media (max-width: 768px) {
    .lightbox-btn {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}