/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-color: #64ffda;  /* A modern, professional green */
    --bg-color: #0a192f;
    --light-bg-color: #112240;
    --text-color: #ccd6f6;
    --heading-color: #e6f1ff;
    --slate-color: #8892b0;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --shadow-color: rgba(2, 12, 27, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.main-content {
    padding: 0 150px; /* Make space for sidebars */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.mono-font {
    font-family: var(--font-mono);
    color: var(--primary-color);
}

.section-heading {
    margin-top: 25px;
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 40px;
    white-space: nowrap;
}

.section-heading::before {
    content: "0" counter(section) ".";
    counter-increment: section;
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

.section-heading::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--light-bg-color);
    margin-left: 20px;
}
body { counter-reset: section; }


/* --- SPOTLIGHT & SIDEBARS --- */
.spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204, 214, 246, 0.05) 0%, rgba(204, 214, 246, 0) 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s;
}

.left-sidebar, .right-sidebar {
    position: fixed;
    bottom: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.left-sidebar { left: 40px; }
.right-sidebar { right: 40px; }

.left-sidebar::after, .right-sidebar::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background-color: var(--slate-color);
    margin-top: 20px;
}

.social-links-fixed a, .email-link-fixed {
    color: var(--slate-color);
    transition: color 0.3s, transform 0.3s;
}
.social-links-fixed a:hover, .email-link-fixed:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links-fixed {
    display: flex;
    flex-direction: column;
    gap: 25px;
    font-size: 1.3rem;
}

.email-link-fixed {
    writing-mode: vertical-rl;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: top 0.3s, box-shadow 0.3s;
    height: 80px;
}
.header-hidden { top: -80px; }
.header-scrolled { box-shadow: 0 10px 30px -10px var(--shadow-color); }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.nav-logo {
    display: flex; /* Helps with vertical alignment */
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.nav-logo img {
    height: 45px; /* Adjust this value to your preferred logo size */
    width: auto;  /* This maintains the aspect ratio */
}

.nav-logo:hover { 
    transform: rotate(-5deg); 
}

.nav-links {
    list-style: none;
    display: flex;
    counter-reset: item 0;
}

.nav-links li { margin-left: 30px; }

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    font-family: var(--font-mono);
}

.nav-links a::before {
    content: '0' counter(item) '.';
    counter-increment: item;
    margin-right: 5px;
    color: var(--primary-color);
}

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

.hamburger { display: none; }
.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content { max-width: 800px; }
.hero-content h1 {
    font-size: clamp(40px, 8vw, 80px); /* Responsive font size */
    color: var(--heading-color);
    margin: 0;
}
.hero-content .subtitle {
    font-size: clamp(30px, 6vw, 60px); /* Responsive font size */
    color: var(--slate-color);
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1rem; /* Adjusted for uniformity */
    max-width: 600px;
    margin: 20px 0 25px; /* Adjusted padding */
    color: var(--slate-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--font-mono);
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: hsla(160, 100%, 75%, 0.1);
    transform: translateY(-3px);
}

/* --- ABOUT SECTION --- */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: flex-start;
}
.about-text p { margin-bottom: 15px; font-size: 1rem; /* Adjusted for uniformity */ }

.tech-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px;
    margin-top: 20px;
}
.tech-grid li {
    position: relative;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.tech-grid li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.about-photo {
    max-width: 200px;
    position: relative;
}
.about-photo .img-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--primary-color);
}
.about-photo .img-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    z-index: 1;
    transition: transform 0.3s;
}
.about-photo:hover .img-wrapper::after { transform: translate(-5px, -5px); }

.about-photo img {
    width: 100%;
    display: block;
    position: relative;
    /* Removed mix-blend-mode and filter for no B&W animation */
    /* mix-blend-mode: multiply; */
    /* filter: grayscale(100%) contrast(1); */
    transition: all 0.3s;
}
/* Removed hover effect for image filter */
/* .about-photo:hover img {
    mix-blend-mode: normal;
    filter: none;
} */


