/* ===================================================
   ioMotiv – Main Stylesheet
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #4F46E5;
  --primary-d: #3730A3;
  --accent:    #06B6D4;
  --dark:      #0F172A;
  --dark-2:    #1E293B;
  --dark-3:    #334155;
  --mid:       #64748B;
  --light:     #F1F5F9;
  --white:     #FFFFFF;
  --gradient:  linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --radius:    14px;
  --radius-sm: 8px;
  --trans:     .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-2);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
}
.section-header p {
  color: var(--mid);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: rgba(79,70,229,.1);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .9rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 1rem 0;
  transition: background var(--trans), box-shadow var(--trans), padding var(--trans);
}
.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  padding: .7rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo .logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--dark-2);
  transition: color var(--trans);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width var(--trans);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language toggle */
.lang-toggle {
  background: none;
  border: 1.5px solid var(--primary);
  border-radius: 50px;
  padding: .3rem .75rem;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  gap: .3rem;
  color: var(--mid);
  transition: all var(--trans);
  letter-spacing: .04em;
}
.lang-toggle:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.lang-toggle .lang-et.active,
.lang-toggle .lang-en.active { color: var(--primary); }
.lang-toggle:hover .lang-et,
.lang-toggle:hover .lang-en { color: var(--white); }
.lang-sep { color: #CBD5E1; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark-2);
  border-radius: 2px;
  transition: all var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #EEF2FF 0%, #F0FDFF 50%, #FAFAFA 100%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,70,229,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #4F46E5 0%, transparent 70%);
  top: -100px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
  bottom: -100px; left: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 50px;
  padding: .4rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark-3);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--mid);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--mid); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: #E2E8F0; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-dot {
  display: block;
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: .5; }
}

/* ======================================================
   SERVICES
   ====================================================== */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card--featured {
  border-color: var(--primary);
  background: linear-gradient(145deg, #EEF2FF 0%, #F0FDFF 100%);
}

.service-badge {
  position: absolute;
  top: -12px; right: 1.5rem;
  background: var(--gradient);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  letter-spacing: .04em;
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(79,70,229,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  color: var(--primary);
}
.service-card--featured .service-icon {
  background: var(--gradient);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .75rem;
}
.service-card p {
  font-size: .9rem;
  color: var(--mid);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.service-list li {
  font-size: .85rem;
  color: var(--dark-3);
  padding: .35rem 0;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.service-list li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gradient);
  border-radius: 50%;
  flex-shrink: 0;
}
.service-list li:last-child { border-bottom: none; }

/* ======================================================
   PROCESS
   ====================================================== */
.process {
  background: linear-gradient(160deg, #F8FAFC 0%, #EEF2FF 100%);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.process-step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.step-num {
  width: 64px; height: 64px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(79,70,229,.3);
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}
.step-content p {
  font-size: .88rem;
  color: var(--mid);
  line-height: 1.7;
}

.process-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 31px;
  opacity: .4;
  align-self: flex-start;
}

/* ======================================================
   ABOUT
   ====================================================== */
.about { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.about-card-main {
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.about-logo { height: 50px; width: auto; margin: 0 auto 1.25rem; }
.about-tagline {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.6;
}

.about-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: .75rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark-2);
  border: 1px solid #E2E8F0;
}
.about-float-card i { color: var(--primary); font-size: 1rem; }
.about-float-1 { top: 1rem; right: -1rem; }
.about-float-2 { bottom: 1rem; left: -1rem; }

.about-text .section-tag { margin-bottom: .75rem; }
.about-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.about-text p {
  color: var(--mid);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.value-item i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}
.value-item div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.value-item strong {
  font-weight: 700;
  color: var(--dark);
  font-size: .95rem;
}
.value-item span {
  font-size: .85rem;
  color: var(--mid);
}

.about-reg {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: .65rem 1.1rem;
  font-size: .82rem;
  color: var(--dark-3);
  font-weight: 500;
}
.about-reg i { color: var(--primary); }

/* ======================================================
   CONTACT
   ====================================================== */
.contact {
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 60%, #0F2A4A 100%);
  color: var(--white);
}

.section-header--light h2 { color: var(--white); }
.section-header--light p { color: rgba(255,255,255,.65); }
.section-tag--light {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ci-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.12);
}
.contact-info-item strong {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .3rem;
  font-weight: 700;
}
.contact-info-item span,
.contact-info-item a {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}
.contact-info-item a:hover { color: var(--accent); }

/* Form */
.contact-form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .95rem;
  color: var(--white);
  font-family: inherit;
  transition: border-color var(--trans), background var(--trans);
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.3); }
.contact-form select option { background: var(--dark-2); color: var(--white); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.1);
}

.form-success {
  display: none;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  background: rgba(6,182,212,.15);
  border: 1px solid rgba(6,182,212,.4);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 500;
}
.form-success.visible { display: flex; }

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: #060D1B;
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo { height: 38px; width: auto; margin-bottom: 1rem; }
.footer-brand p {
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--accent); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-contact i { color: var(--accent); width: 14px; }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  padding: 1.25rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: rgba(255,255,255,.3);
  font-size: .78rem;
  transition: color .2s;
  text-decoration: none;
}
.footer-legal-links a:hover { color: rgba(255,255,255,.7); }
@media (max-width: 560px) {
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .about-inner { gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { min-height: 280px; }
  .about-float-1, .about-float-2 { display: none; }

  .process-steps { flex-direction: column; align-items: center; gap: 2rem; }
  .process-connector { width: 2px; height: 40px; flex: none; margin-top: 0; margin-left: 31px; align-self: auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    gap: 1.25rem;
    z-index: 998;
  }
  .nav-links.open a { font-size: 1.05rem; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .hero { padding: 100px 0 60px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-form { padding: 1.75rem 1.25rem; }
}
