/* styles.css - Dark Theme Redesign */
html { scroll-padding-top: 72px; }

/* --- Global Styles --- */
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  scroll-padding-top: 72px;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  color: var(--color-text-sec);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* Accent Lines & Elements */
.accent-line {
  display: inline-block;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: var(--space-4) 0;
}

/* Links with arrows */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-arrow:hover {
  gap: var(--space-3);
  color: var(--color-accent-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #000;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-accent-hover);
  color: #000;
  transform: translateY(-2px);
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-text-sec);
  transform: translateY(-2px);
}

.btn-outline:active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(0);
}

/* --- Navigation --- */
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: var(--space-6) 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-accent);
  letter-spacing: -0.05em;
}

.nav-links {
  display: none;
  gap: var(--space-8);
}

.nav-links a {
  color: var(--color-text-sec);
  font-size: 0.875rem;
  font-family: var(--font-heading);
  font-weight: 500;
  position: relative;
  padding: 6px 14px;
  border-radius: 100px;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a:hover {
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: var(--color-text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* --- AI Chat Widget --- */
.ai-chat-widget {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-sans);
}

.chat-nudge {
  position: absolute;
  right: 75px;
  bottom: 12px;
  background-color: var(--color-bg-card);
  color: var(--color-text);
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  animation: nudgeBounce 2s infinite ease-in-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  font-weight: 500;
}

.chat-nudge::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-border);
}

.chat-nudge::before {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-bg-card);
  z-index: 1;
}

.chat-nudge.hidden {
  opacity: 0;
  transform: translateX(10px);
}

@keyframes nudgeBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

.chat-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, #9b59b6);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  position: relative;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
}

.chat-toggle-btn i {
  width: 28px;
  height: 28px;
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #1c1e24;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #FF6B6B;
}

.chat-window {
  width: 440px;
  max-width: calc(100vw - var(--space-8));
  height: 680px;
  max-height: calc(100vh - 120px);
  background-color: #1c1e24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  position: absolute;
  bottom: 80px;
  right: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
}

.chat-scroll-down-btn {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
  transition: opacity 0.2s, transform 0.2s;
}

.chat-scroll-down-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
}

.chat-scroll-down-btn:hover {
  background-color: #444855;
}

.chat-window.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
}

.chat-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.02);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, #9b59b6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.2rem;
}

.chat-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.chat-header p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-sec);
  display: flex;
  align-items: center;
  gap: 4px;
}

.online-indicator {
  width: 8px;
  height: 8px;
  background-color: #4cd137;
  border-radius: 50%;
  display: inline-block;
}

#close-chat-btn {
  background: none;
  border: none;
  color: var(--color-text-sec);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

#close-chat-btn:hover {
  color: white;
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #0a0a0a;
}

.message {
  max-width: 85%;
  animation: fadeIn 0.3s ease;
}

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

.ai-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

.message-content {
  padding: 18px 22px !important;
  border-radius: 20px;
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: #f1f5f9;
  letter-spacing: 0.3px !important;
  word-wrap: break-word;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.message-content p {
  margin: 0 0 10px 0;
}
.message-content p:last-child {
  margin: 0;
}

.ai-message .message-content {
  background-color: #1a1a1a;
  border-radius: 20px 20px 20px 4px;
}

.ai-message .message-content ul {
  margin: 12px 0;
  padding-left: 20px;
  list-style-type: none;
}

.ai-message .message-content li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 12px;
}

.ai-message .message-content li::before {
  content: "✨";
  position: absolute;
  left: -16px;
  top: 2px;
  font-size: 0.85rem;
}

.user-message .message-content {
  background: linear-gradient(135deg, #FF3366, #9b59b6);
  border-radius: 20px 20px 4px 20px;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.2);
}

.chat-input-area {
  padding: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(255, 255, 255, 0.02);
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.chat-chip {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-sec);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chat-chip:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.chat-form {
  display: flex;
  gap: 8px;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 6px 6px 6px 16px;
  align-items: center;
}

.chat-form input {
  flex-grow: 1;
  background: none;
  border: none;
  padding: 8px 0;
  color: white;
  font-size: 0.95rem;
  outline: none;
}

.chat-form input::placeholder {
  color: var(--color-text-sec);
}

#chat-submit-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, #9b59b6);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

#chat-submit-btn:hover {
  opacity: 0.9;
}

