:root {
  --color-official: #2C5697;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-dark-blue: #041C2C;
  --color-cyan: #009CDE;
  --color-neutral: #98A4AE;
  --color-official-rgba: rgba(44, 86, 151, 0.8);
  --font-name: 'Nunito Sans', sans-serif;
  --jelly-font-name: 'Exo Soft', 'Nunito Sans', sans-serif;
  --border-radius: 10px;
  --border-subtle: rgba(0, 212, 255, 0.2);
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans.ttf') format('truetype');
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  font-style: normal;
}

@font-face {
  font-family: 'Exo Soft';
  src: url('fonts/ExoSoft-Black.ttf') format('truetype');
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-name);
  background-color: var(--color-black);
  line-height: 1.6;
  overflow-x: hidden;
  color: var(--color-black);
  backdrop-filter: blur(10px);
}

main {
  min-height: 100vh;
}

main video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  z-index: -1;
  filter: brightness(50%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-name);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-white);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
  display: inline;
  margin-top: 2rem;
}

q {
  color: var(--color-official);
  font-size: 2.3rem;
}

.blur {
  display: none;
}

.header-logo {
  width: auto;
  height: 100px;
  border-radius: 0;
  cursor: pointer;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border: 2px solid var(--color-cyan);
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-cyan);
  color: var(--color-white);
  transform: translateY(-5px);
}

.btn-primary span {
  margin-left: 5px;
}

.btn-glow {
  animation: glow 1.6s ease-in-out infinite alternate;
}

.navbar {
  position: relative;
  top: 0;
  padding: 1rem 0;
  width: 100%;
  background-color: transparent;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  border-top: none;
  z-index: 1000;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
  margin-top: .5rem;
}

.nav-links a {
  font-weight: 700;
  padding: 5px;
  margin: 0;
  background-color: transparent;
  color: var(--color-white);
  border-radius: 50px;
  padding: 10px 16.18px;
}

.nav-links a:hover {
  border-bottom: 2px solid var(--color-cyan);
  color: var(--color-cyan);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-official);
  transition: all 0.3s ease;
}

.btn-login {
  border: 2px solid var(--color-official);
  border-radius: 50px;
  background-color: transparent;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 16.18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: none;
}

.btn-login:hover {
  background-color: var(--color-official);
  transform: translateY(-5px);
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.home-container {
  margin-top: -7rem;
}

.typewriter {
  display: block;
  width: 100%;
  font-family: var(--font-name);
  font-weight: 900;
  font-size: clamp(2rem, 3rem, 4rem);
  border-right: 2px solid #000;
  text-align: center;
  animation: blink 0.75s step-end infinite;
  color: var(--color-white);
}

.philosophy {
  padding-bottom: 2rem;
  text-align: center;
}

.description {
  display: block;
  font-size: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.section-title {
  text-align: center;
  color: var(--color-white);
}

.jellyviews {
  color: var(--color-official);
  font-weight: 900;
  font-size: 19px;
  font-family: var(--jelly-font-name);
}

.jelly-title {
  color: var(--color-official);
  font-weight: 900;
  font-size: 3rem;
  margin-bottom: 0;
}

.jellyviews-title {
  font-family: var(--jelly-font-name);
  font-weight: 900;
  font-size: 3.5rem;
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 20px;
  padding: 3px;
}

.link-arrow:hover {
  color: var(--color-cyan);
}

.link-arrow span {
  margin-left: 5px;
}

.highlighted {
  font-size: 18px;
  color: var(--color-cyan);
}

.services,
.contact {
  padding: 2.5rem 0;
  /* background-color: rgba(0, 0, 0, 0.2); */
  /* border: 1.5px solid var(--color-cyan); */
  border-left: none;
  border-right: none;
  overflow: hidden;
  /* backdrop-filter: blur(10px); */
  margin: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-dark-blue);
  padding: 1.8rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--color-cyan);
  color: var(--color-white);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  border-color: var(--color-cyan);
}

.service-card-header,
.why-us-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.service-card-header img {
  height: 70px;
  width: auto;
  background-color: white;
  border-radius: 70px;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.service-card p {
  text-align: justify;
  font-size: 1.1rem;
  hyphens: auto;
  -webkit-hyphens: auto; 
  overflow-wrap: break-word;
  text-align-last: left;
}

.why-us-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 150px 24px;
}

.reason-list {
  display: none;
}

