/* NavitraTech - Modern Interactive Website
   Features: Scroll animations, morphing effects, modern design
   Notes: Clean, responsive, accessible, no external dependencies.
*/

:root{
  --bg: #ffffff;
  --bg-dark: #0f172a;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.10);
  --text: #1e293b;
  --text-light: #64748b;
  --muted: rgba(233,238,252,0.75);
  --brand: #06b6d4;
  --brand-dark: #0891b2;
  --brand2: #3b82f6;
  --accent: #ec4899;
  --danger: #fb7185;
  --ok: #86efac;
  --shadow: 0 20px 25px rgba(0,0,0,0.08);
  --shadow-lg: 0 25px 50px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius2: 24px;
  --max: 1200px;
  --border: 1px solid rgba(100,150,200,0.15);
  --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*{ box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
  overflow-x: hidden;
  transform: translateZ(0);
}

a{ color:inherit; text-decoration:none; cursor: pointer; }
a:hover{ text-decoration:underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  position:static;
  width:auto;
  height:auto;
  padding:10px 14px;
  background: rgba(0,0,0,0.6);
  border: var(--border);
  border-radius: 10px;
  display:inline-block;
}

header{
  position: sticky;
  top:0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand img{
  width: 38px;
  height: 38px;
}
.brand .name{
  font-weight: 750;
  letter-spacing: 0.2px;
}
.brand .tag{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-top:2px;
}

.nav-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav-links a{
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s ease;
}
.nav-links a[aria-current="page"]{
  background: #e5e7eb;
  color: #000000;
}
.nav-links a:hover{
  background: #f3f4f6;
  color: #000000;
}

.menu-btn{
  display:none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: var(--border);
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 980px){
  .menu-btn{ 
    display:inline-flex; 
    align-items:center; 
    gap:8px;
    cursor: pointer;
  }
  .nav-links{
    display:none;
    width:100%;
    padding: 12px 0;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    z-index: 100;
  }
  .nav-links.open{ 
    display:flex;
  }
  .nav-links a{
    width: 100%;
    padding: 14px 18px;
    border-radius: 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
  }
  .nav-links a:last-child{
    border-bottom: none;
  }
  .nav-links a[aria-current="page"]{
    background: #f0f4ff;
    color: #2563eb;
    font-weight: 700;
  }
  .nav-links a:hover{
    background: #f3f4f6;
  }
  .navbar{ 
    flex-wrap: wrap;
    position: relative;
  }
  .brand{ min-width:auto; }
  
  .col-4, .col-6, .col-8{ grid-column: span 12; }
  .hero { min-height: 320px; }
  .hero .content{ padding: 30px 20px; }
  .hero h1{
    font-size: clamp(26px, 5vw, 38px);
    margin-bottom: 10px;
  }
  .hero p{
    font-size: 15px;
    margin-bottom: 14px;
  }
  .cta-row{
    flex-direction: column;
    gap: 10px;
  }
  .cta-row .btn{
    width: 100%;
  }
  .badges{
    flex-direction: column;
  }
  .badge{
    width: 100%;
    justify-content: flex-start;
  }
  .btn{
    padding: 11px 14px;
    font-size: 14px;
  }
}

.hero{
  position:relative;
  margin-top: 24px;
  border-radius: 16px;
  overflow:hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  min-height: 360px;
}

.hero .slides{
  position:absolute;
  inset:0;
  z-index:-1;
}
.hero .slide{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  opacity:0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 1200ms ease;
  filter: saturate(1.05) contrast(1.05);
}
.hero .slide.active{
  opacity:1;
  transform: scale(1.00);
}

.hero .content{
  position:relative;
  padding: 42px 28px;
  max-width: 720px;
  z-index: 1;
}

.hero::after{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255,255,255,0.54);
  pointer-events: none;
}
.hero h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 50px);
  line-height:1.1;
  color: #111111;
}
.hero p{
  margin: 0 0 18px;
  color: #333333;
  font-size: 17px;
  font-weight: 500;
}
.hero p strong{
  color: #1d4ed8;
  font-weight: 700;
}

.badges{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin: 14px 0 22px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #e0ecff;
  border: 1px solid #c7dcff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 13px;
}

.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  text-decoration:none;
  transition: 0.2s ease;
}

