@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Sora:wght@400;600;700;800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --sunsys-red: #E4032E;
    --sunsys-dark: #09090b;
    --sunsys-slate: #17171a;
  }

  html {
    scroll-behavior: smooth;
  }
  body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: #f7f7f6;
    color: #111111;
  }
  * {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  *::-webkit-scrollbar {
    display: none;
  }

  .section-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--sunsys-red);
  }

  .section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.08;
    font-weight: 700;
  }

  .hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(4, 4, 6, 0.96) 0%, rgba(4, 4, 6, 0.74) 48%, rgba(4, 4, 6, 0.34) 100%);
    z-index: 0;
  }

  .hero-slide > * {
    position: relative;
    z-index: 2;
  }
}

@layer components {
  /* Insights rail — matches Figma: 3px gap, 52s animation */
  .insights-rail {
    display: flex;
    gap: 3px;
    padding: 0;
    width: max-content;
    animation: rail-scroll 52s linear infinite;
  }

  .insights-track:hover .insights-rail {
    animation-play-state: paused;
  }

  @keyframes rail-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* Insight card: opacity-only hover overlay */
  .insight-card .iov {
    opacity: 0;
    transition: opacity 0.32s ease;
  }

  .insight-card:hover .iov {
    opacity: 1;
  }

  /* Image zoom on hover */
  .insight-card .iimg {
    transition: transform 0.6s ease;
  }

  .insight-card:hover .iimg {
    transform: scale(1.05);
  }

  /* ─── Sector Card: premium staggered reveal animation ─── */

  /* Default-state title/gradient fade out on hover */
  .sec-card .sbase {
    transition: opacity 300ms ease-in-out;
  }
  .sec-card:hover .sbase {
    opacity: 0;
  }

  /* OVERLAY — slides up + fades in */
  .sec-card .shov {
    opacity: 0;
    transform: translateY(28px);
    background: rgba(0, 0, 0, 0.55);
    transition:
      opacity  420ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  .sec-card:hover .shov {
    opacity: 1;
    transform: translateY(0);
  }

  /* DESCRIPTION — delay 80ms, slides 18px */
  .sec-card .shov-desc {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity  340ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
      transform 340ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
    will-change: opacity, transform;
  }
  .sec-card:hover .shov-desc {
    opacity: 1;
    transform: translateY(0);
  }

  /* TAGS — delay 140ms, slides 14px */
  .sec-card .shov-tags {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity  300ms cubic-bezier(0.22, 1, 0.36, 1) 140ms,
      transform 300ms cubic-bezier(0.22, 1, 0.36, 1) 140ms;
    will-change: opacity, transform;
  }
  .sec-card:hover .shov-tags {
    opacity: 1;
    transform: translateY(0);
  }

  /* TITLE — slides up 10px, no opacity (always at full opacity within shov) */
  .sec-card .shov-title {
    transform: translateY(10px);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
    will-change: transform;
  }
  .sec-card:hover .shov-title {
    transform: translateY(0);
  }

  /* TRIANGLE — delay 80ms, fades + slides (shape is ↗ via clip-path, no rotation needed) */
  .sec-card .shov-tri {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity  300ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
      transform 300ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
    will-change: opacity, transform;
  }
  .sec-card:hover .shov-tri {
    opacity: 1;
    transform: translateY(0);
  }

  /* IMAGE — subtle zoom */
  .sec-card .simg {
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
  .sec-card:hover .simg {
    transform: scale(1.03);
  }

  /* Services Card Hover Effects */
  .svc-card .svc-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .svc-card .svc-icon svg {
    transform: scale(1.25);
    transition: transform 0.35s ease;
  }
  .svc-card .svc-desc {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.32s ease, transform 0.32s ease;
  }
  .svc-card:hover {
    background: #323235 !important;
  }
  .svc-card:hover .svc-icon {
    opacity: 0;
    transform: translateY(-12px);
  }
  .svc-card:hover .svc-icon svg {
    transform: scale(1.35);
  }
  .svc-card:hover .svc-desc {
    opacity: 1;
    transform: translateY(0);
  }

  /* Contact Form Input Styles */
  .contact-input {
    width: 100%;
    background: #16161a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    padding: 13px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.22s, background 0.22s;
  }
  .contact-input:hover {
    border-color: rgba(255,255,255,0.14);
    background: #18181d;
  }
  .contact-input:focus {
    border-color: #E4032E;
    background: #18181d;
  }
  .contact-input::placeholder {
    color: #BFC5CF;
  }

  /* ── Contact Page Components ── */
  .ctc-info-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    text-decoration: none;
    transition: background 280ms, border-color 280ms;
  }
  a.ctc-info-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(228,3,46,0.45);
  }
  .ctc-info-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(228,3,46,0.1);
    border-radius: 9px;
    color: #E4032E;
  }
  .ctc-info-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: #BFC5CF; margin-bottom: 3px;
  }
  .ctc-info-value {
    font-size: 13px; color: #FFFFFF; font-weight: 500;
  }
  .ctc-label {
    display: block;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: #F3F4F6;
    margin-bottom: 9px;
  }
  .ctc-label-opt {
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: none;
    color: #BFC5CF;
    font-size: 10px;
  }
  .ctc-select-wrap { position: relative; }
  .ctc-select {
    appearance: none; -webkit-appearance: none;
    padding-right: 42px; cursor: pointer;
  }
  .ctc-select-arrow {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    color: #BFC5CF;
    pointer-events: none;
  }
  /* Checkbox */
  .ctc-checkbox-wrap { position: relative; flex-shrink: 0; margin-top: 1px; }
  .ctc-checkbox-input {
    position: absolute; opacity: 0;
    width: 18px; height: 18px; cursor: pointer; margin: 0;
  }
  .ctc-checkbox-box {
    width: 18px; height: 18px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 5px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    transition: background 200ms, border-color 200ms;
    color: transparent;
  }
  .ctc-checkbox-input:checked + .ctc-checkbox-box {
    background: #E4032E; border-color: #E4032E; color: white;
  }
  /* Accordion */
  .ctc-acc-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .ctc-acc-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
    background: none; border: none; cursor: pointer; text-align: left;
    color: #FFFFFF;
    font-size: 14px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: color 200ms;
  }
  .ctc-acc-btn:hover { color: #FFFFFF; }
  .ctc-acc-icon {
    width: 26px; height: 26px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; line-height: 1;
    flex-shrink: 0;
    color: #FFFFFF;
    transition: background 200ms, border-color 200ms, color 200ms, transform 320ms cubic-bezier(0.22,1,0.36,1);
  }
  .ctc-acc-item.open .ctc-acc-icon {
    background: rgba(228,3,46,0.1);
    border-color: rgba(228,3,46,0.3);
    color: #E4032E;
    transform: rotate(45deg);
  }
  .ctc-acc-content {
    max-height: 0; overflow: hidden;
    transition: max-height 380ms cubic-bezier(0.22,1,0.36,1), opacity 280ms ease;
    opacity: 0;
  }
  .ctc-acc-item.open .ctc-acc-content { max-height: 160px; opacity: 1; }
  .ctc-acc-text {
    padding-bottom: 20px;
    font-size: 13.5px; line-height: 1.75;
    color: #E5E7EB;
  }
  .ctc-acc-email {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #E4032E;
    text-decoration: none; margin-top: 5px;
    transition: color 200ms;
  }
  .ctc-acc-email:hover { color: #ff2244; }
  /* Footer */
  .ctc-footer-link {
    font-size: 13px; color: #E5E7EB;
    text-decoration: none; transition: color 200ms;
  }
  .ctc-footer-link:hover { color: #FFFFFF; }
  .ctc-social-btn {
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: border-color 240ms, color 240ms, background 240ms, box-shadow 240ms;
  }
  .ctc-social-btn:hover {
    border-color: #E4032E;
    color: #FFFFFF;
    background: rgba(228,3,46,0.14);
    box-shadow: 0 0 16px rgba(228,3,46,0.25);
  }
}


/* ═══════════════════════════════════════
   KaushalSaathi – Partner Network Section
   ═══════════════════════════════════════ */

@keyframes ks-marquee-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes ks-marquee-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.ks-section {
  width: 100%;
  padding: 0;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
  background: #ffffff;
}

.ks-inner {
  display: flex;
  flex: 1;
  width: 100%;
  align-items: stretch;
}

.ks-left {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 58%, #f1f1f1 100%);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.ks-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(228, 3, 46, 0.06) 0%, transparent 48%);
  pointer-events: none;
  z-index: 0;
}

.ks-left > * {
  position: relative;
  z-index: 1;
}

.ks-mq-wrap {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.ks-mq-wrap:first-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ks-mq-track {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  width: max-content;
  margin: 0;
  padding: 0;
  will-change: transform;
  box-sizing: border-box;
  animation-duration: 44s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.ks-mq-fwd { animation-name: ks-marquee-fwd; }
.ks-mq-rev { animation-name: ks-marquee-rev; }
.ks-mq-wrap:hover .ks-mq-track { animation-play-state: paused; }

.ks-logo-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(18vw, 260px);
  max-width: 260px;
  min-width: 210px;
  height: 92%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  overflow: visible;
  transition: transform 300ms ease, filter 300ms ease;
}

.ks-logo-card:hover {
  transform: scale(1.03);
  filter: brightness(1.03);
}

.ks-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ks-right {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  background-image: url('../assets/Crowd_image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.ks-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 4, 6, 0.74) 0%, rgba(4, 4, 6, 0.68) 40%, rgba(4, 4, 6, 0.36) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity 400ms ease;
}

.ks-right:hover::before {
  opacity: 1;
}

.ks-right-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ks-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sunsys-red);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(15px);
  will-change: opacity, transform;
  transition: opacity 350ms ease, transform 350ms ease;
}

.ks-right:hover .ks-kicker {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms ease 100ms, transform 400ms ease 100ms;
}

.ks-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 3.1vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(15px);
  will-change: opacity, transform;
  transition: opacity 350ms ease, transform 350ms ease;
}

.ks-right:hover .ks-heading {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms ease 200ms, transform 400ms ease 200ms;
}

.ks-para {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  max-width: 30rem;
  margin-bottom: 36px;
}

/* Sub-heading (default state, below heading) */
.ks-subheading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
  margin-bottom: 0;
}

