@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,600,700");

/* =======================================
   CSS Reset (Inspired by Meyer’s Reset)
========================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del,
dfn, em, img, ins, kbd, q, s, samp, small, strike,
strong, sub, sup, tt, var, b, u, i, center, dl, dt,
dd, ol, ul, li, fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer, header,
hgroup, menu, nav, output, ruby, section, summary, time,
mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ====================
   Box Sizing
====================== */
html {
  box-sizing: border-box;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ====================
   Custom Properties
====================== */
:root {
  --primary-font: 'Source Sans Pro', Arial, sans-serif;
  --base-font-size: 13pt;
  --line-height: 1.5em;
  --text-color: #676d79;
  --color-text-primary: #333;  /* Adjust as needed */
  --color-text-secondary: #676d79;
  --link-underline: dotted 1px #d0d6e2;
  --link-hover-color: #e7746f;
  --input-border: 1px solid #dee0e3;
  --input-bg: #F4F5F7;
  --button-border: 1px solid #dee0e3;
  --button-alt-bg: #676d79;
  --spacing-xl: 2rem;
  --spacing-md: 1rem;
  /* --border-gray: #ccc;
  --border-width-thin: 1px;
  --color-border: #ccc; */

}




/* ====================
   Base Typography
====================== */
body, input, textarea, select {
  font-family: var(--primary-font);
  font-size: var(--base-font-size);
  line-height: var(--line-height);
  color: var(--text-color);
  font-weight: 300;
  /* background: #fff; */
}

b, strong {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--primary-font);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }

p {
  margin-bottom: 1rem;
}

/* ====================
   Navigation
====================== */
nav {
  display: flex;
  font-family: var(--primary-font);
  font-size: var(--base-font-size);
  justify-content: flex-end;
  color: var(--color-text-primary);
  border-bottom: 1.5pt solid var(--border-gray); /* Ensure --border-gray is defined */
  width: 100%;
}

.menu-links,
.menu-links:visited {
  display: inline-block;
  margin: 0 0.5vw;
  padding: var(--spacing-xl);
  border-bottom: var(--border-width-thin) solid var(--color-border); /* Ensure --border-width-thin and --color-border are defined */
  transition: color 0.2s ease, border-color 0.2s ease;
}

.menu-links:hover {
  color: var(--link-hover-color);
  border-color: var(--link-hover-color);
}

/* ====================
   Header & Navigation Links
====================== */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 2rem 2vw;
  width: 100%;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 1rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* ====================
   Links
====================== */
a {
  text-decoration: none;
  border-bottom: var(--link-underline);
  color: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--link-hover-color);
  border-color: var(--link-hover-color);
}


/* ====================
   Form Elements
====================== */
input, textarea, select {
    display: block;
    max-width : 80%;
    width: 100%;
    padding: 0.75em;
    border: var(--input-border);
    border-radius: 4px;
    background-color: var(--input-bg);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }


input:focus, textarea:focus, select:focus {
  border-color: var(--link-hover-color);
  box-shadow: 0 0 0 1px var(--link-hover-color);
}

/* Centering the form container */
.contact-form {
  width: 100%;
  max-width: 800px; /* Limits form width for readability */
  margin: 25px auto 50px; /* Spacing from top and bottom, centered horizontally */
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
}



/* ====================
   Buttons
====================== */
.button {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  font-weight: 600;
  border: var(--button-border);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  border-color: var(--link-hover-color);
  color: var(--link-hover-color);
}

.button.alt {
  background: var(--button-alt-bg);
  border-color: var(--button-alt-bg);
  color: #d81b1bd0;
}

.button.alt:hover {
  background: var(--link-hover-color);
  border-color: var(--link-hover-color);
}


/* ====================
   Container
====================== */
.container {
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

/* ====================
   Footer
====================== */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-color);
}

/* ====================
   Intro Section
====================== */
.intro-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: var(--spacing-xl) auto;
  padding: 2.5rem var(--spacing-md) var(--spacing-xl);
}

.intro-container:first-of-type {
  align-items: flex-start;
}

