/* style.css - Final Full Version (Cursor Glow on HTML) */

/* --- Configuration & Variables --- */
:root {
    --bg-color: #0a192f;
    --sidebar-bg: #0a192f; /* Still useful as a fallback or if transparency is removed */
    --content-bg: #0a192f; /* Still useful as a fallback */
    --card-bg: #112240;         /* Lighter Navy for cards/highlights */
    --text-lightest: #ccd6f6;   /* Light Slate - Headings, Names */
    --text-light: #a8b2d1;      /* Slate - Titles, Body Text */
    --text-dark: #8892b0;       /* Dark Slate - Subtitles, secondary info */
    --accent-color: #64ffda;    /* Bright Teal/Green Accent */
    --border-color: #233554;    /* Navy border */
    --placeholder-bg: #303C55;  /* Darker placeholder color */

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

    --sidebar-width-lg: 40%;
    --content-width-lg: 60%;
    --max-content-width: 800px;
    --base-padding: 60px;
    --section-gap: 100px;

    /* --- Cursor Glow Variables --- */
    /* Adjust color (especially alpha) and size */
    --cursor-glow-color: rgba(204, 214, 246, 0.1); /* Adjust as needed */
    --cursor-glow-size: 200px; /* Adjust as needed */
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* ... (Keep HTML styles with gradient as before) ... */
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    --mouse-x: -1000px;
    --mouse-y: -1000px;
    background-color: var(--bg-color);
    background-image: radial-gradient(
        circle var(--cursor-glow-size) at var(--mouse-x) var(--mouse-y),
        var(--cursor-glow-color),
        var(--bg-color)
    );
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    /* Make body transparent so html gradient shows through */
    background-color: transparent;
    min-height: 100%; /* Ensure body fills html height */

    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1600px;
    margin: 0 auto;
}

.sidebar {
    width: var(--sidebar-width-lg);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: var(--base-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    /* Explicit background so HTML gradient doesn't overwrite it */
    background-color: transparent;
    text-align: right;

}

.main-content {
    width: var(--content-width-lg);
    margin-left: var(--sidebar-width-lg);
    position: relative;
    /* Explicit background so HTML gradient doesn't overwrite it */
    background-color: transparent;
    padding: var(--base-padding);
}

/* --- Sidebar Content --- */
.sidebar-content {
    /* Holds top part: Name, Title, Intro, Nav */
    display: flex; /* Ensure it's a flex container if not already */
    flex-direction: column; /* Keep vertical layout */
    align-items: flex-end; /* Align items to the end (right) */
}

.sidebar-content h1 {
    color: var(--text-lightest);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sidebar-content h2 {
    color: var(--text-lightest);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.intro {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 400px;
    margin-bottom: 2rem;
}

/* --- Sidebar Navigation --- */
.section-nav {
    margin-top: 2rem;
    margin-bottom: 1rem;
    width: fit-content;
}

.section-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-end;
}

.section-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.section-nav a:hover {
    color: var(--accent-color);
}

.section-nav a.active {
  color: var(--accent-color);
  font-weight: 500;
}

/* --- Sidebar Footer --- */
.sidebar-footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-info {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--accent-color);
}

.resume-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.resume-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    justify-content: flex-end;
}

