/* styles.css - Fluvina Technologies */
:root {
  --accent-yellow: #ffcc00;
  --accent-green: #99ff33;
  --accent-green2: #c4ff89;
  --accent-cyan: #0099cc;
  --light-green: #31d6c5;
  --dark: #0f1724;
  --muted: #6b7280;
  --glass: rgba(255, 255, 255, 0.75);
  /* --card-shadow: 0 8px 30px rgba(12, 20, 40, 0.08); */
  --card-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
  --radius: 14px;
  --maxw: 97vw;
  --fw-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--fw-sans);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

h3 {
  margin-top: 0px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utilities */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 24px;
}

.row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.btn {
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  text-align: center;
  border-radius: 10px;
  background: var(--accent-cyan);
  font-style: var(--fw-sans);
  color: white;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 2px solid #fff;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s;
  border: 2px solid #fff;
  background: linear-gradient(90deg, #0987AD, #DBB321);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12)
}

.btn-ghost {
  background: linear-gradient(90deg, #0987AD, #DBB321);
}

.section {
  padding-top: 64px;
}

.kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0987AD, #DBB321);
  font-weight: 700;
  border: 2px solid #061d27;
  font-size: 1.2rem;
  color: #fff;
}

.white-border {
  border: 2px solid #fff;
}

/* Header Base */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #0a0d0e, #061d27);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

/* Inner Layout */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--card-shadow);
}

.brand-title {
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  white-space: nowrap;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s ease-in-out;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Call To Action */
.cta {
  padding: 9px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-yellow));
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

/* Mobile Menu Toggle */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-icon span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 18, 25, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    gap: 14px;
    padding: 20px 0;
    transform: translateY(-200%);
    opacity: 0;
    visibility: hidden;
  }

  /* Show menu when toggled */
  #menu-toggle:checked~.nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-icon {
    display: flex;
  }

  /* Animate menu icon to “X” */
  #menu-toggle:checked+.menu-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
  }

  #menu-toggle:checked+.menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked+.menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }
}


/* Hero */
.hero {
  /* background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=1600&auto=format&fit=crop&ixlib=rb-4.0.3&s=3a5bfc0568d3b8b776d0bc5c292b06a0'); */
  background-size: cover;
  background-position: center;
  position: relative;
  /* border-radius: 20px; */
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.hero-overlay {
  /* background: linear-gradient(135deg, rgba(0, 153, 204, 0.22), rgba(153, 255, 51, 0.08)); */
  padding: 22px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 700px;
  gap: 30px;
  position: relative;
}

.hero-overlay video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* Ensures the video covers the area without distortion */
  z-index: -1;
  /* To keep the video behind the content */
}

.hero-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures the video covers the area without distortion */
  z-index: -1;
  /* To keep the video behind the content */
}

.hero-left {
  max-width: 620px;
  gap: 30px;
}

.h-title {
  font-size: 42px;
  margin: 0 0 14px 0;
  line-height: 1.02
}

.h-sub {
  color: var(--muted);
  margin-bottom: 18px
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}

.hero-stat {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  width: 100%;
}

.stat {
  background: rgba(255, 255, 255, 0.85);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  width: 100%;
}

.stat strong {
  display: block;
  font-size: 20px;
  color: var(--dark)
}

.stat small {
  color: var(--muted)
}

/* Services & features */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px
}

.card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  transition: transform .18s, box-shadow .18s
}

/* .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(12, 20, 40, 0.09)
} */

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Why choose */

/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}
.sr-only-focusable:focus, .sr-only-focusable:active {
  position: static !important;
  height: auto; width: auto; overflow: visible; clip: auto; white-space: normal; margin: 0;
}

/* Focus styles for keyboard users */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid #FFD54A; /* high contrast visible focus */
  outline-offset: 2px;
}

.port-item:focus {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  /* align-items: center */
}

.why-img {
  width: auto;
  height: 420px;
  border-radius: 12px;
  margin-top: 55px;
}

.icon-img {
  width: 60px;
}

.checks {
  display: grid;
  gap: 12px
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.check .dot {
  max-width: 65px;
  min-width: 60px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(90deg, #0987AD, #DBB321);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px
}

.badge2 {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  /* background: var(--accent-green2); */
  border: 2px solid var(--dark);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  font-size: .9rem;
}

.test {
  background: linear-gradient(180deg, #fff, #f8fffb);
  padding: 0px 20px;
  border-radius: 14px;
  box-shadow: var(--card-shadow)
}

.test .name {
  font-weight: 700
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 36px
}

.timeline:before {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-yellow));
  border-radius: 4px
}

.t-item {
  position: relative;
  padding: 18px 18px;
  margin-bottom: 18px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--card-shadow)
}

.t-item:before {
  content: '';
  position: absolute;
  left: -32px;
  top: 22px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-yellow));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06)
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0a0d0e, #061d27);
  color: white;
  padding: 40px 24px;
  margin-top: 28px
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none
}

.footerContainer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap
}

.brand-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px
}

