/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #1a1a1a;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .auth-card {
    transform: none !important;
  }
  
  .auth-face {
    transform: none !important;
  }
}

/* Focus States */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 990;
  border-bottom: 1px solid #333;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.nav-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo {
  height: 60px !important;
  width: auto !important;
  object-fit: contain !important;
  max-height: 60px !important;
  margin: 5px 0 !important;
  vertical-align: middle !important;
}

.nav-brand {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: #d4af37;
}

.sign-in-btn {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #1a1a1a;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sign-in-btn-mobile {
  display: none;
}

.sign-in-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.sign-in-btn-mobile:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  font-size: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #d4af37;
  transition: 0.3s;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid #333;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #d4af37;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: rgba(212, 175, 55, 0.1);
}

.modal-content h3 {
  color: #d4af37;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-details h4 {
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
  color: #b0b0b0;
}

.contact-details a {
  color: #d4af37;
  text-decoration: none;
  word-break: break-all;
}

.contact-details a:hover {
  color: #f4d03f;
}

/* Auth Modal Styles */
.auth-modal-content {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow: visible;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  perspective: 1000px;
}

.modal-overlay.active .auth-modal-content {
  transform: scale(1);
}

.auth-card {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 400px;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.auth-card.flipped {
  transform: rotateY(180deg);
}

.auth-face {
  position: absolute;
  width: 100%;
  backface-visibility: hidden;
  background: #2a2a2a;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #333;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.auth-signup {
  transform: rotateY(180deg);
}

.signup-scroll-container {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  max-height: 280px;
}

.signup-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.signup-scroll-container::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.signup-scroll-container::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 3px;
}

.signup-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #b8941f;
}

.signup-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.auth-header h3 {
  color: #d4af37;
  font-size: 1.5rem;
  margin: 0;
}

.auth-toggle {
  background: none;
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.auth-toggle:hover {
  background: #d4af37;
  color: #1a1a1a;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  color: #d4af37;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.75rem;
  color: #e0e0e0;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #d4af37;
  outline: none;
}

.form-group input:invalid:not(:focus),
.form-group textarea:invalid:not(:focus) {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-group input:invalid:not(:focus) + .error-message {
  opacity: 1;
}

.auth-submit {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #1a1a1a;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.forgot-password {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #f4d03f;
}

/* Toast Styles */
.toast {
  position: fixed;
  top: 100px;
  right: 1rem;
  background: #2a2a2a;
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: #e0e0e0;
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: calc(100vw - 2rem);
  word-wrap: break-word;
}

.toast.show {
  transform: translateX(0);
}

.toast-message {
  color: #d4af37;
  font-weight: 600;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 26, 0.9) 100%);
  z-index: -1;
}

#circuitCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.watermark-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  opacity: 0.15;
  filter: grayscale(100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 3rem;
  color: #b0b0b0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #1a1a1a;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.cta-button-secondary {
  border: 2px solid #d4af37;
  color: #d4af37;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background: #d4af37;
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #d4af37;
  font-weight: 700;
}

.section-intro {
  font-size: 1.125rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #b0b0b0;
  line-height: 1.6;
}

/* Technology Section */
.technology {
  padding: 100px 0;
  background: #222;
}

.tech-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-tile {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-tile:hover {
  border-color: #d4af37;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.1);
  transform: translateY(-5px);
}

.tech-tile h3 {
  color: #d4af37;
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
}

.tech-tile p {
  color: #b0b0b0;
  font-size: 0.9rem;
}

.tile-animation {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Tile Animations */
.websites-animation .browser-frame {
  width: 60px;
  height: 40px;
  border: 2px solid #d4af37;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.browser-bar {
  width: 100%;
  height: 8px;
  background: #d4af37;
  opacity: 0.7;
}

.browser-content {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.content-block {
  height: 4px;
  background: #d4af37;
  border-radius: 1px;
  opacity: 0;
}

.bots-animation .node-graph {
  position: relative;
  width: 60px;
  height: 40px;
}

.node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #d4af37;
  border-radius: 50%;
}

.node-1 { top: 5px; left: 10px; }
.node-2 { top: 5px; right: 10px; }
.node-3 { bottom: 5px; left: 50%; transform: translateX(-50%); }

.connection {
  position: absolute;
  height: 2px;
  background: #d4af37;
  opacity: 0.5;
}

.conn-1 {
  top: 9px;
  left: 18px;
  width: 24px;
}

.conn-2 {
  top: 9px;
  left: 14px;
  width: 20px;
  transform: rotate(45deg);
  transform-origin: left;
}

.chat-bubble {
  position: absolute;
  top: 15px;
  right: 5px;
  width: 12px;
  height: 8px;
  background: #d4af37;
  border-radius: 4px;
  opacity: 0;
}

.marketing-animation .chart-container {
  position: relative;
  width: 60px;
  height: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 5px;
}

.chart-bar {
  width: 8px;
  background: #d4af37;
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
}

.bar-1 { height: 20px; }
.bar-2 { height: 30px; }
.bar-3 { height: 25px; }
.bar-4 { height: 35px; }

.radial-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  opacity: 0;
}

.workflows-animation .workflow-diagram {
  position: relative;
  width: 60px;
  height: 40px;
}

.workflow-path {
  position: absolute;
  height: 2px;
  background: #d4af37;
  opacity: 0.5;
}

.path-1 {
  top: 15px;
  left: 0;
  width: 100%;
}

.path-2 {
  top: 25px;
  left: 0;
  width: 100%;
}

.workflow-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #d4af37;
  border-radius: 50%;
  opacity: 0;
}

