/* ============================================
   TechDevrit — Custom Design System
   Dark theme. Mint accent. Premium feel.
   ============================================ */

:root {
  --bg: #0f1c2e;
  --bg-elevated: #142539;
  --accent: #1fd1a5;
  --accent-hover: #19b690;
  --accent-soft: rgba(31, 209, 165, 0.12);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(31, 209, 165, 0.18);
  --card-border-hover: rgba(31, 209, 165, 0.5);
  --shadow-glow: 0 10px 40px rgba(31, 209, 165, 0.15);
  --transition: 0.3s ease;
  --container-pad: clamp(20px, 5vw, 80px);
}

/* ---------- Reset & Base ---------- */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 600; }

p {
  color: var(--text-muted);
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo {
  width: 110px;
  height: auto;
  animation: pulse 1.6s ease-in-out infinite;
}

.preloader__spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(31, 209, 165, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Navbar ---------- */
.navbar-td {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 18px 0;
  background: rgba(15, 28, 46, 0);
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.navbar-td.scrolled {
  background: rgba(15, 28, 46, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-td .navbar-brand img {
  height: 38px;
  width: auto;
}

.navbar-td .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  position: relative;
  transition: color var(--transition);
}

.navbar-td .nav-link:hover,
.navbar-td .nav-link.active {
  color: var(--text) !important;
}

.navbar-td .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.navbar-td .navbar-toggler {
  border: 1px solid var(--card-border);
  padding: 6px 10px;
}

.navbar-td .navbar-toggler:focus { box-shadow: none; }

.navbar-td .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231fd1a5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 991.98px) {
  .navbar-td .navbar-collapse {
    background: rgba(15, 28, 46, 0.95);
    backdrop-filter: blur(14px);
    margin-top: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
  }
}

/* ---------- Buttons ---------- */
.btn-mint {
  background: var(--accent);
  color: var(--bg) !important;
  border: 2px solid var(--accent);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all var(--transition);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-mint:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline-mint {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all var(--transition);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-mint:hover {
  background: var(--accent);
  color: var(--bg) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(60px, 10vw, 110px) 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border-radius: 50px;
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(31, 209, 165, 0.08) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 209, 165, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.page-header > .container { position: relative; z-index: 1; }

.breadcrumb-td {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.breadcrumb-td a { color: var(--text-muted); }
.breadcrumb-td .active { color: var(--accent); }

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

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero__shape--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px;
  right: -150px;
}

.hero__shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #4f7cff 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  opacity: 0.3;
}

.hero__content { position: relative; z-index: 1; }

.hero__tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 8px 18px;
  background: var(--accent-soft);
  border-radius: 50px;
  border: 1px solid var(--card-border);
}

.hero__title {
  margin-bottom: 24px;
}

.hero__title .accent { color: var(--accent); }

.hero__sub {
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Cards (services, products, values) ---------- */
.card-td {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card-td::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(31, 209, 165, 0.06), transparent);
  transition: left 0.6s ease;
}

.card-td:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-glow);
}

.card-td:hover::before { left: 100%; }

.card-td__icon {
  width: 64px;
  height: 64px;
  background: var(--accent-soft);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 1.8rem;
  border: 1px solid var(--card-border);
}

.card-td__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.card-td__desc {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.card-td__link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.card-td__link:hover { gap: 10px; }

/* ---------- Why-Choose-Us ---------- */
.feature-item {
  text-align: center;
  padding: 24px 16px;
}

.feature-item .icon {
  width: 70px;
  height: 70px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 18px;
  border: 1px solid var(--card-border);
}

.feature-item h4 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-item p { font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats-section {
  background: linear-gradient(135deg, rgba(31, 209, 165, 0.08) 0%, transparent 100%);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 70px 0;
}

.stat {
  text-align: center;
}

.stat__num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Process Timeline ---------- */
.process-step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--bg-elevated);
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid var(--accent);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.process-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; }

/* ---------- Service Block (alternating) ---------- */
.service-block {
  padding: 70px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.service-block:last-child { border-bottom: none; }

.service-block__icon {
  width: 72px;
  height: 72px;
  background: var(--accent-soft);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 20px;
  border: 1px solid var(--card-border);
}

.service-block h2 { margin-bottom: 18px; }

.service-block__features {
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
}

.service-block__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-block__features li i {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-block__visual {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.service-block__visual img,
.service-block__visual svg {
  max-width: 100%;
  max-height: 240px;
  position: relative;
  z-index: 1;
}

.service-block__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(31,209,165,0.1) 0%, transparent 70%);
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 32px 26px;
  height: 100%;
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-glow);
}

.product-card__visual {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--card-border);
}

.product-card__visual i {
  font-size: 4rem;
  color: var(--accent);
}

.product-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  margin-bottom: 14px;
}

