/* Reset and box-sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 20px;
  padding: 0px;
  background-color: #ffffff;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

/* Navigation Bar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: transparent;
}

.nav-bar ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-bar ul li a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 400;
  font-size: 1rem;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 400;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-bar ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-bar ul li a:hover {
  color: #2b2b2b;
  transform: scale(1.05);
}

.nav-bar ul li a:hover::after {
  width: 100%;
}

.logo {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #2b2b2b;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 700;
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #2b2b2b;
  cursor: pointer;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 800px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 25px;
}

.hero p {
  color: #2b2b2b;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 500;
  width: 65%;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin-top: 1rem;
}

.social-links li {
  display: inline-block;
  margin-right: 1rem;
}

.social-links a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 400;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 400;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #2b2b2b;
  transform: scale(1.05);
}

.social-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.social-links a:hover::after {
  width: 100%;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: #ffffff;
}

footer span {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 400;
}
/* Availability */
.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4CAF50;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.5s infinite;
  cursor: default;
}
/* The text next to the dot */
.status-text {
  font-size: 1rem;
  vertical-align: middle;
  cursor: default;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 400;
}
/* Pulse animation */
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.4); opacity: 0.7; }
  100% { transform: scale(1);   opacity: 1; }
}
/* Offline state */
.offline .status-dot {
  background-color: #BBB;
  animation: none;
}
.offline .status-text {
  color: #888;
}

/* About Section */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  max-width: 700px;
  padding: 5px;
  gap: 15px;
}

.about-description {
  width: 100%;
  max-width: 700px;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 500;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2b2b2b;
  text-align: left;
}

/* Skills and Tools Dropdown Containers */
.skills-container,
.tools-container {
  border-top: 1px solid #e5e5e5;
  margin-top: 1rem;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.dropdown-header:hover {
  color: #666;
}

.dropdown-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 600;
  color: #2b2b2b;
  margin: 0;
  transition: color 0.2s ease;
}

.dropdown-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: #2b2b2b;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.dropdown-header.active .dropdown-icon {
  transform: rotate(45deg);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  padding: 0;
}

.dropdown-content.active {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

.dropdown-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
}

.dropdown-content li {
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 400;
  font-size: 0.95rem;
  color: #2b2b2b;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

/* Responsive behavior for dropdown content */
@media (max-width: 768px) {
  .dropdown-content ul {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .dropdown-header h2 {
    font-size: 1.25rem;
  }
  
  .dropdown-icon {
    font-size: 1.25rem;
  }
  
  .dropdown-content li {
    font-size: 0.9rem;
  }
}

/* Research Section */
.research-container {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  max-width: 700px;
  padding: 5px;
  gap: 15px;
}

/* Projects Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
  padding: 5px;
  border-top: 0.5px solid #2b2b2b;
  transition: gap 0.3s, grid-template-columns 0.3s;
}

.work-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5px;
}

.work-item img {
  width: 100%;
  height: clamp(200px, 30vw, 340px);
  object-fit: cover;
  border-radius: none;
  display: block;
  transition: height 0.3s, width 0.3s;
}

/* Increase height for Project 2 and Project 4 */
.work-grid .work-item:nth-child(2) img,
.work-grid .work-item:nth-child(5) img {
  height: 29.5625rem;
}

.work-grid .work-item:nth-child(1) img,
.work-grid .work-item:nth-child(3) img,
.work-grid .work-item:nth-child(4) img,
.work-grid .work-item:nth-child(6) img {
  height: 20.5625rem;
}

.work-item p a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 400;
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 400;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 0.875rem;
}

.work-item p a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.work-item p a:hover {
  color: #2b2b2b;
  transform: scale(1.05);
  font-weight: 500;
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 400;
}

.work-item p a:hover::after {
  width: 100%;
}

.work-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 600;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 0.0625rem;
  text-decoration-color: #2b2b2b;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
}
/*Work item project description*/
  #project-description {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 400;
  color: #706f6e;
  line-height: 1.5;
  width: 90%;
}

/* Projects Page */
.projects-container {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  gap: 10px;
}

.projects-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: left;
  justify-content: left;
  gap: 15px;
}

.project-item img {
  width: 100%;
  height: clamp(210px, 50vw, 360px);
  object-fit: cover;
  border-radius: none;
  display: block;
}

.projects-title {
  font-size: 1rem;
  font-weight: 500;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 500;
  color: #2b2b2b;
}

.projects-description {
  font-size: 1rem;
  font-weight: 400;
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 400;
  color: #706f6e;
  line-height: 1.5;
  width: 400px;
}

.project-item p {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'general-sans', sans-serif;
  color: #706f6e;
  font-variation-settings: "wght" 400;
}

