/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

html {
  scroll-behavior: smooth;
}

body, html {
  font-family: Arial, sans-serif;
  background-color: black; /*#111 for back up*/
  color: white;
  overflow-x: hidden; /* Prevent horizontal scroll */
  user-select: none;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.01); /* Slight transparency for better visibility */
  padding: 20px 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  height: 100px;
}

/* Hide navbar on small screens */
@media (max-width: 768px) {
  .navbar {
    display: none;
  }
}

.navbar ul {
  display: flex;
  list-style: none;
  padding: 10px 0;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #d4d4d4;
}

/* Video Section */
.video-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}

.mainvideo-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-width:100%;
  height: 100%;
  z-index: -1;
  filter: blur(8px);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Logo Container */
.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: -1;
}

.logo-container img {
  max-width: 65%;
  height: auto;
  user-select: none;
  z-index: 1;
}

/* Animations for text */
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* Slight upward motion */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
  position: relative;
  background-color: black;
  padding: 20px 0;
  text-align: center;
  z-index: 1;
}

.footer-content ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

.footer-content li {
  margin: 0 15px;
}

.footer-content a {
  text-decoration: none;
  color: #7a7a7a;
  transition: color 0.3s;
}

.footer-content a:hover {
  color: white;
}

/* Hamburger Button */
.hamburger-button {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  outline: none;
}

/* Menu Container with Animation */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%; /* Full width for the animation */
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* Adjust color for visibility */
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  transition: clip-path 0.6s ease-in-out; /* Smooth transition */
  z-index: 15;
  max-width: 300px;
}

/* Open State for Menu */
.menu.open {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  max-width: 300px; /* Max width for the menu */
}


/* Menu List */
.menu ul {
  list-style: none;
  margin: 0;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.menu li {
  margin: 10px 0;
}

.menu a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s ease-in-out;
}

.menu a:hover {
  color: #d4d4d4;
}

/* Top and Bottom Menu Differentiation */
.menu::before,
.menu::after {
  content: '';
  position: absolute;
  height: 10px;
  transition: width 0.3s ease-in-out;
}

.menu::before {
  top: 0;
  right: 0;
  width: 90%; /* Top width slightly less than full menu */
}

.menu::after {
  bottom: 0;
  right: 0;
  width: 85%; /* Bottom width slightly less */
}

.hamburger-menu{
  display: none;
}

/* Show Hamburger Menu on Small Screens */
@media (max-width: 768px) {

  .hamburger-menu {
    display: block;
  }

  .hamburger-button {
    display: block;
  }

  .menu {
    display: block;
  }
}

.CFH_who-we-are {
  position: relative;
  height: auto;
  overflow: hidden;
  padding: 200px 0;
  display: flex;
  align-items: center;
  justify-content: start;
  color: #ffffff;
}

.CFH_video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  align-items: center;
  pointer-events: none;
}

.CFH_overlay {
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: start;
  margin-left: 160px;
  z-index: 1;
}

.CFH_content {
  max-width: 600px;
  text-align: left;
}