#chat-submit-btn i {
  width: 18px;
  height: 18px;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-text-sec);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 80px; /* Reduced from 120px to fit everything in viewport */
  display: flex;
  align-items: flex-end; /* Align grid to bottom */
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* Prevent container from shrinking and cutting off the image */
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid {
    display: flex;
    justify-content: center;
    position: relative; /* Context for absolute text */
  }
}

.hero-left {
  position: relative;
  z-index: 10;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
  }
}

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

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

@keyframes unblurImage {
  from {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.hero-left h1 {
  margin-bottom: var(--space-4);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1.1;
  position: relative;
  white-space: nowrap;
  animation: slideInLeft 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-left .accent-line {
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: slideInUpHero 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.4s;
}

.social-links {
  display: flex;
  gap: var(--space-4);
  opacity: 0;
  animation: slideInUpHero 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.6s;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-sec);
  transition: color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  font-size: 1.5rem; /* Make the logos comfortably large */
}

.social-links a:hover {
  color: var(--color-accent); /* Keep the color code consistent on hover */
  transform: translateY(-2px);
}

/* Center Image Container */
.hero-center {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

@media (min-width: 1024px) {
  .hero-center {
    width: auto;
  }
}

.hero-center img {
  width: 100%;
  max-width: 500px;
  object-fit: contain;
  object-position: bottom;
  opacity: 0;
  animation: unblurImage 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

@media (min-width: 1024px) {
  .hero-center img {
    height: 75vh; /* Reduced slightly from 85vh to fit the head perfectly without clipping */
    width: auto;
    max-width: none;
    max-height: none;
  }
}

/* Right Content Container */
.hero-right {
  position: relative;
  z-index: 10;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    padding-left: var(--space-8);
  }
}

.hero-right .subheadline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.hero-right p {
  margin-bottom: var(--space-6);
}

/* --- Common Section Styles --- */
.section {
  padding: var(--space-16) 0;
}

.section-alt {
  background: linear-gradient(to bottom, var(--color-bg), #22242a 15%, #22242a 85%, var(--color-bg));
}

.section-darker {
  background-color: #1c1e24;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-sec);
  margin-bottom: var(--space-4);
  display: block;
}

.section-label::before {
  content: '';
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header h2 {
  max-width: 100%;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- First Page Wrapper --- */
.first-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Contact / Quote Section --- */
.dark-section {
  background-color: #22242a; /* Darker than #2b2d35 */
  padding: var(--space-8) 0; /* Reduced from space-16 so it tightly fits the screen */
  flex-grow: 1; /* Automatically stretches to fill the rest of the 100vh wrapper */
  display: flex;
  align-items: center; /* keep the grid vertically centered in the stretched block */
  margin-top: 0;
  position: relative;
  z-index: 20; /* Sit on top of the hero section */
}

@media (min-width: 1024px) {
  .dark-section {
    margin-top: -12vh; /* Shift up to overlap the hero image till the red line */
  }
}

.contact-quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .contact-quote-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.contact-left h2 {
  max-width: 400px;
  margin-bottom: 0;
}

.contact-right .stats-quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-bg-alt);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-normal);
}

.service-card h3,
.service-card p,
.service-card .service-icon {
  transition: color var(--transition-normal);
}

.service-card:hover {
  transform: scale(1.02) translateY(-5px);
  background-color: var(--color-bg-card);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px 0px rgba(255, 180, 0, 0.05);
  border-color: var(--color-accent);
}

.service-card.highlight {
  background-color: var(--color-accent);
}

.service-card.highlight h3,
.service-card.highlight p,
.service-card.highlight .service-icon {
  color: #000;
}

.service-icon {
  margin-bottom: var(--space-6);
  color: var(--color-text-sec);
}

.service-icon i {
  width: 32px;
  height: 32px;
}

/* --- Product Logos --- */
.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.brand-logo-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-container i {
  width: 24px;
  height: 24px;
  color: #000;
}

/* --- Brands Row --- */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: var(--space-8);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-sec);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  opacity: 0.5;
}

/* --- Skills Section --- */
#skills.section {
  padding: var(--space-8) 0;
}