/* ── Hover reveal block ── */
.ks-hover-block {
  position: absolute;
  bottom: 40px;
  left: 64px;
  right: 64px;
  z-index: 2;
  opacity: 0;
  transform: translateY(15px);
  will-change: opacity, transform;
  transition: opacity 350ms ease, transform 350ms ease;
}
.ks-right:hover .ks-hover-block {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms ease 300ms, transform 400ms ease 300ms;
}

.ks-hover-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 20px;
}

.ks-hover-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 300ms ease;
}
.ks-hover-cta:hover {
  color: var(--sunsys-red);
}
.ks-cta-arrow {
  display: inline-block;
  transition: transform 300ms ease;
}
.ks-hover-cta:hover .ks-cta-arrow {
  transform: translateX(6px);
}

.ks-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 100px;
  background: #ffffff;
  color: #111111;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 300ms ease, color 300ms ease;
  width: fit-content;
}

.ks-btn .ks-arrow {
  display: inline-block;
  transition: transform 300ms ease;
}

.ks-btn:hover {
  background: var(--sunsys-red);
  color: #ffffff;
}

.ks-btn:hover .ks-arrow {
  transform: translateX(6px);
}

@media (max-width: 1024px) {
  .ks-logo-card {
    width: min(16vw, 220px);
    min-width: 170px;
  }

  .ks-mq-track {
    gap: 14px;
    padding: 0 4px;
  }

  .ks-right-content {
    padding: 48px 40px;
  }

  .ks-hover-block {
    bottom: 48px;
    left: 40px;
    right: 40px;
  }
}