.CFH_heading {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.CFH_paragraph {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Responsive Styling */
@media (max-width: 768px) {

  .CFH_overlay{
    padding: 1rem;
    margin-left: 0; /* Remove left margin on small screens */
    justify-content: center; /* Center content on small screens */
    text-align: center;
  }

  .CFH_heading {
    text-align: center;
  }

  .CFH_paragraph {
    text-align: center;
  }

  .CFH_content {
    max-width: 100%;
  }

  .CFH_heading {
    font-size: 1.5rem;
  }

  .CFH_paragraph {
    font-size: 0.95rem;
  }
}


.CFH_our-mission {
  background-color: #000;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 2rem;
  z-index: 50;
  position: relative;
}

.CFH_mission-content {
  max-width: 800px;
}

.CFH_mission-heading {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.CFH_mission-text {
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .CFH_mission-heading {
    font-size: 1.5rem;
  }

  .CFH_mission-text {
    font-size: 1rem;
  }
}

.CFH_novel-tech {
  background-color: #000;
  color: #fff;
  padding: 4rem 2rem;
  position: relative;
  z-index: 50;
}

.CFH_novel-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.CFH_novel-left {
  width: 100%;
  max-width: 375px;
}

.CFH_paradigm-right {
  width: 100%;
  max-width: 375px;
  align-items: flex-end;
  margin-left: 0;
}

.CFH_paradigm-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: left;
}

.CFH_benifitsandshift-header {
  color: rgba(255, 255, 255, 0.75);
}

.CFH_novel-heading {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.CFH_novel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.CFH_novel-list li {
  border-bottom: 1px solid #444;
  padding: 0.75rem 0;
  font-weight: 500;
  font-size: 1rem;
}

.CFH_novel-right {
  width: 100vw;
  margin: 0 auto;
  margin-top: 50px;
  max-width: 75vw;

  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.CFH_novel-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.CFH_novel-highlight {
  font-weight: bold;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .CFH_novel-left{
    margin: 0 auto;
  }
  .CFH_novel-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .CFH_novel-heading {
    font-size: 1.5rem;
  }

  .CFH_novel-text,
  .CFH_novel-highlight {
    text-align: left;
  }
}


.CFH_integrated-ai {
  position: relative;
  height: auto;
  overflow: hidden;
  padding: 200px 0;
  display: flex;
  align-items: center;
  justify-content: start;
  color: #ffffff;
}

.CFH_ai-overlay {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 100%;
  margin-left: 160px;
  z-index: 1;
}

.CFH_ai-content {
  max-width: 600px;
}

.CFH_ai-heading {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.CFH_ai-text {
  font-size: 1rem;
  line-height: 1.6;
}

.CFH_ai-text strong {
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .CFH_ai-overlay {
    margin-left: 0; /* Remove left margin on small screens */
    justify-content: center; /* Center content on small screens */
    text-align: center;
  }

  .CFH_ai-heading {
    font-size: 1.5rem;
  }

  .CFH_ai-text {
    font-size: 0.95rem;
  }

  .CFH_ai-content {
    max-width: 100%;
  }
}


.CFH_surface-biosensing {
  color: white;
  padding: 200px 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  height: auto;
  overflow: hidden;
  justify-content: start;
  color: #ffffff;
}

.CFH_biosensing-overlay {
  padding: 2rem;
  position: relative;
  z-index: 100;
}

.CFH_biosensing-heading {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 3rem;
}

.CFH_biosensing-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.CFH_biosensing-block {
  flex: 1 1 250px;
  max-width: 300px;
}

.CFH_icon-img {
  height: 50px;
  margin-bottom: 1rem;
}

.CFH_biosensing-block p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .CFH_biosensing-heading {
    font-size: 1.5rem;
  }

  .CFH_icon-img {
    height: 40px;
  }

  .CFH_biosensing-block p {
    font-size: 0.95rem;
  }
}

.CFH_pnn-speed-light {
  background-color: #000;
  color: #fff;
  padding: 200px 2rem;
  position: relative;
  z-index: 50;
}

.CFH_pnn-container {
  max-width: 800px;
  margin: 0 auto;
  margin-left: 160px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.CFH_pnn-heading {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.3;
}

.CFH_pnn-lead {
  font-size: 1rem;
  line-height: 1.6;
}

.CFH_pnn-point {
  font-size: 1rem;
  line-height: 1.5;
}

.CFH_Lastbit {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 2rem;
  z-index: 50;
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {

  .CFH_pnn-container {
    margin-left: 0; /* Remove left margin on small screens */
    text-align: center; /* Center text on small screens */
  }

  .CFH_pnn-heading {
    font-size: 1.5rem;
  }

  .CFH_pnn-lead,
  .CFH_pnn-point {
    font-size: 0.95rem;
  }
}

.CFH_cta {
  background-color: #000;
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 50;
}

.CFH_cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.CFH_cta-heading {
  font-size: 1.8rem;
  font-weight: bold;
}

.CFH_cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
}

.CFH_cta-button:hover {
  background: white;
  color: black;
}

/* Responsive */
@media (max-width: 768px) {
  .CFH_cta-heading {
    font-size: 1.5rem;
  }

  .CFH_cta-button {
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
  }
}
