/* ===================================================================
   Digital Automation & IT Solutions — custom styles
   =================================================================== */

:root {
  --bg: #000000;
  --fg: #f8fafc;
  --fg-muted: rgba(248, 250, 252, 0.6);
  --fg-faint: rgba(248, 250, 252, 0.4);
  --accent: #00e1ff;
  --accent-fg: #0a131f;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(10, 15, 30, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Inter", sans-serif;
}

a {
  text-decoration: none;
}

/* ---------- Hero background image (scoped to hero section only) ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/hero-bg.jpg") no-repeat center center / cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 45%, #000 100%);
}

/* ---------- Section-specific backgrounds ---------- */
.bg-panel-a {
  background-color: #05070c;
}

.bg-panel-b {
  background-color: #090c14;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.bg-glow-cyan {
  background-color: #000;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(0, 225, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(0, 225, 255, 0.08), transparent 60%);
}

.bg-glow-purple {
  background-color: #000;
  background-image:
    radial-gradient(ellipse 900px 550px at 90% 0%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 5% 100%, rgba(0, 225, 255, 0.08), transparent 60%);
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5,
.hero-heading, .service-title, .section-head h2, .case-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* ---------- Navbar ---------- */
.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

.glass-nav .navbar {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

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

.logo-img-footer {
  height: 96px;
}

@media (max-width: 420px) {
  .logo-img {
    height: 44px;
  }
}

.nav-link {
  color: var(--fg) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent) !important;
}

/* ---------- Solutions dropdown ---------- */
.dropdown-toggle::after {
  vertical-align: 2px;
}

.glass-dropdown {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
}

.glass-dropdown .dropdown-item {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  transition: all 0.15s ease;
}

.glass-dropdown .dropdown-item:hover,
.glass-dropdown .dropdown-item:focus {
  background: rgba(0, 225, 255, 0.12);
  color: var(--accent);
}

.glass-dropdown .dropdown-item.active-link {
  background: rgba(0, 225, 255, 0.12);
  color: var(--accent);
}

@media (max-width: 991.98px) {
  .glass-dropdown {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
  }
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-top: 90px;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-heading {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98;
  margin-bottom: 1.5rem;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg-faint);
}

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

.hero-sub {
  color: var(--fg-muted);
  font-size: 1.15rem;
  max-width: 640px;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn-accent {
  background-color: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 9999px;
  padding: 0.85rem 2.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
  color: var(--accent-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 225, 255, 0.35);
}

.btn-outline-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  border-radius: 9999px;
  padding: 0.85rem 2.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.btn-outline-glass:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section-padding {
  padding: 6rem 0;
}

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

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

/* ---------- Glass cards ---------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 225, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.glass-card p {
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- Case studies ---------- */
.case-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.case-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: "Inter", sans-serif;
  font-style: normal;
}

.case-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.case-stat {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--accent);
}

.case-stat-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.what-we-did {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--fg);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--fg-muted);
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
  font-style: normal;
  text-transform: none;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.stars {
  color: var(--accent);
  letter-spacing: 0.2em;
}

.testimonial-text {
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  color: var(--fg);
  font-weight: 700;
  margin-top: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Portfolio ---------- */
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-family: "Inter", sans-serif;
  font-style: normal;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 225, 255, 0.1);
  border: 1px solid rgba(0, 225, 255, 0.25);
  color: var(--accent);
}

/* ---------- Blog ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
}

.learn-more {
  color: var(--accent);
  font-weight: 700;
  margin-top: 1rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.learn-more:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item {
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: transparent;
  color: var(--fg);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  box-shadow: none !important;
  padding: 1.25rem 0;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--accent);
}

.accordion-body {
  color: var(--fg-muted);
  padding: 0 0 1.25rem;
  line-height: 1.7;
}

/* ---------- Contact form ---------- */
.form-label {
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.glass-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.2);
  color: var(--fg);
}

.glass-input::placeholder {
  color: rgba(248, 250, 252, 0.35);
}

.form-status {
  margin-top: 1.25rem;
  padding: 0;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.25s ease;
}

.form-status.show {
  padding: 0.9rem 1.25rem;
  max-height: 200px;
  opacity: 1;
}

.form-status-success {
  background: rgba(0, 225, 255, 0.12);
  border: 1px solid rgba(0, 225, 255, 0.35);
  color: var(--accent);
}

.form-status-error {
  background: rgba(255, 90, 90, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.35);
  color: #ff8080;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #05070c;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer-text {
  color: var(--fg-muted);
  max-width: 280px;
}

.footer-heading {
  font-family: "Inter", sans-serif;
  font-style: normal;
  text-transform: none;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.6rem;
}

.footer-list a {
  color: var(--fg-muted);
  transition: color 0.2s ease;
}

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

.footer-email {
  color: var(--accent);
  font-weight: 600;
}

.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--accent);
  color: var(--accent-fg);
}

.footer-divider {
  border-color: var(--glass-border);
  margin: 2rem 0 1.5rem;
}

.footer-copy {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Solution pages: hero ---------- */
.page-hero {
  padding-top: calc(90px + 4rem);
}

.page-hero-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1;
}

.page-hero-sub {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.7;
  margin: 0 auto;
}

/* ---------- Solution pages: overview ---------- */
.overview-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overview-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
  color: var(--fg);
  font-weight: 600;
}

.overview-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 225, 255, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.body-text {
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

/* ---------- Solution pages: process steps ---------- */
.process-card {
  position: relative;
}

.process-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 2.75rem;
  color: rgba(0, 225, 255, 0.35);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ---------- Solution pages: CTA banner ---------- */
.cta-banner h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.cta-banner p {
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Active nav link ---------- */
.nav-link.active-link {
  color: var(--accent) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--nav-bg);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
  }
}