.product-card__title { font-size: 1.2rem; margin-bottom: 10px; }
.product-card__desc { font-size: 0.92rem; margin-bottom: 20px; }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  padding: 60px 0;
  text-align: center;
  border-radius: 24px;
  margin: 0 var(--container-pad) 80px;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.cta-strip h2 { color: var(--bg); margin-bottom: 14px; position: relative; }
.cta-strip p { color: rgba(15, 28, 46, 0.8); margin-bottom: 28px; position: relative; }

.cta-strip .btn-dark {
  background: var(--bg);
  color: var(--accent) !important;
  border: 2px solid var(--bg);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 50px;
  position: relative;
}

.cta-strip .btn-dark:hover {
  background: transparent;
  color: var(--bg) !important;
  border-color: var(--bg);
}

/* ---------- Founder ---------- */
.founder-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.founder-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 22px;
  border: 4px solid var(--bg-elevated);
  box-shadow: var(--shadow-glow);
}

.founder-name { font-size: 1.6rem; margin-bottom: 4px; }
.founder-title {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.founder-bio { font-size: 1rem; line-height: 1.8; }

/* ---------- Credentials ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.cred-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}

.cred-item__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.cred-item__value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  word-break: break-all;
}

/* ---------- Contact Form & Info ---------- */
.contact-form .form-control,
.contact-form .form-select {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form .form-control::placeholder { color: var(--text-dim); }

.contact-form label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 36px;
  height: 100%;
}

.contact-info-card h3 { margin-bottom: 26px; font-size: 1.4rem; }

.contact-info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-info-row__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
}

.contact-info-row__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-info-row__value { color: var(--text); font-size: 0.95rem; }
.contact-info-row__value a { color: var(--text); }
.contact-info-row__value a:hover { color: var(--accent); }

.map-frame {
  width: 100%;
  height: 420px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  margin-top: 60px;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.8);
}

.form-success {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

.form-success.show { display: block; }

/* ---------- Footer ---------- */
.footer {
  background: #0a1422;
  padding: 70px 0 0;
  border-top: 1px solid var(--card-border);
  margin-top: 60px;
}

.footer__brand img {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
}

.footer__about { font-size: 0.92rem; max-width: 320px; }

.footer__heading {
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li { margin-bottom: 11px; }

.footer__links a {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.footer__links a:hover { color: var(--accent); padding-left: 4px; }

.footer__contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__contact-row i { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 50px;
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Floating Buttons ---------- */
.float-whatsapp,
.float-top {
  position: fixed;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.float-whatsapp {
  bottom: 92px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.float-whatsapp:hover {
  transform: scale(1.08);
  color: #fff;
  background: #1cba56;
}

.float-top {
  bottom: 28px;
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(31, 209, 165, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.float-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-top:hover {
  transform: translateY(-4px);
  background: var(--accent-hover);
  color: var(--bg);
}

/* ---------- Animation Initial States ---------- */
[data-anim] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .page-header { padding: 130px 0 60px; }
  .service-block { padding: 50px 0; }
  .service-block__visual { padding: 30px; min-height: 240px; }
  .founder-card { padding: 32px 24px; }
  .contact-info-card { padding: 26px; }
  .float-whatsapp, .float-top { right: 16px; width: 46px; height: 46px; font-size: 1.3rem; }
  .float-whatsapp { bottom: 80px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}
