/* CSS Custom Properties (Variables) */
:root {
  --color-primary: #00d4aa;
  --color-primary-dark: #00b894;
  --color-primary-light: #00e5bb;
  --color-bg-primary: #030704;
  --color-bg-secondary: #0f1c16;
  --color-bg-tertiary: #1a2e28;
  --color-text-primary: #ffffff;
  --color-text-secondary: #f0f9f5; /* Lightened from #e0fdf2 */
  --color-text-muted: #d4f4e8; /* Lightened from #e0fdf2 */
  --color-accent: #ff6b6b;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.3);

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0e1a17 0%, #1a2e28 25%, #2d4a42 50%, #1a2e28 75%, #0f1c16 100%);
  color: var(--color-text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styles */
::selection {
  background: var(--color-primary);
  color: var(--color-bg-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--spacing-md) 0;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff; /* Ensure headings are bright white */
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }

p {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-text-secondary);
  opacity: 0.95; /* Slight opacity increase for better readability */
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--color-primary-light);
}

/* Modern link underline effect */
a:not(.btn):not(.nav a)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-smooth);
}

a:not(.btn):not(.nav a):hover::after {
  width: 100%;
}

/* Layout Components */
.container {
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header with backdrop blur */
.header {
  background: rgba(45, 74, 66, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 170, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #ffffff; /* Bright white for logo */
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); /* Slightly stronger glow */
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.05);
}

/* Modern Navigation */
.nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav a {
  color: #ffffff; /* Bright white for nav links */
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
  transition: left var(--transition-smooth);
}

.nav a:hover::before {
  left: 100%;
}

.nav a:hover {
  color: var(--color-primary);
  background: rgba(0, 212, 170, 0.1);
  transform: translateY(-2px);
}

/* Hamburger with modern animation */
.nav-toggle {
  display: none;
}

.nav-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: var(--spacing-xs);
}

.nav-icon span {
  height: 2px;
  width: 24px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform-origin: center;
}

.nav-toggle:checked + .nav-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle:checked + .nav-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .nav-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section with gradient animation */
.hero {
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-md);
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

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

/* Content Sections */
.services,
.portfolio,
.about,
.contact {
  padding: var(--spacing-xxl) var(--spacing-md);
}

/* Modern Grid with CSS Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

/* Enhanced Cards with glassmorphism */
.card {
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
}

.card:hover::before {
  transform: translateX(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 212, 170, 0.3);
}

/* Card text specifically lightened */
.card p {
  color: var(--color-text-secondary);
  opacity: 1; /* Full opacity for card text */
}

.card h3 {
  color: #ffffff; /* Bright white for card headings */
  font-weight: bold;
}

.card h4 {
  color: #ffffff; /* Bright white for card headings */
}

/* Modern Button System */
.btn,
.submit-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-bg-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-bounce);
  margin-top: var(--spacing-md);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.submit-btn a {
  color: var(--color-bg-primary)
}

.btn::before,
.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-smooth);
}

.btn:hover::before,
.submit-btn:hover::before {
  left: 100%;
}

.btn:hover,
.submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn:active,
.submit-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Modern Form Elements */
input,
textarea,
select {
  width: 100%;
  margin: var(--spacing-xs) 0;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 2px solid rgba(0, 212, 170, 0.2);
  background: rgba(26, 46, 40, 0.5);
  backdrop-filter: blur(10px);
  color: #ffffff; /* Bright white for form text */
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-smooth);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6); /* Lighter placeholder text */
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(26, 46, 40, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.1);
  transform: translateY(-2px);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
}

select option {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

/* Contact Page Enhancements */
.contact-page {
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-md);
}

.contact-content {
  margin-bottom: var(--spacing-xxl);
}

.contact-content h1 {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.contact-content h2 {
  color: #ffffff; /* Bright white for contact headings */
  margin: var(--spacing-xxl) 0 var(--spacing-md) 0;
  position: relative;
}

.contact-content h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.contact-content h3 {
  color: var(--color-primary-light); /* Lighter primary color for h3 */
  margin-bottom: var(--spacing-md);
}

.contact-content strong {
  color: var(--color-primary-light); /* Lighter primary color for strong text */
}

.contact-form-section {
  background: rgba(45, 74, 66, 0.3);
  backdrop-filter: blur(20px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 212, 170, 0.1);
  margin-top: var(--spacing-xxl);
  box-shadow: var(--shadow-lg);
}

.contact-form-section h2 {
  color: #ffffff; /* Bright white for form section heading */
  margin-bottom: var(--spacing-lg);
}

.contact-form {
  display: grid;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #ffffff; /* Bright white for form labels */
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.contact-info-card {
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 170, 0.1);
  transition: var(--transition-smooth);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
  color: #ffffff; /* Bright white for contact info card headings */
  margin-bottom: var(--spacing-md);
}

.contact-info-card p {
  color: var(--color-text-secondary);
  opacity: 1; /* Full opacity for contact info text */
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--spacing-xs);
  background: rgba(30, 50, 45, 0.9); /* Darker background for better contrast */
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 212, 170, 0.2);
  margin-top: var(--spacing-xxl);
  position: relative;
  overflow: hidden;
  color: #ffffff; /* Bright white for footer text */
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
  z-index: -1;
}

