/* --- Header Logo Styling --- */
.logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 60px; /* Adjust this height depending on how large you want your logo to appear */
  width: auto;  /* Maintains the correct image proportions automatically */
  display: block;
  object-fit: contain;
}



/* --- Base Reset & Variables --- */
:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --accent-color: #f4f4f4;
  --card-bg: #111111;
  --font-main: 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5,5,5,0.9), transparent);
}

.site-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.site-header nav a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* --- Hero Section --- */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-section h1 {
  font-size: clamp(4rem, 10vw, 12rem);
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* --- Horizontal Snap-Point Gallery --- */
.work-section {
  padding: 8rem 0;
}

.horizontal-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 0 5%;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; 
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 70vw; 
  max-width: 900px;
  scroll-snap-align: center; 
  display: flex;
  flex-direction: column;
  overflow: hidden; 
}

/* --- The Window Portal Effect (Replaces Device Mockups) --- */
.window-portal {
  width: 100%;
  height: 60vh; 
  min-height: 400px;
  overflow: hidden; 
  background: #111111; 
  position: relative; 
  margin-bottom: 1.5rem;
  border: 1px solid #333;
}

.portal-screenshot {
  width: 100%;
  height: auto; /* MUST be auto so the image stays long and scrollable */
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover; /* Keeps it edge-to-edge horizontally */
  object-position: top center; 
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform; 
}

.work-card:hover .portal-screenshot {
  transform: translateY(-50%); /* Change this percentage to scroll deeper if needed */
}

.work-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.work-card p {
  color: #888;
  font-size: 1.1rem;
}

/* --- Dark-Mode Capabilities Grid --- */
.services-section {
  padding: 8rem 0;
  background-color: var(--bg-color); /* Matches your pitch-black background */
  color: var(--text-color);
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg); /* Dark card background (#111111) */
  border: 1px solid #222;    /* Brutalist thin border */
  border-radius: 12px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 300px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: #555;        /* Subtle highlight on hover */
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid #333; /* Darker clean divider line */
  color: var(--text-color);
  line-height: 1.2;
}

.service-card p {
  color: #888;                 /* Muted text for descriptions */
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive fallback for smaller screens */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Segmented Ribbon Section --- */
.bento-section {
  padding: 0; /* Full edge-to-edge integration */
  background-color: var(--bg-color);
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.container-full {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.ribbon-grid {
  display: grid;
  /* Uses auto-fit with a safe minimum width so text never gets crushed */
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-color);
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.ribbon-card {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #222;
  background: var(--card-bg);
  transition: background-color 0.3s ease;
}

.ribbon-card:last-child {
  border-right: none;
}

.ribbon-card:hover {
  background-color: #141414;
}

.bento-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.ribbon-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text-color);
  white-space: nowrap; /* Keeps titles clean and prevents awkward wrapping */
}

.ribbon-card p {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive fallback for smaller screens */
@media (max-width: 1024px) {
  .ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ribbon-card:nth-child(2) {
    border-right: none;
  }
  .ribbon-card {
    border-bottom: 1px solid #222;
  }
  .ribbon-card:nth-last-child(-n+2) {
    border-bottom: none;
  }
}
.accent-gradient-1 {
  background: linear-gradient(135deg, #222 0%, #111 100%);
  border: 1px solid #333;
}

.accent-gradient-2 {
  background: linear-gradient(45deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #333;
}

/* Responsive behavior for smaller screens */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-large, .bento-small, .bento-wide {
    grid-column: span 1;
  }
  .bento-large {
    flex-direction: column;
  }
  .bento-visual {
    height: 150px;
    width: 100%;
  }
}



/* --- Reviews Section --- */
.reviews-section {
  padding: 8rem 0;
}

.reviews-grid {
  border-top: 1px solid #333;
  padding-top: 2rem;
}

.review-placeholder {
  color: #666;
  font-style: italic;
}

/* --- Mega Footer --- */
.mega-footer {
  padding: 8rem 0 4rem 0;
  border-top: 1px solid #333;
}

.massive-cta {
  font-size: clamp(3rem, 8vw, 9rem);
  line-height: 1;
  margin-bottom: 6rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.massive-cta:hover {
  color: #888;
}

.footer-links {
  display: flex;
  gap: 4rem;
  border-top: 1px solid #333;
  padding-top: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col h4 {
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* --- Mailto CTA Link Fix --- */
.cta-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.massive-cta {
  font-size: clamp(3rem, 8vw, 9rem);
  line-height: 1;
  margin-bottom: 6rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.cta-link:hover .massive-cta {
  color: #888;
}


.matrix-char {
  display: inline-block;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.matrix-char.flashing {
  color: #17552e; /* Much brighter phosphor neon */
  /* Layered glow: tight sharp core + wide outer phosphor bloom */
  text-shadow: 0 0 8px #74dd93, 0 0 20px #38ef7d, 0 0 35px rgba(56, 239, 125, 0.8);
}