.btn:hover{
  background: #e5e7eb;
  color: #000000;
}
.btn.primary{
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #ffffff;
}

.btn.primary:hover{
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.section{
  margin: 24px 0;
}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.card h2, 
.card h3{
  color: #111827;
  font-weight: 700;
}
.card p{
  margin: 0 0 14px;
  color: #1f2937;     /* dark grey (much more readable) */
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}
.card ul{
  margin: 8px 0 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 500;
}
.card li{
  margin: 8px 0;
  color: #1f2937;
}

.kpi{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.kpi .big{
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.4px;
}
.kpi .small{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.col-4{ grid-column: span 4; }
.col-6{ grid-column: span 6; }
.col-8{ grid-column: span 8; }
.col-12{ grid-column: span 12; }

@media (max-width: 640px){
  .container{
    padding: 0 12px;
  }
  .navbar{
    padding: 10px 0;
    gap: 8px;
  }
  .brand img{
    width: 32px;
    height: 32px;
  }
  .brand .name{
    font-size: 16px;
  }
  .brand .tag{
    font-size: 11px;
  }
  .menu-btn{
    padding: 8px 10px;
    font-size: 12px;
  }
  .nav-links{
    padding: 8px 0;
  }
  .nav-links a{
    padding: 12px 14px;
    font-size: 14px;
  }
  .hero{
    min-height: 280px;
    margin-top: 12px;
  }
  .hero .content{
    padding: 24px 14px;
  }
  .hero h1{
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 10px;
  }
  .hero p{
    font-size: 14px;
    margin-bottom: 14px;
  }
  .kpi .big{
    font-size: 20px;
  }
  .kpi .small{
    font-size: 12px;
  }
  .card{
    padding: 14px;
  }
  .card p{
    font-size: 15px;
  }
  .card ul{
    font-size: 15px;
  }
  .field-row{ 
    grid-template-columns: 1fr; 
  }
  .btn{
    padding: 10px 14px;
    font-size: 13px;
  }
  .map-embed{
    height: 250px;
  }
  main.container{
    padding-bottom: 18px;
  }
  .section{
    margin: 18px 0;
  }
}

@media (max-width: 480px){
  .container{
    padding: 0 10px;
  }
  body{
    font-size: 14px;
  }
  .navbar{
    padding: 8px 0;
  }
  .brand{
    gap: 8px;
  }
  .brand img{
    width: 28px;
    height: 28px;
  }
  .brand .name{
    font-size: 14px;
  }
  .menu-btn{
    padding: 6px 8px;
    font-size: 12px;
  }
  .hero{
    min-height: 240px;
    margin-top: 8px;
  }
  .hero .content{
    padding: 20px 10px;
  }
  .hero h1{
    font-size: clamp(18px, 7vw, 24px);
    margin-bottom: 8px;
    line-height: 1.2;
  }
  .hero p{
    font-size: 13px;
    margin-bottom: 10px;
  }
  .badges{
    gap: 8px;
  }
  .badge{
    padding: 7px 8px;
    font-size: 12px;
  }
  .card{
    padding: 12px;
  }
  .card p{
    font-size: 14px;
    margin-bottom: 10px;
  }
  .card ul{
    font-size: 14px;
    padding-left: 16px;
  }
  .card li{
    margin: 6px 0;
  }
  .btn{
    padding: 9px 12px;
    font-size: 12px;
  }
  .cta-row{
    gap: 8px;
  }
  .kpi{
    flex-direction: column;
  }
  .kpi .big{
    font-size: 18px;
  }
  .map-embed{
    height: 200px;
  }
  .footer .footgrid{
    flex-direction: column;
    gap: 16px;
  }
  h1, h2, h3{
    line-height: 1.3;
  }
}

.hr{
  height:1px;
  background: rgba(255,255,255,0.10);
  margin: 14px 0;
}

.form{
  display:grid;
  gap: 12px;
}
.field-row{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 780px){
  .field-row{ grid-template-columns: 1fr; }
}
label{
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}
input, textarea, select{
  width:100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}
textarea{ min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(94,234,212,0.6);
  box-shadow: 0 0 0 3px rgba(94,234,212,0.10);
}

.notice{
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-weight: 500;
}
.notice.ok{ border-color: rgba(134,239,172,0.35); }
.notice.warn{ border-color: rgba(251,113,133,0.35); }

.map-embed{
  width:100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  overflow:hidden;
}

.footer{
  margin-top: 0;
  padding: 30px 0;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  color: #555555;
}
.footer .footgrid{
  display:flex;
  gap: 14px;
  justify-content:space-between;
  flex-wrap: wrap;
}
.footer a{
  color: #1d4ed8;
  font-weight: 600;
}
.footer a:hover{
  text-decoration: underline;
}

.small{
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 700;
  color: rgba(233,238,252,0.86);
}

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.video-topic{
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: min(360px, calc(100% - 36px));
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(209,213,219,0.9);
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}

.scroll-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #0891b2);
  z-index: 9999;
  width: 0%;
  transform: translateZ(0);
  will-change: width;
}

.cookie-consent{
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.2);
}

.cookie-consent h2{
  margin: 0 0 6px;
  font-size: 18px;
  color: #111827;
}

.cookie-consent p{
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.cookie-options{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.cookie-options label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.cookie-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 760px){
  .cookie-consent{
    grid-template-columns: 1fr;
  }
  .cookie-actions{
    justify-content: stretch;
  }
  .cookie-actions .btn{
    flex: 1 1 120px;
  }
}

main.container{
  padding-bottom: 24px;
}

/* Stronger blue sub-text */
.hero p strong,
.badge,
.small,
.brand .tag {
  font-weight: 700 !important;
  color: #1d4ed8 !important;   /* darker professional blue */
}

p{
  color: #1f2937;
  font-weight: 500;
}

/* ====== MODERN ANIMATIONS & MORPH EFFECTS ====== */

/* Base animation class for stability */
[data-animate] {
  transform: translateZ(0);
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  contain: layout style paint;
}

.fade-in.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Slide-in from left */
.slide-in-left {
  opacity: 0;
  transform: translate3d(-50px, 0, 0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  contain: layout style paint;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Slide-in from right */
.slide-in-right {
  opacity: 0;
  transform: translate3d(50px, 0, 0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  contain: layout style paint;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Scale-in on scroll */
.scale-in {
  opacity: 0;
  transform: scale3d(0.95, 0.95, 1);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  contain: layout style paint;
}

.scale-in.visible {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* Morph effect - smooth shape deformation */
.morph-card {
  position: relative;
  overflow: hidden;
}

.morph-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.morph-card:hover::before {
  left: 100%;
}

/* Gradient background shift */
.gradient-shift {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Pulse animation for CTAs */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
}

.btn.primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border: none;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.btn.primary:hover {
  animation: pulse-glow 1.5s infinite;
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

/* Smooth color transition for interactive elements */
.interactive-element {
  transition: var(--transition);
}

.interactive-element:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
  border-color: var(--brand);
}

/* Stagger animation for list items */
@keyframes stagger-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-items > * {
  animation: stagger-in 0.6s ease-out backwards;
}

.stagger-items > :nth-child(1) { animation-delay: 0s; }
.stagger-items > :nth-child(2) { animation-delay: 0.1s; }
.stagger-items > :nth-child(3) { animation-delay: 0.2s; }
.stagger-items > :nth-child(4) { animation-delay: 0.3s; }
.stagger-items > :nth-child(5) { animation-delay: 0.4s; }
.stagger-items > :nth-child(6) { animation-delay: 0.5s; }

/* Smooth transitions on button states */
.btn {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Glassmorphism for highlighted sections */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.1);
}

/* Enhanced hero section with gradient overlay */
header {
  background: linear-gradient(to right, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Staggered fade for text content */
.text-stagger > h1,
.text-stagger > p,
.text-stagger > .badges,
.text-stagger > .cta-row {
  animation: stagger-in 0.6s ease-out backwards;
}

.text-stagger > h1 { animation-delay: 0.1s; }
.text-stagger > p { animation-delay: 0.2s; }
.text-stagger > .badges { animation-delay: 0.3s; }
.text-stagger > .cta-row { animation-delay: 0.4s; }

/* Feature card hover effect */
.feature-card {
  position: relative;
  transition: var(--transition);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card:hover {
  border-color: var(--brand);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
  transform: translateY(-10px);
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
