* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background: #0b0b0c;
  color: #e6e6e6;
  scroll-behavior: smooth;
}

/* ---------- METAL TEXT ---------- */
.metal-text {
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #9a9a9a 0%, #4f4f4f 30%, #7a7a7a 50%, #3a3a3a 70%, #8a8a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 2px rgba(255,255,255,0.1), 0 1px 1px rgba(0,0,0,0.6);
}

h1.metal-text, h2.metal-text {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* ---------- TOP BANNER (15% taller: 230px) ---------- */
.hero-banner {
  height: 265px !important; 
  background-image: url("/assets/v4rlabs-banner.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6%;
  border-bottom: 1px solid #222;
}

/* ---------- NAV MENU ---------- */
.hero-banner {
  position: relative;
}

.site-nav {
  position: absolute;
  top: 14px;
  right: 6%;
  display: flex;
  gap: 30px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #f39c12;
}

.banner-tagline {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0,0,0,0.85);
  padding: 15px 25px;
  border-right: 4px solid #f39c12;
  border-radius: 4px;
  max-width: 500px;
  text-align: right;
}

/* ---------- SECTION LAYOUT ---------- */
.content-section {
  padding: 10px 8%; /* Reduced by 15% from 40px to 34px to tighten Hero */
  background-image: url("/assets/v4rlabs-bg-section.png");
  background-size: cover;
  border-bottom: 1px solid #1c1c1c;
}

.content-section.alt {
  background-color: #0f0f11;
  padding: 60px 8%; /* Services section remains untouched as requested */
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

/* ---------- SECTION 1: HERO ---------- */
/* 1. Target only the columns inside the first content section (Hero) */
.content-section:first-of-type .col {
  align-items: center;    /* Horizontally centers the box/logo in the column */
  display: flex;
  flex-direction: column;
}

/* 2. Ensure the text box stays left-justified but occupies the center */
.value-prop-box {
  margin: 0;             /* Removes the 'margin: 0 auto 0 0' that was pinning it left */
  text-align: left;      /* Keeps the actual text professional and left-aligned */
  width: 100%;           /* Allows centering logic to function */
  max-width: 500px;      /* Keeps the line length readable */
}

/* 3. Center the logo image specifically */
/* Push the logo image down by 20% of its container's height */
.hero-logo {
    display: block;
    margin-top: 15%; /* Pushes the logo down relative to the top of the column */
    max-width: 700px !important; 
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.8));
}

.matte-text {
  font-size: 20px;
  line-height: 1.6;
  color: #c0c0c0;
}

.section-logo.hero-logo {
  width: 100%;
  max-width: 700px; /* Reduced slightly to help tighten the section height */
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.8));
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  padding: 70px 8%;
  text-align: center;
}

.about-heading {
  font-size: 52px;
  margin-bottom: 20px;
}

.about-divider {
  width: 60px;
  height: 3px;
  background: #f39c12;
  margin: 0 auto 30px;
}