.social-links a {
    color: var(--text-dark);
    font-size: 1.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* --- Content Sections Wrapper (Right Panel) --- */
.sections-wrapper {
    padding-top: 0;
    max-width: var(--max-content-width);
    width: 100%;
}

/* --- Content Section Styling --- */
.content-section {
    margin-bottom: var(--section-gap);
}

.content-section:last-of-type {
    margin-bottom: 0;
}

.content-section h2 {
    color: var(--text-lightest);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* --- Experience Section --- */
.job-entry {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
    position: relative;
}
.job-entry:last-of-type {
    margin-bottom: 0;
}

.job-entry h3 {
    font-size: 1.1rem;
    color: var(--text-lightest);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.job-entry .separator {
    color: var(--text-dark);
    margin: 0 0.25rem;
}
.job-entry .company {
    color: var(--accent-color);
    a {
        color: var(--accent-color);
        &:link,
        &:visited,
        &:hover {
          color: var(--accent-color);
        }
        
    }
}

.job-entry .dates {
    color: var(--text-dark);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.job-entry ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.job-entry li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.job-entry li::before {
    content: "▹";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--accent-color);
    font-size: 1rem;
    line-height: inherit;
}

/* --- Projects Section --- */
.project-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: var(--card-bg); /* Keep this to make cards distinct */
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: flex-start;
}
.project-item:last-of-type {
    margin-bottom: 0;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}

.project-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    background-color: var(--placeholder-bg);
    filter: grayscale(80%) contrast(1) brightness(90%);
    transition: filter 0.3s ease;
    display: block;
}
.project-item:hover .project-image img {
    filter: none;
}

.project-details {
    flex-grow: 1;
}

.project-details h3 {
    color: var(--text-lightest);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    a {
        color: var(--text-lightest);
        &:link,
        &:visited,
        &:hover {
          color: var(--text-lightest);}

    }
}

.project-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.project-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}
.project-links a {
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.project-links a:hover {
    color: var(--accent-color);
}


/* --- Responsiveness --- */
@media (max-width: 1080px) {
    :root {
        --sidebar-width-lg: 35%;
        --content-width-lg: 65%;
        --base-padding: 40px;
        --cursor-glow-size: 500px; /* Adjust glow size for screen */
    }
    .sidebar-content h1 { font-size: clamp(2rem, 4vw, 3rem); }
    .sidebar-content h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
    .intro { max-width: none; }
}

@media (max-width: 768px) {
    :root {
         --cursor-glow-size: 400px; /* Adjust glow size for screen */
    }
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: var(--base-padding);
        padding-bottom: 30px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        background-color: transparent; 
    }

    .sidebar-content {
       align-items: center;
    }

    .section-nav {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        align-self: center;
        width: fit-content;
    }
    .section-nav ul {
        justify-content: center;
        gap: 1rem;
    }
     .section-nav a {
        font-size: 0.85rem;
    }

    .sidebar-footer {
        align-items: center;
        margin-top: 30px;
    }

    .resume-button {
         margin-left: auto;
         margin-right: auto;
         margin-bottom: 1.5rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 0;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: var(--base-padding);
        background-color: transparent; 
    }

    .sections-wrapper {
        padding-top: 0;
        max-width: none;
     }

     .project-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    .project-image {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    .project-details {
        width: 100%;
    }
    .project-links {
        justify-content: center;
    }

     .content-section h2 {
         text-align: center;
     }

    .content-footer {
        font-size: 0.7rem;
        margin-top: var(--section-gap);
    }

     @media (hover: none) and (pointer: coarse) {
         html {
              background-image: none !important;
              background-color: var(--bg-color) !important;
         }
     }
}

.content-footer {
    margin-top: calc(var(--section-gap) * 1.5);
    padding-top: 1rem;
    padding-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-dark); /* Use the less prominent text color */
    width: 100%; /* Ensure it takes available width */

    /* Optional: Constrain width like content above */
    /* max-width: var(--max-content-width); */
    /* margin-left: auto; */
    /* margin-right: auto; */
}

.content-footer p {
    margin: 0; /* Reset default paragraph margins */
}

.content-footer a {
    color: var(--text-light); /* Link color slightly brighter than footer text */
    text-decoration: none;
    transition: color 0.3s ease;
    /* Optional: Add subtle underline on hover */
    /* text-decoration: underline; */
    /* text-decoration-thickness: 1px; */
    /* text-underline-offset: 3px; */
}

.content-footer a:hover {
    color: var(--accent-color); /* Highlight links on hover */
}

/* --- Ensure Last Section has No Bottom Margin --- */
/* This rule might already exist, ensure it's there */
.content-section:last-of-type {
    margin-bottom: 0;
}