@media (max-width: 768px) {
  .ks-section {
    min-height: auto;
  }

  .ks-inner {
    flex-direction: column;
  }

  .ks-left {
    flex: 0 0 52vh;
    max-width: 100%;
    order: -1;
    padding: 16px 18px;
  }

  .ks-right {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 48vh;
  }

  .ks-right-content {
    padding: 42px 24px;
  }

  .ks-logo-card {
    width: min(44vw, 180px);
    min-width: 130px;
  }

  .ks-mq-track {
    gap: 12px;
    padding: 0 2px;
  }

  .ks-heading {
    font-size: clamp(1.4rem, 4.2vw, 1.8rem);
  }

  .ks-para {
    margin-bottom: 24px;
  }

  .ks-hover-block {
    bottom: 42px;
    left: 24px;
    right: 24px;
  }

  .ks-hover-desc {
    font-size: 14px;
    line-height: 1.65;
  }
}


/* ═══════════════════════════════════════════════════════
   CONTACT MODAL — High-specificity unlayered overrides
   Outside @layer base → beats every Tailwind CDN utility
   ═══════════════════════════════════════════════════════ */

/* ── Accordion buttons ─────────────────────────────── */
#contact-modal .ctc-acc-btn {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  transition: color 220ms cubic-bezier(0.22,1,0.36,1) !important;
}
#contact-modal .ctc-acc-btn:hover {
  color: #FF1744 !important;
}
#contact-modal .ctc-acc-btn > span:first-child {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.22,1,0.36,1);
}
#contact-modal .ctc-acc-btn:hover > span:first-child {
  transform: translateX(3px);
}