.socials {
  display: flex;
  gap: 12px
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(10, 20, 30, 0.06);
  background: white;
  font-family: var(--fw-sans);
  font-size: 14px;
}

select option {
  padding-left: 0px;
}

select option:disabled {
  padding-left: 0px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  font-family: var(--fw-sans);
}

/* Add a focus state to improve interactivity */
select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(10, 20, 30, 0.2);
  /* Slightly darker on focus */
}



.form-card {
  background: white;
  padding: 18px;
  border-radius: 12px;
  min-height: 460px;
  box-shadow: var(--card-shadow)
}

/* Portfolio */
.port-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(240px, 1fr));
  gap: 18px
}



.port-item {
  border-radius: 12px;
  overflow: hidden;
  background: white;
  /* max-width: 400px;
  min-width: 200px; */
  box-shadow: var(--card-shadow);
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
}

.port-item img {
  width: 100%;
  height: 160px;
  object-fit: cover
}

.port-item .meta {
  padding: 12px;
  color: var(--dark)
}

/* Tools badges */
.tools-wrapper {
  overflow: hidden;
  width: 100%;
  background: #fff;
}

.tools {
  display: flex;
  gap: 10px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.tools1 {
  display: flex;
  gap: 10px;
}

.tool {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.8rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}



/* small niceties */
.small {
  font-size: 1rem;
  color: var(--muted);
  text-align: justify;
}

.medium {
  font-size: 1.1rem;
}

.small div {
  margin-top: 5px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-green));
  font-weight: 800;
  color: #042
}

.left {
  flex: 1;
  min-width: 320px;
  max-width: 66%;
}

.right {
  flex-basis: 40%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@keyframes fadeanddropIn {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

.fadeanddropIn * {
  animation: fadeanddropIn 1s ease-out forwards;
  opacity: 0;
}

.fadeanddropIn *:nth-child(1) {
  animation-delay: .25s;
}

.fadeanddropIn *:nth-child(2) {
  animation-delay: .5s;
}

.fadeanddropIn *:nth-child(3) {
  animation-delay: .75s;
}

.fadeanddropIn:last-child *:nth-child(1) {
  animation-delay: 1.25s;
}

.fadeanddropIn:last-child *:nth-child(2) {
  animation-delay: 1.5s;
}

.fadeanddropIn:last-child *:nth-child(3) {
  animation-delay: 1.75s;
}

@keyframes fadeandscaleIn {
  0% {
    transform: scale(.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.fadeandscaleIn * {
  animation: fadeandscaleIn 1s ease-out forwards;
  opacity: 0;
}

.fadeandscaleIn *:nth-child(1) {
  animation-delay: 1s;
}

.fadeandscaleIn *:nth-child(2) {
  animation-delay: 1.25s;
}

.fadeandscaleIn *:nth-child(3) {
  animation-delay: 1.5s;
}

.flipParent {
  position: relative;
  perspective: 800px;
  /* 3D perspective */
}

.flipChild {
  transform-style: preserve-3d;
  /* Maintain 3D effect */
  animation: flipIn 1s ease-in-out forwards;
  /* Initial flip-in animation */
  transform: rotateY(0deg);
  /* Start flipped */
}

/* Keyframe animation for initial flip-in effect */
@keyframes flipIn {
  0% {
    transform: rotateY(0deg);
    /* Start flipped */
  }

  100% {
    transform: rotateY(180deg);
    /* Flip back to front */
  }
}

/* On hover, trigger the flip-back animation */
.flipChild:hover {
  animation: flipBack 1s ease-in-out forwards;
  /* Flip back on hover */
}

/* Keyframe animation for hover flip-back effect */
@keyframes flipBack {
  0% {
    transform: rotateY(180deg);
    /* Start flipped */
  }

  100% {
    transform: rotateY(0deg);
    /* Flip to the front */
  }
}

/* Loader styles */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Light gray background */
  /* Blue color for the spinning part */
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

/* Animation for spinner */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}


/* Responsive */
@media(max-width:531px) {
  .port-grid {
    grid-template-columns: repeat(1, minmax(240px, 1fr)) !important;
  }
}

@media(max-width:900px) {
  .hero-overlay {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px
  }

  .kicker {
    font-size: 1rem;
  }

  .small {
    font-size: 0.6rem;
  }

  .medium {
    font-size: 0.8rem;
  }

  .why-grid {
    grid-template-columns: 1fr
  }

  .why-img {
    width: 100%;
    height: auto;
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .header-inner {
    padding: 12px
  }

  .h-title {
    font-size: 28px
  }

  .card {
    padding: 10px;
  }

  .left {
    max-width: 100%;
  }

  .right {
    flex-basis: 100%;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }


  .contact-form {
    gap: 0px;
  }

  .footerContainer {
    gap: 30px;
  }
}

@media(max-width:1240px) {
  .hero-left {
    max-width: 400px;
  }

  .port-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
  }
}

@media(max-width:1440px) {
  .port-grid {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
  }
}

@media(min-width:1800px) {
  .d-lg-none {
    display: none !important;
  }
}

/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static !important;
  height: auto;
  width: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}