.why-us-desktop {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.why-us-card-header {
  justify-content: space-between;
}

.why-us-card-header img {
  height: 80px;
  width: auto;
  background-color: transparent;
  border-radius: 70px;
}

.why-us-card {
  background: var(--color-dark-blue);
  border-radius: 16px;
  padding: 32px 32px;
  border: 1px solid var(--border-subtle);
  grid-column: span 12;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 153, 204, 0.05) 100%);
  border-left: 4px solid var(--color-cyan);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.why-us-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  border-color: var(--color-cyan);
}

.why-us-card.medium {
  grid-column: span 12;
}

.why-us-card.small {
  grid-column: span 4;
}

.why-us-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-white);
}

.why-us-card-body {
  color: var(--color-white);
  font-size: 1.1rem;
}

.stat-highlight {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-cyan);
  display: block;
  margin-bottom: 8px;
  line-height: 1.1;
}

.contact-div {
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icon {
  font-size: 2rem;
  color: var(--color-white);
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
}

.social-icon:hover {
  transform: translateY(-5px);
  color: var(--color-cyan);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.detection-modal-media {
  position: relative;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9;
}

.swap-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease-in-out;
  border-radius: 8px;
}

.frame-a {
  opacity: 1;
  z-index: 2;
}

.frame-b {
  opacity: 0;
  z-index: 1;
}

.detection-modal-media.swapped .frame-a {
  opacity: 0;
}

.detection-modal-media.swapped .frame-b {
  opacity: 1;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1100;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.5s ease-out forwards;
}

.modal-content {
  position: relative;
  top: -15%;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  background-color: transparent;
  border: 2px solid var(--color-cyan);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 32px 24px;
  animation: slideUp 0.3s ease-out forwards;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-title {
  font-size: 27px;
  color: var(--color-cyan);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--font-heading);
  text-align: center;
}

.modal-body {
  font-size: 18px;
  color: var(--color-white);
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: left;
  font-family: var(--font-name);
}

.modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

footer {
  padding: .3rem;
  text-align: center;
  font-size: 0.7rem;
  height: auto;
  width: 100%;
  background-color: transparent;
  color: var(--color-white);
}

@keyframes glow {
  50% {
    box-shadow: 0 0 40px var(--color-cyan);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes blink {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--color-official);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1.1rem;
  }

  blockquote {
    font-size: 1.3rem;
  }

  q {
    color: var(--color-official);
    font-size: 2rem;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .blur.active {
    display: block;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
  }

  .nav-links {
    position: absolute;
    left: -100%;
    top: 100%;
    flex-direction: column;
    background-color: transparent;
    width: 100%;
    text-align: center;
    transition: 0.3s;
  }

  .nav-links.active {
    left: 0;
    border: none;
    z-index: 1000;
  }

  .nav-links li {
    margin: 16px 0;
  }

  .home {
    height: 600px;
  }

  .description {
    font-size: 1.5rem;
  }

  .jellyviews-title {
    font-size: 2.8rem;
  }

  .link-arrow {
    font-size: 1.1rem;
  }

  .why-us-section {
    padding: 250px 24px;
  }

  .why-us-desktop {
    display: none;
  }

  .reason-list {
    display: block;
    position: relative;
  }

  .reason {
    position: relative;
    padding: 0 0 48px 0;
    max-width: 92%;
  }

  .reason:nth-child(even) {
    margin-left: auto;
  }

  .reason::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 28px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--color-dark-blue);
    border: 2px solid var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    z-index: 2;
  }

  .reason:nth-child(even)::before {
    left: auto;
    right: -29px;
  }

  .reason h3 {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-top: 56px;
    margin-bottom: 10px;
    color: var(--color-white);
  }

  .reason p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: var(--color-white);
    line-height: 1.65;
  }

  .reason.lead h3 {
    background-image: linear-gradient(var(--color-cyan), var(--color-cyan));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 1.2s ease 0.3s;
  }

  .reason:nth-child(even).lead h3 {
    background-position: 100% 100%;
  }

  .reason.lead.seen h3 {
    background-size: 100% 2px;
  }

  .reason {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reason.seen {
    opacity: 1;
    transform: translateY(0);
  }

  .contact {
    padding-bottom: 150px;
  }

  .modal-content {
    padding: 24px 16px;
    margin: 0 8px;
    max-height: 95vh;
    top: -25%;
  }

  .detection {
    top: -17%;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-body {
    font-size: 15px;
  }

}