/* ── Accordion + icon ──────────────────────────────── */
#contact-modal .ctc-acc-icon {
  color: #FFFFFF !important;
  border-color: rgba(255,255,255,0.32) !important;
}
#contact-modal .ctc-acc-btn:hover .ctc-acc-icon {
  color: #FF1744 !important;
  border-color: rgba(255,23,68,0.5) !important;
}
#contact-modal .ctc-acc-item.open .ctc-acc-icon {
  color: #FF1744 !important;
  background: rgba(255,23,68,0.1) !important;
  border-color: rgba(255,23,68,0.45) !important;
  transform: rotate(45deg) !important;
}

/* ── Accordion text & email ────────────────────────── */
#contact-modal .ctc-acc-text  { color: #E5E7EB !important; }
#contact-modal .ctc-acc-email { color: #FF1744 !important; }
#contact-modal .ctc-acc-email:hover { color: #FF4569 !important; }

/* ── Footer navigation links ───────────────────────── */
#contact-modal footer a.ctc-footer-link,
#contact-modal footer a.ctc-footer-link:visited {
  color: #F5F5F5 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  display: block;
  transition: color     220ms cubic-bezier(0.22,1,0.36,1),
              transform 220ms cubic-bezier(0.22,1,0.36,1) !important;
}
#contact-modal footer a.ctc-footer-link:hover {
  color: #FF1744 !important;
  transform: translateX(4px) !important;
  text-shadow: 0 0 14px rgba(255,23,68,0.3) !important;
}

/* ── Social icon buttons ───────────────────────────── */
#contact-modal .ctc-social-btn {
  color: #FFFFFF !important;
  border-color: rgba(255,255,255,0.28) !important;
}
#contact-modal .ctc-social-btn:hover {
  color: #FFFFFF !important;
  background: rgba(228,3,46,0.14) !important;
  border-color: #E4032E !important;
  box-shadow: 0 0 16px rgba(228,3,46,0.28) !important;
}

/* ── Info cards ────────────────────────────────────── */
#contact-modal .ctc-info-label { color: #BFC5CF !important; }
#contact-modal .ctc-info-value { color: #FFFFFF !important; }

/* ── Form labels & inputs ──────────────────────────── */
#contact-modal .ctc-label            { color: #F3F4F6 !important; }
#contact-modal .contact-input        { color: #FFFFFF !important; }
#contact-modal .contact-input::placeholder { color: #BFC5CF !important; }