#skills .section-header {
  margin-bottom: var(--space-6);
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.skill-category h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-2);
  display: inline-block;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.skill-card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  transition: all var(--transition-normal);
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  background-color: var(--color-bg-card);
}

.skill-card i,
.skill-card svg {
  font-size: 1.5rem;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.skill-card span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-sec);
  transition: color var(--transition-normal);
}

.skill-card:hover span {
  color: var(--color-text);
}

/* --- Products Section --- */
.products-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .products-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px 0px rgba(255, 180, 0, 0.05);
  border-color: var(--color-accent);
}

.project-info {
  padding: var(--space-8);
}

.project-info h3 {
  margin-bottom: var(--space-2);
}

.project-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-sec);
}

.project-mockup {
  background-color: var(--color-bg-alt);
  padding: var(--space-8);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-placeholder {
  text-align: center;
  color: var(--color-text-sec);
}

.mockup-placeholder i {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--color-border);
}

.project-links {
  margin-top: var(--space-6);
}

/* --- Project Impact Section --- */
.project-impact {
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
}

.project-impact-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.project-impact-label svg,
.project-impact-label i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.project-impact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-impact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-sec);
  line-height: 1.5;
}

.project-impact li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 6px;
}

/* --- Articles / Blog List --- */
.articles-list {
  display: flex;
  flex-direction: column;
}

.article-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  padding: var(--space-6);
  margin: 0 calc(var(--space-6) * -1);
  border: 1px solid transparent;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  align-items: center;
  color: var(--color-text);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .article-row {
    grid-template-columns: 200px 1fr auto;
  }
}

.article-row:hover {
  transform: scale(1.03) translateY(-4px);
  background-color: var(--color-bg-card);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 20px 0px rgba(255, 180, 0, 0.05);
  border-color: transparent;
  border-bottom-color: var(--color-accent);
  z-index: 10;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--color-text-sec);
  font-family: var(--font-heading);
}

.article-title {
  margin-bottom: 0;
  font-size: 1.125rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.article-row:hover .article-title {
  color: var(--color-accent);
}

.article-icon {
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.article-row:hover .article-icon {
  transform: translateX(5px);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-bg-card);
  padding-top: var(--space-16);
  padding-bottom: var(--space-6);
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-left h2, .footer-right h2 {
  margin-bottom: var(--space-6);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom .logo {
  font-size: 2rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
}

/* --- Glassmorphism --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: var(--space-8);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.glass-panel.highlight {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(155, 89, 182, 0.05));
  border-color: rgba(255, 107, 107, 0.2);
}

/* Knowledge Map Hub and Spoke */
.knowledge-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: var(--space-8) auto;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.map-svg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.map-line {
  stroke: var(--color-border);
  stroke-width: 2;
  fill: none;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
  stroke-dasharray: 6, 6;
}

.map-line.active {
  stroke: var(--color-accent);
  stroke-width: 3;
  animation: marchAnts 20s linear infinite;
}

@keyframes marchAnts {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.map-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  color: var(--color-text);
  z-index: 3;
  box-shadow: 0 0 40px rgba(var(--color-accent-rgb), 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.map-hub::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), transparent);
  z-index: -1;
  opacity: 0.3;
}

.map-node {
  position: absolute;
  z-index: 2;
  min-width: 180px;
  max-width: 220px;
  padding: var(--space-3) var(--space-4);
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
}

.map-node:hover {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--color-accent-rgb), 0.2);
  z-index: 4;
}

.map-node-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.map-node-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-node-content {
  display: flex;
  flex-direction: column;
}

.map-node-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.map-node-category {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.map-tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-text-sec);
  width: max-content;
  max-width: 250px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 10;
}

.map-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--color-bg-alt) transparent transparent transparent;
}

.map-node:hover .map-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .knowledge-map-wrapper {
    height: 400px;
  }
  .map-hub {
    width: 90px;
    height: 90px;
    font-size: 0.85rem;
  }
  .map-node {
    min-width: 140px;
    padding: var(--space-2) var(--space-3);
  }
  .map-node-logo {
    width: 24px;
    height: 24px;
  }
  .map-node-title {
    font-size: 0.85rem;
  }
}