.remote-animation .server-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-core {
  width: 20px;
  height: 20px;
  background: #d4af37;
  border-radius: 4px;
}

.signal-ring {
  position: absolute;
  border: 2px solid #d4af37;
  border-radius: 50%;
  opacity: 0;
}

.ring-1 { width: 25px; height: 25px; }
.ring-2 { width: 35px; height: 35px; }
.ring-3 { width: 45px; height: 45px; }

/* Departments Section */
.departments {
  padding: 100px 0;
  background: #1a1a1a;
}

.department-card {
  margin-bottom: 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.department-grid {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.department-title {
  color: #d4af37;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.department-text {
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
}

.department-email {
  color: #d4af37;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  word-break: break-all;
  transition: color 0.3s ease;
}

.department-email:hover {
  color: #f4d03f;
}

.department-animation {
  position: relative;
  height: 200px;
  background: #2a2a2a;
  border-radius: 12px;
  border: 1px solid #333;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.department-results h4 {
  color: #d4af37;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.department-results ul {
  list-style: none;
  padding: 0;
}

.department-results li {
  color: #b0b0b0;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.department-results li::before {
  content: "•";
  color: #d4af37;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.inspect-cases-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #1a1a1a;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.inspect-cases-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Department Background Animations */
.websites-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(212, 175, 55, 0.3) 20px,
    rgba(212, 175, 55, 0.3) 40px
  );
}

.bots-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.node-network {
  position: relative;
  width: 100%;
  height: 100%;
}

.network-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #d4af37;
  border-radius: 50%;
}

.node-a { top: 20%; left: 20%; }
.node-b { top: 20%; right: 20%; }
.node-c { bottom: 20%; left: 50%; transform: translateX(-50%); }

.network-connection {
  position: absolute;
  height: 2px;
  background: #d4af37;
  opacity: 0.5;
}

.conn-ab {
  top: 26px;
  left: 26px;
  width: calc(60% - 12px);
}

.conn-bc {
  bottom: 26px;
  right: 26px;
  width: calc(30% - 6px);
  transform: rotate(-45deg);
  transform-origin: right;
}

.network-pulse {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #d4af37;
  border-radius: 50%;
  opacity: 0;
}

.marketing-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.growth-chart {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: space-around;
  padding: 20px;
}

.chart-line {
  width: 4px;
  background: #d4af37;
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
}

.line-1 { height: 40px; }
.line-2 { height: 60px; }
.line-3 { height: 80px; }

.growth-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.2) 50%, transparent 70%);
  opacity: 0;
}

.workflows-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.flow-diagram {
  position: relative;
  width: 100%;
  height: 100%;
}

.flow-pipe {
  position: absolute;
  height: 3px;
  background: #d4af37;
  opacity: 0.5;
}

.pipe-1 {
  top: 40%;
  left: 0;
  width: 100%;
}

.pipe-2 {
  top: 60%;
  left: 0;
  width: 100%;
}

.flow-packet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #d4af37;
  border-radius: 50%;
  opacity: 0;
}

.remote-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.signal-tower {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tower-core {
  width: 30px;
  height: 30px;
  background: #d4af37;
  border-radius: 6px;
}

.signal-wave {
  position: absolute;
  border: 2px solid #d4af37;
  border-radius: 50%;
  opacity: 0;
}

.wave-1 { width: 50px; height: 50px; }
.wave-2 { width: 80px; height: 80px; }
.wave-3 { width: 110px; height: 110px; }

/* Case Gallery Modal */
.case-gallery-modal .modal-content {
  max-width: 800px;
  max-height: 80vh;
}

.case-gallery-content h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  min-height: 200px;
}

