/* Linux Server project image tweaks */
.linux-server-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  display: block;
}
/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 999;
  background-color: #000;
}

/* Engagement Section Styles */
.engagement-insight {
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.insight-box {
  background: rgba(140, 90, 200, 0.1);
  border: 1px solid rgba(140, 90, 200, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.insight-box:hover {
  background: rgba(140, 90, 200, 0.15);
  transform: translateY(-2px);
}

.insight-box > i {
  font-size: 1.5rem;
  color: #8c5ac8;
  margin-top: 0.25rem;
}

.insight-content {
  flex: 1;
}

.insight-content h4 {
  color: #8c5ac8;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.insight-content p {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.engagement-benefits {
  list-style: none;
  margin-top: 1rem;
}

.engagement-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #ccc;
}

.engagement-benefits li i {
  color: #8c5ac8;
  font-size: 0.9rem;
}

/* Power Consumption Styles */
.power-scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.power-scenario {
  background: rgba(140, 90, 200, 0.1);
  border: 1px solid rgba(140, 90, 200, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.power-scenario h4 {
  color: #8c5ac8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.power-scenario.optimized {
  background: rgba(140, 90, 200, 0.15);
  border-color: rgba(140, 90, 200, 0.3);
}

.powertop-output {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 0.9rem;
}

.metric {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(140, 90, 200, 0.2);
}

.metric-label {
  color: #ccc;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c7-info {
  color: #8c5ac8;
  cursor: help;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background-color: rgba(140, 90, 200, 0.1);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 4px;
  border: 1px solid rgba(140, 90, 200, 0.3);
}

.c7-info:hover {
  color: #b36aff;
  background-color: rgba(179, 106, 255, 0.2);
  transform: scale(1.1);
}

.power-scenario {
  position: relative;
}

.metric-label {
  position: relative;
}

.tooltip {
  visibility: hidden;
  width: max-content;
  max-width: min(400px, calc(100vw - 40px));
  background-color: #1a1a1a;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 1rem;
  position: absolute;
  z-index: 10000;
  bottom: calc(100% + 10px);  
  left: 75%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  opacity: 0;
  font-size: 0.85rem;
  border: 1px solid rgba(140, 90, 200, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  word-wrap: break-word;
  white-space: normal;
}

.metric-label:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a1a1a transparent transparent transparent;
}

.c7-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  max-width: min(280px, calc(100vw - 40px));
  background: #1a1a1a;
  border: 1px solid rgba(140, 90, 200, 0.3);
  border-radius: 8px;
  padding: 1rem;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
  
  /* Add a better animation */
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Default positioning (will be overridden by JS) */
.c7-tooltip {
  bottom: calc(100% + 15px); /* Default to showing above */
}

/* Arrow for both top and bottom positions */
.c7-tooltip::after {
  content: "";
  position: absolute;
  left: var(--arrow-left, 50%);
  right: var(--arrow-right, auto);
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
}

/* Arrow pointing down (when tooltip is above) */
.c7-tooltip.tooltip-top::after, 
.c7-tooltip:not(.tooltip-bottom)::after {
  top: 100%;
  border-color: #1a1a1a transparent transparent transparent;
}

/* Arrow pointing up (when tooltip is below) */
.c7-tooltip.tooltip-bottom::after {
  bottom: 100%;
  top: auto;
  border-color: transparent transparent #1a1a1a transparent;
}

/* Positioning for tooltip below */
.c7-tooltip.tooltip-bottom {
  bottom: auto;
  top: calc(100% + 15px);
}

.c7-info:hover + .c7-tooltip {
  display: block;
  opacity: 1;
  pointer-events: none; /* Ensures tooltip doesn't interfere with other elements */
}

.c7-info-container {
  position: relative;
  display: inline-block;
  margin: 0 4px;
  z-index: 2000; /* Ensure the container has a high z-index */
}

.c7-tooltip h5 {
  color: #b36aff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-align: center;
  border-bottom: 1px solid rgba(179, 106, 255, 0.2);
  padding-bottom: 0.5rem;
}

.c7-tooltip p {
  color: #e0e0e0;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.c7-tooltip p:last-child {
  margin-bottom: 0;
}

.metric-value {
  color: #fff;
}

.metric-value.highlight {
  color: #8c5ac8;
  font-weight: 500;
}

.power-consumers {
  margin-top: 1rem;
}

.consumer-label {
  color: #ccc;
  display: block;
  margin-bottom: 0.5rem;
}

.power-consumers ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.power-consumers li {
  color: #e0e0e0;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.optimization-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.summary-metric {
  background: rgba(140, 90, 200, 0.1);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.summary-metric i {
  color: #8c5ac8;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.metric-title {
  color: #ccc;
  font-size: 0.9rem;
}

.summary-metric .metric-value {
  color: #8c5ac8;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Source Link Styles */
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(140, 90, 200, 0.1);
  border: 1px solid rgba(140, 90, 200, 0.2);
  border-radius: 6px;
  color: #8c5ac8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.source-link:hover {
  background: rgba(140, 90, 200, 0.2);
  transform: translateY(-2px);
}

.source-link i {
  font-size: 0.9rem;
}

.eco-benefit {
  margin-bottom: 2rem;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #bbb;
  font-size: 14px;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInNav 0.6s ease forwards;
}

nav a:nth-child(1) { animation-delay: 0.3s; }
nav a:nth-child(2) { animation-delay: 0.4s; }
nav a:nth-child(3) { animation-delay: 0.5s; }
nav a:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInNav {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav a:hover {
  color: #b36aff;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 18px;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.logo-text {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.logo:hover .logo-text {
  opacity: 1;
  color: #b36aff;
  transform: translateX(2px);
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(179, 106, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.logo:hover::before {
  left: 100%;
}

.logo:hover {
  background-color: rgba(179, 106, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 106, 255, 0.2);
}

.logo {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(179, 106, 255, 0.4);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(179, 106, 255, 0);
  }
}

.triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #b36aff;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.logo:hover .triangle {
  animation: spin 1.2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(179, 106, 255, 0.6));
  transform: scale(1.1);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(179, 106, 255, 0.4);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(179, 106, 255, 0);
  }
}

.logo {
  animation: pulse 2s infinite;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #bbb;
  font-size: 14px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #b36aff;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  margin-top: 80px;
}

.section-header h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #b36aff 0%, #8c5ac8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: headerFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.section-header p {
  font-size: 1.1rem;
  color: #aaa;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  animation: headerFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes headerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Project Grids */
.selected-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.all-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Project Cards */
.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(140, 90, 200, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
  animation: projectCardFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes projectCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation delays for selected work */
.selected-work .project-card:nth-child(1) { animation-delay: 0.3s; }
.selected-work .project-card:nth-child(2) { animation-delay: 0.5s; }
.selected-work .project-card:nth-child(3) { animation-delay: 0.7s; }

/* Stagger animation delays for all work */
.all-work .project-card:nth-child(1) { animation-delay: 0.8s; }
.all-work .project-card:nth-child(2) { animation-delay: 1.0s; }
.all-work .project-card:nth-child(3) { animation-delay: 1.2s; }
.all-work .project-card:nth-child(4) { animation-delay: 1.4s; }
.all-work .project-card:nth-child(5) { animation-delay: 1.6s; }
.all-work .project-card:nth-child(6) { animation-delay: 1.8s; }

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(140, 90, 200, 0.2);
  border-color: rgba(140, 90, 200, 0.3);
}

.project-card.featured {
  background: linear-gradient(135deg, rgba(140, 90, 200, 0.1) 0%, rgba(179, 106, 255, 0.05) 100%);
  border-color: rgba(140, 90, 200, 0.2);
}

/* Project Image */
.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Special style for doomsday laptop image */
.project-image img[alt="Doomsday Laptop"] {
  width: 90%;
  height: 90%;
  object-fit: contain;
  margin: auto;
  display: block;
  background: #000;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(140, 90, 200, 0.9) 0%, rgba(179, 106, 255, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.btn-primary {
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Project Content */
.project-content {
  padding: 30px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 0;
}

.project-meta h2 {
  width: 100%;
  margin-bottom: 0;
  line-height: 1.5rem;
}

.project-info {
  margin-top: 8px;
  width: 100%;
}

.project-meta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b36aff;
  margin: 0;
}

.hackathon-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: #999;
  font-style: italic;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hackathon-label:hover {
  color: #b36aff;
  text-decoration: underline;
}

.project-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-size {
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
}

.project-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b36aff;
  margin-bottom: 8px;
}

.project-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.project-content p {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: rgba(140, 90, 200, 0.2);
  color: #b36aff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(140, 90, 200, 0.3);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(140, 90, 200, 0.3);
  transform: translateY(-1px);
}

/* Impact Link */
.impact-link {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(140, 90, 200, 0.2);
}

.impact-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffc107;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  cursor: pointer;
}

.impact-link a:hover {
  background: rgba(255, 193, 7, 0.2);
  color: #ffd54f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.impact-link a:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.impact-link i {
  font-size: 0.8rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
  padding: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background: #0a0a0a;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 16px;
  border: 1px solid rgba(140, 90, 200, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: slideUp 0.4s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from { 
    transform: translateY(30px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  background: #111;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(140, 90, 200, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.title-icon {
  width: 45px;
  height: 45px;
  background: #b36aff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-icon i {
  font-size: 18px;
  color: white;
}

.modal-title h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #b36aff;
  margin: 0;
}

.close-btn {
  background: #222;
  border: 1px solid #333;
  color: #ccc;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: #333;
}

.close-btn i {
  font-size: 16px;
}

.modal-body {
  padding: 30px;
  max-height: calc(85vh - 80px);
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #111;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

/* Study Overview */
.study-overview {
  margin-bottom: 30px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.objective-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 25px;
}

.objective-card h3 {
  color: #b36aff;
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.objective-card h3 i {
  font-size: 1rem;
}

.objective-card p {
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 20px;
}

.study-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.group {
  background: #0a0a0a;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #222;
  text-align: center;
}

.group-label {
  display: block;
  color: #b36aff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
}

.group-desc {
  color: #999;
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Findings Grid */
.findings-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.finding-card {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 25px;
  transition: border-color 0.2s ease;
  animation: fadeInUp 0.5s ease-out both;
  width: 100%;
}

.finding-card:nth-child(1) { animation-delay: 0.3s; }
.finding-card:nth-child(2) { animation-delay: 0.4s; }
.finding-card:nth-child(3) { animation-delay: 0.5s; }

.finding-card:hover {
  border-color: #333;
}

.finding-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.finding-icon {
  width: 40px;
  height: 40px;
  background: #b36aff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finding-icon i {
  font-size: 16px;
  color: white;
}

.finding-header h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.finding-content p.finding-highlight {
  color: #b36aff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.finding-content ul {
  list-style: none;
  padding: 0;
}

.finding-content li {
  color: #ccc;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
  font-size: 0.9rem;
}

.finding-content li::before {
  content: '•';
  color: #b36aff;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Comparison Section */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.comparison-item h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.comparison-item ul {
  margin: 0;
}

/* Conclusion Section */
.conclusion-section {
  margin-top: 30px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.conclusion-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.conclusion-card h3 {
  color: #b36aff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.conclusion-card h3 i {
  font-size: 1.1rem;
}

.conclusion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.conclusion-item {
  background: #0a0a0a;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #222;
}

.conclusion-label {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.conclusion-value {
  display: block;
  color: #b36aff;
  font-weight: 600;
  font-size: 1rem;
}

.final-note {
  color: #ccc;
  line-height: 1.5;
  font-style: italic;
  margin: 0;
  padding: 15px;
  background: #0a0a0a;
  border-radius: 8px;
  border-left: 3px solid #b36aff;
  font-size: 0.9rem;
}

/* XYZ Results Format */
.xyz-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xyz-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xyz-label {
  color: #b36aff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.xyz-value {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  padding-left: 8px;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.result-item {
  background: #0a0a0a;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #222;
}

.result-label {
  display: block;
  color: #999;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.result-value {
  display: block;
  color: #b36aff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Setup Guide Styles */
.setup-guide {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1rem;
}

.setup-section {
  background: linear-gradient(165deg, rgba(179, 106, 255, 0.08) 0%, rgba(179, 106, 255, 0.03) 100%);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(179, 106, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.setup-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(179, 106, 255, 0) 0%,
    rgba(179, 106, 255, 0.3) 50%,
    rgba(179, 106, 255, 0) 100%
  );
}

.setup-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(179, 106, 255, 0.1);
}

/* Guide Intro Styles */
.guide-intro {
  margin-bottom: 3rem;
}

.distro-selection {
  background: linear-gradient(135deg, rgba(179, 106, 255, 0.1) 0%, rgba(179, 106, 255, 0.05) 100%);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.distro-selection::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(179, 106, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.distro-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  perspective: 1000px;
}

.distro-icon {
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(179, 106, 255, 0.05);
  border: 1px solid rgba(179, 106, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  transform-style: preserve-3d;
}

.distro-icon i {
  font-size: 2rem;
  color: #b36aff;
  transition: all 0.3s ease;
}

/* Arch Linux Logo */
.arch-logo {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65 65'%3E%3Cpath d='M31.94.01c-2.97 7.28-4.75 12.03-8.06 19.12 2.03 2.15 4.51 4.63 8.54 7.45-4.33-1.78-7.29-3.57-9.5-5.43C18.97 29.35 11.9 41.31 0 64c12.22-7.05 21.69-11.4 30.53-13.07-0.38-1.64-0.6-3.42-0.58-5.27l0.01-0.39c0.21-8.24 4.5-14.58 9.57-14.14 5.07 0.44 9 7.52 8.8 15.76-0.04 1.51-0.2 2.97-0.46 4.34 8.74 1.71 18.11 6.05 30.12 13-2.38-4.39-4.51-8.34-6.54-12.11-3.2-2.48-6.54-5.71-13.35-9.21 4.68 1.22 8.03 2.62 10.64 4.18C49.51 22.11 47.45 17.18 31.94.01z' fill='%23b36aff'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}

/* Debian Logo */
.debian-logo {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50.006 0C22.39 0 0 22.39 0 50.006c0 27.616 22.39 50.006 50.006 50.006 27.616 0 50.006-22.39 50.006-50.006C100.012 22.39 77.622 0 50.006 0zm8.77 8.943a8.943 8.943 0 110 17.886 8.943 8.943 0 010-17.886zM31.912 23.474c4.94 0 8.943 4.004 8.943 8.943s-4.004 8.943-8.943 8.943-8.943-4.004-8.943-8.943 4.004-8.943 8.943-8.943zm45.157 13.415c4.94 0 8.943 4.004 8.943 8.943s-4.004 8.943-8.943 8.943-8.943-4.004-8.943-8.943 4.004-8.943 8.943-8.943zM50.006 45.534c4.94 0 8.943 4.004 8.943 8.943s-4.004 8.943-8.943 8.943-8.943-4.004-8.943-8.943 4.004-8.943 8.943-8.943zm-36.214 4.472c4.94 0 8.943 4.004 8.943 8.943s-4.004 8.943-8.943 8.943-8.943-4.004-8.943-8.943 4.004-8.943 8.943-8.943zm54.1 13.415c4.94 0 8.943 4.004 8.943 8.943s-4.004 8.943-8.943 8.943-8.943-4.004-8.943-8.943 4.004-8.943 8.943-8.943zm-27.05 4.472c4.94 0 8.943 4.004 8.943 8.943s-4.004 8.943-8.943 8.943-8.943-4.004-8.943-8.943 4.004-8.943 8.943-8.943z' fill='%23b36aff'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}

.distro-icon:hover .arch-logo,
.distro-icon:hover .debian-logo {
  transform: scale(1.1);
}

.distro-icon.active .arch-logo,
.distro-icon.active .debian-logo {
  filter: drop-shadow(0 0 8px rgba(179, 106, 255, 0.5));
}

.distro-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.distro-icon.active {
  opacity: 1;
  transform: scale(1.15) translateY(-5px);
  background: rgba(179, 106, 255, 0.1);
  border-color: rgba(179, 106, 255, 0.3);
  box-shadow: 0 15px 30px rgba(179, 106, 255, 0.2);
}

.distro-icon.active i {
  color: #b36aff;
  transform: scale(1.1);
}

.distro-icon.active .distro-name {
  color: #fff;
}

.distro-icon:hover {
  opacity: 1;
  transform: scale(1.15) translateY(-5px) rotateY(10deg);
  background: rgba(179, 106, 255, 0.15);
  border-color: rgba(179, 106, 255, 0.4);
  box-shadow: 0 15px 30px rgba(179, 106, 255, 0.2);
}

.distro-icon:hover i {
  transform: scale(1.1) rotateY(-10deg);
}

.distro-icon:hover .distro-name {
  color: #fff;
  transform: scale(1.05);
}

.package-managers {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.package-managers code {
  background: rgba(179, 106, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #b36aff;
  font-family: 'Fira Code', monospace;
  border: 1px solid rgba(179, 106, 255, 0.2);
  transition: all 0.3s ease;
}

.package-managers code:hover {
  background: rgba(179, 106, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(179, 106, 255, 0.1);
}

.pkg-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  margin-left: 0.5rem;
  font-style: italic;
}

/* Tailscale Animation Styles */
.tailscale-explainer {
  position: relative;
  padding: 1rem;
}

.mesh-animation {
  position: relative;
  height: 300px;
  margin: 2rem 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.4) 0%, rgba(179, 106, 255, 0.1) 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(179, 106, 255, 0.1);
}

.mesh-node {
  position: absolute;
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(179, 106, 255, 0.3));
  z-index: 2;
  transition: all 0.3s ease;
}

.mesh-node:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px rgba(179, 106, 255, 0.5));
}

.mesh-node.home { 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  font-size: 3rem;
  animation: pulseHome 3s infinite ease-in-out;
}

.mesh-node.laptop { 
  top: 30%; 
  left: 20%;
  animation: float 4s infinite ease-in-out;
}

.mesh-node.phone { 
  top: 70%; 
  left: 80%;
  animation: float 4s infinite ease-in-out 1s;
}

.mesh-node.tablet { 
  top: 20%; 
  left: 70%;
  animation: float 4s infinite ease-in-out 2s;
}

.mesh-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(179, 106, 255, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, rgba(179, 106, 255, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(179, 106, 255, 0.05) 25%, transparent 25%);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  animation: meshFlow 20s linear infinite;
  opacity: 0.5;
}

@keyframes pulseHome {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes meshFlow {
  0% { background-position: center center, 0 0, 0 0; }
  100% { background-position: center center, 40px 40px, -40px -40px; }
}

.tailscale-info {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(179, 106, 255, 0.2);
}

.tailscale-info h4 {
  color: #b36aff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tailscale-info ul {
  list-style: none;
  padding: 0;
}

.tailscale-info li {
  margin: 1rem 0;
  padding-left: 2rem;
  position: relative;
}

.tailscale-info li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #b36aff;
  font-weight: bold;
}

/* Expansion Cards Styles */
.expansion-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.expansion-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(179, 106, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.expansion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, 
    rgba(179, 106, 255, 0.1), 
    transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.expansion-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(179, 106, 255, 0.1);
  border-color: rgba(179, 106, 255, 0.3);
}

.expansion-card:hover::before {
  opacity: 1;
}

.expansion-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(179, 106, 255, 0.2), rgba(179, 106, 255, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.expansion-card:hover .expansion-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 20px rgba(179, 106, 255, 0.2);
}

.expansion-icon i {
  font-size: 2rem;
  color: #b36aff;
  filter: drop-shadow(0 0 10px rgba(179, 106, 255, 0.3));
}

.expansion-card h4 {
  color: #b36aff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.expansion-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.expansion-details {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.expansion-details code {
  display: block;
  color: #b36aff;
  font-family: 'Fira Code', monospace;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: rgba(179, 106, 255, 0.1);
}

.port-info {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  margin-top: 0.5rem;
  text-align: right;
  font-style: italic;
}

.setup-section h3 {
  color: #b36aff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.setup-section h4 {
  color: rgba(255, 255, 255, 0.9);
  margin: 1rem 0;
  font-size: 1.1rem;
}

.setup-steps {
  color: rgba(255, 255, 255, 0.8);
}

.setup-steps ol {
  list-style-position: inside;
  padding-left: 0;
}

.setup-steps li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.setup-steps code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  color: #b36aff;
  font-size: 0.9rem;
}

/* Feature Showcase Styles */
.feature-showcase {
  margin: 2rem 0;
}

.feature-showcase h4 {
  color: #b36aff;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: rgba(179, 106, 255, 0.05);
  border: 1px solid rgba(179, 106, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(179, 106, 255, 0.1);
  background: rgba(179, 106, 255, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(179, 106, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: #b36aff;
}

.feature-card h5 {
  color: #b36aff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Feature Tips Styles */
.feature-tips {
  background: rgba(179, 106, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.feature-tips h4 {
  color: #b36aff;
  margin-bottom: 1rem;
}

.feature-tips ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.feature-tips li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.feature-tips li::before {
  content: "✓";
  color: #b36aff;
  font-weight: bold;
}

.feature-tips strong {
  color: #b36aff;
  font-weight: 600;
}

.setup-steps pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
  overflow-x: auto;
}

.setup-steps pre code {
  background: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
}

.setup-notes ul {
  list-style: none;
  padding: 0;
}

.setup-notes li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.setup-notes li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #b36aff;
}

.setup-notes strong {
  color: #b36aff;
}

/* Intro Card Styles */
.intro-card {
  background: linear-gradient(135deg, rgba(179, 106, 255, 0.1), rgba(179, 106, 255, 0.05));
  border: 1px solid rgba(179, 106, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  animation: fadeInDown 0.5s ease-out;
}

.intro-card .intro-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(179, 106, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-card .intro-icon i {
  font-size: 28px;
  color: #b36aff;
}

.intro-card h3 {
  color: #b36aff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.intro-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Environmental Benefits Styles */
.eco-benefits {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.eco-benefit {
  background: rgba(179, 106, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(179, 106, 255, 0.1);
}

.eco-benefit h4 {
  color: #b36aff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eco-benefit h4 i {
  font-size: 0.9em;
}

.eco-benefit p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Comparison Table Styles */
.comparison-table {
  width: 100%;
  margin: 1rem 0;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(179, 106, 255, 0.05);
  border-radius: 8px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
  background: rgba(179, 106, 255, 0.1);
  color: #b36aff;
  font-weight: 600;
}

.comparison-table tr:hover {
  background: rgba(179, 106, 255, 0.08);
}

.comparison-table td:first-child {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Tablet responsive - 2 columns */
@media (max-width: 1200px) and (min-width: 769px) {
  .selected-work {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .all-work {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Mobile responsive - hide home text on small screens */
@media (max-width: 768px) {
  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .project-meta h2 {
    font-size: 1.3rem;
  }

  .hackathon-label {
    font-size: 0.85rem;
  }

  .team-size {
    font-size: 0.8rem;
  }
  .logo-text {
    display: none;
  }
  
  .logo {
    padding: 8px;
  }
  
  main {
    padding: 20px;
  }
  
  .section-header h1 {
    font-size: 2.5rem;
  }
  
  .selected-work {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .all-work {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .project-links {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
  
  .modal-header {
    padding: 20px 25px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .modal-title {
    flex-direction: column;
    gap: 15px;
  }
  
  .modal-title h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .modal-body {
    padding: 25px;
  }
  
  .study-groups {
    grid-template-columns: 1fr;
  }
  
  .findings-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison {
    grid-template-columns: 1fr;
  }
  
  .conclusion-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .objective-card,
  .finding-card,
  .conclusion-card {
    padding: 20px;
  }
  
  .xyz-result {
    gap: 10px;
  }
  
  .xyz-value {
    padding-left: 6px;
  }
}

@media (max-width: 480px) {
  .section-header h1 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content h2 {
    font-size: 1.3rem;
  }
  
  .project-content h3 {
    font-size: 1rem;
  }

  .modal-content {
    width: 98%;
    margin: 2% auto;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .title-icon {
    width: 50px;
    height: 50px;
  }
  
  .title-icon i {
    font-size: 20px;
  }
  
  .modal-title h2 {
    font-size: 1.3rem;
  }
}


