/* --- Variables & Reset --- */
:root {
    --bg-dark: #0f172a;
    --bg-light: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    
    /* Requested Color: #0886cf */
    --accent: #0886cf; 
    --accent-glow: rgba(8, 134, 207, 0.15);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: #fff;
}

.accent-text {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    align-items: center;
}

.section-title span {
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-right: 10px;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background-color: var(--bg-light);
    margin-left: 20px;
}

/* --- Layout Utility --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--accent);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-glow);
    color: var(--accent);
}

.btn-primary:hover {
    background-color: rgba(8, 134, 207, 0.25);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    margin-left: 1rem;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Navigation & Active Link Indicator --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(15, 23, 42, 0.9); /* Glassmorphism */
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative; /* Needed for the ::after element */
    padding-bottom: 5px; /* Space for the indicator */
}

/* Active Link Indicator (Hover Effect) */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 50%;
    bottom: 0;
    background-color: var(--accent);
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

.nav-links li a:hover::after {
    width: 100%;
    left: 0;
}

.hamburger {
    display: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section & Particles --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Container for particles and content */
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--bg-dark);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5; /* Keep content above particles */
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(40px, 8vw, 80px);
    line-height: 1.1;
    color: #e2e8f0;
}

.hero-content .sub-hero {
    font-size: clamp(30px, 5vw, 60px);
    line-height: 1.1;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-description {
    max-width: 540px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
}
.hero-description strong {
    color: var(--accent);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--accent);
}

.img-wrapper {
    position: relative;
    border-radius: 10px;
    max-width: 300px;
    margin: 0 auto;
    /* Clean container with accent border */
    border: 2px solid var(--accent);
    box-shadow: 10px 10px 0px var(--accent-glow);
    transition: var(--transition);
}

.img-wrapper img {
    width: 100%;
    border-radius: 8px; 
    display: block;
    position: relative;
    /* Reduced tint */
    /* filter: grayscale(15%);  */
    transition: var(--transition);
}

.img-wrapper:hover {
    box-shadow: 5px 5px 0px var(--accent-glow);
    transform: translate(5px, 5px);
}

.img-wrapper:hover img {
    filter: none;
}

/* --- Experience Section --- */
.timeline {
    border-left: 2px solid var(--bg-light);
    padding-left: 30px;
}

.job-card {
    margin-bottom: 40px;
    position: relative;
}

.job-card::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.job-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.job-header .company {
    color: var(--accent);
    font-family: var(--font-heading);
    margin-right: 15px;
}

.job-header .date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-details {
    margin-top: 15px;
    /* Remove default list style to use custom marker */
    list-style: none;
    padding-left: 20px;
    color: var(--text-secondary);
}

/* Custom list marker for job details */
.job-details li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.job-details li::before {
    content: '»'; /* Custom character */
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}


/* --- Projects Section --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 5px;
    transition: var(--transition);
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Indicates clickable */
    /* Add subtle 3D hover effect */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-7px) perspective(1000px) rotateX(1deg) rotateY(1deg);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Background Image Logic */
.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.08; /* Very subtle default */
    z-index: 0;
    transition: all 0.4s ease;
    filter: grayscale(100%);
}

.project-card:hover .project-bg {
    opacity: 0.25; /* Visible on hover */
    filter: grayscale(0%);
    transform: scale(1.05);
}

.project-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-light) 85%);
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.open-folder {
    color: var(--accent);
    font-size: 40px;
}

.card-links {
    color: var(--text-secondary);
    font-size: 20px;
    margin-left: 10px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #e2e8f0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Modal System --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: var(--bg-light);
    width: 90%;
    max-width: 700px;
    padding: 40px;
    border-radius: 10px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(8, 134, 207, 0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-content-body.hidden {
    display: none;
}

.modal-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-content-body h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.modal-content-body p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.modal-links {
    margin-top: 20px;
    text-align: center;
}

/* --- Footer / Contact --- */
.contact-section {
    padding-bottom: 50px;
}

.big-title {
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 20px;
}

.contact-desc {
    max-width: 600px;
    margin: 0 auto 50px 0px;
    color: var(--text-secondary);
}

.resume-buttons {
    margin-bottom: 60px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent);
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-body);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        top: 80px;
        background-color: var(--bg-light);
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        box-shadow: 0 10px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .img-wrapper {
        margin-top: 50px;
    }
}