/* Responsive Design with Container Queries */
@media (max-width: 768px) {
  :root {
    --spacing-xxl: 2rem;
    --spacing-xl: 1.5rem;
  }

  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(45, 74, 66, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-smooth);
    border-top: 1px solid rgba(0, 212, 170, 0.1);
  }

  .nav-toggle:checked + .nav-icon + .nav {
    max-height: 400px;
    top: 100%;
  }

  .nav-icon {
    display: flex;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .contact-form-section {
    padding: var(--spacing-lg);
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.about {
  background: #14332d;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(72, 241, 204, 0.3);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-member {
  flex: 1 1 250px;
  background: #0e1a17;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(72, 241, 204, 0.2);
  text-align: center;
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid #48f1cc;
  box-shadow: 0 0 5px rgba(72, 241, 204, 0.3);
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.portfolio-item {
  flex: 1 1 250px;
  background: #0e1a17;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(72, 241, 204, 0.2);
  transition: transform 0.2s;
}

.portfolio-item:hover {
  transform: scale(1.02);
}

.footer-nav a {
  margin-right: 15px; /* Adds space between links */
  text-decoration: none; /* Optional: Removes underline */
  /* color: inherit; /* Optional: Matches the text color */ */
}

.footer-nav a:last-child {
  margin-right: 0; /* Removes margin from the last link */
}

.social-icons a {
  margin-right: 10px; /* Space between icons */
  /* color: inherit; /* Matches the text color */ */
  font-size: 20px; /* Adjust icon size */
  text-decoration: none; /* Removes underline */
}

.social-icons a:last-child {
  margin-right: 0; /* Removes margin from the last icon */
}

.social-icons a:hover {
  color: #007bff; /* Optional: Change color on hover */
}

.logo-container a {
  margin-top: -0.8rem;
  display: flex;
  flex-direction: column; /* Stack vertically */
  align-items: center;     /* Center horizontally */
  text-align: center;
  gap: 0.3rem;             /* Space between logo and text */
}

.logo {
  height: 48px;
  width: auto;
}

.logo-text {
  margin-top: -1.0rem;
  font-size: 1rem;
  font-weight: 600;
  color: #48f1cc;
  letter-spacing: 0.5px;
}

.dashboard {
  padding: 2rem;
  color: #48f1cc;
}

.dashboard-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

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

.dashboard-card {
  background-color: #112822;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.dashboard-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.dashboard-card p {
  font-size: 1.5rem;
  font-weight: bold;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.panel {
  background-color: #0f1e1a;
  border-radius: 8px;
  padding: 1rem;
}

.panel h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.panel-placeholder {
  background-color: #18322d;
  height: 300px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-style: italic;
}

.map-demo {
  background: linear-gradient(135deg, #18322d, #20413a);
  color: #48f1cc;
  font-style: italic;
  font-size: 1rem;
  justify-content: center;
  align-items: center;
  display: flex;
  height: 300px;
  border-radius: 6px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

.chart-canvas {
  background-color: #18322d;
  border-radius: 6px;
  width: 100%;
  max-height: 500px;
  padding: 1rem;
}

.map-container {
  height: 500px;
  width: 100%;
  border-radius: 6px;
  margin-top: 0.5rem;
  background: #1a2e2a;
}

/* News List Section */
.news-list-section {
  padding: var(--spacing-xxl) var(--spacing-md);
  min-height: 60vh;
}

.news-list-section h1 {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xl);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card h3 {
  margin-bottom: var(--spacing-sm);
}

.news-card h3 a {
  color: #ffffff;
  transition: var(--transition-smooth);
}

.news-card h3 a:hover {
  color: var(--color-primary);
}

.news-date {
  color: var(--color-primary-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-summary {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.news-read-more {
  align-self: flex-start;
  margin-top: auto;
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-xxl);
  background: rgba(45, 74, 66, 0.3);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 170, 0.1);
}

.news-empty p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

/* News Single Section */
.news-single-section {
  padding: var(--spacing-xxl) var(--spacing-md);
  min-height: 60vh;
}

.news-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid rgba(0, 212, 170, 0.2);
}

.news-header h1 {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  color: var(--color-primary-light);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-author::before {
  content: '•';
  margin-right: var(--spacing-sm);
}

.news-content {
  background: rgba(45, 74, 66, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
}


.news-content p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

.news-content ul,
.news-content ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
  color: var(--color-text-secondary);
}

.news-content li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
  box-shadow: var(--shadow-md);
}

.news-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  color: var(--color-text-secondary);
  font-style: italic;
  background: rgba(0, 212, 170, 0.05);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-sm);
}

.news-content code {
  background: rgba(0, 212, 170, 0.1);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--color-primary-light);
}

.news-content pre {
  background: rgba(15, 28, 22, 0.8);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.news-content pre code {
  background: none;
  padding: 0;
  color: var(--color-text-secondary);
}

.news-footer {
  text-align: center;
  padding-top: var(--spacing-lg);
}

.news-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-content {
    padding: var(--spacing-lg);
  }

  .news-meta {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .news-author::before {
    display: none;
  }
}
.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
  box-shadow: var(--shadow-md);
}
/* Enhanced image styling */
.news-content figure.news-figure {
  margin: var(--spacing-xl) 0;
  text-align: center;
}

.news-content figure.news-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.news-content figure.news-figure img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.news-content figcaption {
  margin-top: var(--spacing-md);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

/* Image gallery grid (if you want multiple images) */
.news-content .image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.news-content .image-grid img {
  margin: 0;
}

/* Balanced cool header styling */
.news-content h2,
.news-content h3,
.news-content h4 {
  color: #ffffff;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.news-content h2 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.news-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-primary);
}

.news-content h3 {
  font-size: 1.4rem;
  position: relative;
  padding-left: var(--spacing-md);
  transition: var(--transition-smooth);
}

.news-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--color-primary);
}

.news-content h3:hover {
  color: var(--color-primary-light);
  transform: translateX(4px);
}

.news-content h4 {
  font-size: 1.2rem;
  color: var(--color-primary-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: var(--spacing-sm);
}

.news-content h4::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* Animated Update Banner */
.news-content .update {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(0, 212, 170, 0.05) 100%);
  border: 2px solid var(--color-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

.news-content .update::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
  animation: shimmerUpdate 3s ease-in-out infinite;
}

.news-content .update::after {
  content: 'UPDATE';
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-md);
  background: var(--color-primary);
  color: var(--color-bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 10px var(--color-primary);
}

.news-content .update p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}

.news-content .update strong {
  color: var(--color-primary-light);
}

@keyframes shimmerUpdate {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced italic styling throughout content */
.news-content em,
.news-content i {
  font-style: italic;
  color: var(--color-text-secondary);
  position: relative;
}

.news-content strong em,
.news-content em strong {
  color: var(--color-primary-light);
  font-weight: 700;
}

/* ============================================
   PROJECT SINGLE PAGE STYLES
   ============================================ */

.project-single {
  padding: var(--spacing-xxl) var(--spacing-md);
  min-height: 100vh;
}

/* Project Header */
.project-header {
  margin-bottom: var(--spacing-xxl);
}

.project-header-content {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.project-title {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  font-size: clamp(2rem, 5vw, 3rem);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.project-meta-item {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.project-meta-item strong {
  color: var(--color-primary-light);
  margin-right: var(--spacing-xs);
}

.project-status {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.project-status.completed {
  background: rgba(0, 212, 170, 0.2);
  color: var(--color-primary-light);
  border: 1px solid var(--color-primary);
}

.project-status.ongoing {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

.project-status.archived {
  background: rgba(149, 165, 166, 0.2);
  color: #95a5a6;
  border: 1px solid #95a5a6;
}

.project-tagline {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

.project-hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.project-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.project-hero-image:hover img {
  transform: scale(1.02);
}

/* Quick Info Section */
.project-quick-info {
  margin-bottom: var(--spacing-xxl);
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
}

.quick-info-card {
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-smooth);
}

.quick-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: var(--shadow-md);
}

.quick-info-card h3 {
  color: var(--color-primary-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.quick-info-value {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: center;
}

.tech-tag {
  background: rgba(0, 212, 170, 0.15);
  color: var(--color-primary-light);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 212, 170, 0.3);
  transition: var(--transition-smooth);
}

.tech-tag:hover {
  background: rgba(0, 212, 170, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

/* Project Content */
.project-content {
  background: rgba(45, 74, 66, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
  line-height: 1.8;
}

.project-content h2 {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.project-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-primary);
}

.project-content h3 {
  position: relative;
  padding-left: var(--spacing-md);
  transition: var(--transition-smooth);
}

.project-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--color-primary);
}

.project-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.project-content ul,
.project-content ol {
  color: var(--color-text-secondary);
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.project-content li {
  margin-bottom: var(--spacing-sm);
}

/* Project Gallery */
.project-gallery {
  margin-bottom: var(--spacing-xxl);
}

.project-gallery h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: var(--spacing-xl);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 212, 170, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: var(--spacing-md);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

/* Features Section */
.project-features {
  margin-bottom: var(--spacing-xxl);
}

.project-features h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: var(--spacing-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 0 10px var(--color-primary));
}

.feature-card h3 {
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--color-text-secondary);
  margin: 0;
}

/* Results Section */
.project-results {
  margin-bottom: var(--spacing-xxl);
}

.project-results h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: var(--spacing-xl);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.result-card {
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
}

.result-card:hover::before {
  transform: translateX(0);
}

.result-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: var(--shadow-lg);
}

.result-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.result-label {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Testimonial Section */
.project-testimonial {
  margin-bottom: var(--spacing-xxl);
}

.project-testimonial blockquote {
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--color-primary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin: 0;
  position: relative;
  box-shadow: var(--shadow-md);
}

.project-testimonial blockquote::before {
  content: '"';
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-lg);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
}

.project-testimonial p {
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  font-style: italic;
  margin: 0 0 var(--spacing-md) 0;
  position: relative;
  z-index: 1;
}

.project-testimonial footer {
  color: var(--color-primary-light);
  text-align: right;
  font-size: 0.95rem;
}

.project-testimonial footer strong {
  color: #ffffff;
  font-weight: 700;
}

/* Project Links */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xxl);
}

.project-link-btn {
  min-width: 200px;
  text-align: center;
}

/* Project Footer */
.project-footer {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(0, 212, 170, 0.2);
}

.project-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-meta {
    flex-direction: column;
    align-items: center;
  }

  .project-content {
    padding: var(--spacing-lg);
  }

  .quick-info-grid,
  .features-grid,
  .results-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .result-number {
    font-size: 2.5rem;
  }

  .project-links {
    flex-direction: column;
  }

  .project-link-btn {
    width: 100%;
  }
}
/* News Tags Styling */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: center;
  margin-top: var(--spacing-md);
}

.news-tag {
  background: rgba(0, 212, 170, 0.15);
  color: var(--color-primary-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 212, 170, 0.3);
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.news-tag:hover {
  background: rgba(0, 212, 170, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.4);
  color: var(--color-primary);
}

.news-tag::after {
  display: none; /* Remove the underline effect from general links */
}

/* Footer Tags Styling */
.news-footer-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  justify-content: center;
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(0, 212, 170, 0.2);
  border-bottom: 1px solid rgba(0, 212, 170, 0.2);
}

.tags-label {
  color: var(--color-primary-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.news-tag-footer {
  background: rgba(45, 74, 66, 0.4);
  color: var(--color-text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid rgba(0, 212, 170, 0.1);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.news-tag-footer:hover {
  background: rgba(0, 212, 170, 0.2);
  border-color: rgba(0, 212, 170, 0.3);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.news-tag-footer::after {
  display: none; /* Remove the underline effect from general links */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-tags,
  .news-footer-tags {
    justify-content: center;
  }
}

/* Tags List Page */
.tags-list-section {
  padding: var(--spacing-xxl) var(--spacing-md);
  min-height: 60vh;
}

.tags-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.tags-header h1 {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.tags-count {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

.tags-footer {
  text-align: center;
  margin-top: var(--spacing-xxl);
}

/* Category Badge in Post Meta */
.news-category {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-bg-primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

/* Categories Overview Page */
.categories-overview {
  padding: var(--spacing-xxl) var(--spacing-md);
  min-height: 60vh;
}

.categories-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.categories-header h1 {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
}

.categories-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.category-card {
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
}

.category-card:hover::before {
  transform: translateX(0);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 212, 170, 0.3);
}

.category-card-content {
  flex: 1;
}

.category-card h2 {
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.category-count {
  color: var(--color-primary-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-description {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.category-arrow {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: bold;
  margin-left: var(--spacing-md);
  transition: var(--transition-smooth);
}

.category-card:hover .category-arrow {
  transform: translateX(8px);
}

/* Single Category Page */
.category-single-section {
  padding: var(--spacing-xxl) var(--spacing-md);
  min-height: 60vh;
}

.category-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid rgba(0, 212, 170, 0.2);
}

.category-header h1 {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
}

.category-header .category-description {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
  line-height: 1.6;
}

.category-header .category-count {
  color: var(--color-primary-light);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-footer {
  text-align: center;
  margin-top: var(--spacing-xxl);
}

/* Responsive */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    flex-direction: column;
    text-align: center;
  }

  .category-arrow {
    margin-left: 0;
    margin-top: var(--spacing-md);
  }
}

/* ============================================
   PROJECTS LIST PAGE STYLES
   ============================================ */

.projects-list-section {
  padding: var(--spacing-xxl) var(--spacing-md);
  min-height: 100vh;
}

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

.projects-header h1 {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.projects-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Project Stats */
.projects-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(0, 212, 170, 0.1);
  border-bottom: 1px solid rgba(0, 212, 170, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .projects-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}
/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

/* Project Card */
.project-card {
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%; /* Make all cards equal height */
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  z-index: 1;
}

.project-card:hover::before {
  transform: translateX(0);
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 212, 170, 0.3);
}

.project-card-image {
  position: relative;
  width: 100%;
  height: 120px; /* Much shorter */
  overflow: hidden;
  background: var(--color-bg-secondary);
  flex-shrink: 0;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.project-status-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.project-status-badge.completed {
  background: rgba(0, 212, 170, 0.9);
  color: var(--color-bg-primary);
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.5);
}

.project-status-badge.ongoing {
  background: rgba(255, 193, 7, 0.9);
  color: var(--color-bg-primary);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.project-status-badge.archived {
  background: rgba(149, 165, 166, 0.9);
  color: var(--color-bg-primary);
}

/* Project Card Content */
.project-card-content {
  padding: var(--spacing-md); /* Reduced from var(--spacing-lg) */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-bg-primary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
  align-self: flex-start;
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

.project-card h2 {
  margin: var(--spacing-xs) 0 var(--spacing-sm) 0; /* Tighter spacing */
  font-size: 1.3rem; /* Slightly smaller */
  line-height: 1.3;
}

.project-card h2 a {
  color: #ffffff;
  transition: var(--transition-smooth);
}

.project-card h2 a:hover {
  color: var(--color-primary-light);
}

.project-card h2 a::after {
  display: none; /* Remove underline effect */
}

.project-tagline {
  color: var(--color-primary-light);
  font-size: 0.85rem; /* Smaller */
  font-style: italic;
  margin-bottom: var(--spacing-xs); /* Tighter spacing */
  line-height: 1.4;
}

.project-summary {
  color: var(--color-text-secondary);
  font-size: 0.9rem; /* Slightly smaller */
  line-height: 1.5;
  margin-bottom: var(--spacing-sm); /* Tighter spacing */
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tech Stack */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm); /* Tighter spacing */
}

.tech-badge {
  background: rgba(0, 212, 170, 0.15);
  color: var(--color-primary-light);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.tech-badge-more {
  background: rgba(255, 107, 107, 0.15);
  color: var(--color-accent);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Project Card Meta */
.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm); /* Reduced gap */
  margin-bottom: var(--spacing-sm); /* Tighter spacing */
  padding-top: var(--spacing-sm); /* Reduced padding */
  border-top: 1px solid rgba(0, 212, 170, 0.1);
}

.meta-item {
  color: var(--color-text-secondary);
  font-size: 0.8rem; /* Smaller */
}

.meta-item strong {
  color: var(--color-primary-light);
  margin-right: var(--spacing-xs);
}

/* View Project Button */
.project-view-btn {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Empty State */
.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-xxl);
  background: rgba(45, 74, 66, 0.3);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 170, 0.1);
}

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

/* Featured Projects Section */
.featured-projects {
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-xxl);
  border-top: 2px solid rgba(0, 212, 170, 0.2);
}

.featured-projects h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: var(--spacing-xl);
  font-size: 2rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.featured-project-card {
  background: rgba(45, 74, 66, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.featured-project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: var(--shadow-lg);
}

.featured-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.featured-content {
  padding: var(--spacing-lg);
}

.featured-content h3 {
  margin-bottom: var(--spacing-sm);
}

.featured-content h3 a {
  color: #ffffff;
  transition: var(--transition-smooth);
}

.featured-content h3 a:hover {
  color: var(--color-primary-light);
}

.featured-content h3 a::after {
  display: none;
}

.featured-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.btn-link {
  color: var(--color-primary-light);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-link:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    text-align: center;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .project-card-meta {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}