.introimg {
  width: 200px;
  height: auto;
  clip-path: circle();
  object-fit: cover;
  flex-shrink: 0;
}

.intro-text {
  flex: 1;
}

.intro-text h1 {
  margin-bottom: var(--spacing-md);
  font-size: 2rem;
  color: var(--color-text-primary);
}

.intro-text p {
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ====================
   Responsive Design
====================== */
@media (max-width: 768px) {
  .intro-container {
    flex-direction: column;
    text-align: center;
  }

  .introimg {
    width: 180px;
  }
}

/* ====================
   Project Page
====================== */

/* --- Centering the Main Content --- */
.site-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

/* --- Project Grid Layout --- */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* --- Styling Individual Project Cards --- */
.project {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
      /* Ensure content is centered */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensures all cards take equal height */
}

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

.project img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-height: 200px;
}

.project h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.project p {
    font-size: 1rem;
    color: var(--text-color);
}


/* ====================
   Resume Page
====================== */

./* ====================
 Resume Container
====================== */
.resume-container {
  max-width: 900px;
  width: 100%;
  background: var(--input-bg);
  margin: 30px auto;
  padding: var(--spacing-xl);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ====================
Resume Header
====================== */
.resume-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.resume-header h1 {
  font-size: 2.5rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.resume-header p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
}

/* ====================
Contact Information
====================== */
.contact-info {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
}

.contact-info a {
  color: inherit;
  border-bottom: var(--link-underline);
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--link-hover-color);
}

/* ====================
Resume Sections
====================== */
/* Container */
.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 2.5em;
  margin: 0;
  font-weight: bold;
}

.contact {
  font-size: 1em;
  margin-top: 10px;
}

/* Sections */
section {
  margin-bottom: 30px;
}

section h2 {
  font-size: 1.75em;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #333;
}

/* Education, Experience, and Projects Items */
.edu-item, .exp-item, .project-item {
  margin-bottom: 20px;
}

.edu-item h3, .exp-item h3, .project-item h3 {
  font-size: 1.5em;
  margin-bottom: 5px;
}

/* Paragraphs and Lists */
.edu-item p, .exp-item p, .project-item p, .additional p {
  margin: 5px 0;
}

ul {
  margin: 10px 0 10px 20px;
  padding: 0;
  list-style-type: disc;
}

/* Subsections within Experience */
.subsection {
  margin-left: 20px;
  margin-bottom: 10px;
}

.subsection h4 {
  font-size: 1.3em;
  margin-bottom: 5px;
  color: #555;
}

/* Links */
a {
  color: #333;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ====================
   Assignment Page
====================== */
.docimages {
  max-width: 100%;  /* Ensures the image never exceeds its container */
  height: auto;  /* Maintains the aspect ratio */
  display: block;  /* Removes any extra spacing below the image */
  margin: 0 auto;  /* Centers the image if needed */
  border-radius: 8px;  /* Optional: Adds rounded corners */

}

/* ====================
 Theme Switcher Styling
====================== */
.color-scheme {
  display: inline-flex; /* Corrected from 'in-line' to 'inline-flex' */
  gap: 1px;
  position: fixed;
  bottom: 4px;
  right: 4px;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  font-size: 90%;
  z-index: 10; /* Ensure it's above other content */
}

/* Make dropdown menu readable */
.color-scheme select {
  display: inline-block; /* Corrected from 'in-line' to 'inline-block' */
  background: transparent;
  color: inherit;
  border: none;
  font-size: 90%;
  cursor: pointer;
}

html, body {
  display: block; /* Corrected from 'in-line' to 'block' */
  height: 100%;
  margin: 0;
  padding: 0;
  color-scheme: light dark; /* Enables both light and dark mode */
  /* background-color: Canvas; Uses system-defined background color */
  color: CanvasText; /* Uses system-defined text color */
}


/* Dark Mode */
body.dark-mode {
  background-color: #302828e0; /* Dark background */
  color: rgba(236, 236, 236, 0.562); /* Light text */
}

/* Ensure headings and links are visible in dark mode */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode a {
  color: rgba(255, 255, 255, 0.9);
}

/* Dark mode form elements */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
