/* 1. VARIABLES & GLOBAL RESETS
-------------------------------------------------- */

/* Oceanic Deep Gradient Theme */
:root {
  --primary-color: #0052D4;
  /* Solid blue for text/links */
  --dark-color: #2C2F33;
  --medium-color: #5F6368;
  --light-color: #FFFFFF;
  --background-color: #FFFFFF;
  --accent-green: #65C7F7;
  /* Lighter blue for accent */
  --social-hover-color: #0052D4;
  --link-color: #0052D4;
  --link-hover-color: #65C7F7;
  --font-primary: 'Saira Extra Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.side-nav {
  background-image: linear-gradient(to top, #0052D4, #4364F7, #65C7F7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--medium-color);
  background-color: var(--background-color);
  padding-top: 54px;
  transition: background-color 0.3s, color 0.3s;
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

hr {
  margin: 0;
  /* UPDATED: Removed all margins from the HR element. */
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  transition: border-color 0.3s;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-hover-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-accent-green {
  color: var(--accent-green) !important;
}

.text-warning {
  color: #FAA61A !important;
}

/* 2. TYPOGRAPHY & SPACING
-------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark-color);
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  transition: color 0.3s;
}

.subheading {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1.5rem;
  text-transform: uppercase;
}

h1,
.h1 {
  font-size: calc(1.725rem + 5.7vw);
  line-height: 1;
}

@media (min-width: 1200px) {

  h1,
  .h1 {
    font-size: 6rem;
  }
}

h2,
.h2 {
  font-size: calc(1.475rem + 2.7vw);
}

@media (min-width: 1200px) {

  h2,
  .h2 {
    font-size: 3.5rem;
  }
}

h3,
.h3 {
  font-size: calc(1.325rem + 0.9vw);
}

@media (min-width: 1200px) {

  h3,
  .h3 {
    font-size: 2rem;
  }
}

#about .section-content>h1 {
  margin-bottom: 0 !important;
}

#about .section-content>.subheading {
  margin-bottom: 2rem !important;
}

p.lead {
  font-size: 1.15rem;
  font-weight: 300;
}

#about .section-content>p.lead {
  margin-bottom: 2rem !important;
}

#experience h2,
#education h2,
#certifications h2,
#projects h2,
#interests h2 {
  margin-bottom: 2rem !important;
}

#skills h2 {
  margin-bottom: 0.25rem !important;
}

.experience-item,
.education-item {
  margin-bottom: 2rem !important;
}

.experience-item:last-child,
.education-item:last-child {
  margin-bottom: 0 !important;
}

.experience-item h3,
.education-item h3 {
  margin-bottom: 0 !important;
}

.experience-item .subheading,
.education-item .subheading {
  margin-bottom: 1rem !important;
}

#skills .subheading {
  margin-bottom: 1rem !important;
}

ul.icon-list.workflow {
  margin-bottom: 0 !important;
}

#interests p:last-of-type {
  margin-bottom: 0 !important;
}


/* 3. NAVIGATION (SIDEBAR)
-------------------------------------------------- */
.side-nav {
  /* background-color is now handled by the gradient rule */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.nav-brand {
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand-desktop {
  display: none;
}

.nav-brand-mobile {
  color: #fff;
}

.menu-toggle {
  display: block;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
}

.menu-toggle-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--primary-color);
  /* Restored background for mobile */
}

.nav-menu.is-active {
  display: block;
}

.nav-items {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.nav-item .nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 800;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.nav-item .nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.nav-item .nav-link.active {
  color: #fff;
}

/* Desktop Navigation Styles */
@media (min-width: 992px) {
  .side-nav {
    flex-direction: column;
    width: 17rem;
    height: 100vh;
    padding: 0;
  }

  .nav-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }

  .nav-brand-desktop {
    display: block;
  }

  .nav-brand-mobile {
    display: none;
  }

  .profile-image {
    max-width: 10rem;
    max-height: 10rem;
    border-radius: 50%;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
  }

  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    position: static;
    width: 100%;
    margin-bottom: auto;
    background-color: transparent;
    /* Makes menu transparent on desktop to show sidebar gradient */
  }

  .nav-items {
    flex-direction: column;
    width: 100%;
  }

  .nav-item .nav-link {
    text-align: center;
  }
}

/* 4. MAIN CONTENT & SECTIONS
-------------------------------------------------- */
.main-content {
  position: relative;
}

.resume-section {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  max-width: 75rem;
}

@media (min-width: 768px) {
  .resume-section {
    min-height: 100vh;
  }
}

@media (min-width: 992px) {
  .resume-section {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.section-content {
  width: 100%;
}


/* 5. SPECIFIC COMPONENTS
-------------------------------------------------- */
.social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  background-color: var(--dark-color);
  color: var(--light-color);
  border-radius: 100%;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.social-icons .social-icon:last-child {
  margin-right: 0;
}

.social-icons .social-icon:hover {
  background-color: var(--social-hover-color);
}

@media (min-width: 768px) {

  .experience-item,
  .education-item {
    display: flex;
    justify-content: space-between;
  }

  .experience-details,
  .education-details {
    flex-grow: 1;
  }

  .experience-date,
  .education-date {
    flex-shrink: 0;
    color: var(--accent-green);
  }
}

ul.icon-list {
  list-style: none;
  padding-left: 0;
}

ul.icon-list li {
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.icon-list-icon {
  position: absolute;
  left: 0;
  width: 2rem;
  text-align: center;
}

.dev-icons {
  padding-left: 0;
  list-style: none;
  font-size: 3rem;
  margin-bottom: 1rem !important;
}

.dev-icons li {
  display: inline-block;
  margin-right: 1.5rem;
  color: var(--dark-color);
  transition: color 0.3s;
}

.dev-icons li:last-child {
  margin-right: 0;
}

/* 6. THEME TOGGLE
-------------------------------------------------- */
/* Mobile First Styles */
.theme-toggle {
  background-color: var(--dark-color);
  color: var(--light-color);
  border: none;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  transition: background-color 0.3s, color 0.3s;
  margin-left: auto;
  margin-right: 0.5rem;
}

.theme-toggle:hover {
  background-color: var(--social-hover-color);
}


/* 7. DARK MODE STYLES
-------------------------------------------------- */
body.dark-mode {
  --dark-color: #FFFFFF;
  --medium-color: #8E9297;
  --background-color: #2C2F33;
  --link-hover-color: #43B581;
}

body.dark-mode hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .social-icons .social-icon {
  background-color: #23272A;
  color: #FFFFFF;
}

body.dark-mode .social-icons .social-icon:hover {
  background-color: var(--social-hover-color);
}

body.dark-mode .dev-icons li {
  color: #FFFFFF;
}

body.dark-mode .theme-toggle {
  background-color: #FFFFFF;
  color: #23272A;
}

body.dark-mode .theme-toggle:hover {
  background-color: #cccccc;
}

/* 8. RESPONSIVE & CUSTOM FIXES
-------------------------------------------------- */
/* Desktop Styles & Overrides */
@media (min-width: 992px) {
  .theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Color enhancement for subheadings */
#skills .subheading,
#experience .subheading,
#education .subheading,
#projects .subheading,
#interests .subheading {
  color: var(--primary-color);
}

/* Mobile and desktop date handling */
.experience-date-mobile,
.education-date-mobile {
  color: var(--accent-green);
  margin-top: -0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {

  .experience-date-mobile,
  .education-date-mobile {
    display: none;
  }
}

.experience-date,
.education-date {
  display: none;
}

@media (min-width: 768px) {

  .experience-date,
  .education-date {
    display: block;
    flex-shrink: 0;
    color: var(--accent-green);
  }
}

/* --- Project Section Styles --- */
#project-filters-container {
  margin-bottom: 2rem;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-weight: bold;
  font-family: var(--font-secondary);
  margin-right: 1rem;
  font-size: 0.9rem;
  color: var(--medium-color);
  padding: 0.3rem 0.6rem;
  border: 1px dotted var(--medium-color);
  border-radius: 0;
}

.filter-btn {
  background-color: var(--medium-color);
  color: var(--light-color);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 0;
  /* Sharp square look */
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
}

.filter-btn:hover {
  background-color: var(--dark-color);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--light-color);
}

body.dark-mode .filter-btn {
  background-color: #5F6368;
}

body.dark-mode .filter-btn:hover {
  background-color: #8E9297;
}

body.dark-mode .filter-btn.active {
  background-color: var(--primary-color);
}

body.dark-mode .filter-label {
  color: var(--medium-color);
}


.project-item {
  margin-bottom: 2.5rem;
}

.project-item:last-child {
  margin-bottom: 0;
}

.project-item .project-title {
  margin-bottom: 0.25rem;
  text-transform: none;
  /* Override default h3 uppercase */
  font-size: 1.5rem;
}

.project-item .project-title a {
  text-decoration: none;
  color: var(--dark-color);
}

.project-item .project-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

body.dark-mode .project-item .project-title a {
  color: var(--dark-color);
  /* #FFFFFF */
}

.project-tags {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: var(--accent-green);
  color: var(--light-color);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  /* Sharp square look */
  font-family: var(--font-secondary);
  font-weight: bold;
}

.project-description {
  text-align: justify;
}

#interests .section-content p {
  text-align: justify;
}