.case-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 8px;
  color: #b0b0b0;
  font-style: italic;
  padding: 2rem;
  text-align: center;
  grid-column: 1 / -1;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.gallery-prev,
.gallery-next {
  background: #333;
  color: #b0b0b0;
  border: 1px solid #555;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-prev:disabled,
.gallery-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-prev:not(:disabled):hover,
.gallery-next:not(:disabled):hover {
  background: #d4af37;
  color: #1a1a1a;
  border-color: #d4af37;
}

/* Case Gallery Styles */
.case-gallery-modal .modal-content {
  max-width: 900px;
  max-height: 80vh;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  min-height: 200px;
}

.case.card {
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #444;
  transition: all 0.3s ease;
  cursor: pointer;
}

.case.card:hover {
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.case.card[data-kind="image"].open {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3000;
  max-width: 90vw;
  max-height: 90vh;
  background: #2a2a2a;
  border: 2px solid #d4af37;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.case.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.case.card[data-kind="image"].open img {
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.case.card video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case.card .title {
  padding: 1rem;
  color: #e0e0e0;
  font-weight: 600;
  font-size: 0.9rem;
}

.cases-loading,
.cases-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #b0b0b0;
  font-style: italic;
}

.cases-loading {
  color: #d4af37;
}

/* Case Gallery Modal Styles */
.case-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.case-gallery-modal.open {
  opacity: 1;
  visibility: visible;
}

.case-gallery-content {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 2rem;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid #333;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.case-gallery-modal.open .case-gallery-content {
  transform: scale(1);
}

.case-gallery-content h3 {
  color: #d4af37;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.case-gallery-content .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #d4af37;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.case-gallery-content .modal-close:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Cases Project Picker Modal */
.modal.cases-picker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal.cases-picker.open {
  opacity: 1;
  visibility: visible;
}

.modal.cases-picker .modal-content {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid #333;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.cases-picker.open .modal-content {
  transform: scale(1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}

.project-card {
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #444;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover,
.project-card:focus {
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  outline: none;
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.project-card .thumb.placeholder {
  width: 100%;
  height: 150px;
  background: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.875rem;
}

.project-card .thumb.placeholder::before {
  content: "No Preview";
}

.project-card .name {
  padding: 1rem;
  color: #e0e0e0;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* Cases Slideshow Modal */
.modal.cases-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal.cases-slideshow.open {
  opacity: 1;
  visibility: visible;
}

.modal.cases-slideshow .modal-content.wide {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  width: 90vw;
  max-width: 1100px;
  height: auto;
  max-height: 90vh;
  position: relative;
  border: 1px solid #333;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal.cases-slideshow.open .modal-content.wide {
  transform: scale(1);
}

.slide-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  min-height: 400px;
  margin-bottom: 1rem;
}

.slide-container {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 60px;
}

.slide-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.cases-slideshow .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.8);
  color: #1a1a1a;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.cases-slideshow .nav:hover {
  background: #d4af37;
  transform: translateY(-50%) scale(1.1);
}

.cases-slideshow .nav.prev {
  left: 10px;
}

.cases-slideshow .nav.next {
  right: 10px;
}

.slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.slide-title {
  color: #d4af37;
  font-weight: 600;
  font-size: 1.1rem;
}

.slide-counter {
  color: #b0b0b0;
  font-size: 0.9rem;
  background: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
}

/* Mobile responsiveness for slideshow */
@media (max-width: 768px) {
  .modal.cases-slideshow .modal-content.wide {
    width: 95vw;
    padding: 1rem;
  }
  
  .slide-stage {
    height: 50vh;
    min-height: 300px;
  }
  
  .slide-container {
    margin: 0 40px;
  }
  
  .cases-slideshow .nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .cases-slideshow .nav.prev {
    left: 5px;
  }
  
  .cases-slideshow .nav.next {
    right: 5px;
  }
  
  .slide-meta {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
  }
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: #222;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #333;
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1.5rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #d4af37;
}

.faq-icon {
  color: #d4af37;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: #b0b0b0;
  line-height: 1.6;
}

/* Careers Section */
.careers {
  padding: 100px 0;
  background: #1a1a1a;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.career-card {
  position: relative;
  height: 350px;
  perspective: 1000px;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.45s ease;
  border-radius: 12px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-front {
  background: #2a2a2a;
  padding: 2rem;
  text-align: center;
  justify-content: center;
}

.card-back {
  background: #333;
  transform: rotateY(180deg);
}

.career-card:hover .card-front {
  transform: rotateY(-180deg);
}

.career-card:hover .card-back {
  transform: rotateY(0);
}

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

.card-front p {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-back-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.5rem 0;
}

.card-back h3 {
  color: #d4af37;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.career-details {
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.career-details p {
  color: #b0b0b0;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.requirements-scroll {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 0.5rem;
  padding-right: 0.5rem;
}

.requirements-scroll::-webkit-scrollbar {
  width: 4px;
}

.requirements-scroll::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.requirements-scroll::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 2px;
}

.requirements-scroll h4 {
  color: #d4af37;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.requirements-scroll ul {
  list-style: none;
  padding: 0;
}

.requirements-scroll li {
  color: #b0b0b0;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.requirements-scroll li::before {
  content: "•";
  color: #d4af37;
  position: absolute;
  left: 0;
}

.card-actions {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid #444;
  margin: 0 -1.5rem;
}

.apply-btn {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #1a1a1a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.careers-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: #2a2a2a;
  border-radius: 12px;
  border: 1px solid #333;
}

.careers-cta h3 {
  color: #d4af37;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.careers-cta p {
  color: #b0b0b0;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Application Modal */
.application-modal {
  max-width: 600px;
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #666;
  color: #b0b0b0;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: #d4af37;
  color: #d4af37;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #1a1a1a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Footer */
.footer {
  background: #222;
  padding: 60px 0 20px;
  border-top: 1px solid #333;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: #b0b0b0;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-title {
  color: #d4af37;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #d4af37;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: #d4af37;
}

.newsletter-button {
  background: #d4af37;
  color: #1a1a1a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background: #b8941f;
}

.footer-contact {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: #2a2a2a;
  border-radius: 12px;
  border: 1px solid #333;
}

.contact-info p,
.contact-info a {
  color: #b0b0b0;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  word-break: break-all;
}

.contact-info a:hover {
  color: #d4af37;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  color: #777;
  font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .department-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .department-animation {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-tiles {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 1024px) {
  /* Mobile Header - Only Logo and Hamburger Visible */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 1rem;
    position: relative;
  }
  
  /* Logo positioning */
  .nav-brand {
    display: flex;
    align-items: center;
    z-index: 1002;
  }
  
  .logo {
    height: 40px !important;
  }
  
  /* Hide sign in button on mobile - it will appear in the menu instead */
  .nav-right > .sign-in-btn {
    display: none !important;
  }
  
  /* Hide all navigation items on mobile */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    gap: 2rem;
    z-index: 999;
    border-top: 1px solid #333;
    overflow-y: auto;
    /* Hidden by default */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  }
  
  /* Show menu when active */
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  /* Style menu items */
  .nav-menu .nav-link {
    font-size: 1.25rem;
    padding: 1rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    background: none;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0;
  }
  
  .nav-menu .nav-link:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
  }
  
  /* Sign in button in mobile menu */
  .sign-in-btn-mobile {
    display: flex;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-decoration: none;
  }
  
  .sign-in-btn-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  }
  
  /* Hamburger button - always visible on mobile */
  .hamburger {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 998;
    transition: all 0.3s ease;
    gap: 4px;
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background: #d4af37;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  /* Hamburger animation when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Prevent body scroll when menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }
}

.hero-title {
  font-size: 2.5rem;
}
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .department-card {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .department-title {
    font-size: 1.5rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .careers-grid {
    grid-template-columns: 1fr;
  }
  
  .career-card {
    height: auto;
  }
  
  .card-front,
  .card-back {
    position: relative;
    transform: none !important;
    backface-visibility: visible;
  }
  
  .card-back {
    display: none;
  }
  
  .career-card:hover .card-back {
    display: flex;
  }
  
  .career-card:hover .card-front {
    display: none;
  }
  
  .auth-modal-content {
    max-width: 90%;
  }
  
  .auth-card {
    min-height: 350px;
  }
  
  .auth-face {
    min-height: 350px;
    padding: 1.5rem;
  }
  
  .signup-scroll-container {
    max-height: 200px;
  .hero {
    padding: 100px 1rem 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .department-grid {
    padding: 0 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .auth-face {
    padding: 1rem;
  }
  
  .auth-form {
    gap: 1rem;
  }
  
  .signup-scroll-container {
    max-height: 180px;
  }
}