/* --- Global Styles & Variables --- */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-text: #E0E0E0;      /* Lighter grey for readability on black */
    --color-dark-grey: #1A1A1A; /* Darker grey for content backgrounds */
    --color-medium-grey: #888888;/* For borders and secondary text */
    --font-primary: 'Roboto Mono', monospace;
    --border-radius-heavy: 25px; /* More curvature */
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 700;
    color: var(--color-white);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

p {
    font-size: 1.15rem;
    color: var(--color-text);
}

a {
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Glassmorphism Effect --- */
.glass-effect {
    background: rgba(20, 20, 20, 0.5); /* Darker glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Navigation --- */
#navbar {
    position: sticky;
    top: 15px; /* Pushed down a bit */
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1000;
    border-radius: var(--border-radius-heavy);
    transition: top 0.3s, background-color 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: none; /* Hidden on mobile */
}

.nav-links a {
    margin: 0 1rem;
    font-weight: 400;
    position: relative;
}

.nav-links a:hover {
    color: var(--color-medium-grey);
}

/* --- Hamburger Menu (Mobile) --- */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    width: 2rem;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.hamburger-menu.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger-menu.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger-menu.open span:nth-child(3) { transform: rotate(-45deg); }

/* --- Mobile Navigation Overlay --- */
.mobile-nav-overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav-overlay.open {
    transform: translateY(0);
}

.mobile-nav-overlay a {
    font-size: 2rem;
    margin: 1.5rem 0;
    font-weight: 700;
}

/* --- Main Content & Sections --- */
main {
    padding: 6rem 1rem 0;
}

section {
    padding: 4rem 1rem;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    text-align: center;
    background-color: var(--color-dark-grey);
    border-radius: var(--border-radius-heavy);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- About Section --- */
.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--color-white);
    margin-bottom: 2rem;
    
    /* --- Add these two lines --- */
    object-fit: cover; /* This crops the image to fit */
    object-position: center; /* This ensures the center of the image is shown */
}

#about p {
    max-width: 750px;
    margin: 0 auto;
}

/* --- Toolkit Section --- */
.toolkit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

.toolkit-card {
    background: #111;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toolkit-card h3 {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-medium-grey);
    padding-bottom: 0.5rem;
}

/* --- Projects Section --- */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background: #111;
    border: 1px solid var(--color-medium-grey);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.project-card h3 { margin-bottom: 0.5rem; }
.project-card p { margin-bottom: 1.5rem; color: var(--color-medium-grey); }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    border-radius: 10px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* --- Footer / Contact Section --- */
footer {
    background: transparent;
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta {
    margin-bottom: 2rem;
    color: var(--color-medium-grey);
}

.contact-links a {
    margin: 0.5rem 1rem;
    display: inline-block;
}
.contact-links a:hover { color: var(--color-medium-grey); }
.copyright { font-size: 0.9rem; color: #666; margin-top: 3rem; }

/* --- Animations --- */
.animate-slide-in-left, .animate-slide-in-right, .animate-flip-in {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-in-left { transform: translateX(-50px); }
.animate-slide-in-right { transform: translateX(50px); }
.animate-flip-in { transform: rotateX(-90deg); }

.is-visible {
    opacity: 1;
    transform: translateX(0) rotateX(0);
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .hamburger-menu { display: none; }
    .toolkit-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: repeat(3, 1fr); }
    h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
    main { padding: 8rem 2rem 0; }
    .project-grid { gap: 2.5rem; }
}

/* --- Mission Statement Section --- */
#mission blockquote {
    border-left: 3px solid var(--color-white);
    padding-left: 2rem;
    margin: 0 auto;
    max-width: 700px;
    text-align: left;
}

#mission blockquote p {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-medium-grey);
}

/* --- Skills Proficiency Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
}

.skill-item h3 {
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    display: block;
    height: 100%;
    background-color: var(--color-white);
    border-radius: 5px;
    transform: translateX(-100%);
    transition: transform 1s ease-out;
}

.is-visible .skill-level {
    transform: translateX(0);
}


/* --- Experience Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #333;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 40px;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--color-white);
    border: 3px solid #333;
    top: 28px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 1rem;
    background: #111;
    border-radius: 10px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--color-medium-grey);
    margin-bottom: 0.5rem;
}

/* --- Timeline Responsive Adjustments --- */
@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 12px !important;
    }
}