/* --- EXPERIENCE (TIMELINE) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid var(--light-bg-color);
}
.timeline-item {
    margin-bottom: 30px; /* Adjusted for uniformity */
    position: relative;
    padding: 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.timeline-item:hover { background-color: var(--light-bg-color); }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 25px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--slate-color);
    border: 2px solid var(--bg-color);
    z-index: 1;
    transition: background-color 0.3s;
}
.timeline-item:hover::before { background-color: var(--primary-color); }
.timeline-content h3 { color: var(--heading-color); font-size: 1.2rem; }
.timeline-content h3 span { color: var(--primary-color); }
.timeline-content .date {
    font-family: var(--font-mono);
    color: var(--slate-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.timeline-content ul { list-style-type: none; padding-left: 0; }
.timeline-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px; /* Adjusted for uniformity */
    color: var(--slate-color);
    font-size: 1rem; /* Adjusted for uniformity */
}
.timeline-content ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* --- EDUCATION SECTION --- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.education-card {
    background-color: var(--light-bg-color);
    padding: 25px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px -15px var(--shadow-color);
}

.education-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -15px var(--shadow-color);
}

.education-card h3 {
    color: var(--heading-color);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.education-card .degree {
    color: var(--slate-color);
    font-size: 1rem;
    margin-bottom: 5px; /* Added for spacing */
}

.education-card .location {
    color: var(--slate-color);
    font-size: 0.95rem; /* Slightly smaller for location */
    margin-bottom: 10px; /* Added for spacing */
}

.education-card .date {
    font-family: var(--font-mono);
    color: var(--slate-color);
    font-size: 0.9rem;
    margin-top: 5px; /* Adjusted for consistency */
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--light-bg-color);
    padding: 25px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -15px var(--shadow-color);
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -15px var(--shadow-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.project-links a {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-left: 15px;
    transition: color 0.3s;
}
.project-links a:hover { color: var(--primary-color); }

.project-card h3 {
    color: var(--heading-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--slate-color);
    font-size: 1rem; /* Adjusted for uniformity */
    flex-grow: 1;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--slate-color);
}

/* --- CONTACT --- */
#contact { text-align: center; }
.contact-title {
    color: var(--heading-color);
    font-size: clamp(40px, 5vw, 60px);
    margin: 10px 0 20px;
}
#contact p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--slate-color);
    font-size: 1rem; /* Adjusted for uniformity */
}

/* --- FOOTER --- */
.footer {
    padding: 25px 0;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--slate-color);
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1080px) {
    .main-content { padding: 0 100px; }
    .left-sidebar { left: 20px; }
    .right-sidebar { right: 20px; }
}

@media (max-width: 768px) {
    #hero {
        min-height: 70vh;
    }
    .main-content { padding: 0; }
    .container { padding: 0 25px; }

    .spotlight, .left-sidebar, .right-sidebar { display: none; }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--light-bg-color);
        width: 70vw;
        height: 100vh;
        text-align: center;
        transition: right 0.3s ease;
        padding-top: 0;
        box-shadow: -10px 0px 30px -15px var(--shadow-color);
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 30px 0; }
    .nav-links a { font-size: 1.2rem; }
    .hamburger { display: block; z-index: 101; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .about-photo { margin: 0 auto; }
}

/* --- SKILLS (NEW) --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.skill-card {
  background-color: var(--light-bg-color);
  padding: 22px;
  border-radius: 5px;
  box-shadow: 0 10px 30px -15px var(--shadow-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -15px var(--shadow-color);
}

.skill-card h3 {
  color: var(--heading-color);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.skills-note {
  color: var(--slate-color);
  margin-bottom: 20px;
}

/* Center the contact section heading */
#contact .section-heading {
  justify-content: center;   /* center within flex */
  text-align: center;
}

/* Optional: remove the line to the right of the heading in contact */
#contact .section-heading::after {
  display: none;
}
