/* --- Easy to Edit Variables --- */
:root {
    --primary-color: #ff8c00; /* Dark Orange for primary actions and borders */
    --secondary-color: #1E1E1E; /* A slightly lighter black for sidebar/cards */
    --accent-color: #FFA500; /* A standard orange for hover effects and accents */
    --accent-color-2: #0077b6; /* A deep blue for active states */
    --highlight-color: #ffc966; /* A lighter orange for highlights on hover */
    --text-color: #EAEAEA; /* A slightly off-white for main text */
    --background-color: #121212; /* A dark, "material design" black for the background */
}

/* --- General Styles --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
}

/* --- Header and Navigation --- */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    border-bottom: 2px solid var(--highlight-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
}

nav ul li {
    margin: 0 0.5rem;
}

.nav-link {
    color: black;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background-color: var(--accent-color-2);
    color: white;
}

/* --- Sidebar --- */
.sidebar {
    flex: 1;
    min-width: 280px;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    text-align: center;
    height: fit-content;
}

.photo-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    margin: 0 auto;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-color);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icons {
    margin: 1.5rem 0;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0 0.75rem;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.personal-info p {
    text-align: left;
    margin: 0.5rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item ion-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.info-item p {
    margin: 0.5rem 0;
}

/* --- Main Content --- */
.main-content {
    flex: 3;
    padding-left: 3rem;
    position: relative;
}

article.page {
    display: none;
}

article.page.active {
    display: block;
}

section {
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

section:last-child {
    border-bottom: none;
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.title-wrapper h2, .title-wrapper h3 {
    margin: 0;
}

.icon-box {
    background: var(--primary-color);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.sub-heading {
    color: var(--accent-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

/* --- Feature Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.6);
}

.feature-card ion-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Project Section --- */
.project-filters {
    margin-bottom: 2rem;
    text-align: center;
}

.filter-btn {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
}

/* --- Contact Form --- */
.contact-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #444;
    background-color: #333;
    color: var(--text-color);
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: var(--accent-color);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

/* --- Timeline --- */
.timeline {
    margin-bottom: 30px;
}

.timeline .title-wrapper.sub-title {
    margin-left: 25px;
}

.timeline .icon-box {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.timeline-list {
    font-size: 1rem;
    margin-left: 55px;
    border-left: 2px solid var(--primary-color);
    padding-left: 30px;
    list-style-type: none; /* Remove numbering */
}

.timeline-item {
    position: relative;
}

.timeline-item:not(:last-child) {
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid var(--background-color);
}

.timeline-item-title {
    font-size: 1.2rem;
    margin-bottom: 7px;
}

.timeline-item span {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.timeline-text {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline-duties {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
}

.timeline-duties li {
    margin-bottom: 8px;
}

/* --- Map Container --- */
.map-container {
    margin-top: 2rem;
    text-align: center;
}

.project-link {
    text-decoration: none;
    color: inherit;
}

/* --- Project Section Enhancements --- */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: start;
}

.project-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    transform: scale(1);
}

.project-link.hide {
    display: none;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.6);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: contain; /* Ensures the whole image is visible */
    background-color: #2a2a2a; /* Adds a background for letterboxing */
}

.project-card h3 {
    font-size: 1.1rem;
    padding: 1rem;
    margin: 0;
}

/* Keep the icon style for the one card that still uses it */
.project-card ion-icon {
    font-size: 8rem;
    color: var(--primary-color);
    margin: auto; /* Center the icon */
}

/* --- Page Transitions --- */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

.page-enter {
    animation: slideInRight 0.5s forwards;
}

.page-leave {
    animation: slideOutLeft 0.5s forwards;
    position: absolute; /* Keep it in flow during animation */
    width: 100%;
}

/* --- Timeline Logo Styles --- */
.timeline-main-content {
    display: flex;
    align-items: center; /* Center items vertically */
    gap: 20px;
    margin-bottom: 10px; /* Add some space before the duties list */
}

.timeline-logo-large {
    max-height: 80px;
    max-width: 100px;
    width: auto;
    border-radius: 8px;
    background-color: white;
    padding: 5px;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.timeline-text-content {
    display: flex;
    flex-direction: column;
}

/* --- Smoke Effect --- */
.smoke-section {
    position: relative;
    overflow: hidden;
}

#smoke-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.smoke-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5); /* Add semi-transparent background */
    color: white;
    padding: 2rem;
}

#transition-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 9999; /* High z-index to be on top of everything */
    display: none; /* Initially hidden */
}