.project-item p a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 400;
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 400;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 0.875rem;
}

.project-item p a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.project-item p a:hover {
  color: #2b2b2b;
  transform: scale(1.05);
}

.project-item p a:hover::after {
  width: 100%;
}

.project-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 600;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 0.0625rem;
  text-decoration-color: #2b2b2b;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
}
/* Responsive Grid Breakpoints */

/* Tablet: 2 columns */
@media (max-width: 1200px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .projects-display {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .project-item img {
    height: clamp(180px, 80vw, 320px);
  }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .work-item img {
    height: clamp(180px, 80vw, 320px);
  }
  
  /* Increase width for specific items to prevent cut off on mobile */
  .work-grid .work-item:nth-child(1) img,
  .work-grid .work-item:nth-child(3) img,
  .work-grid .work-item:nth-child(4) img,
  .work-grid .work-item:nth-child(6) img {
    width: 100%;
    max-width: none;
  }
  
  .work-item p #project-description {
    font-size: 0.875rem;
    font-weight: 400;
    font-family: 'general-sans', sans-serif;
    font-variation-settings: "wght" 400;
    color: #2b2b2b;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-bar {
    position: relative;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
  }

  .nav-bar ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .nav-bar.expanded ul {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-bar ul li a {
    color: #2b2b2b;
    font-size: 0.9rem;
    font-family: 'satoshi', sans-serif;
    font-variation-settings: "wght" 400;
  }

  .hero p {
    font-size: 0.9rem;
    width: 80%;
    font-family: 'satoshi', sans-serif;
    font-variation-settings: "wght" 400;
  }

  .logo {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'satoshi', sans-serif;
    font-variation-settings: "wght" 700;
  }

  footer {
    flex-direction: column;
    align-items: left;
    justify-content: left;
    gap: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  footer span {
    font-size: 0.875rem;
    font-family: 'satoshi', sans-serif;
    font-variation-settings: "wght" 400;
  }

  .projects-display {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-item img {
    height: clamp(180px, 80vw, 320px);
  }
}

/* Project Page Layout */

/* Project Hero Section */
.project-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.project-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 600;
  color: #2b2b2b;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.project-subtitle {
  font-size: 1rem;
  font-weight: 400;
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 400;
  color: #666;
  margin-bottom: 3rem;
  line-height: 1.5;
  max-width: 600px;
}

/* Project Tags */
.project-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.tag {
  color: #2b2b2b;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 500;
}

/* Project Metadata */
.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.meta-item h6 {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 600;
  color: #666;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-item p {
  font-size: 1rem;
  font-weight: 400;
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 400;
  color: #2b2b2b;
}

/* Project Hero Image */
.project-hero-image {
  width: 100%;
  margin: 4rem 0;
}

.project-hero-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
}

/* Project Content */
.project-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-section {
  margin-bottom: 4rem;
  max-width: 700px;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'satoshi', sans-serif;
  font-variation-settings: "wght" 600;
  color: #2b2b2b;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.content-section p {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'general-sans', sans-serif;
  font-variation-settings: "wght" 400;
  color: #2b2b2b;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Project Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 500px 240px;
  gap: 1rem;
  margin: 4rem 0;
  max-width: 800px;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery img:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

.project-gallery img:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.project-gallery img:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-hero {
    padding: 2rem 1rem 1rem;
  }

  .project-hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .project-subtitle {
    font-size: 0.875rem;
    margin-bottom: 2rem;
  }

  .project-tags {
    margin-bottom: 2rem;
  }

  .project-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .project-content {
    padding: 0 1rem;
  }

  .content-section {
    margin-bottom: 3rem;
  }

  .content-section h2 {
    font-size: 1.25rem;
  }

  .content-section p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
    gap: 0.75rem;
    margin: 3rem 0;
    max-width: 100%;
  }

  .project-gallery img:nth-child(1),
  .project-gallery img:nth-child(2),
  .project-gallery img:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Responsive Social Links */
@media (max-width: 768px) {
  .social-links {
    flex-direction: row;
    align-items: left;
    gap: 0.75rem;
  }
  .social-links li {
    margin: 0;
  }
  .social-links a {
    font-size: 0.75rem;
    font-family: 'satoshi', sans-serif;
    font-variation-settings: "wght" 400;
  }
  .status-text {
    font-size: 0.75rem;
    font-family: 'satoshi', sans-serif;
    font-variation-settings: "wght" 400;
  }
  .projects-description {
    font-size: 0.875rem;
    font-family: 'general-sans', sans-serif;
    font-variation-settings: "wght" 400;
    color: #2b2b2b;
    width: 100%;
  }
}