.about-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.3px;
  font-weight: 500;
  background: linear-gradient(135deg, #d0d0d0 0%, #999 30%, #b8b8b8 50%, #888 70%, #c5c5c5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- SECTION 2: SERVICES (RESTORED GRID) ---------- */
.section-inner {
  background: rgba(0, 0, 0, 0.5); 
  backdrop-filter: blur(12px);    
  -webkit-backdrop-filter: blur(12px); 
  padding: 45px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-two-title {
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(243, 156, 18, 0.3);
  padding-bottom: 15px;
  text-transform: uppercase;
}

.feature-list li {
  margin-bottom: 25px;
  color: #e0e0e0;
  font-size: 19px;
}

.stack-title {
  font-size: 14px;
  text-transform: uppercase;
  color: #f39c12;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tech-logo {
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  border-radius: 4px;
  text-transform: uppercase;
  text-align: center;
  padding: 5px;
  overflow: hidden;
}

.tech-logo img {
  max-width: 90% !important;
  max-height: 85%;
  object-fit: contain;
  /* Uniform silver/gun-metal look */
  filter: brightness(0) invert(1) opacity(0.7);
  transition: all 0.3s ease;
}

/* Target the DigitalOcean PNG specifically to scale it up manually */
.tech-logo img[src*="digitalocean"] {
  transform: scale(1.4); /* Increases the visual size by 40% */
  transform-origin: center;  
}

/* Ensure the hover effect still works on the scaled image */
.tech-logo:hover img[src*="digitalocean"] {
  filter: none;
  opacity: 1;
}

.tech-logo img[src*="nvidia"] {
  transform: scale(5); 
  transform-origin: center;  
}

.tech-logo img[src*="amd"] {
  transform: scale(5); 
  transform-origin: center;  
}

.tech-logo img[src*="pytorch"] {
  transform: scale(1.6); 
  transform-origin: center;  
}

/* Target Hugging Face to prevent the washed-out look */
.tech-logo img[src*="huggingface"] {
  /* Instead of pure white, we use a high-contrast grayscale */
  filter: grayscale(1) contrast(1.5) brightness(0.8) opacity(0.9);
  transform: scale(1.2); /* Nudge size up slightly if needed */
}

/* Ensure it pops back to full color on hover */
.tech-logo:hover img[src*="huggingface"] {
  filter: none;
  opacity: 1;
}

.tech-logo img[src*="tensorrt"] {
  /* Use grayscale + contrast instead of invert to maintain "heavier" shadows */
  filter: grayscale(1) contrast(1.8) brightness(0.7) opacity(0.85);
}

/* Return to original colors on hover */
.tech-logo:hover img[src*="tensorrt"] {
  filter: none;
  opacity: 1;
}

.tech-logo img[src*="llama"] {
  /* Use grayscale + contrast instead of invert to maintain "heavier" shadows */
  filter: grayscale(1) contrast(1.8) brightness(0.7) opacity(0.85);
}

/* Return to original colors on hover */
.tech-logo:hover img[src*="llama"] {
  filter: none;
  opacity: 1;
}


/* Hover effect to bring back brand colors */
.tech-logo:hover img {
  filter: none;
  opacity: 1;
}

/* Specific styling for logos that need accompanying text */
.logo-with-text {
  flex-direction: row !important; /* Side-by-side icon and text */
  gap: 10px;
  padding: 0 10px;
}

.logo-with-text span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
  line-height: 1.2;
}

.logo-with-text img {
  max-width: 30%; /* Shrink icon to make room for text */
}

.stacks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.stacks-profiled-title {
  margin-top: 0;
}

.stacks-profiled {
  list-style: none;
  padding: 0;
}

.stacks-profiled li {
  font-size: 13px;
  color: #999;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stacks-profiled li:last-child {
  border-bottom: none;
}

/* ---------- SECTION 3: TECHNOLOGY DEMO ---------- */
.video-frame {
  position: relative;
  border: 1px solid #333;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  background: #000;
  width: 100%;
  max-width: 850px;
  overflow: hidden;
  border-radius: 6px;
  margin: 0 auto;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.video-frame:hover {
  border-color: #555;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 20px rgba(147,197,253,0.15);
}

.demo-video {
  width: 100%;
  display: block;
}

.video-expand-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.video-frame:hover .video-expand-hint {
  opacity: 1;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  width: 92vw;
  max-width: 1400px;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  cursor: default;
}

.modal-video {
  width: 100%;
  display: block;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #050506;
  padding: 50px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1c1c1c;
}

.footer-left {
  font-size: 18px;
  font-weight: 600;
}

.footer-center {
  font-size: 18px;
}

.icon-metal {
  width: 28px;
  height: 28px;
  display: inline-block;
  background: #5a5a5d; 
  margin-left: 25px;
}

.github { -webkit-mask: url("/assets/github-icon.svg") no-repeat center / contain; mask: url("/assets/github-icon.svg") no-repeat center / contain; }
.linkedin { -webkit-mask: url("/assets/linkedin-icon.svg") no-repeat center / contain; mask: url("/assets/linkedin-icon.svg") no-repeat center / contain; }

.contact-button {
  display: inline-block;
  padding: 15px 35px;
  background: transparent;
  border: 1px solid #f39c12;
  color: #f39c12;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}

/* ---------- GET STARTED / CONTACT PAGE ---------- */
.hero-banner-short {
  height: 160px !important;
  align-items: flex-end;
  padding-bottom: 14px;
}

.form-page .section-inner {
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.form-page .contact-form {
  text-align: left;
}

.form-group select option {
  background: #111;
  color: #fff;
}

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

.contact-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  font-size: 16px;
  background: linear-gradient(135deg, #c0c0c0 0%, #8a8a8a 30%, #a0a0a0 50%, #7a7a7a 70%, #b0b0b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  padding: 12px;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f39c12;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- MOBILE / TABLET RESPONSIVE ---------- */
@media (max-width: 900px) {
  /* Stack two-column layouts */
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Hero banner */
  .hero-banner {
    height: 180px !important;
    padding: 0 4%;
  }

  .banner-tagline {
    font-size: 15px;
    padding: 10px 16px;
    max-width: 320px;
  }

  .site-nav {
    gap: 16px;
    right: 4%;
    top: 10px;
  }

  .site-nav a {
    font-size: 12px;
    letter-spacing: 1px;
  }

  /* Section padding */
  .content-section {
    padding: 30px 5%;
  }

  .content-section.alt {
    padding: 40px 5%;
  }

  /* Hero section */
  h1.metal-text, h2.metal-text {
    font-size: 32px;
  }

  .matte-text {
    font-size: 17px;
  }

  .hero-logo {
    margin-top: 0;
    max-width: 400px !important;
  }

  .section-logo.hero-logo {
    max-width: 400px;
  }

  /* About section */
  .about-section {
    padding: 40px 5%;
  }

  .about-heading {
    font-size: 36px;
  }

  .about-text {
    font-size: 17px;
  }

  /* Capabilities section */
  .section-inner {
    padding: 25px;
  }

  .section-two-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .feature-list li {
    font-size: 16px;
    margin-bottom: 18px;
  }

  /* Tech logo grid: 3 columns but smaller */
  .tech-logo {
    height: 48px;
    font-size: 10px;
  }

  .logo-grid {
    gap: 8px;
  }

  .logo-with-text span {
    font-size: 9px;
  }

  /* Stacks grid: stack to single column */
  .stacks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  /* Video section: full width, flows naturally under text */
  .video-frame {
    max-width: 100%;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 30px 5%;
  }

  .footer-left, .footer-center, .footer-right {
    text-align: center;
  }

  /* Contact button */
  .contact-button {
    font-size: 16px;
    padding: 12px 28px;
  }
}

/* Smaller phones */
@media (max-width: 480px) {
  .hero-banner {
    height: 140px !important;
    justify-content: center;
  }

  .banner-tagline {
    font-size: 13px;
    max-width: 260px;
    text-align: center;
    border-right: none;
    border-bottom: 3px solid #f39c12;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  h1.metal-text, h2.metal-text {
    font-size: 26px;
  }

  .matte-text {
    font-size: 15px;
  }

  .about-heading {
    font-size: 28px;
  }

  .about-text {
    font-size: 15px;
  }

  .section-two-title {
    font-size: 24px;
  }

  .feature-list li {
    font-size: 15px;
    margin-bottom: 15px;
  }

  /* Tech grid: 2 columns on small phones */
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-logo {
    height: 44px;
  }

  .stacks-profiled li {
    font-size: 12px;
  }
}

/* ---------- COMING SOON PAGE ---------- */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}

.coming-soon .logo {
  max-width: 400px;
  width: 80%;
  height: auto;
  margin-bottom: 30px;
}

.coming-soon h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.coming-soon p {
  font-size: 18px;
  color: #999;
}